Skip to content

Commit

Permalink
This will allow publishing from the v#.#.x branch.
Browse files Browse the repository at this point in the history
There is already a rule on the repo to protect these branches 😄

Signed-off-by: zFernand0 <fernando.rijocedeno@broadcom.com>
  • Loading branch information
zFernand0 committed Dec 11, 2019
1 parent 30f8d85 commit e98100e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ pipeline {
stage("Publish") {
when { allOf {
expression { return !PIPELINE_CONTROL.ci_skip }
expression { return BRANCH_NAME == MASTER_BRANCH }
// Check for the Master branch or for v##.##.x
expression { return BRANCH_NAME == MASTER_BRANCH || BRANCH_NAME == /v\d+\.\d+\.x/ }
expression { return !params.SKIP_PUBLISH }
} }
steps {
Expand Down

0 comments on commit e98100e

Please sign in to comment.