mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
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:
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user