Poor man's Jenkins Webhook
Perform an action whenever a HTTP request is received on a particular port.
Setup
sudo yum -y install nc # install netcat if you don't have it
# Fabricate a standard response
echo "\
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 12
Hello world" > response.http
echo "\
#! /bin/bash
echo 'Got request:'
cat request.http" > do-something.sh
chmod +x do-something.sh
Run
while true; do cat response.http | nc -l 1313 > request.http; ./do-something.sh; done