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) {

Check warning on line 503 in core/src/main/java/hudson/model/Queue.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 503 is only partially covered, one branch is missing
return new File(Jenkins.get().getRootDir(), "queue/" + id + ".xml");

Check warning on line 504 in core/src/main/java/hudson/model/Queue.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 504 is not covered by tests
}
return new File(Jenkins.get().getRootDir(), "queue.xml");
}

Expand Down

0 comments on commit 5d1cde7

Please sign in to comment.