Pipeline now only does a production build, and only on master.

This commit is contained in:
Harrison Deng 2022-04-18 19:31:34 -05:00
parent cffd127aaf
commit fe78e7c646

15
Jenkinsfile vendored
View File

@ -8,13 +8,6 @@ pipeline {
} }
} }
} }
stage("build") {
steps {
nodejs('NodeJS (17.4.0)') {
sh "npm run build:dev"
}
}
}
stage("tests") { stage("tests") {
steps { steps {
nodejs('NodeJS (17.4.0)') { nodejs('NodeJS (17.4.0)') {
@ -23,8 +16,14 @@ pipeline {
junit 'junit/*.xml' junit 'junit/*.xml'
} }
} }
stage("archive product") { stage("build") {
when {
branch "master"
}
steps { steps {
nodejs('NodeJS (17.4.0)') {
sh "npm run build:prod"
}
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
} }
} }