
Is it possible that the above two consecutive stages will be in continuous series starting copy server1 stopservers server1 in one line rather than ending for each stage. Do we have a way where copy stopservers will have 4 parallel continuous executions unless like in the image where we have 4 parallel executions for each stage which starts before copy and ends after stopservers.Below is the case which iam looking for
-----------copy--------------stopservers-----------------------
| |
|----------server1-----------server1----------------|
| |
|----------server2-----------server2----------------|
| |
|----------server3----------server3-----------------|
| |
-----------server4----------server4-----------------
and my code is simple and is as below
node { stage('copy'){ parallel 'server1': { echo "server1" }, 'server2': { echo "server2" }, 'server3': { echo "server3" }, 'server4': { echo "server4" } } stage('stopServers'){ parallel 'server1': { echo "server1" }, 'server2': { echo "server2" }, 'server3': { echo "server3" }, 'server4': { echo "server4" } } could you please let me know is it possible?