【问题标题】:'gear postreceive' error in openshift with JenkinsJenkins 的 openshift 中出现“gear postreceive”错误
【发布时间】:2016-04-06 15:46:16
【问题描述】:

我们使用 redhat openshift 作为测试和构建代码的解决方案。
Jenkins 运行了很长一段时间,但现在它因错误而停止......

这是我收到的错误消息:

 [exec] remote: Executing Jenkins build.[K
 [exec] remote: 
 [exec] remote: You can track your build at https://jenkins-myproject.rhcloud.com/job/myjob-build[K
 [exec] remote: 
 [exec] remote: Waiting for build to schedule....................................................................................[K
 [exec] remote: **BUILD FAILED/CANCELLED**[K
 [exec] remote: Please see the Jenkins log for more details via 'rhc tail'[K
 [exec] remote: !!!!!!!![K
 [exec] remote: Deployment Halted![K
 [exec] remote: If the build failed before the deploy step, your previous[K
 [exec] remote: build is still running.  Otherwise, your application may be[K
 [exec] remote: partially deployed or inaccessible.[K
 [exec] remote: Fix the build and try again.[K
 [exec] remote: !!!!!!!![K
 [exec] remote: An error occurred executing 'gear postreceive' (exit code: 1)[K
 [exec] remote: Error message: CLIENT_ERROR: Failed to execute: 'control post-receive' for /var/lib/openshift/56asdf899weersdfd5/jenkins-client[K
 [exec] remote: 
 [exec] remote: For more details about the problem, try running the command again with the '--trace' option.[K
 [exec] To ssh://56asdf899weersdfd5@myproject-itproject.rhcloud.com/~/git/myproject.git
 [exec]    4102ab5..3291140  master -> master

Jenkins 甚至没有看到正在运行的作业,建议的“RHC tail jenkins”仅显示“构建成功”(指之前的构建)

当我尝试直接从 jenkins 运行构建时,一切正常。当我们直接提交到我们的 git 存储库时,它应该直接运行,但这会失败。我们的代码已经成功提交到 git,但是 Jenkins 执行失败。

此外,当我推送到我们的 git 存储库时,没有其他构建正在运行。

感谢您努力帮助我。

【问题讨论】:

    标签: git jenkins openshift devops


    【解决方案1】:

    好的,所以我决定问这个问题,因为我花了几个小时寻找答案。

    由于某种原因,builder-client 已停止:重新启动 & 问题已解决。

    【讨论】:

      【解决方案2】:

      你已经消耗了 3/3 个齿轮!!! 检查詹金斯日志:rhc tail jenkins

      【讨论】: