没有电子邮件地址推送到git

时间:2015-04-01 14:00:06

标签: git jenkins jgit

我在linux上使用jgit.sh尝试通过jenkins上的shell命令将文件推送到GIT reppository。

我的jenkins工作将执行以下操作:

  • 通过Jenkins GIT插件获取git repo
  • 我使用了一些maven命令,并在工作区下创建了其他文件。
  • 使用jgit.sh将这些文件推送回git存储库。

我正在执行以下命令:

jgit.sh checkout master
jgit.sh add ui5propreties.xml
jgit.sh commit -m "commit files"
jgit.sh push origin master

我正在将jgit.sh与名为SolmanVoter的用户一起使用,而该用户在git上没有电子邮件地址。 只是用户。

enter image description here

因此,当我运行作业时出现以下错误:

remote: ERROR:  In commit d704a1f404f052f8117b456ac59a67a69cbfc281
remote: ERROR:  committer email address
remote: ERROR:  does not match your user account.
remote: ERROR:
remote: ERROR:  You have not registered any email addresses.
remote: ERROR:
remote: ERROR:  To register an email address, please visit:
remote: ERROR:  https://git.wdf.sap.corp/#/settings/contact
remote: 
To ssh://git.wdf.sap.corp:29418/sandbox/grcsandbox/pr1234_forcecommit.git
 ! [remote rejected] master -> master (invalid committer)

无法向用户SolmanVoter添加电子邮件地址,那么有没有办法在没有电子邮件地址的情况下进行推送?

0 个答案:

没有答案
相关问题