diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-12-04 15:14:12 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2017-12-04 15:14:12 -0800 |
commit | 4cc6edb27d762555658eb85217f67c419e5d4818 (patch) | |
tree | 89439020cd2654eb9a7aa26f752f06f8dfce924c | |
parent | 7451e712d6b838f782b187e9eb1e7da156bd4e08 (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>
-rwxr-xr-x | test/ete/scripts/post-jenkins-results.sh | 6 |
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 + |