Skip to content

Commit

Permalink
Do not delete branches that are not created by jenkins-build-per-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hillebrand-eleven committed Jun 25, 2015
1 parent c4ab73f commit 4b551be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class JenkinsJobManager {
deprecatedJobNames.each { String jobName ->

def shortenedJobName = jobName.substring(templateJobPrefix.length() + 1)
def safeBranchNameRegex = branchNameRegex.replaceAll("\\/", _)
def safeBranchNameRegex = branchNameRegex.replaceAll("\\/", "_")
println "Shortened jobName $shortenedJobName"
println "safeBranchNameRegex $safeBranchNameRegex"
final def branchNameRegexMatches = shortenedJobName.matches(safeBranchNameRegex)
Expand Down

0 comments on commit 4b551be

Please sign in to comment.