How to Schedule a Nightly Build

 

Nightly Builds

CircleCI makes it seamless to schedule a nightly build using Cron. You can find an example config and more details on Scheduling a workflow in our docs.

Visit the scheduled pipelines migration guide to find out how to migrate existing scheduled workflows to scheduled pipelines, or to set up scheduled pipelines from scratch.


The deprecation of the scheduled workflows feature has been postponed. Since the deprecation announcement went live, your feedback and feature requests have been monitored and it is clear there is more work to do in order to improve the existing scheduled pipelines experience, and also make migration easier for all. Updates on a new deprecation timeline will be announced here and on CircleCI Discuss.

Nightly Example

workflows:
version: 2
commit:
jobs:
- test
- deploy
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- main
- beta
jobs:
- coverage

 

Additionally, you can use the crontab guru to generate cron schedule expressions.

 

Additional Resources

Was this article helpful?
19 out of 41 found this helpful

Comments

0 comments

Article is closed for comments.