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.

Please note: Scheduled workflows will be phased out by the end of 2022.

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.

 

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?
17 out of 34 found this helpful

Comments

0 comments

Article is closed for comments.