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

Cannot push tags back

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • git-plugin
    • None
    • Hudson 1.342 with git plugin 0.8

    Description

      There is no 'Push GIT tags back to origin repository' post-build action (as described on the plugin page), just 'Push Merges back to origin'. But tags don't get pushed back automatically either.

      Attachments

        Activity

          markewaite Mark Waite added a comment -

          Won't fix, since there are alternatives in Pipeline like using the ssh-agent wrapper around a git push

          markewaite Mark Waite added a comment - Won't fix, since there are alternatives in Pipeline like using the ssh-agent wrapper around a git push
          bertr Bert Roos added a comment -

          Still quite confusing. The help text for "Create a tag for every build" of the Jenkins Git Plugin says this:

          Create a tag in the workspace for every build to unambiguously mark the commit that was built. You can combine this with Git publisher to push the tags to the remote repository.

          But the Git publisher has no option to push all tags. After a long internet search, I decided to go with just the Git publisher plug in.

          bertr Bert Roos added a comment - Still quite confusing. The help text for "Create a tag for every build" of the Jenkins Git Plugin says this: Create a tag in the workspace for every build to unambiguously mark the commit that was built. You can combine this with Git publisher to push the tags to the remote repository. But the Git publisher has no option to push all tags. After a long internet search, I decided to go with just the Git publisher plug in.
          dantliff David Antliff added a comment -

          Please reconsider this issue in light of my earlier comment.

          dantliff David Antliff added a comment - Please reconsider this issue in light of my earlier comment.
          dantliff David Antliff added a comment -

          This isn't really fixed in my opinion - the plugin page still mentions the non-existent option, and the GitPublisher plugin doesn't have a way to push all tags - it can only push tags that can be explicitly named, so it's not useful for dynamically named tags that Jenkins doesn't know about.

          dantliff David Antliff added a comment - This isn't really fixed in my opinion - the plugin page still mentions the non-existent option, and the GitPublisher plugin doesn't have a way to push all tags - it can only push tags that can be explicitly named, so it's not useful for dynamically named tags that Jenkins doesn't know about.
          dogfood dogfood added a comment -

          Integrated in plugins_hudson-git-plugin #8
          JENKINS-5371 Final part of rewrite of GitPublisher, adding support for pushing tags and branches

          Andrew Bayer :
          Files :

          • src/main/resources/hudson/plugins/git/GitPublisher/help-pushMerge.html
          • src/main/webapp/gitPublisher.html
          • src/main/resources/hudson/plugins/git/GitPublisher/help-branchesToPush.html
          • src/main/resources/hudson/plugins/git/GitPublisher/help-tagsToPush.html
          dogfood dogfood added a comment - Integrated in plugins_hudson-git-plugin #8 JENKINS-5371 Final part of rewrite of GitPublisher, adding support for pushing tags and branches Andrew Bayer : Files : src/main/resources/hudson/plugins/git/GitPublisher/help-pushMerge.html src/main/webapp/gitPublisher.html src/main/resources/hudson/plugins/git/GitPublisher/help-branchesToPush.html src/main/resources/hudson/plugins/git/GitPublisher/help-tagsToPush.html
          abayer Andrew Bayer added a comment -

          About to make a run at this, with the intent of including an expanded GitPublisher in the next release.

          abayer Andrew Bayer added a comment - About to make a run at this, with the intent of including an expanded GitPublisher in the next release.
          abayer Andrew Bayer added a comment -

          I'd say the right approach here would be to add a post-build action for pushing tags back, or better yet, to expand the "push merges" action to be more configurable, so that you can push back just tags, or merges, or changes without there having been merges, etc. I'll take a look.

          abayer Andrew Bayer added a comment - I'd say the right approach here would be to add a post-build action for pushing tags back, or better yet, to expand the "push merges" action to be more configurable, so that you can push back just tags, or merges, or changes without there having been merges, etc. I'll take a look.
          woodstock3368 woodstock3368 added a comment -

          http://github.com/bruyeron/Hudson-GIT-plugin/commit/7cd28e8f854507037cc333097016f6ea44aaa289 would resolve this issue. How do you go about getting that change merged into the next release of git hudson plugin?

          woodstock3368 woodstock3368 added a comment - http://github.com/bruyeron/Hudson-GIT-plugin/commit/7cd28e8f854507037cc333097016f6ea44aaa289 would resolve this issue. How do you go about getting that change merged into the next release of git hudson plugin?

          People

            Unassigned Unassigned
            eris eris
            Votes:
            8 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: