aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-12-04 15:14:12 -0800
committerGary Wu <gary.i.wu@huawei.com>2017-12-04 15:14:12 -0800
commit4cc6edb27d762555658eb85217f67c419e5d4818 (patch)
tree89439020cd2654eb9a7aa26f752f06f8dfce924c /test
parent7451e712d6b838f782b187e9eb1e7da156bd4e08 (diff)
Sample script to post cron results to Jenkins
Change-Id: Ic72d9a7d4e0b968e8785f209cea69c97e9b0446f Issue-ID: INT-278 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/ete/scripts/post-jenkins-results.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ete/scripts/post-jenkins-results.sh b/test/ete/scripts/post-jenkins-results.sh
new file mode 100755
index 000000000..7beba0e3a
--- /dev/null
+++ b/test/ete/scripts/post-jenkins-results.sh
@@ -0,0 +1,6 @@
+#!/bin/bash -x
+
+CRUMB=$(curl -s -u "lf:lf" 'http://12.234.32.117/jenkins/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
+
+curl -v -u "lf:929b8c2bea4c4c6847778f8cd6241cbf" -H "$CRUMB" -d '<run><log encoding="hexBinary">4142430A</log><result>0</result><duration>17</duration></run>' http://12.234.32.117/jenkins/job/external-job/postBuildResult
+