Openshift Jenkins构建待定,直到长时间不活动后失败

时间:2016-11-06 13:12:04

标签: jenkins openshift

我正在尝试确保在部署之前完成所有测试。为此,我为我的应用程序启用了Jenkins。如果myapp-bldr节点启动并运行,我可以从git push和Jenkins UI成功运行构建,但是如果我尝试在一段时间不活动后运行构建(基本上等待myapp-bldr下降并释放一个齿轮在我的帐户中),Jenkins构建失败,但有以下细节:

> rhc app-deploy HEAD --app myapp
Deployment of git ref 'HEAD' in progress for application myapp ...
Executing Jenkins build.

You can track your build at https://jenkins-mydomain.rhcloud.com/job/myapp-build

Waiting for build to schedule............................................................................................
**BUILD FAILED/CANCELLED**
Please see the Jenkins log for more details via 'rhc tail'
!!!!!!!!
Deployment Halted!
If the build failed before the deploy step, your previous 
build is still running.  Otherwise, your application may be
partially deployed or inaccessible.
Fix the build and try again.
!!!!!!!!
An error occurred executing 'gear deploy' (exit code: 1)
Error message: CLIENT_ERROR: Failed to execute: 'control post-receive' for /var/lib/openshift/581e42c10c1e6666270001d8/jenkins-client

虽然在控制台中显示Waiting for build to schedule...行,但我可以看到构建在Jenkins UI中排队,但由于没有可用的构建器节点,因此它不会被拾取。

我猜这个问题与某些超时设置有关,但我无法确定哪一个以及我是否有能力进行调整。

我发现此bug报告链接到以下pull request,但我不知道这是否相关以及如何检查我的应用是否已应用上述配置更改。

我正在使用Jenkins ver的“旧”控制台(v2,而不是“NextGen”v3)。 1.642.2

0 个答案:

没有答案