使用POM版本在竹子中创建git标签
我正在从事的当前项目的客户使用Bamboo进行建筑。我是新来的竹子。我正在为Java/Maven项目创建构建计划。我希望构建将标签添加到git分支,该标签结合了pom.xml
(例如1.0.1)和竹制构建numbe(例如53)的版本编号。该示例将创建标签1.0.1.53。
构建号很容易,它只是$ {bamboo {bamboo}
变量,但是如何使用pom.xml
构建标签?
The customer for the current project I'm working on uses Bamboo for building. I'm new to Bamboo. I'm creating a build plan for a Java/maven project. I want the build to add a tag to the git branch, which combines the version number from pom.xml
(e.g. 1.0.1) and the Bamboo build numbe (e.g 53). The example would create a tag 1.0.1.53.
The build number is easy, it just the ${bamboo.buildNumber}
variable, but how can I construct the tag using the pom.xml
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试 parse 版本并使用git在脚本任务中标记当前修订版。
You could try to parse pom version and use git to tag the current revision in a script task.