[JIRA] (JENKINS-47179) Can't use milestone with parallel stages in Declarative

2019-04-23 Thread a...@brilliant.tech (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ashu Goel commented on  JENKINS-47179  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't use milestone with parallel stages in Declarative   
 

  
 
 
 
 

 
 Any updates on this one? We have a parallel stage in which we deploy multiple services in their own stages. In each stage, we first prompt the user for input and then proceed to deploy. I'd like to be able to stick a milestone between each input and subsequent deploy:   ``` stage("Deploy") {   parallel {     stage("Deploy Service 1") {       steps {         waitUntil {           script  {              input "Want to deploy service 1?"              milestone()              echo "Deploying service 1"           }        }      }     stage("Deploy Service 2") {       steps {         waitUntil {           script  {              input "Want to deploy service 2?"              milestone()              echo "Deploying service 2"           }        }      }   } ```   But am receiving the same "Using a milestone step inside parallel is not allowed" error.    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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-47179) Can't use milestone with parallel stages in Declarative

2019-04-23 Thread a...@brilliant.tech (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ashu Goel edited a comment on  JENKINS-47179  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't use milestone with parallel stages in Declarative   
 

  
 
 
 
 

 
 Any updates on this one? We have a parallel stage in which we deploy multiple services in their own stages. In each stage, we first prompt the user for input and then proceed to deploy. I'd like to be able to stick a milestone between each input and subsequent deploy:  ```    {code:java} stage("Deploy") {    parallel {    stage("Deploy Service 1") {        steps {          waitUntil {            script  {   {              input "Want to deploy service 1?"               milestone()               echo "Deploying service 1"            }         }       }      stage("Deploy Service 2") {        steps {          waitUntil {            script  {   {              input "Want to deploy service 2?"               milestone()               echo "Deploying service 2"            }         }       }    } {code}  ```       But am receiving the same "Using a milestone step inside parallel is not allowed" error.   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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-47179) Can't use milestone with parallel stages in Declarative

2019-03-21 Thread jonathankuleff+jenk...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Kuleff edited a comment on  JENKINS-47179  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't use milestone with parallel stages in Declarative   
 

  
 
 
 
 

 
 Any chance we could do something similar to locks? i.e. ``` {code} stage('Parent')  \ {  options {milestone()  }  stages {stage('first child') {  options  \ {milestone()}  ...}stage('second child') {{   options  \ {milestone()}  ...}  }} ``` {code}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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-47179) Can't use milestone with parallel stages in Declarative

2019-03-21 Thread jonathankuleff+jenk...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Kuleff edited a comment on  JENKINS-47179  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't use milestone with parallel stages in Declarative   
 

  
 
 
 
 

 
 Any chance we could do something similar to locks? i.e. ``` stage('Parent') \{  options {milestone()  }  stages {stage('first child') {  options \{ milestone() }  ...}stage('second child') {   options \{ milestone() }  ...}  }} ```  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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-47179) Can't use milestone with parallel stages in Declarative

2019-03-21 Thread jonathankuleff+jenk...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Kuleff commented on  JENKINS-47179  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't use milestone with parallel stages in Declarative   
 

  
 
 
 
 

 
 Any chance we could do something similar to locks? i.e. stage('Parent') { options  { milestone() }  stages { stage('first child')  { options \{ milestone() }  ... } stage('second child')  { options \{ milestone() }  ... } } }  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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-47179) Can't use milestone with parallel stages in Declarative

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


 
 
 
 

 
 
 

 
   
 Sean MacKay edited a comment on  JENKINS-47179  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't use milestone with parallel stages in Declarative   
 

  
 
 
 
 

 
 I'm just bumping up against this as well. I'm trying to set up deployments in a Declarative Pipeline. Really I just need some logic to go "If `develop`, then `DevServer`, if `release/*` then `stagingServer`. Multiple `when` calls don't work in a stage, so I switch to a `parallel` block where each path has a `when` and only one should ever execute. Putting the `milestone` before `parallel` could work (as long as different branches don't cancel each other), but a milestone in each deployment branch would be more ideal. Is there some other way I could structure my "If this branch deploy here" logic to avoid `parallel` altogether? edit: Just using a `script` step might be the easiest way to do what I need.  
 

  
 
 
 
 

 
 
 

 
 
 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-47179) Can't use milestone with parallel stages in Declarative

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


 
 
 
 

 
 
 

 
   
 Sean MacKay commented on  JENKINS-47179  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't use milestone with parallel stages in Declarative   
 

  
 
 
 
 

 
 I'm just bumping up against this as well. I'm trying to set up deployments in a Declarative Pipeline. Really I just need some logic to go "If `develop`, then `DevServer`, if `release/*` then `stagingServer`. Multiple `when` calls don't work in a stage, so I switch to a `parallel` block where each path has a `when` and only one should ever execute. Putting the `milestone` before `parallel` could work (as long as different branches don't cancel each other), but a milestone in each deployment branch would be more ideal.  Is there some other way I could structure my "If this branch deploy here" logic to avoid `parallel` altogether?  
 

  
 
 
 
 

 
 
 

 
 
 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.