• git plugin 4.8.0

      Currently the GIT Plugin only allows to create pre-defined tags, but not to push all tags created during a build.

          [JENKINS-25389] Allow push of tags created during the build

          Mario Mancino created issue -

          Maciej Nowak added a comment -

          I also have similar situation. Each build is creating tag which is created during build (in buildscript) and it pretty hard to push it back to repository. Credentials are removed just after clone and it is not so simple to add them back during build. I've ended with setting remote URL to contain credentials (my repo is using http authentication) to be able to push. However having feature like 'Push all tags to remote' would be very nice

          Maciej Nowak added a comment - I also have similar situation. Each build is creating tag which is created during build (in buildscript) and it pretty hard to push it back to repository. Credentials are removed just after clone and it is not so simple to add them back during build. I've ended with setting remote URL to contain credentials (my repo is using http authentication) to be able to push. However having feature like 'Push all tags to remote' would be very nice

          "Post-build Actions" -> "Git publisher"

          Kanstantsin Shautsou added a comment - "Post-build Actions" -> "Git publisher"
          Kanstantsin Shautsou made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Maciej Nowak added a comment -

          I don't think it is possible to use Git publisher to publish tags created during build (not using Git publisher).

          Maciej Nowak added a comment - I don't think it is possible to use Git publisher to publish tags created during build (not using Git publisher).

          Mario Mancino added a comment -

          As Maciej already answered - it is currently not possible to push back arbitrary tags created during the build - you can only create a tags with a fixed name.

          I already created a pull request which mate it into git-client-plugin 1.11.1. I also have the changes for git-plugin but didn't have the time to create tests. Maybe I'll have time tomorrow.

          Mario Mancino added a comment - As Maciej already answered - it is currently not possible to push back arbitrary tags created during the build - you can only create a tags with a fixed name. I already created a pull request which mate it into git-client-plugin 1.11.1. I also have the changes for git-plugin but didn't have the time to create tests. Maybe I'll have time tomorrow.
          Maciej Nowak made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ]
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          "Each build is creating tag which is created during build " - "Additional behavior" -> "tag every build" ?

          Kanstantsin Shautsou added a comment - "Each build is creating tag which is created during build " - "Additional behavior" -> "tag every build" ?

          Maciej Nowak added a comment -

          I do not want to use Git publisher to create tag. I want it only to push tag that I create during build, eg. in Makefile using git tag "build/$my_awesome_variable"

          Maciej Nowak added a comment - I do not want to use Git publisher to create tag. I want it only to push tag that I create during build, eg. in Makefile using git tag "build/$my_awesome_variable"

          "Git publisher" doesn't create tags, it only publishes.
          1) Extend "git publisher" so it will be able to push external tags.
          2) Extend "create build tag for every build" with ability to set custom name.

          Kanstantsin Shautsou added a comment - "Git publisher" doesn't create tags, it only publishes. 1) Extend "git publisher" so it will be able to push external tags. 2) Extend "create build tag for every build" with ability to set custom name.

            Unassigned Unassigned
            mario_mancino Mario Mancino
            Votes:
            9 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: