I want to create tag based on different branch from the checkout branch.
In checkout step i set the branch name to develop.
Because I don't want to commit changes to develop branch - in the pre execute label step I change the branch to 'temp' branch (git checkout -b temp)
and commit the changed to this branch.
But the tag is creating by default based on the 'develop' branch, log:
16:54:34,627 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] INFO - Running step...
16:54:34,628 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] INFO - Taking snapshot of repository 'cosmo-ui'...
16:54:34,628 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] INFO - Determining head revision for repository: cosmo-ui
16:54:34,628 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - sync working directory [/opt/buildagent/workspace/root/cosmo/trunk/CI/NightlyBuild_version/cosmo-ui]...
16:54:34,628 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Detect whether repository settings have been changed ...
16:54:34,628 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Loading scm rc file ...
16:54:34,631 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Executing command: git fetch
16:54:34,632 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Command working directory: /opt/buildagent/workspace/root/cosmo/trunk/CI/NightlyBuild_version/cosmo-ui
16:54:36,470 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Executing command: git log -1 --pretty=format:%H remotes/origin/develop
16:54:36,470 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Command working directory: /opt/buildagent/workspace/root/cosmo/trunk/CI/NightlyBuild_version/cosmo-ui
16:54:36,479 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - efd61ef4458b5b9bb87bc436738bd408195b12d8
16:54:36,480 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] INFO - Creating label 'nightly' on repository 'cosmo-ui'...
16:54:36,480 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - sync working directory [/opt/buildagent/workspace/root/cosmo/trunk/CI/NightlyBuild_version/cosmo-ui]...
16:54:36,480 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Detect whether repository settings have been changed ...
16:54:36,480 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Loading scm rc file ...
16:54:36,483 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Executing command: git fetch
16:54:36,483 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Command working directory: /opt/buildagent/workspace/root/cosmo/trunk/CI/NightlyBuild_version/cosmo-ui
16:54:38,302 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Executing command: git tag -a -f -m "label created by QuickBuild" nightly efd61ef4458b5b9bb87bc436738bd408195b12d8
16:54:38,302 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Command working directory: /opt/buildagent/workspace/root/cosmo/trunk/CI/NightlyBuild_version/cosmo-ui
16:54:38,318 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Executing command: git push --tags https://opencm:******@github.com/Cloudi ... smo-ui.git
16:54:38,318 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] DEBUG - Command working directory: /opt/buildagent/workspace/root/cosmo/trunk/CI/NightlyBuild_version/cosmo-ui
16:54:41,272 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] ERROR - To https://opencm:g!ga0pencm@github.com/Cl ... smo-ui.git
16:54:41,273 [master>label_modules>tag_cloudify-ui@pc-lab131:8811] ERROR - * [new tag] nightly -> nightly
Is there a way to change it? to tell the label step the specific branch name?