-
Notifications
You must be signed in to change notification settings - Fork 0
Jenkins:Am I live
lbonanomi edited this page Mar 24, 2019
·
1 revision
#!/bin/bash
LIVE=$(http_proxy="" curl -I -s -u $user:$user $CNAME:8080 | awk '/X-Instance-Identity/ { print $2 }')
IAM=$(http_proxy="" curl -I -s -u $user:$user http://127.0.0.1:8080 | awk '/X-Instance-Identity/ { print $2 }')
[[ "$LIVE" == "$IAM" ]] && (do what the live Jenkins should do)
- Backup-and-Restore
- Console
- Emergencies
- Housekeeping
- Integrations-and-External-Programs
- Search
- Throttles
- Usage