Jenkins中如何使用git插件处理发布自动打tag或分支

这篇文章主要介绍了Jenkins中如何使用git插件处理发布自动打tag或分支,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。

插件名称:GIT Publisher plugin 

Jenkins中如何使用git插件处理发布自动打tag或分支

“Tag to Push”.  This setting represents the name of the TAG as it will end up on the GIT Repository.   In this example we are using a combination of a text literal “TAG-” and a hudson variable “$BUILD_ID”.   Our build ID’s are the timestamp so in this example the tag name will look something like:  “TAG-2013-03-18_18-31-07” which is basically “TAG-YEAR-MONTH-DAY_HOUR-MINUTE-SECONDS”.

发布完成后,仓库中将出现:TAG-YEAR-MONTH-DAY_HOUR-MINUTE-SECONDS 类似名字的tag

感谢你能够认真阅读完这篇文章,希望小编分享的“Jenkins中如何使用git插件处理发布自动打tag或分支”这篇文章对大家有帮助,同时也希望大家多多支持亿速云,关注行业资讯频道,更多相关知识等着你来学习!