我正在尝试使用脚本管道并行调用多个阶段。得到了一些例子,但要么是声明管道,要么是在一个阶段中使用并行任务。有人能分享我可以检查的链接或参考吗?
阿曼
试试这个:
stage("single step before") {
echo "this is a single step before"
}
stage("parallel tasks") {
parallel 'pipe1': {
stage("parallel 1"){
echo "pipe1: this is parallel 1"
}
stage("parallel 2"){
echo "pipe1: this is parallel 2"
}
stage("parallel 3"){
echo "pipe1: this is parallel 3"
}
}, 'parallel 4': {
echo "pipe2: this is parallel 4"
}
}
阶段("之后的单一步骤"({回声;这是在";}