Skip to content

Commit

Permalink
remove call setup job on main branch stage from the release prepare job
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigonull committed Jan 2, 2024
1 parent d0db9db commit 6228c7b
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions dsl/seed/jenkinsfiles/Jenkinsfile.release.prepare
Original file line number Diff line number Diff line change
Expand Up @@ -168,45 +168,6 @@ pipeline {
}
}
}

stage('Call setup job on main branch') {
steps {
script {
String mainBranch = readSeedConfig().git.branches.find { it.main_branch }.name
if (mainBranch) {
sendNotification("Calling setup branch job on main branch.\n**Please wait for the job to be successful before performing any action on the main branch...**")

List buildParams = []
for (def project : getEcosystemProjects()) {
String paramKey = getVersionParameterKey(project.name)
String version = project.default_main_version ?: util.getNextVersion(getVersionFromProject(project.name), 'minor')
buildParams.add(string(name: paramKey, value: version))
}
for (def project : getEcosystemDependencyProjects()) {
String paramKey = getVersionParameterKey(project.name)
String version = project.default_main_version ?: util.getNextVersion(getVersionFromProject(project.name), 'minor')
buildParams.add(string(name: paramKey, value: version))
}

def job = [:]
echo "Call job './${mainBranch}/setup-branch/0-setup-branch' with buildParams ${buildParams}"
job = build(job: "./${mainBranch}/setup-branch/0-setup-branch", wait: true, parameters: buildParams, propagate: false)
if(job.result != 'SUCCESS') {
unstable("Error executing the main setup job ...")
String msg = "ERROR: Setup branch job on main branch was unsuccessful."
if(job) {
msg += "\nPlease review job ${job.absoluteUrl}..."
}
sendNotification(msg)
} else {
sendNotification("Setup branch job on main branch finished successfully. ")
}
} else {
echo 'No main branch defined into the configuration ... Cannot init it ...'
}
}
}
}
}
}
}
Expand Down

0 comments on commit 6228c7b

Please sign in to comment.