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