[JIRA] (JENKINS-27039) Option for input or stage step to cancel older executions

2018-02-16 Thread zeratul...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sean MacKay updated  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-27039  
 
 
  Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
Change By: 
 Sean MacKay  
 
 
Status: 
 Resolved In Review  
 

  
 
 
 
 

 
 
 

 
 
 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-27039) Option for input or stage step to cancel older executions

2017-02-09 Thread mne...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Neale commented on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 Christopher Eck yes there has been some thought on that (cc Patrick Wolf Andrew Bayer) - some alternative way of expressing input. However, there is no getting around if you want to wait for input and not eat a node, you need to do "work" to ensure you stash and unstash things, which can never really be transparent, as magic isn't real. I wish it was.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2017-02-09 Thread chrisl...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Christopher Eck commented on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 This arguably makes the input step dangerous for declarative pipeline users...is there a way to make this experience better for users out of the box?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2017-02-09 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 

such that when commit B gets to the input, commit A is aborted automatically
 This is another possible option for milestone, not currently supported. The initial implementation covers the case that A, B, C, …, M are waiting; when you approve (or reject) A, B…L will be stopped in favor of M, but we are guaranteed to make progress. 

this ends up wasting a lot of nodes as each input step sits on the node it's running on
 Then do not run input inside a node block. See the docs for stash.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2017-02-09 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 

do you mean running PR build in multibranch should abort if new build for same PR is scheduled?
 Not unless you use milestone. What I meant was that 

not cancel any builds for a different PR
 is irrelevant for multibranch folders, since each PR is its own job, and milestone only pays attention to builds of the current job.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2017-02-09 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick resolved as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 See the stock demo for recommended usage, and please do not reopen.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-27039  
 
 
  Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Status: 
 Reopened Resolved  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 

[JIRA] (JENKINS-27039) Option for input or stage step to cancel older executions

2017-02-09 Thread chrisl...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Christopher Eck commented on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 Unless I'm missing something, I don't believe this feature/plugin addresses the original request? Imagine my pipeline looks like: ... milestone 100 input "Should I proceed? milestone 200 ... Commit A for my master branch comes along, the pipeline runs, and I hang waiting on the input. Commit B comes up 30 minutes later, runs through the pipeline, and is now hung waiting on the input. With a busy master branch, this ends up wasting a lot of nodes as each input step sits on the node it's running on. Ideally, I would mark the input with a milestone tag (or something similar) such that when commit B gets to the input, commit A is aborted automatically.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2017-01-18 Thread mne...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Neale reopened an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Re-opening as neither myself or anyone I know has observed this behavior. This may be a bug vs a feature request.  To reproduce: open a PR, let it start building, push an update to the PR, note that there will be 2 concurrent pipeline runs.   
 

  
 
 
 
 

 
 Jenkins /  JENKINS-27039  
 
 
  Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
Change By: 
 Michael Neale  
 
 
Resolution: 
 Fixed  
 
 
Status: 
 Closed Reopened  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins 

[JIRA] (JENKINS-27039) Option for input or stage step to cancel older executions

2017-01-18 Thread mne...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Neale commented on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 Alexander Uvizhev ah I understand you now. I am not sure of an out of the box way to do that. Maybe some plugin contributes that functionality and it does seem like a nice to have feature. It would be possible to script so that when a job starts, if it nows it is a PR, it looks in the history for older running ones and cancels them, but that may be a tad extreme. But possible. Crazier things have been done.  It would be nice if this was just a config option of course, I agree. I never care about older runs of a PR fork or branch.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2017-01-18 Thread uvi...@yandex.ru (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alexander Uvizhev edited a comment on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 [~michaelneale] milestone does not help with this, my builds still run concurrently and none is aborted. For milestone to work newer build should somehow run faster then older one so to pass any of milestones prior. How is this possible at all? The only case I see is when older build is stuck for some reason so new one outrun it and abort it hence. UPD: I understood we speak of different scenarios. In my case there's no input steps, just stages.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2017-01-18 Thread uvi...@yandex.ru (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alexander Uvizhev commented on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 Michael Neale milestone does not help with this, my builds still run concurrently and none is aborted. For milestone to work newer build should somehow run faster then older one so to pass any of milestones prior. How is this possible at all? The only case I see is when older build is stuck for some reason so new one outrun it and abort it hence.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2017-01-17 Thread mne...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Neale commented on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 Alexander Uvizhev I believe you have to use 'milestone' for this to work - once you have it in place, it will cancel older builds, there is no special treatment of PRs though.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2017-01-17 Thread uvi...@yandex.ru (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alexander Uvizhev commented on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 
 

cancel older builds for a specific PR, if more pushed commits triggered a new build? But not cancel any builds for a different PR
 
Automatic if you are using a multibranch project.
 Jesse Glick do you mean running PR build in multibranch should abort if new build for same PR is scheduled? I ask because it does not work for me so I wonder if I understand you right.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2016-09-21 Thread amu...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Antonio Muñiz updated  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Released as pipeline-milestone-step:1.0.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-27039  
 
 
  Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
Change By: 
 Antonio Muñiz  
 
 
Status: 
 In Review Closed  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 

[JIRA] (JENKINS-27039) Option for input or stage step to cancel older executions

2016-09-20 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 Code changed in jenkins User: Antonio Muniz Path: .gitignore pom.xml src/main/java/org/jenkinsci/plugins/pipeline/milestone/CancelledCause.java src/main/java/org/jenkinsci/plugins/pipeline/milestone/Milestone.java src/main/java/org/jenkinsci/plugins/pipeline/milestone/MilestoneAction.java src/main/java/org/jenkinsci/plugins/pipeline/milestone/MilestoneStep.java src/main/java/org/jenkinsci/plugins/pipeline/milestone/MilestoneStepExecution.java src/main/resources/org/jenkinsci/plugins/pipeline/milestone/MilestoneStep/config.jelly src/main/resources/org/jenkinsci/plugins/pipeline/milestone/MilestoneStep/help-label.html src/main/resources/org/jenkinsci/plugins/pipeline/milestone/MilestoneStep/help-ordinal.html src/main/resources/org/jenkinsci/plugins/pipeline/milestone/MilestoneStep/help.html src/test/java/org/jenkinsci/plugins/pipeline/milestone/MilestoneStepTest.java http://jenkins-ci.org/commit/pipeline-milestone-step-plugin/802b46166d6dc80bc211c0d279b0ab2c81cdaea4 Log: Merge pull request #1 from amuniz/JENKINS-27039 JENKINS-27039 New step: milestone Compare: https://github.com/jenkinsci/pipeline-milestone-step-plugin/compare/24aa55cd556c...802b46166d6d  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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 

[JIRA] (JENKINS-27039) Option for input or stage step to cancel older executions

2016-09-17 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
 

cancel older builds for a specific PR, if more pushed commits triggered a new build? But not cancel any builds for a different PR
 Automatic if you are using a multibranch project.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2016-09-17 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick updated  JENKINS-27039  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-27039  
 
 
  Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Status: 
 In  Progress  Review  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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-27039) Option for input or stage step to cancel older executions

2016-08-29 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-27039  
 
 
  Option for input or stage step to cancel older executions   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Component/s: 
 pipeline-milestone-step-plugin  
 
 
Component/s: 
 pipeline-stage-step-plugin  
 
 
Component/s: 
 pipeline  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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.