I want to add the branch name which I have pointed in my Materials section in GoCD pipeline.
Currently, my pipeline label has the count and commits hash.
For example:
if my branch name is "master" the label should be 104-master-82862b9a99599130e0306429882ead4c22d07ce4
if my branch name is "US73173" the label should be 104-US73173-82862b9a99599130e0306429882ead4c22d07ce4
Please help me on this.
You should be able to do this by:
mybranch
value: US73173
#{mybranch}
${COUNT}-#{mybranch}-${git}
Go-CD Labels: https://docs.gocd.org/current/configuration/admin_use_custom_pipeline_label.html