Package hudson.model

Examples of hudson.model.Executor.recordCauseOfInterruption()


            try {
                return p.getExecutionStrategy().run(MatrixBuild.this, aggregators, listener);
            } catch( InterruptedException e ) {
                logger.println("Aborted");
                Executor x = Executor.currentExecutor();
                x.recordCauseOfInterruption(MatrixBuild.this, listener);
                return x.abortResult();
            } catch (AbortException e) {
                logger.println(e.getMessage());
                return Result.FAILURE;
            } finally {
View Full Code Here


                    listener.error(error);
                }
                return Result.FAILURE;
            }catch (InterruptedException e) {
                Executor x = Executor.currentExecutor();
                x.recordCauseOfInterruption(DynamicBuild.this, listener);
                return x.abortResult();
            }catch (Exception e) {
                PrintStream logger = listener.getLogger();
                logger.println(e.getMessage());
                logger.println(ExceptionUtils.getStackTrace(e));
View Full Code Here

            }catch (Exception e) {
                PrintStream logger = listener.getLogger();
                logger.println(e.getMessage());
                logger.println(ExceptionUtils.getStackTrace(e));
                Executor x = Executor.currentExecutor();
                x.recordCauseOfInterruption(DynamicBuild.this, listener);
                x.doStop();
                return Result.FAILURE;
            } finally {
                if (buildEnvironment.tearDownBuildEnvironments(listener)) {
                    return Result.FAILURE;
View Full Code Here

                                try {
                                    runningTasks.wait();
                                } catch (InterruptedException x) {
                                    // Jenkins is shutting down or this task was interrupted (Executor.doStop)
                                    // TODO if the latter, we would like an API to StepExecution.stop the tip of our body
                                    exec.recordCauseOfInterruption(r, listener);
                                }
                            }
                        }
                    } finally {
                        try {
View Full Code Here

                    } catch (Exception x2) {
                        LOGGER.log(Level.WARNING, null, x2);
                    }
                    Executor exec = Executor.currentExecutor();
                    if (exec != null) {
                        exec.recordCauseOfInterruption(this, listener);
                    }
                }
                copyLogs();
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.