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

Parent job is rendered as failed while child job was aborted

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      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

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: