From 38671fc83c3d00f8908cd6aa9e4e2a0e377880bf Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Fri, 7 Dec 2012 11:01:58 -0500 Subject: [PATCH] Move files from base.sh to test.sh --- jenkins/base.sh | 13 ------------- jenkins/test.sh | 12 +++++++++++- 2 files changed, 11 insertions(+), 14 deletions(-) delete mode 100644 jenkins/base.sh diff --git a/jenkins/base.sh b/jenkins/base.sh deleted file mode 100644 index 274c8d3027..0000000000 --- a/jenkins/base.sh +++ /dev/null @@ -1,13 +0,0 @@ -#! /bin/bash - -function github_status { - gcli status create mitx mitx $GIT_COMMIT \ - --params=$1 \ - target_url:$BUILD_URL \ - description:"Build #$BUILD_NUMBER $2" \ - -f csv -} - -function github_mark_failed_on_exit { - trap '[ $? == "0" ] || github_status state:failure "failed"' EXIT -} \ No newline at end of file diff --git a/jenkins/test.sh b/jenkins/test.sh index ed65fd2618..8a96024785 100755 --- a/jenkins/test.sh +++ b/jenkins/test.sh @@ -3,7 +3,17 @@ set -e set -x -source jenkins/base.sh +function github_status { + gcli status create mitx mitx $GIT_COMMIT \ + --params=$1 \ + target_url:$BUILD_URL \ + description:"Build #$BUILD_NUMBER $2" \ + -f csv +} + +function github_mark_failed_on_exit { + trap '[ $? == "0" ] || github_status state:failure "failed"' EXIT +} github_mark_failed_on_exit github_status state:pending "is running"