Skip to content

Commit

Permalink
Merge pull request #4 from joakimahle/master
Browse files Browse the repository at this point in the history
[JENKINS-23597] - General full path support
  • Loading branch information
oleg-nenashev committed Jun 27, 2014
2 parents abc856c + b99321f commit 574cc4f
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -23,7 +23,7 @@
*/
package com.synopsys.arc.jenkinsci.plugins.jobrestrictions.util;

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

/**
Expand All @@ -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();
}

Expand Down

0 comments on commit 574cc4f

Please sign in to comment.