2016-05-21 5 views
0

Мы получаем ниже ошибку, когда выполняем выпуск maven для проекта [employee-model] в инструменте Jenkins.Невозможно зафиксировать файлы

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4.1:prepare (default-cli) on project employee-model: 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 "[email protected]" 
[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: unable to auto-detect email address (got '[email protected](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 
[JENKINS] Archiving /var/lib/jenkins/jobs/Reconciliation-release-employee-model/workspace/cm 
+0

Убедитесь, что «jenkins @ ip-xx-xx-xx-xx. (None)» имеет право нажимать. перейдите на свой GIT-сервер и убедитесь, что у вас есть такой пользователь, и с правами «Разрешить чтение» в репозиторий. проверьте ключи SSH, если вы используете ssh. удачи! – Dvir669

ответ

0

похоже, ваша проблема не Дженкинс, а git account. С ОС попробуйте сначала запустить, так как пользователь Дженкинс (при условии, Linux):

cd .../path/to/project/ 
git push 

Вы будете иметь то же самое сообщение об ошибке:

git config --global user.email "[email protected]" 
git config --global user.name "Your Name" 

вопрос «мерзавец конфигурации» команд, как предложено и попробовать снова нажать. если это исправлено - также должно быть хорошо от Дженкинса.

Смежные вопросы