Jenkins:每次提交后构建,GitHub

时间:2019-02-28 15:56:38

标签: jenkins github

我尝试在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插件)。

0 个答案:

没有答案