use the input step 
<https://jenkins.io/doc/pipeline/steps/pipeline-input-step/>, like this:

        timeout(time: 5, unit: 'DAYS') {
            input message: 'Approve deployment?'
        }


it's helpful to wrap it in a timeout, so eventually the pipeline will stop 
(fail) if no one approves it.

On Thursday, May 11, 2017 at 10:58:26 AM UTC-4, Thiago Carvalho Davila 
wrote:
>
> Hello,
>
> I am migrating my old pipelines to pipeline as code of Jenkins2. I've been 
> strugling to make manual step stages like stage('Deploy-Production'){}. It 
> is autoexecuted if I just put it in the pipeline{}.
>
> What is the best practice here? Is there native support to manual step?
>
> Thanks,
>
> Thiago
> -
>
>
> "Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), 
> empresa pública federal regida pelo disposto na Lei Federal nº 5.615, é 
> enviada exclusivamente a seu destinatário e pode conter informações 
> confidenciais, protegidas por sigilo profissional. Sua utilização 
> desautorizada é ilegal e sujeita o infrator às penas da lei. Se você a 
> recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente, 
> esclarecendo o equívoco."
>
> "This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a 
> government company established under Brazilian law (5.615/70) -- is 
> directed exclusively to its addressee and may contain confidential data, 
> protected under professional secrecy rules. Its unauthorized use is illegal 
> and may subject the transgressor to the law's penalties. If you're not the 
> addressee, please send it back, elucidating the failure."
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ee9fa059-1854-4ee8-9d00-d51b8501916a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to