OK, to illustrate it I built a job executing the shell script
for i in $(seq 1 10); do echo time: `date +%H:%M:%S`; sleep 1; done
As you can see the console output should show Timestamper's timestamps next to the timestamps from the shell script. Both timestamps should be equal.
At first the console output with no EnvInject enabled:
20:04:01 Gestartet durch Benutzer
20:04:01 [EnvInject] - Loading node environment variables.
20:04:01 Baue in Arbeitsbereich /var/lib/jenkins/jobs/XYZ/workspace
20:04:01 [workspace] $ /bin/bash -e /tmp/hudson5525335093485642436.sh
20:04:01 time: 20:04:01
20:04:02 time: 20:04:02
20:04:03 time: 20:04:03
20:04:04 time: 20:04:04
20:04:05 time: 20:04:05
20:04:06 time: 20:04:06
20:04:07 time: 20:04:07
20:04:08 time: 20:04:08
20:04:09 time: 20:04:09
20:04:10 time: 20:04:10
20:04:11 Finished: SUCCESS
Everything OK. Then I enabled 'Inject passwords to the build as environment variables' and 'Global passwords' and the output was:
20:03:39 [EnvInject] - Inject global passwords.
20:03:39 [EnvInject] - Mask passwords passed as build parameters.
20:03:39 Gestartet durch Benutzer
20:03:39 [EnvInject] - Loading node environment variables.
20:03:39 Baue in Arbeitsbereich /var/lib/jenkins/jobs/XYZ/workspace
20:03:40 [workspace] $ /bin/bash -e /tmp/hudson2882475315826943329.sh
20:03:41 time: 20:03:39
20:03:42 time: 20:03:40
20:03:43 time: 20:03:41
20:03:44 time: 20:03:42
20:03:45 time: 20:03:43
20:03:46 time: 20:03:44
20:03:47 time: 20:03:45
20:03:48 time: 20:03:46
20:03:49 time: 20:03:47
time: 20:03:48
Finished: SUCCESS
Now the timestamps are shifted.
I added the version numbers.
I don't know whether it is a regression, because I have just started to use both plugins together.