Skip to content
Permalink
Browse files
Merge pull request #4 from joakimahle/master
[JENKINS-23597] - General full path support
  • Loading branch information
oleg-nenashev committed Jun 27, 2014
2 parents abc856c + b99321f commit 574cc4f631e01018ba7d54fe30c83192cfdd7895
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/java/com/synopsys/arc/jenkinsci/plugins/jobrestrictions/util/QueueHelper.java
@@ -23,7 +23,7 @@
*/
package com.synopsys.arc.jenkinsci.plugins.jobrestrictions.util;

import hudson.matrix.MatrixConfiguration;
import hudson.model.Item;
import hudson.model.Queue;

/**
@@ -41,9 +41,9 @@ public static String getFullName(Queue.BuildableItem item) {
Queue.Task current = item.task;
String res = current.getName();

//HACK for the MultiConfigs
if (current instanceof MatrixConfiguration) {
MatrixConfiguration stub = (MatrixConfiguration)current;
//Fetching the full path of the item
if (current instanceof Item) {
Item stub = (Item)current;
return stub.getFullName();
}

0 comments on commit 574cc4f

Please sign in to comment.