I am working on setting up a workflow template to run multiple templates against new servers.
However I have a branch that I made new changes to and I wanted use this particular branch when executing the workflow template. However I can’t seem to make it work. Does anyone have the correct process to resolve this?
Hi @Fracture7144 ,
A couple things to check:
- Any of job templates that are used in the workflow need to have ‘Allow branch override’ enabled on their associated projects
- Set ‘Source control branch’ on the workflow template. This will cascade down to any of the job templates during the workflow run
If you only need a couple of the job templates to use a different branch but others in the workflow should use their default, you can set ‘Prompt on launch’ for ‘Source control branch’ on the job template(s). When you add the job template to the workflow, you can then set the branch as needed.
The best approach will depend on how you have your projects/job templates structured.
Best regards,
Joe
This did not work for me. I have cloned my project and forced it to use my specified branch. I then went to the template I created for and specified the scm branch to use in there. I then went to the workflow template and removed any specified scm branch and the prompt on launch. I then saved and ran it. It STILL failed. It ran the main branch still.
Interesting, do the commit IDs on the project and branch in SCM match?
Yes. I am actively working with support on this. But not moving super quickly.