Description

When using EnvInject's option
"Inject passwords to the build as environment variables" with password parameter masking
and timestamper the timestamps in the console log are shifted by two lines (and the last two lines don'T have timestamps).
These two lines are probably[EnvInject] - Inject global passwords.[EnvInject] - Mask passwords passed as build parameters.

But why do they cause a shift?

The second problem ist, when viewing the log while the job is still running newly added lines do not get timestamps. I have to reload the page to see timestamps.

Move it into the setUp method instead. Writing to the OutputStream within
the decorateLogger method causes the written message to bypass the other
build wrappers, which have not yet wrapped the OutputStream.

For example, it prevents the Timestamper plugin from applying timestamps
to these lines.

SCM/JIRA link daemon
added a comment - 2016-08-31 02:02 Code changed in jenkins
User: Steven Brown
Path:
src/main/java/org/jenkinsci/plugins/envinject/EnvInjectPasswordWrapper.java
src/test/java/org/jenkinsci/plugins/envinject/EnvInjectPasswordTest.java
http://jenkins-ci.org/commit/envinject-plugin/f56667ca7a5ee60e90fb2e1c7fc752b16605fd2e
Log:
[FIXED JENKINS-30028] Remove logging from password wrapper decorateLogger
Move it into the setUp method instead. Writing to the OutputStream within
the decorateLogger method causes the written message to bypass the other
build wrappers, which have not yet wrapped the OutputStream.
For example, it prevents the Timestamper plugin from applying timestamps
to these lines.