-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SubTask.getOwnerExecutable
#287
Conversation
@@ -429,6 +429,7 @@ public String getCookie() { | |||
return j.getNode(label); | |||
} | |||
|
|||
@Deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really related, just noticed while I was here.
@@ -721,7 +736,7 @@ private String computeEnclosingLabel(FlowNode executorStepNode, List<FlowNode> h | |||
} | |||
|
|||
@Override public long getEstimatedDuration() { | |||
Run<?,?> r = run(); | |||
Run<?,?> r = runForDisplay(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also only tangentially related—there was no apparent reason not to be calling the newer and more robust runForDisplay
in this context.
@@ -613,6 +613,7 @@ private static void assertLogMatches(WorkflowRun build, String regexp) throws IO | |||
Queue.Item[] items = Queue.getInstance().getItems(); | |||
assertEquals(1, items.length); | |||
assertEquals(p, items[0].task.getOwnerTask()); | |||
assertEquals(b, items[0].task.getOwnerExecutable()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test is covering something unrelated, but seemed as good a place as any to cover the new method.
src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java
Outdated
Show resolved
Hide resolved
SubTask.getOwnerExecutable
Implements the API introduced in jenkinsci/jenkins#7599, for now without requiring a newer core dep.