Job name must be unique: use getFullName() instead of getName()

getName() returns the name which is unique in the same parent.
getFullName() returns the full name consists of names of Items that lead from
the root Jenkins to this Item, separated by '/'. This is the unique name that
identifies this Item inside the whole Jenkins.

This correction will effect only jobs in jenkins folders, e.g. 'somejob' and
'somefolder/somejob' may be 2 different jobs. In this case the full job name
shall be also used in zuul cofiguration, e.g. 'somefolder/somejob'.

Change-Id: Icd6ed79954075b4907c5c654ef20778199347683
This commit is contained in:
Karpenko Oleksandr 2017-01-23 11:45:58 +01:00
parent 46d74f029f
commit d20a13d33d
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public class ExecutorWorkerThread extends AbstractWorkerThread{
continue;
}
String projectName = project.getName();
String projectName = project.getFullName();
Label label = project.getAssignedLabel();
if (label == null) { // project has no label -> so register