TriggerRemoteJob - 连接到远程服务器失败

时间:2021-04-29 10:20:43

标签: jenkins jenkins-pipeline jenkins-plugins

我已在本地 (https://localhost:8080) 中安装了 Jenkins,我尝试了 triggerRemoteJob-plugin。我使用片段生成器生成了以下代码。函数调用失败并显示如下错误消息。

我在这里遗漏了什么?

triggerRemoteJob(
    // auth: NoneAuth(), - this also didn't work
    auth: TokenAuth(apiToken: '11xx90yycfxx77yy2dxxc9yy1bxx3cyy', userName: 'myuser'), 
    job: 'https://localhost:8080/job/dinesh-adhoc-script',
    remoteJenkinsUrl: 'https://localhost:8080', 
    token: 'build-trigger-token',
    maxConn: 1,
    overrideTrustAllCertificates: true,
    trustAllCertificates: true
)

错误信息:

Parameterized Remote Trigger Configuration:
    - job:                     https://localhost:8080/job/dinesh-adhoc-script 
    - remoteJenkinsUrl:        https://localhost:8080
    - auth:                    'Token Authentication' as user 'myuser'
    - parameters:              
    - blockBuildUntilComplete: true
    - connectionRetryLimit:    5

到远程服务器的连接失败,等待重试 - 下次尝试前 10 秒。

网址:https://localhost:8080/job/dinesh-adhoc-script/api/json

0 个答案:

没有答案