From e98100e3f04890f0b13093ddc12e5623cdb05443 Mon Sep 17 00:00:00 2001 From: zFernand0 Date: Wed, 11 Dec 2019 15:58:31 -0500 Subject: [PATCH] This will allow publishing from the v#.#.x branch. There is already a rule on the repo to protect these branches :smile: Signed-off-by: zFernand0 --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f01f4d2b57..5877442f32 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {