Hi,
I’m pulling my hair here and before I don’t have not one left I thought I may ask first for an easy solution to that simple problematic :
depending on the branch, I want to execute the exact same workflows/jobs, but with different contexts
Hi there and thanks for posting on CircleCI Discuss!
You can leverage the filter parameter to ensure jobs only run on the branches you set. You can specify which context you’d like to use for each job as well. So something like:
If you add jobA twice in the same workflow, it will run with a numeric value added to the end of the job name while building to differentiate the duplicate job.
Another hack you can do is to include the branch name in your context, so you can do something like:
Create context context_branchA and context_branchB, then