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

When job fails, stack trace is Null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline
    • None
    • jenkins core: 2.200

      My pipeline script has

      try{
      			
      			jobToRun = build job: jobName, parameters: jobParameters
      			jobStatus = jobToRun.result
      			print "Job: ${jobName} completed, result was ${jobToRun.result}"
                 
      	}
      	catch (Exception e){
      			println "DEBUG: error message is: " + e.message
      }

      Which used to work about a month ago. Updated plugins and core, and now e.message == NULL

      e == org.jenkinsci.plugins.workflow.steps.FlowInterruptedException

      This is when $jobName != SUCCESS. A bit annoying that a build call throws an exception in the first place

      Changing the severity, as I can use propagate which solves all the issues I was trying to solve by catching the exception in the first place.

            Unassigned Unassigned
            aflat aflat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: