Pipeline now only does a production build, and only on master.
This commit is contained in:
parent
cffd127aaf
commit
fe78e7c646
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -8,13 +8,6 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("build") {
|
||||
steps {
|
||||
nodejs('NodeJS (17.4.0)') {
|
||||
sh "npm run build:dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage("tests") {
|
||||
steps {
|
||||
nodejs('NodeJS (17.4.0)') {
|
||||
@ -23,8 +16,14 @@ pipeline {
|
||||
junit 'junit/*.xml'
|
||||
}
|
||||
}
|
||||
stage("archive product") {
|
||||
stage("build") {
|
||||
when {
|
||||
branch "master"
|
||||
}
|
||||
steps {
|
||||
nodejs('NodeJS (17.4.0)') {
|
||||
sh "npm run build:prod"
|
||||
}
|
||||
archiveArtifacts artifacts: 'dist/audioshowkit.js', followSymlinks: false
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user