Jenkins Pipeline 并发 parallel
作者:互联网
多个stege并行执行,只需要将并行执行的stage 放入 同一个Stage里,并且在Parallel中。
stage('Container Scanning') {
parallel {
stage('Run Branch1') {
steps {
pwsh(script: """
******
""")
}
}
stage('Run Branch2') {
steps {
sleep(time: 30, unit: 'SECONDS')
}
}
}
}
标签:Pipeline,Run,并行执行,steps,Jenkins,Container,parallel,stage 来源: https://blog.csdn.net/jiangxiaofeng198901/article/details/111477532