ci: limit release to master branch
arcad/emissary-firmware/pipeline/head Something is wrong with the build of this commit
Details
arcad/emissary-firmware/pipeline/head Something is wrong with the build of this commit
Details
This commit is contained in:
parent
4af7147a1a
commit
5a3eeca071
|
@ -23,6 +23,7 @@ pipeline {
|
||||||
|
|
||||||
stage('Update emissary release') {
|
stage('Update emissary release') {
|
||||||
when {
|
when {
|
||||||
|
branch 'master'
|
||||||
expression {
|
expression {
|
||||||
return params.emissaryRelease != 'latest'
|
return params.emissaryRelease != 'latest'
|
||||||
}
|
}
|
||||||
|
@ -60,7 +61,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build and release') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
withCredentials([
|
withCredentials([
|
||||||
|
@ -80,6 +81,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Release') {
|
stage('Release') {
|
||||||
|
when {
|
||||||
|
branch 'master'
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
withCredentials([
|
withCredentials([
|
||||||
usernamePassword([
|
usernamePassword([
|
||||||
|
|
Loading…
Reference in New Issue