Commit 3f518740 by Calen Pennington

Change message with state

parent 86579efc
...@@ -4,10 +4,10 @@ function github_status { ...@@ -4,10 +4,10 @@ function github_status {
gcli status create mitx mitx $GIT_COMMIT \ gcli status create mitx mitx $GIT_COMMIT \
--params=$1 \ --params=$1 \
target_url:$BUILD_URL \ target_url:$BUILD_URL \
description:"Build #$BUILD_NUMBER is running" \ description:"Build #$BUILD_NUMBER $2" \
-f csv -f csv
} }
function github_mark_failed_on_exit { function github_mark_failed_on_exit {
trap '[ $? == "0" ] || github_status state:failed' EXIT trap '[ $? == "0" ] || github_status state:failed "failed"' EXIT
} }
\ No newline at end of file
...@@ -6,7 +6,7 @@ set -x ...@@ -6,7 +6,7 @@ set -x
source jenkins/base.sh source jenkins/base.sh
github_mark_failed_on_exit github_mark_failed_on_exit
github_status state:pending github_status state:pending "is running"
# Reset the submodule, in case it changed # Reset the submodule, in case it changed
git submodule foreach 'git reset --hard HEAD' git submodule foreach 'git reset --hard HEAD'
...@@ -33,4 +33,4 @@ rake coverage:xml coverage:html ...@@ -33,4 +33,4 @@ rake coverage:xml coverage:html
[ $TESTS_FAILED == '0' ] [ $TESTS_FAILED == '0' ]
rake autodeploy_properties rake autodeploy_properties
github_status state:success github_status state:success "passed"
...@@ -6,7 +6,7 @@ set -x ...@@ -6,7 +6,7 @@ set -x
source jenkins/base.sh source jenkins/base.sh
github_mark_failed_on_exit github_mark_failed_on_exit
github_status state:pending github_status state:pending "is running"
# Reset the submodule, in case it changed # Reset the submodule, in case it changed
...@@ -32,4 +32,4 @@ rake coverage:xml coverage:html ...@@ -32,4 +32,4 @@ rake coverage:xml coverage:html
[ $TESTS_FAILED == '0' ] [ $TESTS_FAILED == '0' ]
rake autodeploy_properties rake autodeploy_properties
github_status state:success github_status state:success "passed"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment