2022-04-17 06:37:34 +00:00
|
|
|
pipeline {
|
2024-07-22 02:48:20 +00:00
|
|
|
agent {
|
|
|
|
kubernetes {
|
|
|
|
cloud 'Reslate Systems'
|
|
|
|
defaultContainer 'conda'
|
|
|
|
}
|
|
|
|
}
|
2022-04-17 06:37:34 +00:00
|
|
|
stages {
|
2022-04-16 08:22:01 +00:00
|
|
|
stage("install") {
|
|
|
|
steps {
|
2024-07-22 02:48:20 +00:00
|
|
|
sh 'conda update conda -y -q'
|
|
|
|
sh 'conda env update -n base --file environment.yml -q'
|
|
|
|
sh 'conda run -n base npm install'
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
|
|
|
}
|
2022-11-28 05:17:50 +00:00
|
|
|
stage("test") {
|
2022-04-16 08:22:01 +00:00
|
|
|
steps {
|
2024-07-22 02:48:20 +00:00
|
|
|
sh 'conda run -n base npm run test:junit'
|
|
|
|
recordCoverage(tools: [[parser: 'JUNIT', pattern: 'junit/*.xml']])
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-19 00:31:34 +00:00
|
|
|
stage("build") {
|
2022-04-16 08:36:22 +00:00
|
|
|
steps {
|
2024-07-22 02:48:20 +00:00
|
|
|
sh 'conda run -n base npm run build:prod'
|
2023-05-03 13:26:48 +00:00
|
|
|
archiveArtifacts artifacts: 'dist/audioshowkit.js', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
2022-04-18 03:25:54 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-18 12:39:59 +00:00
|
|
|
stage("generate docs") {
|
|
|
|
steps {
|
2024-07-22 02:48:20 +00:00
|
|
|
sh 'conda run -n base npm run docs'
|
2023-05-03 13:43:24 +00:00
|
|
|
publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: './docs', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: ''])
|
2022-04-16 08:22:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|