You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-09-16 09:26:22 +02:00
Check for prefix instead of substring in gitBranch (#5413)
This commit is contained in:
@@ -271,7 +271,7 @@ private void setGitRefOnCommonPipelineEnvironment(script, String gitCommit, Stri
|
||||
}
|
||||
}
|
||||
|
||||
if (!gitBranch.contains("PR")) {
|
||||
if (!gitBranch.startsWith("PR-")) {
|
||||
if (gitBranch.startsWith("refs/") ){
|
||||
script.commonPipelineEnvironment.setGitRef(gitBranch)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user