[JIRA] (JENKINS-43020) Unable to stop multi-branch pipeline build

2017-03-22 Thread omer.van.kloe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Omer van Kloeten updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-43020  
 
 
  Unable to stop multi-branch pipeline build   
 

  
 
 
 
 

 
Change By: 
 Omer van Kloeten  
 

  
 
 
 
 

 
 When trying to stop a multibranch pipeline build, I get the following error:{{POST is required for org.jenkinsci.plugins.workflow.job.WorkflowRun.doStop}}This error is followed by a button marked "Try POSTing" which goes to an error page (403, missing crumb).The workaround is going to the Script Console and running:{{Jenkins.instance}}{{    .getItemByFullName("")}}{{    .getBranch("")}}{{    .getBuildByNumber()}}{{    .finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));}}But this is incredibly hacky and leaves the workflow view for the build in a state of "in progress" even though the build is no longer running. Also, on the next restart of the Jenkins server, the build will resume running.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the 

[JIRA] (JENKINS-43020) Unable to stop multi-branch pipeline build

2017-03-22 Thread omer.van.kloe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Omer van Kloeten updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-43020  
 
 
  Unable to stop multi-branch pipeline build   
 

  
 
 
 
 

 
Change By: 
 Omer van Kloeten  
 
 
Environment: 
 Jenkins ver. 2.32.3Pipeline: Multibranch plugin ver. 2.14  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-43020) Unable to stop multi-branch pipeline build

2017-03-22 Thread omer.van.kloe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Omer van Kloeten updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-43020  
 
 
  Unable to stop multi-branch pipeline build   
 

  
 
 
 
 

 
Change By: 
 Omer van Kloeten  
 
 
Priority: 
 Critical Major  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-43020) Unable to stop multi-branch pipeline build

2017-03-22 Thread omer.van.kloe...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Omer van Kloeten created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-43020  
 
 
  Unable to stop multi-branch pipeline build   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 workflow-multibranch-plugin  
 
 
Created: 
 2017/Mar/22 7:39 AM  
 
 
Priority: 
  Critical  
 
 
Reporter: 
 Omer van Kloeten  
 

  
 
 
 
 

 
 When trying to stop a multibranch pipeline build, I get the following error: POST is required for org.jenkinsci.plugins.workflow.job.WorkflowRun.doStop This error is followed by a button marked "Try POSTing" which goes to an error page (403, missing crumb). The workaround is going to the Script Console and running: Jenkins.instance     .getItemByFullName("")     .getBranch("")     .getBuildByNumber()     .finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build")); But this is incredibly hacky and leaves the workflow view for the build in a state of "in progress" even though the build is no longer running.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment