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

JunitTestsPublisher: Also set stage result

XMLWordPrintable

      There is already a TODO in the code:

                      // TODO: Once JENKINS-43995 lands, update this to set the step status instead of the entire build.
                      // context.setResult(Result.UNSTABLE);
                      run.setResult(Result.UNSTABLE);
      

      Now with JENKINS-43995 done, this should be implemented via

      context.get(FlowNode.class).addAction(new WarningAction(Result.UNSTABLE).withMessage(...)
      

      or maybe even addOrReplaceAction() as in https://github.com/jenkinsci/workflow-basic-steps-plugin/blob/workflow-basic-steps-2.18/src/main/java/org/jenkinsci/plugins/workflow/steps/UnstableStep.java#L73

            famod Falko Modler
            famod Falko Modler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: