Skip to content

Send any output from Run.getEnvironment(TaskListener) to the overall build, not step, log#75

Merged
jglick merged 1 commit intojenkinsci:masterfrom
jglick:DefaultStepContext+Run.getEnvironment
Oct 4, 2018
Merged

Send any output from Run.getEnvironment(TaskListener) to the overall build, not step, log#75
jglick merged 1 commit intojenkinsci:masterfrom
jglick:DefaultStepContext+Run.getEnvironment

Conversation

@jglick
Copy link
Member

@jglick jglick commented Oct 4, 2018

Extracted from #15 as it is an independently releasable fix needed by a fix in workflow-cps.

…e is expected, send it to the overall build log not the step log.

This allows us to call context.get(EnvVars.class) even on a FlowNode which has not yet been attached to the graph.

(cherry picked from commit d5d1f46)
Copy link
Member

@svanoort svanoort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sane to me -- no reason why this should need to log specifically for the step.

@jglick jglick merged commit 95d9ef3 into jenkinsci:master Oct 4, 2018
@jglick jglick deleted the DefaultStepContext+Run.getEnvironment branch October 4, 2018 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants