簡體   English   中英

Jenkins無法使用Github插件運行gulp構建任務

[英]Jenkins fails to run gulp build task with Github plugin

我在Mac上嘗試了相同的步驟,但沒有任何問題,在Windows機器上,當我嘗試使用Jenkins Github插件運行簡單的Gulp構建任務將無法正常工作時,我只是嘗試了所有想法(允許防火牆中的Git / java ,更改超時值,重新啟動服務,從cmd運行服務...),仍然拋出相同的錯誤:

Started by user anonymous
Building in workspace C:\Program Files (x86)\Jenkins\jobs\git_pull\workspace
 > C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/lapalateam/LapalaApp.git # timeout=10
Fetching upstream changes from https://github.com/lapalateam/LapalaApp.git
 > C:\Program Files\Git\bin\git.exe --version # timeout=10
using .gitcredentials to set credentials
 > C:\Program Files\Git\bin\git.exe config --local credential.username zerubeus@gmail.com # timeout=10
 > C:\Program Files\Git\bin\git.exe config --local credential.helper store --file=\"c:\temp\git8251275763118801702.credentials\" # timeout=10
 > C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://github.com/lapalateam/LapalaApp.git +refs/heads/*:refs/remotes/origin/*
ERROR: Timeout after 10 minutes
 > C:\Program Files\Git\bin\git.exe config --local --remove-section credential # timeout=10
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://github.com/lapalateam/LapalaApp.git
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:810)
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)
    at hudson.scm.SCM.checkout(SCM.java:485)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
    at hudson.model.Run.execute(Run.java:1738)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://github.com/lapalateam/LapalaApp.git +refs/heads/*:refs/remotes/origin/*" returned status code -1:
stdout: 
stderr: 
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808)
    ... 11 more
ERROR: null
Finished: FAILURE

有人可以幫我弄清楚問題出在哪里嗎?

問題是git fetch在10分鍾后就會超時:

 > C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://github.com/lapalateam/LapalaApp.git +refs/heads/*:refs/remotes/origin/*
ERROR: Timeout after 10 minutes

您可以通過在“其他行為”中添加“高級克隆行為”來增加超時,並將“克隆和獲取操作的超時(以分鍾為單位)”設置為例如20。

在此處輸入圖片說明

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM