Jenkins:Am I live - lbonanomi/notes GitHub Wiki


#!/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" ](/lbonanomi/notes/wiki/-"$LIVE"-==-"$IAM"-) && (do what the live Jenkins should do)