Jenkins build alerts on your phone
July 23, 2026 · 3 min read
Jenkins has a plugin for everything, but for phone pushes you don't need one: the pipeline's post section and one curl line do it – with the job name and build URL right in the notification.
Declarative pipeline
Create a “Jenkins” endpoint in the Webhooky app (Android / iOS), then add to your Jenkinsfile:
post {
failure {
sh '''
curl -X POST "$WEBHOOKY_URL" -H "Content-Type: application/json" \
-d "{"title":"🚨 ${JOB_NAME} #${BUILD_NUMBER} failed","message":"${BUILD_URL}","sound":"error_1"}"
'''
}
fixed {
sh '''
curl -X POST "$WEBHOOKY_URL" -H "Content-Type: application/json" \
-d "{"title":"✅ ${JOB_NAME} is green again","sound":"level_up_2"}"
'''
}
}
Store the endpoint URL as a Jenkins credential or global environment variable (WEBHOOKY_URL). The fixed block is the underrated one: it only fires on red→green transitions, so you hear recoveries without success spam.
Freestyle jobs
No pipeline? Add a “Execute shell” post-build step with the same curl line – or use the conditional build step plugin to fire it only on failure.
Taming a noisy Jenkins
- failure + fixed instead of always: you get exactly the transitions that matter.
- One endpoint per team/job group with its own sound – nightly jobs quiet, release pipeline loud.
- The same pattern works in every CI: GitHub Actions, GitLab CI.
Get Webhooky
Free for your first 100 notifications – set up your endpoint in two minutes.