Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fixed issue where jobs that match the templateJobPrefix but do not ma…
Browse files Browse the repository at this point in the history
…tch the branchNameRegex were being removed
  • Loading branch information
jpaolini committed Dec 19, 2014
1 parent 1ac0bc6 commit 5349f17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class JenkinsJobManager {

// don't want actual template jobs, just the jobs that were created from the templates
return (allJobNames - templateJobNames).findAll { String jobName ->
templateBaseJobNames.find { String baseJobName -> jobName.startsWith(baseJobName)}
templateBaseJobNames.find { String baseJobName -> jobName.startsWith(baseJobName) && jobName.tokenize("-")[2] ==~ branchNameRegex.replace("/", "_")}
}
}

Expand Down

0 comments on commit 5349f17

Please sign in to comment.