Jenkins master在swarm客户端中运行管道时抛出java.io.IOException

bogh5gae  于 9个月前  发布在  Jenkins
关注(0)|答案(1)|浏览(137)

我试图在使用swarm客户端的代理中运行管道作业。作业运行正常,但我在日志中收到很多错误消息,如下所示:

Cannot contact tst_db2: java.io.IOException: Remote call on Channel to /XX.XX.XX.XXX failed

字符串

  • (实际IP地址替换为XX)*

在我的观察中,主服务器在等待客户端运行的脚本时抛出了这个错误。同样,管道作业运行得很好,除了我在管道日志中得到了这个错误。
下面是我的pipeline脚本:

pipeline {
    agent none
    stages {
        stage('Recreate DB') {
            agent { label 'tst_db2'}
            steps {
                checkout([$class: 'SubversionSCM', 
                  additionalCredentials: [], 
                  excludedCommitMessages: '', 
                  excludedRegions: '', 
                  excludedRevprop: '', 
                  excludedUsers: '', 
                  filterChangelog: false, 
                  ignoreDirPropChanges: false, 
                  includedRegions: '', 
                  locations: [[credentialsId: 'a84f7197-929a-437e-9aac-ca09fcd4c63a', 
                               depthOption: 'infinity', 
                               ignoreExternalsOption: true, 
                               local: '', 
                               remote: 'svn://XXXXX/XXX/tags/CR/Rebuild_VCRDWD01']], 
                  workspaceUpdater: [$class: 'CheckoutUpdater']])  

                 sh 'Rebuild_VCRDWD01/recreate_db.sh'
            }
        }       
    }
}


有没有什么方法可以消除这些错误?

环境

Jenkins版本:2.32.2
在Windows Server 2012 R2上运行
AIX 7.1和JDK 8上的Swarm Client 3.3
也提出了一个Jenkins问题:https://issues.jenkins-ci.org/browse/JENKINS-42428

p8h8hvxi

p8h8hvxi1#

之前提到的罚单中的一位用户报告说,他们能够通过降级“管道:节点和进程”插件在Jenkins到2.8 -可以从here获得。我也可以通过这样做来解决这个问题。不幸的是,我安装的其他一些插件都依赖于2.10版本。我不热衷于backleveling所有这些,所以我想我将不得不忍受这个烦恼,直到有一个官方的修复从插件维护者。希望这将很快。

相关问题