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

Parent job is rendered as failed while child job was aborted

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None

      If you create a job that runs other build that returns with currentBuild.result = 'ABORTED', the parent job will render its status as FAILED, while it should be ABORTED as well. It is visible same in blueocean and build-history.

      To replicate create two piplelines, 

      ParentPipeline with:

      node any {
        stage ('BuildChild') {
          build 'ChildPipeline'
        }
      }
      

      and the other:

      node any {
        stage ('ChildBuilding') {
          currentBuild.result = 'ABORTED'
        }
      }
      

      You will see that result of parent is rendered as failed

       

            quas Jakub Pawlinski
            quas Jakub Pawlinski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: