Skip to content

Commit ce98e00

Browse files
committed
add link to GitHub PR in build description on Jenkins
The "Details" link at the bottom of the GitHub PR page brings you to the specific build run on Jenkins, which doesn't have a direct link back to the PR on GitHub. We're using the description of the build to add a link back to the PR on GitHub. Signed-off-by: Joe Downs <joe@dwns.dev>
1 parent 5e43ae8 commit ce98e00

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.ci/community-jenkins/Jenkinsfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ if (buildNumber > 1) {
3030
}
3131
milestone(buildNumber)
3232

33+
// Add build description linking back to PR. This is redundant to the "GitHub"
34+
// link on the Pull Request page, but the Build page does not have a direct link
35+
// back to the PR. The "Details" link at the bottom of the GitHub PR page brings
36+
// you to the Jenkins Build page, so we're adding the link back to the GitHub PR
37+
// page.
38+
currentBuild.description = "This is a build of <a href=\"${CHANGE_URL}\"}\">Open MPI PR #${CHANGE_ID}</a>"
39+
3340
check_stages = prepare_check_stages()
3441
println("Initialized Pipeline")
3542

0 commit comments

Comments
 (0)