Package hudson

Examples of hudson.AbortException


      TestResult result = parse(testResults, build, launcher, listener);

      try {
        action = new TestResultAction(build, result, listener);
      } catch (NullPointerException npe) {
        throw new AbortException(Messages.JUnitResultArchiver_BadXML(testResults));
      }
            result.freeze(action);
      if (result.getPassCount() == 0 && result.getFailCount() == 0)
        throw new AbortException(Messages.JUnitResultArchiver_ResultIsEmpty());

            // TODO: Move into JUnitParser [BUG 3123310]
      List<Data> data = new ArrayList<Data>();
      if (testDataPublishers != null) {
        for (TestDataPublisher tdp : testDataPublishers) {
View Full Code Here


        if(!parsed) {
            long localTime = System.currentTimeMillis();
            if(localTime < buildTime-1000) /*margin*/
                // build time is in the the future. clock on this slave must be running behind
                throw new AbortException(
                    "Clock on this slave is out of sync with the master, and therefore \n" +
                    "I can't figure out what test results are new and what are old.\n" +
                    "Please keep the slave clock in sync with the master.");

            File f = new File(baseDir,includedFiles[0]);
            throw new AbortException(
                String.format(
                "Test reports were found but none of them are new. Did tests run? \n"+
                "For example, %s is %s old\n", f,
                Util.getTimeSpanString(buildTime-f.lastModified())));
        }
View Full Code Here

     *      All the other exceptions cause the stack trace to be dumped, and then
     *      the command exits with an error code.
     * @since 1.334
     */
    public ParameterValue createValue(CLICommand command, String value) throws IOException, InterruptedException {
        throw new AbortException("CLI parameter submission is not supported for the "+getClass()+" type. Please file a bug report for this");
    }
View Full Code Here

        throws IOException, InterruptedException {
        //doing this in the method onStarted would make more sense but you are not allowed to fail a build
        //at that point. This method is the first one called that we can fail the build.
        ReplicationFailedAction replicationFailedAction = build.getAction(ReplicationFailedAction.class);
        if (replicationFailedAction != null) {
            throw new AbortException(replicationFailedAction.getReason());
        }
        return super.setUpEnvironment(build, launcher, listener);
    }
View Full Code Here

TOP

Related Classes of hudson.AbortException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.