Jenkins runs parallel scripts

I am new to Jenkins and need some help.

I have 4 shell scripts: test1.sh, test2.sh, test3.sh and test4.sh

I want test2.sh to be executed only if test1.sh is successful and test4.sh is only launched when test3.sh is successful. I also want test1.sh and test3.sh to run in parallel.

How could I achieve this in Jenkins?

I use "Execute shell script on the remote host using ssh" and "Conditional steps (several)" (just by learning). I also set the keys to communicate with the remote server.

It would be useful to use illustrations from the screen or in another way.

Thank!

+4
source share
1 answer

-, , test1.sh test3.sh , (0). , , Jenkins, :

((test1.sh && test2.sh) &) ; ((test3.sh && test4.sh) &)

, " ", " backgorund". , , , , script 0.

Jenkins-specific node ( ) . node. : test1.sh && test2.sh test3.sh && test4.sh.

+7

Source: https://habr.com/ru/post/1536459/


All Articles