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") {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user