From d9711bc34c4e49192adcd0237e931821f8a16bb7 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 23 Jul 2025 15:45:38 -0600 Subject: [PATCH] ceph-dev-pipeline: Link to branch, commit Signed-off-by: Zack Cerza --- ceph-dev-pipeline/build/Jenkinsfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ceph-dev-pipeline/build/Jenkinsfile b/ceph-dev-pipeline/build/Jenkinsfile index 7bbd8cb4..e7d1daca 100644 --- a/ceph-dev-pipeline/build/Jenkinsfile +++ b/ceph-dev-pipeline/build/Jenkinsfile @@ -267,10 +267,18 @@ pipeline { env.SHA1 = sha1_props.SHA1 println "SHA1=${env.SHA1}" env.VERSION = readFile(file: "${WORKSPACE}/dist/version").trim() + def branch_ui_value = env.BRANCH + def sha1_ui_value = env.SHA1 + if ( env.CEPH_REPO.find(/https?:\/\/github.com\//) ) { + def branch_url = "${env.CEPH_REPO}/tree/${env.BRANCH}" + branch_ui_value = "${env.BRANCH}" + def commit_url = "${env.CEPH_REPO}/commit/${env.SHA1}" + sha1_ui_value = "${env.SHA1}" + } def shaman_url = "https://shaman.ceph.com/builds/ceph/${env.BRANCH}/${env.SHA1}" def build_description = """\ - BRANCH=${env.BRANCH}
- SHA1=${env.SHA1}
+ BRANCH=${branch_ui_value}
+ SHA1=${sha1_ui_value}
VERSION=${env.VERSION}
DISTROS=${env.DISTROS}
ARCHS=${env.ARCHS}
-- 2.39.5