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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • xunit-plugin
    • None

      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;
          }
      

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

              Created:
              Updated:
              Resolved: