public HttpResponse doChangeOfflineCause(@QueryParameter String offlineMessage) throws IOException, ServletException { checkPermission(DISCONNECT); offlineMessage = Util.fixEmptyAndTrim(offlineMessage); setTemporarilyOffline( true, OfflineCause.create( hudson.slaves.Messages._SlaveComputer_DisconnectedBy( Jenkins.getAuthentication().getName(), offlineMessage != null ? " : " + offlineMessage : ""))); return HttpResponses.redirectToDot(); }
public HttpResponse doComplete() throws IOException { System.out.println("JenkowWorkflowRun.doComplete"); markCompleted(Result.SUCCESS); return HttpResponses.redirectToDot(); }