Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import hudson.model.Node;
import hudson.model.Queue;
import hudson.model.Queue.FlyweightTask;
import hudson.model.queue.CauseOfBlockage;
import java.io.IOException;
import org.kohsuke.stapler.export.ExportedBean;

Expand All @@ -53,18 +52,6 @@ class AfterRestartTask implements Queue.FlyweightTask, Queue.TransientTask {
return getClass().hashCode() ^ run.hashCode();
}

// TODO delete after baseline has https://github.com/jenkinsci/jenkins/pull/3099
@Override public boolean isBuildBlocked() {
return getCauseOfBlockage() != null;
}

// TODO delete after baseline has https://github.com/jenkinsci/jenkins/pull/3099
@Deprecated
@Override public String getWhyBlocked() {
CauseOfBlockage causeOfBlockage = getCauseOfBlockage();
return causeOfBlockage != null ? causeOfBlockage.getShortDescription() : null;
}

@Override public String getName() {
return getDisplayName();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,6 @@ public void setQuietPeriod(Integer seconds) throws IOException {
save();
}

// TODO delete after baseline has https://github.com/jenkinsci/jenkins/pull/3099
@Override public boolean isBuildBlocked() {
return getCauseOfBlockage() != null;
}

// TODO delete after baseline has https://github.com/jenkinsci/jenkins/pull/3099
@Deprecated
@Override public String getWhyBlocked() {
CauseOfBlockage c = getCauseOfBlockage();
return c != null ? c.getShortDescription() : null;
}

@Override public CauseOfBlockage getCauseOfBlockage() {
if (isLogUpdated() && !isConcurrentBuild()) {
WorkflowRun lastBuild = getLastBuild();
Expand Down