Cron trigger does not kick in

Hi,

Thanks for the help so far guys. I’m stuck at another one.

I’ve set up a cron job named ‘daily’ using drone cli say with cron expression: “0 30 13 * * ?” in GMT timezone. This cron is under repository/my-project. I’ve specified the trigger in the my-project under trigger entry in .drone.yml.

But the trigger does not kick at the specified time. Any idea of what could be wrong?

If I remove the cron trigger from .drone.yml immediate push kicks off the build.

kind: pipeline
name: default

platform:
os: linux
arch: amd64

clone:
disable: true

steps:

volumes:

  • name: docker_socket
    host:
    path: /var/run/docker.sock

trigger:
event:

  • cron
    cron:
  • daily

@manivannan_v,

Could you please confirm if you are using cloud drone or self hosted drone setup, If its self hosted drone setup please share the debug server logs for our analysis.

Thanks for the response.

Sorry, I should have updated earlier. I had not given the branch name while creating a cron trigger. Once I recreated the cron with branch name it started working as I expected.