Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63827

Parameterized Remote Trigger Plugin - Build URL Incorrect

XMLWordPrintable

      I am using Parameterized Remote Trigger Plugin to trigger Sanity Jobs present on another Jenkins. 

      The job get triggered perfectly but when I enable "Block until the remote triggered projects finish their builds" in the configuration the build URL that it try to polls is different. Please see below logs.

      Triggering parameterized remote job 'http://localhost:8081/qa/job/Staging/job/TestJobs/Build_Promotion/'
        Using globally defined 'Credentials Authentication' as user 'xxxxx'
      Triggering remote job now.
      CSRF protection is disabled on the remote server.
        Remote job queue number: 123714
      Remote build started!
        
      ---------------------------
      Remote build URL: http://localhost/qa/job/Staging/job/TestJobs/Build_Promotion/2 <<<<<< This is where the build URL changed.
      Remote build number: 2
      ---------------------------
      
      Blocking local job until remote job completes.
      Connection to remote server failed , waiting for to retry - 10 seconds until next attempt. URL: http://localhost/qa/job/Staging/job/TestJobs/Build_Promotion/2/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/qa/job/Staging/job/TestJobs/Build_Promotion/2/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/qa/job/Staging/job/TestJobs/Build_Promotion/2, parameters: 

      If you observe the Remote Build URL it is changed.

      The actual build URL should be : http://localhost:8081/qa/job/Staging/job/TestJobs/Build_Promotion/2

      Instead it has changed to : http://localhost/qa/job/Staging/job/TestJobs/Build_Promotion/2

      The port is missing and due to this the local job is not able to Poll the job status and eventually fails after 5 attempts.

      If I dont enable "Block until the remote triggered projects finish their builds" it Fires and forgets the job and eventually would not monitor the remote job but I want that my local job should also fail if my remote job is failed. 

       

            cashlalala KaiHsiang Chang
            keyurbitw Keyur Patel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: