Skip to content

Commit

Permalink
Only fetch job queue in getCauseOfBlockage
Browse files Browse the repository at this point in the history
  • Loading branch information
schiasileon committed Jul 31, 2024
1 parent 3d7b358 commit 4c28f5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public String getCommitUrl() {

@Override
public String getCauseOfBlockage() {
for(Queue.Item i: Jenkins.get().getQueue().getItems()) {
for(Queue.Item i: Jenkins.get().getQueue().getBuildableItems()) {
if (run.equals(i.task.getOwnerExecutable())) {
String cause = i.getCauseOfBlockage().getShortDescription();
CauseOfBlockage causeOfBlockage = i.task.getCauseOfBlockage();
Expand Down

0 comments on commit 4c28f5d

Please sign in to comment.