ОШИБКА: AbortException: Ошибка запуска удаленного задания. Заголовок ответа имеет неожиданный формат (параметризованный удаленный триггер) - PullRequest
0 голосов
/ 20 апреля 2020

Я работаю с запуском задания от исходного jenkins до удаленного jenkins. Но я столкнулся с некоторой проблемой при запуске работы. Моя конфигурация, как показано ниже

pipeline {
   agent any

   stages {
      stage('Hello') {
         steps {
            triggerRemoteJob job: 'Testjob', maxConn: 1, remoteJenkinsName: 'DevJenkins', useCrumbCache: true, useJobInfoCache: true
         }
      }
   }
}

Параметризованная версия удаленного триггера, которую я использовал, - 3.1.1

Когда я запускаю задание, я получаю следующую ошибку.

################################################################################################################
  Parameterized Remote Trigger Configuration:
    - job:                     Testjob 
    - remoteJenkinsName:       DevJenkins
    - parameters:              
    - blockBuildUntilComplete: true
    - connectionRetryLimit:    5
    - trustAllCertificates:    true
################################################################################################################
Triggering non-parameterized remote job 'https://54.121.10.11/job/Testjob'
  Using globally defined 'Token Authentication' as user 'xxxxxx'
Triggering remote job now.
CSRF protection is enabled on the remote server.

ERROR: Remote build failed with 'AbortException' for the following reason: 'Error triggering the remote job. The header of the response has an unexpected format: 
{date=[Mon, 20 Apr 2020 10:18:49 GMT], null=[HTTP/1.1 201 Created], server=[envoy], x-envoy-upstream-service-time=[2], x-content-type-options=[nosniff], Connection=[keep-alive], location=[https://54.121.10.11/queue/item/112/], Content-Length=[0]}'.

[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
ERROR: AbortException: Error triggering the remote job. The header of the response has an unexpected format: 
{date=[Mon, 20 Apr 2020 10:18:49 GMT], null=[HTTP/1.1 201 Created], server=[envoy], x-envoy-upstream-service-time=[2], x-content-type-options=[nosniff], Connection=[keep-alive], location=[https://54.121.10.11/queue/item/112/], Content-Length=[0]}
Finished: FAILURE

Пожалуйста любая помощь здесь.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...