audioshowkit/Jenkinsfile
Harrison Deng e3361e25f5
All checks were successful
ydeng/audioshowkit/pipeline/head This commit looks good
Added devcontainer configurations and updated pipeline.
2024-07-22 02:48:20 +00:00

35 lines
1.2 KiB
Groovy

pipeline {
agent {
kubernetes {
cloud 'Reslate Systems'
defaultContainer 'conda'
}
}
stages {
stage("install") {
steps {
sh 'conda update conda -y -q'
sh 'conda env update -n base --file environment.yml -q'
sh 'conda run -n base npm install'
}
}
stage("test") {
steps {
sh 'conda run -n base npm run test:junit'
recordCoverage(tools: [[parser: 'JUNIT', pattern: 'junit/*.xml']])
}
}
stage("build") {
steps {
sh 'conda run -n base npm run build:prod'
archiveArtifacts artifacts: 'dist/audioshowkit.js', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
}
}
stage("generate docs") {
steps {
sh 'conda run -n base npm run docs'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: ''])
}
}
}
}