相关文章推荐
叛逆的充电器  ·  Jenkins+Sonar质量门禁【实践篇- ...·  2 周前    · 
胆小的茴香  ·  超详细,自动化测试接入Jenkins+Son ...·  2 周前    · 
害羞的饭卡  ·  在WPF控件上添加Windows窗口式调整大 ...·  1 年前    · 
腼腆的皮带  ·  js 鼠标经过 显示隐藏div - ...·  2 年前    · 
粗眉毛的人字拖  ·  查找正在运行的进程的基地址 - 问答 - ...·  2 年前    · 
纯真的鼠标垫  ·  将 Python 应用发布到 ...·  2 年前    · 
瘦瘦的竹笋  ·  ajax请求多个url解决办法 - 简书·  2 年前    · 
Code  ›  Jenkins Pipeline在触发远程作业时失败,并启用了选项"Block Build is“开发者社区
remote localhost jenkins
https://cloud.tencent.com/developer/ask/sof/1122321
潇洒的牙膏
1 年前
首页
学习
活动
专区
工具
TVP 最新优惠活动
返回腾讯云官网
提问
问 Jenkins Pipeline在触发远程作业时失败,并启用了选项"Block Build is“
Stack Overflow用户
提问于 2019-04-25 17:56:55
EN

我创建了一个管道,它应该在不同的Jenkinsserver上触发一个作业。我使用远程触发器插件,并且能够使用以下语句触发Job (目前这是我的管道中唯一的语句):

triggerRemoteJob enhancedLogging: true, job: 'myJob', maxConn: 1,     remoteJenkinsName: 'MyJenkins'

但是,在Job被触发之后,管道尝试连接运行在localhost上的作业中的作业,这显然是失败的。

我试着禁用了一些选项,发现如果我禁用了blockBuildUntilComplete,它就可以工作了。

在启用了选项的情况下,我从日志中获得了以下内容:

##############################################################################    ##################################
  Parameterized Remote Trigger Configuration:
    - job:                     myJob 
    - remoteJenkinsName:       myJenkins
    - parameters:              
    - blockBuildUntilComplete: true
    - connectionRetryLimit:    5
################################################################################################################
Triggering non-parameterized remote job 'http://x.x.x.x:8080/job/myJob'
  Using globally defined 'Credentials Authentication' as user 'myUser' (Credentials ID 'myCredentials')
Triggering remote job now.
CSRF protection is disabled on the remote server.
  Remote job queue number: 47
Remote build started!
  Remote build URL: http://localhost:8080/job/myJob /8/
  Remote build number: 8
Blocking local job until remote job completes.
calling remote without locking...
Connection to remote server failed , waiting for to retry - 10 seconds until next attempt. URL: http://localhost:8080/job/myJob /8/api/json/, parameters: 
Retry attempt #1 out of 5
Connection to remote server failed , waiting for to retry - 10 seconds until next attempt. URL: http://localhost:8080/job/myJob /8/api/json/, parameters: 
Retry attempt #2 out of 5
Connection to remote server failed , waiting for to retry - 10 seconds until next attempt. URL: http://localhost:8080/job/myJob /8/api/json/, parameters: 
Retry attempt #3 out of 5
Connection to remote server failed , waiting for to retry - 10 seconds until next attempt. URL: http://localhost:8080/job/myJob /8/api/json/, parameters: 
Retry attempt #4 out of 5
 
推荐文章
叛逆的充电器  ·  Jenkins+Sonar质量门禁【实践篇-pipeline版】 - windysai
2 周前
胆小的茴香  ·  超详细,自动化测试接入Jenkins+Sonar质量门禁实践开发者社区
2 周前
害羞的饭卡  ·  在WPF控件上添加Windows窗口式调整大小行为_51CTO博客_winform控件随窗口自适应
1 年前
腼腆的皮带  ·  js 鼠标经过 显示隐藏div - OSCHINA - 中文开源技术交流社区
2 年前
粗眉毛的人字拖  ·  查找正在运行的进程的基地址 - 问答 - 腾讯云开发者社区-腾讯云
2 年前
纯真的鼠标垫  ·  将 Python 应用发布到 Windows 上的 Azure 应用服务 - Visual Studio (Windows) | Microsoft Learn
2 年前
瘦瘦的竹笋  ·  ajax请求多个url解决办法 - 简书
2 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
Code - 代码工具平台
© 2024 ~ 沪ICP备11025650号