Skip to content

Commit

Permalink
feat: support syncBranchesWithMaster on nightly pipeline (#1250)
Browse files Browse the repository at this point in the history
* feat: support syncBranchesWithMaster on nightly pipeline

* move block and add onMaster

---------

Co-authored-by: Ian Fisher - CGI <I.fisher@cgi.com>
Co-authored-by: Ian Fisher - CGI <142427330+Ianrfisher@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 11, 2024
1 parent 38d88d1 commit aa5b737
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vars/withNightlyPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit aa5b737

Please sign in to comment.