Skip to content

Commit c02bd8f

Browse files
authored
Merge pull request #12957 from bwbarrett/ci/fix-branch-builds
ci: Fix build of branch commits
2 parents 0bdbb45 + 58cde2f commit c02bd8f

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
@@ -35,7 +35,11 @@ milestone(buildNumber)
3535
// back to the PR. The "Details" link at the bottom of the GitHub PR page brings
3636
// you to the Jenkins Build page, so we're adding the link back to the GitHub PR
3737
// page.
38-
currentBuild.description = "This is a build of <a href=\"${CHANGE_URL}\"}\">Open MPI PR #${CHANGE_ID}</a>"
38+
if (env.CHANGE_URL) {
39+
currentBuild.description = "This is a build of <a href=\"${CHANGE_URL}\"}\">Open MPI PR #${CHANGE_ID}</a>"
40+
} else {
41+
currentBuild.description = "Build of ${BRANCH_NAME}"
42+
}
3943

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

0 commit comments

Comments
 (0)