Jenkins Git 插件:如何构建特定标签? [英] Jenkins Git Plugin: How to build specific tag?
本文介绍了Jenkins Git 插件:如何构建特定标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在让 Jenkins 构建指定标签时遇到问题.该标签是参数化构建的一部分,但我不知道如何将其传递给 git 插件以构建该标签.这花了我一天的 3 个小时,我已经在 Stack Overflow 上输给了大师们.
I am having issues getting Jenkins to build a specified tag. The tag is part of a parametrized build, but I do not know how to pass this through to the git plugin to just build that tag. This has been taking 3 hours of my day and I have conceded defeat to the masters at Stack Overflow.
推荐答案
我能够通过使用要构建的分支"参数来做到这一点:
I was able to do that by using the "branches to build" parameter:
Branch Specifier (blank for default): tags/[tag-name]
将 [tag-name] 替换为您的标签名称.
Replace [tag-name] by the name of your tag.
这篇关于Jenkins Git 插件:如何构建特定标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文