xl1006564900
sharly2012
2017-11-21 07:04

Jenkins + BitBucket 自动部署问题

  • git
  • jenkins
  • bitbucket

Jenkins可以接受到BitBucket的push请求,但是Jenkins Job中 BitBucket Hook Log
一直提示这个错误,来个大神帮忙解决一下

Last BitBucket Push

Started on Nov 21, 2017 2:39:04 PM
Using strategy: Default
[poll] Last Built Revision: Revision 7c9394c349886727286673b4058e11be5c90dd4c (refs/remotes/origin/autotest)
using GIT_ASKPASS to set credentials BitBucket GIT account

git.exe ls-remote -h https://xxxxxx@bitbucket.org/xxxxxxxx/xxxxx-2016.git # timeout=10
ERROR: Timeout after 10 minutes
FATAL: hudson.plugins.git.GitException: Command "git.exe ls-remote -h https://xxxxxx@bitbucket.org/xxxxxxxx/xxxxx-2016.git" returned status code -1:
stdout:
stderr:
java.io.IOException: hudson.plugins.git.GitException: Command "git.exe ls-remote -h https://xxxxxx@bitbucket.org/xxxxxxxx/xxxxx-2016.git" returned status code -1:
stdout:
stderr:
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:589)
at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:381)
at hudson.scm.SCM.poll(SCM.java:398)
at hudson.model.AbstractProject._poll(AbstractProject.java:1446)
at hudson.model.AbstractProject.poll(AbstractProject.java:1349)
at com.cloudbees.jenkins.plugins.BitBucketTrigger$1.runPolling(BitBucketTrigger.java:62)
at com.cloudbees.jenkins.plugins.BitBucketTrigger$1.run(BitBucketTrigger.java:87)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: hudson.plugins.git.GitException: Command "git.exe ls-remote -h https://xxxxxx@bitbucket.org/xxxxxxxx/xxxxx-2016.git" returned status code -1:
stdout:
stderr:
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1799)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1525)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1443)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1434)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:2539)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:628)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:587)
... 13 more
Done. Took 10 min
No changes

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答