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

JunitTestsPublisher: Also set stage result

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: