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

Custom type configuration does not pick up "Stop Processing If Error" flag

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Steps to reproduce:

      1. Create a new project / open existing project
      2. Add Xunit build step (Publish testing tools result report )
      3. Ensure the Custom Tool option is selected
      4. Uncheck Stop and set the build to 'failed' status if there are errors when processing a result file
      5. Press save
      6. Re-open configuration settings
      7. Stop and set the build to 'failed' status if there are errors when processing a result file will still be enabled

      Expected behaviour:
      Stop and set the build to 'failed' status if there are errors when processing a result file is disabled

      Solution: Add stopProcessingIfError to CustomType Constructor in com.thalesgroup.hudson.plugins.xunit.types.CustomType.java
      IE:

      @DataBoundConstructor
          @SuppressWarnings("unused")
          public CustomType(String pattern, String customXSL, boolean faildedIfNotNew, boolean deleteOutputFiles, boolean stopProcessingIfError) {
              super(pattern, faildedIfNotNew, deleteOutputFiles, stopProcessingIfError);
              this.customXSL = customXSL;
          }
      

        Attachments

          Activity

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              dthomson86 Dustin Thomson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: