Published October 21, 2026
How to Monitor Jenkins Pipeline Schedules
A Jenkins Pipeline can re-trigger itself on a cron. triggers { cron('...') } is that schedule. The build list shows runs that were created. A cron line that never re-triggers the Pipeline leaves no new run, and a run that is still waiting on an agent has not executed its steps. A ping after the work is the alert for that silence.
The schedule facts below are from the Jenkins Pipeline docs. A Linux crontab on a machine you run is crontab not running. The CI siblings are GitHub Actions scheduled workflows, GitLab scheduled pipelines, and CircleCI scheduled pipelines. The general pattern is how to monitor cron jobs.
Five fields, and the H hash
Jenkins cron syntax is five fields, separated by a tab or spaces:
MINUTE HOUR DOM MONTH DOW
Minute is 0–59. Hour is 0–23. Day of month is 1–31. Month is 1–12. Day of week is 0–7, and both 0 and 7 are Sunday. To put several values in one field, in precedence order: * is every valid value, M-N is a range, M-N/X or */X steps by X, and A,B lists values.
0 0 * * * is midnight. The cron syntax docs use that as the warning: a dozen daily jobs set to 0 0 * * * spike together at midnight. H H * * * still runs each job once a day, and not all at the same minute, which spreads the load. H is the hash token. It looks random, and it is not a random function. It is a hash of the job name, so the chosen value stays put for a given project.
H can sit in a range. H H(0-7) * * * means some time between 12:00 AM and 7:59 AM. You can also step with H. The docs' example H/15 * * * * is every fifteen minutes, perhaps at :07, :22, :37, and :52. H(0-29)/10 * * * * is every ten minutes in the first half of the hour. The triggers example H */4 * * 1-5 is a hashed minute, every four hours, on Monday through Friday (day of week 1–5).
Day of month is the field that breaks short cycles. */3 runs on the 1st, the 4th, and so on through the 31st of a long month, then again on the next day of the next month. Hashes in that field are chosen in the 1–28 range, so H/3 can leave a gap of 3 to 6 days at the end of a month. A check that assumes a steady 3-day gap will go late there even though Jenkins is following its own rule.
Empty lines and lines that start with # are comments. The declarative examples are a single string, such as triggers { cron('H */4 * * 1-5') }. cron is allowed once, inside the pipeline block. The other triggers on that directive are pollSCM and upstream. pollSCM uses a cron-style string too, and it re-triggers the Pipeline only when new source changes exist. A poll that finds nothing does not start a build. cron re-triggers on the interval itself.
@yearly, @annually, @monthly, @weekly, @daily, @midnight, and @hourly are aliases, and they use the hash system. @hourly is the same as H * * * * and can mean any time during the hour. @midnight means some time between 12:00 AM and 2:59 AM. The syntax section does not spell out the other aliases beyond that they hash.
Sunday is 0 or 7 on that day field. CronNudge treats Sunday as 0 or 7, so 0 and 7 are Sunday on both sides.
The cron syntax section does not define a timezone field on cron(). Build times in the UI follow the zone Jenkins is displaying, and a user can set a different zone from the system default. The system information page shows user.timezone. The check's timezone has to be an IANA name. An interval does not use a zone: it counts from the last success. A cron expression uses the next occurrence in the zone you set, then adds grace. Copy an hour into the check only with the IANA name of the clock you read it from. The cron expression examples and the cron tool use the same five fields. Leave Jenkins H off the check. The parser accepts the character, stores the string, and picks a new value every time it calculates the next run. That value is not the hash of the Jenkins job name. Jenkins aliases are a different trap: @hourly on the check means minute 0 of every hour, @daily on the check means midnight, and @midnight does not parse.
* * * * * is every minute. It is valid Jenkins cron, and it is not a Free check. Free's shortest interval is 5 minutes. Pro's is 1 minute. The form's interval list starts at 5 minutes, so a 1-minute schedule is a cron expression.
A cron line only schedules a build
cron defines the interval at which the Pipeline should be re-triggered. The steps run later, on an agent, and only if the stage is not skipped. Several documented cases leave a run that has not pinged, or no run at all.
agent any executes on any available agent. With the agent at the top of the Pipeline, Jenkins allocates it and then starts the timeout option. The time spent waiting for that agent is outside the timeout. With the agent on a stage, stage options run before the agent is allocated, so a stage timeout includes that wait. The docs say the Pipeline may fail when agent allocation is delayed in that case. A sh step, including a ping, runs on the agent. A build that has not entered an agent has not pinged.
when { triggeredBy 'TimerTrigger' } runs the stage only when the current build was triggered that way. The same condition accepts SCMTrigger, BuildUpstreamCause, and a user id cause. If the condition is false, the stage's steps do not run, so a ping inside that stage does not run either. By default when is evaluated after the stage agent is entered. beforeAgent true evaluates when first and enters the agent only when the condition is true. not { triggeredBy 'TimerTrigger' } is the opposite test: the timer build skips that stage.
options { quietPeriod(30) } sets the quiet period for the Pipeline, in seconds, overriding the global default. The system configuration page describes that period as a delay before a build starts after a change is detected, so closely spaced changes can share one build. A build that has not started has not run steps or post.
options { disableConcurrentBuilds() } queues a new build when one is already executing. disableConcurrentBuilds(abortPrevious: true) aborts the running build and starts the new one. A queued build has not reached its ping step. post { aborted } runs when the run's status is aborted, which the docs describe as usually a manual abort. post { success } does not run for that status.
options { timeout(time: 1, unit: 'HOURS') } aborts the Pipeline when the period elapses. The top-level timer starts after the agent is allocated. options { retry(3) } runs the Pipeline again after a failure. When run tracking is on, a later /start while an earlier run is still open is an overlap alert.
options { buildDiscarder(logRotator(numToKeepStr: '1')) } keeps artifacts and console output for that many recent runs. The Jenkinsfile docs say a finished run has its console output in Jenkins. Build records are stored on the controller, under JENKINS_HOME. That output is not an email. The Jenkinsfile failure example sends mail by adding a mail step inside post { failure }, and that step runs only when the failure condition runs. A cron minute that never re-triggers the Pipeline has no run, no console output, and no post block.
CronNudge does not call the Jenkins API, cannot read build status, and cannot trigger or retry a build. It only knows about pings it receives.
Ping after the work succeeds
The success URL is https://cronnudge.com/ping/YOUR_ID. GET, POST, and HEAD all count. A stored ping answers ok with Cache-Control: no-store. YOUR_ID is the ping id, not the badge id. Anyone with that URL can send a ping, so keep it in Jenkins credentials. Keep CRONNUDGE_URL free of a query string and of /start or /fail.
credentials() inside environment binds a secret-text credential to a variable. The id has to be one configured in Jenkins. If the Pipeline prints the value, Jenkins shows **** in the console. That reduces accidental exposure. It does not stop the value being read another way.
sh runs a Bourne shell on a Unix node, with -xe unless you turn those flags off. A nonzero status fails the step. Groovy must not expand the credential. A double-quoted Groovy string copies the secret into the command before it reaches the agent. Pass a literal script and let the shell read $CRONNUDGE_URL. -f fails on an HTTP error, -sS is quiet unless curl fails, -m 10 caps the wait at 10 seconds, and --retry 3 retries transport failures. The Windows step is bat, with the same nonzero-status rule. This sample is sh.
A failing sh stops later steps in the stage. This stage pings only after ./do-the-work exits 0:
pipeline {
agent any
triggers {
cron('H/15 * * * *')
}
environment {
CRONNUDGE_URL = credentials('cronnudge-url')
}
stages {
stage('Work') {
steps {
sh './do-the-work'
sh 'curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL"'
}
}
}
}
If curl then fails, the stage fails too. Append || true when a monitoring hiccup should leave the build green. The Jenkinsfile docs use that pattern so sh still sees a zero status. The ping is still missed, and the check alerts after grace.
post { failure } and post { success }
post runs when the Pipeline or the stage finishes. failure runs for a failed status. success runs for a success status. unstable is a separate status, usually tests, and failure does not run for it. always runs regardless of status. The blocks run in a fixed order, and always is before success and failure. Use one ping path. A success step plus post { success } reports the same success twice.
post {
success {
sh 'curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL" || true'
}
failure {
sh 'curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL/fail" || true'
}
}
/fail marks the check down immediately when it was not already down. A paused check stores the ping and does not alert. A second failure while the check is already down does not send another alert. One alert when it goes down, and one when a later success recovers it.
Pass the exit code
?exit= accepts an integer from 0 to 255. 0 is a success. 1 through 255 is a failure: the check is marked down immediately when it was not already down. Anything else is ignored, and the ping stays a success. sh with returnStatus: true returns the status instead of failing the step. The script step is the declarative place for that. Keep the URL in a single-quoted script so Groovy does not expand the credential, and append the number in Groovy. Then fail the build yourself when the code is not 0, or Jenkins will show the stage as successful. Use this or /fail, not both.
stage('Work') {
steps {
script {
def code = sh(script: './do-the-work', returnStatus: true)
sh 'curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL?exit=' + code + '" || true'
if (code != 0) {
sh 'exit ' + code
}
}
}
}
post { always } can branch on currentBuild.result. The Jenkinsfile docs treat null or SUCCESS as the path with no test failure, and they name UNSTABLE as the value when tests failed. This block sends /fail for that UNSTABLE value as well. It is a different path from post { failure }, which does not run for unstable. Use this block or the success and failure blocks, not both.
post {
always {
script {
if (currentBuild.result == null || currentBuild.result == 'SUCCESS') {
sh 'curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL" || true'
} else {
sh 'curl -fsS -m 10 --retry 3 "$CRONNUDGE_URL/fail" || true'
}
}
}
}
A build that never starts never reaches post. The missed success ping is the alert after grace.
/start and a max runtime
/start records a start. It is not a success. Turn on "Track start and finish," or set Max runtime (seconds), which turns run tracking on. A second /start while a run is open is an overlap alert and does not close the first run. A success or /fail closes the open runs. Two success pings alone do not raise an overlap alert.
Max runtime is 1 second through 7 days. With a run open and a max runtime set, the deadline becomes that start plus the max runtime. It is not the earlier of that and the schedule. No finish means one stuck alert, once for that start, and the check goes down. A later success is the recovery. With run tracking and no max runtime, an open run is due at the earlier of the schedule deadline and the start plus grace. The grace used for that run is at least 60 seconds. The alert is down, not stuck. A cron line that never starts a build never calls /start, so it cannot go stuck. Silence until the schedule deadline is the alert. Free includes run tracking on 3 checks. Pro removes that cap. Details are in assertions, runs, and agents.
stage('Work') {
steps {
sh 'curl -fsS -m 10 --retry 3 -H "Idempotency-Key: $BUILD_TAG-start" "$CRONNUDGE_URL/start" || true'
sh './do-the-work'
sh 'curl -fsS -m 10 --retry 3 -H "Idempotency-Key: $BUILD_TAG-finish" "$CRONNUDGE_URL"'
}
}
|| true on the start line keeps a failed curl from skipping the work. --retry can deliver /start twice when the first request was stored and the response was lost, and that second start is an overlap alert. BUILD_TAG is the documented build id, jenkins-${JOB_NAME}-${BUILD_NUMBER}, and sh 'printenv' shows the variables the shell can read. An Idempotency-Key makes the retry a replay. The key is cut at 128 characters and matched per check, so the finish ping needs its own key.
Set max runtime a little past the longest healthy run, and shorter than the Pipeline timeout when you want the stuck alert before Jenkins aborts the run. Hangs are in cron job stuck or hanging.
Match the check to the cron
Do not save Jenkins H on the check. The parser accepts it and then replaces H with a new random value on every deadline calculation, so the next run moves. It is not Jenkins' hash of the job name. Use an interval equal to the cadence, or a five-field expression with the minute filled in. Jenkins' hash is stable for the job name, so a run that already happened shows the minute Jenkins picked. Copy that minute once you know which zone the build time was displayed in. Until then, the interval does not need the zone. The cron tool parses once per explanation. With H still in the string, the next explanation picks another minute.
The form's periods are 5 minutes, 15 minutes, 30 minutes, 1 hour, 6 hours, 1 day, and 1 week. Grace is none, 1 minute, 5 minutes (the default), 15 minutes, or 1 hour. Anything else, from the plan minimum up to 31 days for an interval and from 0 through 7 days for grace, is an API value, and the API is on Pro. Creating a check sets the first deadline from that moment. A build you start by hand stores a ping when it reaches the ping step. A stage limited to triggeredBy 'TimerTrigger' does not run on that manual build, so it does not ping. A success then moves the deadline. An interval counts from the last success. A cron expression uses the next occurrence after that success, then adds grace. The cron tool lists those next runs before grace is added.
Every 15 minutes, hashed. Jenkins H/15 * * * *. The docs' picture is perhaps :07, :22, :37, :52, and the minute can be any value in the 15-minute range. Use a 15-minute interval, which is a form period, and a grace that covers how late the success ping is after the previous one. Fifteen minutes of grace covers the spread of a short job inside that cadence: a success at 10:07 is next due at 10:37. The next hashed run is about 15 minutes after the previous trigger, so a ping a few minutes after 10:22 still lands inside 10:37. A job that runs for longer than the grace alerts before the ping. Raise grace. The form stops at 1 hour.
A clock cron of */15 * * * * expects :00, :15, :30, and :45. Fifteen minutes of grace is what covers a success anywhere in that quarter-hour, which is the hash window when you have not seen a build yet. A success at 10:07 is next due at 10:30, because the next quarter-hour is 10:15 and grace adds 15 minutes. The next fire, at 10:22, plus the work, can pass 10:30. The interval matches the cadence more loosely and misses less often. Once a build shows a stable minute, store that minute (7,22,37,52 * * * * if that is what ran) and a shorter grace.
Hourly alias. Jenkins @hourly is H * * * *, any minute in the hour. A 1-hour interval plus 15 minutes of grace is due 75 minutes after the last success. 0 * * * * with 15 minutes of grace does not cover a hash at :40. One hour of grace on 0 * * * * does cover the hour, and the next deadline is the following hour plus that hour of grace, so a miss alerts later than the interval does. Typing @hourly into the check is minute 0 of every hour, which is the fixed schedule, not Jenkins' alias.
Once a day, hashed. H H * * * is once a day at a hashed hour and minute. 0 0 * * * is the midnight pile the docs tell you to avoid, and a check stored as 0 0 * * * with 1 hour of grace only covers the first hour of the day. A 1-day interval plus 1 hour of grace is due 25 hours after the last success, whatever hour the hash picked. @midnight is narrower than H H: some time between 12:00 AM and 2:59 AM. The same 1-day interval matches that cadence. A midnight cron with 1 hour of grace does not cover a run at 2:30. @daily on the check means midnight, and @midnight does not parse, so neither alias belongs in the cron field.
Weekday every four hours. H */4 * * 1-5 hashes the minute and steps the hour. The form has no 4-hour row. Store 0 */4 * * 1-5 only if you also allow the hashed minute: 1 hour of grace covers a ping later in that hour, with the same next-slot arithmetic as the quarter-hour case. Or copy the minute off a build that already ran (38 */4 * * 1-5 if the minute was 38). Day of week 1–5 is Monday through Friday on both sides.
Day of month. H H 1,15 1-11 * is the docs' example for the 1st and the 15th, every month except December, at a hashed hour and minute. Store 0 0 1,15 1-11 * only after you replace H, or use an interval you can defend from the real gap. Do not store a 3-day interval for H/3 on the day-of-month field. The documented end-of-month gap can be 6 days, and the check would alert in between.
Free is 10 checks, a 5-minute minimum interval, email plus one Slack or Discord channel, and run tracking on 3 checks. Pro is $12 a month for 100 checks, a 1-minute minimum, signed webhooks, and the API. Details are on pricing.
FAQ
Does Jenkins tell me when a cron trigger never runs? No. The build list and the console output belong to runs that were created. A cron line that does not re-trigger the Pipeline creates nothing to open. Mail is a step you add, such as mail inside post failure, and it runs only when that post condition runs. A ping after the work is the alert for the run that never called home.
What cron syntax does a Pipeline cron trigger use?
Five fields: minute, hour, day of month, month, and day of week. Day of week is 0 through 7, and 0 and 7 are Sunday. H is a hash of the job name. @hourly is the same as H * * * * and can mean any time during the hour. @midnight is some time between 12:00 AM and 2:59 AM. The syntax section does not define a timezone on cron().
Why use H instead of a fixed midnight, and how do I monitor it?
0 0 * * * runs every such job at midnight. H H * * * still runs once a day, at a stable hashed hour and minute, so the jobs do not all start together. Do not store H on the check. The parser accepts it and picks a new minute every time it calculates the next run, and that minute is not Jenkins' hash of the job name. Use a 1-day interval, or copy the hour and minute from a build that already ran. For H/15 * * * *, use a 15-minute interval plus grace for how late the ping is, or store */15 * * * * with 15 minutes of grace to cover the quarter-hour before you know the hashed minute.
Why did a build exist and still not ping? The cron trigger schedules the build. Steps run after an agent is entered, and a top-level timeout does not include the wait for that agent. A stage whose when condition is false does not run its steps, including a ping. A queued build from disableConcurrentBuilds has not reached the ping step. post runs when the run finishes, so a build that has not finished has not run post.
Does a failed build alert immediately? Only if the ping is sent. A nonzero sh step fails and skips later steps in the stage, so a curl after the work does not run. ?exit= from 1 to 255, or /fail, marks the check down immediately when it was not already down. exit=0 is a success. A value outside 0 to 255 is ignored. post failure does not run for an unstable status. A build that never starts never reaches post, so the missed success ping is the alert after grace.
Can CronNudge read the Jenkins build or start the job? No. It does not call the Jenkins API, read build status, or trigger or retry builds. It only knows about pings it receives. Console output stays with the run in Jenkins. buildDiscarder keeps that output for the number of recent runs you set.
The cron line schedules a build. The build list is the run you go looking for. The ping is how you hear about the run that never called home. Create the check, or read the five fields on the cron tool. Related: how to monitor cron jobs, crontab not running, cron expression examples, GitHub Actions scheduled workflows, GitLab scheduled pipelines, and CircleCI scheduled pipelines.