Skip to content

Commit

Permalink
[BXMSPROD-2019] fix prod branch creation job (#1006)
Browse files Browse the repository at this point in the history
* [BXMSPROD-2019] fix prod branch creation job

* fix setup branch when condition

* push prod branches pr checks update
  • Loading branch information
lampajr committed Jun 26, 2023
1 parent 2439a76 commit 4001fde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.setup-branch
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pipeline {
// Launch the nightly to deploy all artifacts from the branch
stage('Launch the nightly') {
when {
return params.DEPLOY_ARTIFACTS
expression { return params.DEPLOY_ARTIFACTS }
}
steps {
script {
Expand Down
5 changes: 4 additions & 1 deletion dsl/seed/jenkinsfiles/Jenkinsfile.prod.prepare
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ pipeline{
// here productized branches should have been already created on repos to be productized
checkout(githubscm.resolveRepository(repository, repoAuthor, getProductizedBranchFromRepository(repository), false, repoCredsId))

getOrCreateGitBranch(repoConfig.branch, getRepositoryAuthorCredsId())
getOrCreateGitBranch(repoConfig.branch, repoCredsId)

if (fileExists("${jobsGroovyPath}")) {
// def jobsGroovy = readFile file: jobsGroovyPath
Expand All @@ -212,6 +212,9 @@ pipeline{
// TODO iterate over PR workflows
// - comment out if not needed (get these from param?)
// - if PR check is needed, keep it and add -Dproductized

// push changes
pushIfChanged(repoConfig.branch, repoCredsId, "Pull request checks updated for productized branch", "Pull request checks updated for productized branch")
}
}
}
Expand Down

0 comments on commit 4001fde

Please sign in to comment.