Running a subset of jobs in a particular stage depending on a "user profile"

Hi people!

I am wondering if there is a way to run a subset of jobs within a stage based on a “user profile” or some input argument? Let’s say I am a developer based in Europe and I am interested in only running acceptance tests that cover European market of my company, all US and Asia specific acceptance tests need to be left out and the rest of the pipeline should be unchanged. I thought of separating the relevant tests into a dedicated stage, but then how would i be able to skip a stage?



Oh, i think i have come across a feature that would allow me to do that:

Variable Expressions

Available starting from GitLab 10.7.

1 Like

Thanks for coming back to share your answer. If it solves your initial question, please feel free to mark your own post as the solution, by using the checkbox icon at the bottom of the post.