CI: append commit ID to testBranch in Jenkinsfile-scheduled-run

Make the image tag unique per scheduled run and consistent with the branch
naming convention used in the other pipelines by suffixing the commit hash:

  testBranch = "${sourceBranch}-${commitID}"

Signed-off-by: Jaroslava Fiedlerova <jaroslava.fiedlerova@openairinterface.org>
This commit is contained in:
Jaroslava Fiedlerova
2026-06-02 12:58:50 +02:00
parent 053365ad77
commit 18efff1ca4

View File

@@ -92,7 +92,7 @@ pipeline {
sourceBranch = selected_ref.replaceFirst("^origin/", "") sourceBranch = selected_ref.replaceFirst("^origin/", "")
commitID = sh(script: "git rev-parse ${selected_ref}", returnStdout: true).trim() commitID = sh(script: "git rev-parse ${selected_ref}", returnStdout: true).trim()
echo "Found branch ${sourceBranch}, commit ${commitID}" echo "Found branch ${sourceBranch}, commit ${commitID}"
testBranch = "${sourceBranch}" testBranch = "${sourceBranch}-${commitID}"
} }
echo "CI executor node : ${pythonExecutor}" echo "CI executor node : ${pythonExecutor}"