我尝试在Jenkins中完成一份工作,该工作在GitHub上的每次提交之后都建立,但是我收到了这样的错误:
Started by user unknown or anonymous
[EnvInject] - Loading node environment variables.
Building remotely on alexandra_tmd7690w in workspace D:\JenkinsWorkspace\folderGit
Cloning the remote Git repository
Cloning repository http://repository/uidn1804/testGitHub.git
> D:\softs\Git\bin\git.exe init D:\JenkinsWorkspace\folderGit # timeout=10
ERROR: Error cloning remote repo 'origin'
D:\softs\Git\bin\git.exe is the path on the server where a have git/
在詹金斯的工作中,我执行了以下步骤:
GitHub project : http://repository/uidn1804/testGitHub/
Restrict where this project can be run : alexandra_tmd7690w
Use custom workspace: D:\JenkinsWorkspace\folderGit\
Source Code Management :
Repository URL : http://repository/uidn1804/testGitHub.git
Credentials: uidn1804
Branch Specifier: */master
Build Triggers : GitHub hook trigger for GITScm polling
在GitHub中,我指定了一个Webhook,添加了部署密钥并添加了服务:Jenkins(GitHub插件)。