Thanks for the pointer! So, the recommended way is my third option: Use a Jenkinsfile? I got a few follow up questions.
1. env.BRANCH_NAME always returns null for me. Using a when statement (`when { branch 'master' } }`) never evaluates to true for me, but I don't know what my branch is to debug this. I expected it to be master.
2. Since I have at least 8 different tags, I have to write 16+ stages if I can only use when. Is there a way to write a function to generate stages? Most of them use the same steps besides the label of their agents, in addition to the when differentiation.
Regards,
Raphael
> --
> 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
jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/e29afa8b-a65a-4f98-bd9a-9037595fd547%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.