Skip to content

Commit 05edb2b

Browse files
authored
Merge pull request #12961 from bwbarrett/backports/v5.0.x/ci-fixes
ci: Fix build of branch commits
2 parents 6fd18e5 + 4e40776 commit 05edb2b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.ci/community-jenkins/Jenkinsfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ milestone(buildNumber)
3434
// back to the PR. The "Details" link at the bottom of the GitHub PR page brings
3535
// you to the Jenkins Build page, so we're adding the link back to the GitHub PR
3636
// page.
37-
currentBuild.description = "This is a build of <a href=\"${CHANGE_URL}\"}\">Open MPI PR #${CHANGE_ID}</a>"
37+
if (env.CHANGE_URL) {
38+
currentBuild.description = "This is a build of <a href=\"${CHANGE_URL}\"}\">Open MPI PR #${CHANGE_ID}</a>"
39+
} else {
40+
currentBuild.description = "Build of ${BRANCH_NAME}"
41+
}
3842

3943
check_stages = prepare_check_stages()
4044
println("Initialized Pipeline")

0 commit comments

Comments
 (0)