Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public HttpResponse doComplete() throws IOException {
   System.out.println("JenkowWorkflowRun.doComplete");
   markCompleted(Result.SUCCESS);
   return HttpResponses.redirectToDot();
 }