Package hudson.model

Examples of hudson.model.TaskListener.error()


            @Override public void onFailure(Throwable t) {
                try {
                    // TODO as in RetryStep, we cannot actually print the error message here
                    TaskListener listener = context.get(TaskListener.class);
                    if (t instanceof AbortException) {
                        listener.error(t.getMessage());
                    } else {
                        t.printStackTrace(listener.getLogger());
                    }
                    context.get(Run.class).setResult(Result.FAILURE);
                    context.onSuccess(null);
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.