audioshowkit/Jenkinsfile
Harrison Deng ce51ebf324
Some checks failed
RealYHD/audioshowkit/pipeline/head There was a failure building this commit
ydeng/audioshowkit/pipeline/head There was a failure building this commit
Changed Conda environment name to same as project.
2022-12-01 04:19:19 +00:00

32 lines
1018 B
Groovy

pipeline {
agent any
stages {
stage("install") {
steps {
sh 'mamba env update --file environment.yml'
sh 'echo "mamba activate audioshowkit" >> ~/.bashrc'
sh 'node --version && npm --version'
sh 'npm install'
}
}
stage("test") {
steps {
sh 'npm run test:junit'
junit 'junit/*.xml'
}
}
stage("build") {
steps {
sh 'npm run build:prod'
fingerprint "dist/**"
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
}
}
stage("generate docs") {
steps {
sh 'npm run docs'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'AudioShowKit Docs', reportTitles: ''])
}
}
}
}