Package jenkins.advancedqueue.sorter
Class StartedJobItemCache
java.lang.Object
jenkins.advancedqueue.sorter.StartedJobItemCache
Keeps track of the Queue.Items seen by the Sorter, but removed from the queue
to become jobs, for UpstreamCauseStrategy.
- Since:
- 3.6.0
- Author:
- Ronny Schuetz
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static StartedJobItemCache
get()
getStartedItem
(String projectName, int buildNumber) Gets the Item for a started job, already removed from the queue
-
Method Details
-
get
-
getStartedItem
Gets the Item for a started job, already removed from the queue- Parameters:
projectName
- the project namebuildNumber
- the build number- Returns:
- the
ItemInfo
for the provided id ornull
if projectName/buildNumber combination is unknown
-
addItem
-