[英]Jenkins + Maven release plugin: release:branch + Git - Unable to commit files
[英]git-commit problem in Maven release plugin
如何配置 maven 發布插件來設置 user.email?
我也像這樣添加.gitconfig
[user]
name = azizkhani
email = aa.azizkhani@gmail.com
username = aa.azizkhani
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare (default-cli) on project wm: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-commit command failed.
[ERROR] Command output:
[ERROR]
[ERROR] *** Please tell me who you are.
[ERROR]
[ERROR] Run
[ERROR]
[ERROR] git config --global user.email "you@example.com"
[ERROR] git config --global user.name "Your Name"
[ERROR]
[ERROR] to set your account's default identity.
[ERROR] Omit --global to set the identity only in this repository.
[ERROR]
[ERROR] fatal:********@runner-wefvk5ml-project-17780475-concurrent-0.(none)')
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
maven 發布插件使用 globale git 配置,因此您必須設置 globale 用戶配置,因為錯誤是通過運行
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.