-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
git: 2.4.2
After successful build, the job fails trying to push the wrong tag. The job is inside the folder MYFOLDER. The job fails with following message (names substituted for clarity):
> git tag -l jenkins-MYFOLDER-MYJOBNAME-BUILDNUMBER # timeout=10 ERROR: Step ‘Git Publisher’ failed: Tag jenkins-MYFOLDER-MYJOBNAME-BUILDNUMBER does not exist and Create Tag is not specified, so failing.
In Jenkins' workspace, there is a jenkins-MYJOBNAME-BUILDNUMBER tag (no MYFOLDER preceding the MYJOBNAME), but not the requested tag.
Configuration of the Post-build Action "Git Publisher":
Push Only If Build Succeeds: unchecked Merge Results: unchecked Force Push: unchecked Tags Tag to push: ${BUILD_TAG} Tag message: Create new tag: unchecked Update new tag: unchecked Target remote name: origin