Re: can I run a stage at a certain time within a pipeline

2020-11-06 Thread jesus fernandez
Gracias Victor! El viernes, 30 de octubre de 2020 a las 19:48:15 UTC+1, victormar...@gmail.com escribió: > triggeredBy within the stage context should help you: > https://www.jenkins.io/doc/book/pipeline/syntax/#when > > pipeline { >... >triggers { > cron 'H H22 * * 1-5' >} >

Re: can I run a stage at a certain time within a pipeline

2020-10-30 Thread Victor Martinez
triggeredBy within the stage context should help you: https://www.jenkins.io/doc/book/pipeline/syntax/#when pipeline { ... triggers { cron 'H H22 * * 1-5' } stages { ... stage('deploy') { when { triggeredBy 'TimerTrigger' } ... }

can I run a stage at a certain time within a pipeline

2020-09-26 Thread jesus fernandez
I have a declarative pipeline with 3 stages and it is using poll SCM every 10 minutes (checkout, build and deploy), but I need the last step (deploy) to be executed just once everyday (i.e. 22 o´clock) so it keeps checking out and building everytime a change is submitted but it only deploys onc