[英]buildnumber-maven-plugin: 'git' is not recognized on Jenkins
[英]git with maven-release-plugin and buildnumber-maven-plugin
執行發布時,我嘗試將$ {scmBranch}的值從buildnumber-maven-plugin存儲到我的jar中的MANIFEST.MF文件中。 但是值是“未知”,
.../target/checkout/git branch
說:
* (no branch)
版本與標簽版本相同。
怎么辦呢?
將發布目標更改為
-Dresume=false release:prepare release:perform -Darguments='-DscmBranch=${BRANCH}'
解決問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.