Bạn tạo 1 Pipeline:
node{
stage('Running in Parallel') {
parallel 'Parallel1': {
echo 'Parallel1 executing'
sleep 10
},
'Parallel2': {
echo 'Parallel2 executing'
sleep 10
},
'Parallel3': {
echo 'Parallel3 executing'
sleep 10
},
failFast: true
}
}
Bạn thấy các công việc sẽ được chạy đồng thời cùng lúc
failFast: true thì mình có tìm được giải thích:
From Documentation: You can force your parallel stages to all be aborted when one of them fails, by adding failFast
true to the stage containing the parallel.
https://stackoverflow.com/questions/58026189/how-to-use-failfast-in-dynamic-pipeline-in-jenkins