I am building to 2 different environments in the same pipeline and I want to make the cleanup for both environments in parallel.
As I understood, parallel does not work inside the post step: post step parallel <https://stackoverflow.com/questions/44806231/how-can-i-use-parallel-option-in-jenkins-pipeline-in-the-post-section> . Any suggestions? Example of my code: post { always { script{ cleanup(env1) cleanup(env2) } } } def cleanup(env) { withEnv(env) { sh "./cleanup.py" } } -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fb8bcf4f-7658-402e-b674-879d0410ba1an%40googlegroups.com.
