← All Categories
πŸ”„

DevOps & CI/CD Cron Expressions

Essential cron expressions for DevOps pipelines and CI/CD automation. Jenkins nightly builds, Docker cleanup, Terraform drift detection, Ansible patching, and more.

Featured Patterns

0 2 * * 1-5
Jenkins Nightly Build β€” Weeknights at 2 AM
Jenkins pipeline triggered every weeknight at 2:00 AM for nightly build and integration test runs. Configure in Jenkinsfile with 'triggers { cron("0 2 * * 1-5") }'. Avoids weekend builds to save resources.
Jenkins nightly integration testsWeeknight build verification
0 3 * * 0
Docker Image Cleanup β€” Weekly Sunday 3 AM
Docker image and container cleanup job every Sunday at 3:00 AM. Runs 'docker image prune', 'docker container prune', and 'docker volume prune' to reclaim disk space on build servers and registries.
docker image prune weeklyContainer registry cleanup
0 6 * * 1-5
Terraform Drift Detection β€” Weekdays 6 AM
Terraform plan runs every weekday morning at 6:00 AM to detect infrastructure drift before the workday begins. Alerts teams to unauthorized manual changes, failed applies, or configuration inconsistencies.
Terraform plan drift detectionIaC compliance check weekdays
0 2 * * 0
Ansible Weekly Patch Run β€” Sunday 2 AM
Ansible playbook scheduled every Sunday at 2:00 AM for weekly server patching, package updates, and configuration management. Low-traffic window ensures minimal user impact during maintenance.
Ansible OS patching SundayPackage update playbook weekly
0 * * * *
Every Hour (at :00)
Runs once at the top of every hour (:00), 24 times per day. The standard hourly cron schedule.
Hourly reportsCache invalidation
0 0 * * *
Daily at Midnight (00:00)
Runs once per day at midnight UTC. The most common daily cron schedule.
Nightly database backupsDaily report generation
*/5 * * * *
Every 5 Minutes
Runs every 5 minutes, 288 times per day. One of the most popular cron schedules for frequent background jobs.
Health checksCache refresh
*/15 * * * *
Every 15 Minutes
Runs every 15 minutes (at :00, :15, :30, :45), 96 times per day. Common for lightweight periodic tasks.
Email digest processingPeriodic data sync
0 0 * * 0
Log Rotation β€” Every Sunday at Midnight
Triggers log rotation and archival every Sunday at midnight. A weekly maintenance cron for compressing old log files, rotating application logs, and archiving server access logs before the new week.
Weekly log rotationSunday log archival

Related Patterns