Issue Type: Bug Bug
Affects Versions: current
Assignee: Nicolas De Loof
Components: git
Created: 17/May/13 10:31 PM
Description:

When configuring the git publisher to push tags back to the origin repository. A user can put token macros in the tag name. However these token macros are not expanded:

Consider the following configuration snippet:

<hudson.plugins.git.GitPublisher plugin="[email protected]"><configVersion>2</configVersion><pushMerge>false</pushMerge><pushOnlyIfSuccess>false</pushOnlyIfSuccess><tagsToPush><hudson.plugins.git.GitPublisher_-TagToPush><targetRepoName>origin</targetRepoName><tagName>${ENV,var="JOB_NAME"}-tag-that-does-not-exit</tagName><tagMessage/><createTag>false</createTag><updateTag>false</updateTag></hudson.plugins.git.GitPublisher_-TagToPush></tagsToPush></hudson.plugins.git.GitPublisher>

This tag does not exist, mostly because I did not want to affect my repo for testing. But the error on the console demonstrates token macro expansion was not done:
Tag ${ENV,var="JOB_NAME"}-tag-that-does-not-exit does not exist and Create Tag is not specified, so failing.
Build step 'Git Publisher' marked build as failure
Notifying upstream projects of job completion
Finished: FAILURE

Project: Jenkins
Priority: Major Major
Reporter: Mike Power
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to