I have this in my Jenkins file:
sh 'cat /opt/jenkins/workspace/JenkinsfileTest/testfile 2>/dev/null
but it works as follows:
[JenkinsfileTest] Running shell script + cat /opt/jenkins/workspace/JenkinsfileTest/testfile
part of the redirect disappeared.
Is there something wrong with my team?
source share