summaryrefslogtreecommitdiffstats
path: root/bin/abort.sh
blob: cdd54949396b05ed8416223c057bec85166a0da3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# generally interesting: BUILD_* JENKINS_* JOB_* but most is in BUILD_URL, so:
export | egrep "(BUILD_URL=)"
TMPFILE=$(mktemp)

curl https://jenkins.debian.net/jnlpJars/jenkins-cli.jar -o $TMPFILE
java -jar $TMPFILE -s http://localhost:8080/ set-build-result aborted
rm $TMPFILE
exit