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

Error while pushing a tag onto GitHub using 'Git Publisher'

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • git-plugin
    • None

      Hi,

      I'm using Jenkins2 and trying to use Git Publisher in Post Build Actions to push the tag but I'm getting below error message. Please help me on this ASAP

       

      ERROR: Failed to push tag jenkins-branch_build_1-45 to origin 10:12:23 hudson.plugins.git.GitException: Command "git push

      https://github.com/****/myspringbootapp.git

      jenkins-branch_build_1-45 -f" returned status code 143:

       

       

      Under SCM section, I've added below configurations for Git

      Git --> Repositories 

          Repository URL .  - <mygithuburl>

          credentials - <mycredentails>

          Name - origin

      Under SCM section, I've added below additional behaviors.

      1. Create a tag for every build
      2. Export git tag and message as environment variables

      Under Post build Actions section, I've below configuration.

       

      Push Only If Build Succeeds - checked

      Force Push - checked

      Tags

          Tag to Push  - ${GIT_TAG_NAME}

          Tag message - "Version testtag"

          Target remote name - origin  

            markewaite Mark Waite
            rajeshhereforyou Raj G
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: