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

pipeline build failed even though shouldNotFailBuild-Option set to true when triggering remote job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None

      In our pipeline script, we trigger a remote job using Parameterized Remote Trigger with the snippet as shown below. Note that we have set shouldNotFailBuild to true.  

       

      handle = triggerRemoteJob(                
          remoteJenkinsName: 'naas-jaas',
          job: jobName,
          parameters: job_parameters,
          enhancedLogging: true,
          shouldNotFailBuild: true
      )

      During running of the remote job, if the server of the remote job is disconnected the remote job would fail, which is expected. However this failed remote build causes the pipeline to fail with this error 

      15:06:30  The error was:
      15:06:30  ***
      15:06:30  org.jenkinsci.plugins.ParameterizedRemoteTrigger.exceptions.ExceedRetryLimitException: Max number of connection retries have been exeeded.
      15:06:30  ***

      Shouldn't the pipeline build NOT fail since we have set shouldNotFailBuild to true when triggering the remote job?

      Thanks!

            cashlalala KaiHsiang Chang
            jaelynma Jaelyn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: