我们正在使用Jenkins CF插件进行部署。通常情况下,我们会遇到以下问题:Plugin只是超时:
00:46:06 Cloud Foundry插件: 00:48:07 java.util.concurrent.TimeoutException 00:48:07 at> reactor.core.publisher.FluxTimeout $ TimeoutMainSubscriber.handleTimeout(FluxTimeout.java:259) 00:48:07在reactor.core.publisher.FluxTimeout $ TimeoutMainSubscriber.doTimeout(FluxTimeout.java:243) 00:48:07在reactor.core.publisher.FluxTimeout $ TimeoutTimeoutSubscriber.onNext(FluxTimeout.java:360) 00:48:07 at reactor.core.publisher.FluxOnErrorResume $ ResumeSubscriber.onNext(FluxOnErrorResume.java:72) 00:48:07在reactor.core.publisher.MonoDelay $ MonoDelayRunnable.run(MonoDelay.java:113) 00:48:07 at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511) 00:48:07在java.util.concurrent.FutureTask.run(FutureTask.java:266)
参考插件文档(https://github.com/jenkinsci/cloudfoundry-plugin),超时和pluginTimeout已经逐渐提升到600秒。然而,该过程在大约120秒(约2分钟)内始终失败。
提取的超时值是否未被提取或是否仅使用默认值覆盖它?
任何输入都会有很大帮助!
答案 0 :(得分:0)
解决方案是将代码包装在timeout:
timeout(time: 200, unit: 'SECONDS') {
pushToCloudFoundry(...)
}
在阶段或节点级别应用超时不起作用。它必须在运营层面完成。