Skip to content

Commit 5d1cde7

Browse files
authored
Allow location of queue.xml to be overridden (#8531)
1 parent ce7ee8b commit 5d1cde7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/java/hudson/model/Queue.java

+4
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ public void clear() {
499499
}
500500

501501
/*package*/ File getXMLQueueFile() {
502+
String id = SystemProperties.getString(Queue.class.getName() + ".id");
503+
if (id != null) {
504+
return new File(Jenkins.get().getRootDir(), "queue/" + id + ".xml");
505+
}
502506
return new File(Jenkins.get().getRootDir(), "queue.xml");
503507
}
504508

0 commit comments

Comments
 (0)