示例#1
0
 @Override
 public boolean perform(
     final AbstractBuild<?, ?> build, Launcher launcher, final BuildListener listener)
     throws InterruptedException, IOException {
   XUnitProcessor xUnitProcessor =
       new XUnitProcessor(
           getTypes(), getThresholds(), getThresholdMode(), getExtraConfiguration());
   return xUnitProcessor.performXUnit(false, build, listener);
 }
示例#2
0
 public boolean performDryRun(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener)
     throws InterruptedException, IOException {
   try {
     XUnitProcessor xUnitProcessor =
         new XUnitProcessor(
             getTypes(), getThresholds(), getThresholdMode(), getExtraConfiguration());
     xUnitProcessor.performXUnit(true, build, listener);
   } catch (Throwable t) {
     listener.getLogger().println("[ERROR] - There is an error: " + t.getCause().getMessage());
   }
   // Always exit on success (returned code and status)
   build.setResult(Result.SUCCESS);
   return true;
 }