Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32840

Step ‘Git Publisher’ failed when pushing the build tag of a job inside a folder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-plugin
    • 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
      

            markewaite Mark Waite
            agallardo Alberto Gallardo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: