Skip to content

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)
Clone this wiki locally