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

Parent job is rendered as failed while child job was aborted

    XMLWordPrintable

    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

          Hide
          quas Jakub Pawlinski added a comment -

          Cliff Meyers - this seems similar to previous one that you solved, hope you could help here too.

          Show
          quas Jakub Pawlinski added a comment - Cliff Meyers  - this seems similar to previous one that you solved, hope you could help here too.
          Hide
          quas Jakub Pawlinski added a comment -

          Ok, I learned how to use

          propagate: false

          on build job

          Show
          quas Jakub Pawlinski added a comment - Ok, I learned how to use propagate: false on build job

            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: