sharly2012 2017-11-21 07:04 采纳率: 0%
浏览 4243

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条回答 默认 最新

  • airfling 2017-11-21 07:08
    关注

    git 插件检查下是否可用

    评论

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站