[JIRA] (JENKINS-48379) Input/parameters for Stages

2019-10-22 Thread bitwise...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Liam Newman closed an issue as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Bulk closing resolved issues.   
 

  
 
 
 
 

 
 Jenkins /  JENKINS-48379  
 
 
  Input/parameters for Stages   
 

  
 
 
 
 

 
Change By: 
 Liam Newman  
 
 
Status: 
 Resolved Closed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.186974.1512442925000.17073.1571801060568%40Atlassian.JIRA.


[JIRA] (JENKINS-48379) Input/parameters for Stages

2018-04-12 Thread mne...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Neale commented on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 Torsten Kleiber oh just mean that the docs website would ideally cover this feature (if it doesn't already) - nothing more than that.   
 

  
 
 
 
 

 
 
 

 
 
 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-48379) Input/parameters for Stages

2018-04-11 Thread torsten.klei...@ikb.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Torsten Kleiber commented on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 Don't understand - what do you mean by this?  
 

  
 
 
 
 

 
 
 

 
 
 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-48379) Input/parameters for Stages

2018-04-11 Thread mne...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Neale commented on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 nice - Torsten Kleiber should add this to docs!  
 

  
 
 
 
 

 
 
 

 
 
 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-48379) Input/parameters for Stages

2018-04-11 Thread rmpest...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rafael Pestano commented on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 Just tested and is working great: 

 

pipeline {

 agent none

 stages {

stage("deploy to production ") {
options {
timeout(time: 1, unit: 'DAYS')
}
input {
message "Approve deploy?"
ok "Yes"
}
agent  any //must be declared after input directive
steps {
  deploy env: 'PRODUCTION' 
}
}

   }//end stages

   post {
always {
 node('master') { //important because the pipeline agent is none and some plugins may need to access the workspace
 lastChanges()
 }
}
}  

} //end pipeline
 

  
 

  
 
 
 
 

 
 
 

 
 
 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-48379) Input/parameters for Stages

2018-04-11 Thread torsten.klei...@ikb.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Torsten Kleiber commented on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 Thanks I have bookmarked this, but not read before. Stage timeouts seems 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-48379) Input/parameters for Stages

2018-04-11 Thread rmpest...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rafael Pestano commented on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 Hi Torsten Kleiber, I haven't tried but last version of declarative pipeline (1.2.8) states it supports input and timeout outside steps, see here: https://jenkins.io/blog/2018/04/09/whats-in-declarative/ 

Lastly, you can use timeout in the stage options, as mentioned above, to time-out the input if too much time has passed without a response.
  
 

  
 
 
 
 

 
 
 

 
 
 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-48379) Input/parameters for Stages

2018-04-11 Thread torsten.klei...@ikb.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Torsten Kleiber edited a comment on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 But when I need a timeout around the input step,  I must use this inside step and  the executor is blocked again.  So we need timeout too in stage. My requirement is, that when a deployment is not proceeded in a defined time, the the pipeline has to be cancelled.  
 

  
 
 
 
 

 
 
 

 
 
 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-48379) Input/parameters for Stages

2018-04-11 Thread torsten.klei...@ikb.de (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Torsten Kleiber commented on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 But when I need a timeout around the input step, the executor is blocked again. My requirement is, that when a deployment is not proceeded in a defined time, the the pipeline has to be cancelled.  
 

  
 
 
 
 

 
 
 

 
 
 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-48379) Input/parameters for Stages

2018-03-26 Thread rmpest...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rafael Pestano edited a comment on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 Alright, got it working, the pipeline must run with agent 'none' and then each stage must declare it's agent:{noformat}pipeline { agent none //importanttools { maven 'Maven 3.3.9' jdk 'jdk1.8' }stages {stage("Build") { agent anysteps {sh 'mvn clean package'}}  stage("Ir para produção?") {input {message "Aprovar o deploy?"ok "Sim"}agent  any //must be declared after input directivesteps {  deploy ambiente: 'DES-7.0', grupo: 'APM' }}  }//end stages  }  {noformat}   
 

  
 
 
 
 

 
 
 

 
 
 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-48379) Input/parameters for Stages

2018-03-26 Thread rmpest...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rafael Pestano edited a comment on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 Alright, got it working, the pipeline must run with agent 'none' and then each stage must declare it's agent:  {noformat}pipeline { agent none  //important tools { maven 'Maven 3.3.9' jdk 'jdk1.8' }stages {stage("Build") { agent  {  any  label 'master'} steps {sh 'mvn clean package'}}  stage("Ir para produção?") {input {message "Aprovar o deploy?"ok "Sim"}agent  {   any //must be declared after input directive  label 'master'} steps {  deploy ambiente: 'DES-7.0', grupo: 'APM' }}         }// fim end  stages  }  {noformat}   
 

  
 
 
 
 

 
 
 

 
 
 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-48379) Input/parameters for Stages

2018-03-26 Thread rmpest...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rafael Pestano commented on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 Alright, got it working, the pipeline must run with agent 'none' and then each stage must declare it's agent: 

 
pipeline { 
agent none
tools { 
maven 'Maven 3.3.9' 
jdk 'jdk1.8' 
}

stages {
stage("Build") {
 agent {
label 'master'
}
steps {
sh 'mvn clean package'
}
}  
stage("Ir para produção?") {
input {
message "Aprovar o deploy?"
ok "Sim"
}
agent {
label 'master'
}
steps {
  deploy ambiente: 'DES-7.0', grupo: 'APM' 
}
}


   }//fim stages  
}  
 

  
 

  
 
 
 
 

 
 
 

 
 
 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-48379) Input/parameters for Stages

2018-03-26 Thread rmpest...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rafael Pestano edited a comment on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 Hi guys, I'm using pipeline decçarative (and pipeline model api) v1.2.7 and am using the input directive on a stage like below:{noformat}pipeline { agent anytools { maven 'Maven 3.3.9' jdk 'jdk1.8' }stages {stage("Build") {steps {sh 'mvn clean package'}}  stage("Ir para produção?") {input {message "Aprovar o deploy?"ok "Sim"}agent {label 'master'}steps {deploy ambiente: 'DES-7.0', grupo: 'APM'}}   }//fim stages  }  {noformat}but a Jenkins executor is being alocated. I thought this issue would fix this.  IOn In  image "agent-blocked.png" attached you can see a job queued (waiting for executor) and one executing the pipeline above (waiting for manual approval). !agent-blocked.png|thumbnail! Jenkins v2.89.3Pipeline declarative v1.2.7  
 

  
 
 
 
 

 
 
 

 
 
 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-48379) Input/parameters for Stages

2018-03-26 Thread rmpest...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rafael Pestano commented on  JENKINS-48379  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Input/parameters for Stages   
 

  
 
 
 
 

 
 Hi guys, I'm using pipeline decçarative (and pipeline model api) v1.2.7 and am using the input directive on a stage like below: 

 
pipeline { 
agent any
tools { 
maven 'Maven 3.3.9' 
jdk 'jdk1.8' 
}

stages {
stage("Build") {
steps {
sh 'mvn clean package'
}
}  

stage("Ir para produção?") {
input {
message "Aprovar o deploy?"
ok "Sim"
}
agent {
label 'master'
}
steps {
deploy ambiente: 'DES-7.0', grupo: 'APM'
}
}


   }//fim stages  
}   

 but a Jenkins executor is being alocated. I thought this issue would fix this.  IOn image "agent-blocked.png" attached you can see a job queued (waiting for executor) and one executing the pipeline above (waiting for manual approval).   Jenkins v2.89.3 Pipeline declarative v1.2.7  
 

  
 
 
 
 

 
 
 

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

[JIRA] (JENKINS-48379) Input/parameters for Stages

2018-03-26 Thread rmpest...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rafael Pestano updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-48379  
 
 
  Input/parameters for Stages   
 

  
 
 
 
 

 
Change By: 
 Rafael Pestano  
 
 
Attachment: 
 agent-blocked.png  
 

  
 
 
 
 

 
 
 

 
 
 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.