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

Git plugin does not update origin if URL changes

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None
    • Any

      I ran into a slight issue. Within my job I had a post build step that conditionally adds a tag and pushes it to origin. That was working until we renamed our git repo and thus changing the URL. I changed the URL in the job config, but the pushing of the tag was failing. The reason was that origin was never updated to the new URL because the builds did not do a new clone and the git plugin does not rely on the origin remote.

      Might be a good idea if the origin remote is updated to reflect the current URL.

      The workaround is that I need to not rely on origin in my job.

          [JENKINS-20736] Git plugin does not update origin if URL changes

          Sergey Egorov added a comment -

          Had similar. Seems workarround is to delete all builds in such job :S

          Sergey Egorov added a comment - Had similar. Seems workarround is to delete all builds in such job :S

            Unassigned Unassigned
            dalewking Dale King
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: