Skip to content

Commit

Permalink
Allow location of queue.xml to be overridden (#8531)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick authored Oct 2, 2023
1 parent ce7ee8b commit 5d1cde7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/main/java/hudson/model/Queue.java
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ public void clear() {
}

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

Expand Down

0 comments on commit 5d1cde7

Please sign in to comment.