|
||||||||
|
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/d/optout.

From the help text :
If the "Create Tag" or "Update tag" option is selected, the tag will be created or updated and pushed at the completion of the build, *and the push will fail if a tag with the given name already exists*. If the "Create Tag" option is not selected, the push will fail if the tag does not already exist.
=> There is no way at the moment (I am using git plugin 2.2.4) to "create if needed, or update an existing tag".
I want to have a tag "last-success-in-<branchname>" per branch ( and only one ), and I think it is not possible right now.
At the moment I have to add the build number to the tag, which spam my repo with useless tags.
ERROR: Failed to push tag origin/develop-build-success to origin
hudson.plugins.git.GitException: Command "git push https://github.com/asmodehn/WkCocos.git origin/develop-build-success" returned status code 1:
stdout:
stderr: To https://github.com/asmodehn/WkCocos.git
! [rejected] origin/develop-build-success -> origin/develop-build-success (already exists)
error: failed to push some refs to 'https://github.com/asmodehn/WkCocos.git'
hint: Updates were rejected because the tag already exists in the remote.
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.execute(CliGitAPIImpl.java:1462)
at org.jenkinsci.plugins.gitclient.LegacyCompatibleGitAPIImpl.push(LegacyCompatibleGitAPIImpl.java:98)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.push(CliGitAPIImpl.java:87)
at org.jenkinsci.plugins.gitclient.LegacyCompatibleGitAPIImpl.push(LegacyCompatibleGitAPIImpl.java:109)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.push(CliGitAPIImpl.java:87)
at hudson.plugins.git.GitAPI.push(GitAPI.java:66)
at hudson.plugins.git.GitPublisher.perform(GitPublisher.java:276)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
at hudson.model.Run.execute(Run.java:1757)
at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:234)
Build step 'Git Publisher' marked build as failure