は私がJenkins Pipeline pluginスクリプトは次のように探している:出力のみビルド時間から判断ジェンキンスパイプライン飛ばし一見プラグインコマンド
[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
:
は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"
}
ビルドの出力がこれですechoコマンドが実行されます。その他は無視されます。エラーは発生していないようです。
どのようにすべてのコマンドを実行することができますか?
あなたが確認しましたワークスペースがあるかどうかを確認するgitクローン/プル? –