Skip to content

Commit

Permalink
Fix problem when using folders
Browse files Browse the repository at this point in the history
As mentioned in a comment of the JENKINS-25111 issue, the Multijob build selector does not work when using folders. The problem is due to the use of getFullDisplayName() instead of getDisplayName() when looking for a sub build. getFullDisplayName() includes the parent names whereas sub build's job name contains only the job name. It's the reason the check couldn't find a match.
  • Loading branch information
osechet committed Oct 1, 2015
1 parent 286e26d commit f326c2f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -57,7 +57,7 @@ public MultiJobBuildSelector() { }
// Get the run for our source Job in the current MultiJob Project's Build
for (MultiJobBuild.SubBuild subBuild : multiJobBuild.getSubBuilds()) {
// Find Job's specific build we want
if (subBuild.getJobName().equals(job.getFullDisplayName())) {
if (subBuild.getJobName().equals(job.getDisplayName())) {
Run run = job.getBuildByNumber(subBuild.getBuildNumber());
if (filter.isSelectable(run, env)) {
return run;
Expand Down

0 comments on commit f326c2f

Please sign in to comment.