我有一個Jenkins Pipeline plugin腳本看起來像這樣:詹金斯流水線插件看似跳過命令
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"
}
生成的輸出是這樣的:
[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
從輸出,只有構建時間判斷echo命令被執行。所有其他人都被忽略。似乎沒有錯誤發生。
如何獲得所有要執行的命令?
你檢查看看是否有一個工作區git clone/pull? –