From aa5b7377488111cbe530930e79bbfa92d6abe90e Mon Sep 17 00:00:00 2001 From: Alex Bance Date: Thu, 11 Jul 2024 10:10:57 +0100 Subject: [PATCH] feat: support syncBranchesWithMaster on nightly pipeline (#1250) * feat: support syncBranchesWithMaster on nightly pipeline * move block and add onMaster --------- Co-authored-by: Ian Fisher - CGI Co-authored-by: Ian Fisher - CGI <142427330+Ianrfisher@users.noreply.github.com> --- vars/withNightlyPipeline.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vars/withNightlyPipeline.groovy b/vars/withNightlyPipeline.groovy index 8d18ce6b69..9a9cea5071 100644 --- a/vars/withNightlyPipeline.groovy +++ b/vars/withNightlyPipeline.groovy @@ -64,6 +64,12 @@ def call(type, product, component, timeout = 300, Closure body) { env.PATH = "$env.PATH:/usr/local/bin" withSubscriptionLogin(subscription.nonProdName) { sectionNightlyTests(callbacksRunner, pipelineConfig, pipelineType, product, component, subscription.nonProdName) + onMaster { + sectionSyncBranchesWithMaster( + branchestoSync: pipelineConfig.branchesToSyncWithMaster, + product: product + ) + } } assert pipelineType!= null } catch (err) {