diff --git a/Jenkinsfile b/Jenkinsfile index 4d9ade1..6b34a94 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,6 +23,7 @@ pipeline { stage('Update emissary release') { when { + branch 'master' expression { return params.emissaryRelease != 'latest' } @@ -60,7 +61,7 @@ pipeline { } } - stage('Build and release') { + stage('Build') { steps { script { withCredentials([ @@ -80,6 +81,9 @@ pipeline { } stage('Release') { + when { + branch 'master' + } steps { withCredentials([ usernamePassword([