简体   繁体   中英

Tagging Jenkins builds with git

I have already looked through a few Stack overflow posts on this but I still cannot find an answer.

My company uses Jenkins we have recently moved from SVN to a GIT which is hosted on one of our servers.

With the SVN we were able to select a build we had already made, choose a tag name and tag it then these changes would be added to the repository.

Unfortunately when we tag with git the tag is not pushed up to the repository, also we don't have a way of setting the remote push url.

Any suggestions, I have tried Git publisher + post build step, which is not ideal as we don't want to push a tag for ever build + we would like to have control over the naming scheme of the tag.

How about this tutorial . Let me know if that helps

Alternatively, you can write your own custom batch or bash script to perform the tag. You can then trigger it on specific builds using Promoted Builds plugin (bundled with default Jenkins installation).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM