I have a
Jenkins Pipeline plugin script that looks like this:
stage("check out project") {
shell "pwd"
echo "test 1"
git credentialsId: "user", url: "http://url/project"
echo "test 2"
shell "git --version"
echo "test 3"
} The output of the build is then this:
[Pipeline] stage
[Pipeline] { (check out project)
[Pipeline] echo
test 1
[Pipeline] echo
test 2
[Pipeline] echo
test 3
[Pipeline] }
[Pipeline] // stage
[Pipeline] End of Pipeline
Finished: SUCCESS
Judging from the output and from the build time only the echo commands are executed. All other commands are ignored. No error seems to occur.
How can I get all commands to be executed?