Skip to content
Permalink
Browse files

Merge pull request #6 from jglick/cleanup-JENKINS-26156

[JENKINS-26156] Remove calls to BodyInvoker.withDisplayName(null)
  • Loading branch information...
jglick committed May 19, 2016
2 parents 3d25857 + a14ab59 commit 7360c8d48bdb0f4ac2fb4aa4f8ac1e7040faf7cb
@@ -73,7 +73,6 @@ public DescriptorImpl() {
StepContext context = getContext();
context.newBodyInvoker()
.withCallback(new Callback())
.withDisplayName(null)
.start();
return false;
}
@@ -84,7 +84,6 @@ public DescriptorImpl() {
listener.getLogger().println("Running in " + dir);
body = getContext().newBodyInvoker()
.withContext(dir)
.withDisplayName(null)
// Could use a dedicated BodyExecutionCallback here if we wished to print a message at the end ("Returning to ${cwd}"):
.withCallback(BodyExecutionCallback.wrap(getContext()))
.start();
@@ -25,7 +25,6 @@ public boolean start() throws Exception {
StepContext context = getContext();
body = context.newBodyInvoker()
.withCallback(new Callback())
.withDisplayName(null) // hide the body block
.start();
long now = System.currentTimeMillis();
end = now + step.getUnit().toMillis(step.getTime());

0 comments on commit 7360c8d

Please sign in to comment.
You can’t perform that action at this time.