Automate schedule of the pipeline based on the timer.

46 views
Skip to first unread message

Rajshri Baghel

unread,
Jun 19, 2019, 1:26:13 AM6/19/19
to go...@googlegroups.com
Hi,

I am trying to automate the build of the pipeline to run like a cron job in every certain interval.
Our GOCD instance is setup in a way that we have to do configurations via yml files and not directly via UI.
I tried few things in yml for scheduling a timed build but it doesn't seem to work.

Can you please provide documentation with example for setting timer in the gocd yml?

Regards,
Rajshri 

Ganesh Patil

unread,
Jun 19, 2019, 1:43:34 AM6/19/19
to go...@googlegroups.com
Hi Rajshri,

You can find more information about timer triggered pipelines here.
The format for specifying the cron expression is mentioned here.
The syntax for defining timer configuration in the GoCD YAML pipeline is documented here.
And, Here is an example of a timer triggered pipeline.

Let us know if the above resources help!!

Thanks,
Ganesh


--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAONF_r5O4YDphSwGd%2BEdj1MOeYmicAM2bR681k0BgEZMSRwRKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Rajshri Baghel

unread,
Jun 19, 2019, 4:27:38 AM6/19/19
to go...@googlegroups.com
Hi Ganesh,

Thanks for the reply. We also followed the same docs.
One question, what time zone these builds are triggered? The pipeline trigger did not happen at the time I had given in yml but at a different time.

Regards,
Rajshri 



Ketan Padegaonkar

unread,
Jun 19, 2019, 4:34:41 AM6/19/19
to go...@googlegroups.com
Since the configuration is evaluated on the GoCD server, the timezone used will be that of the server.

- Ketan



Reply all
Reply to author
Forward
0 new messages