使用POM版本在竹子中创建git标签

发布于 2025-02-10 17:51:08 字数 244 浏览 0 评论 0原文

我正在从事的当前项目的客户使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只是一片海 2025-02-17 17:51:08

您可以尝试 parse 版本并使用git在脚本任务中标记当前修订版。

You could try to parse pom version and use git to tag the current revision in a script task.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文