rework docker-image gerrit messages

Change-Id: I5e389e79419e6aeb36ee2c9a99db077a52e80487
Reviewed-on: https://gerrit.instructure.com/189016
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Derek Bender <djbender@instructure.com>
Product-Review: Derek Bender <djbender@instructure.com>
This commit is contained in:
Derek Bender 2019-04-10 16:18:18 -06:00
parent ca9aa403e5
commit c9b4eecc7e
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -88,7 +88,7 @@ pipeline {
/* send message to gerrit */
withGerritCredentials({ ->
sh '''
gerrit_message="Gerrit Builder Started $JOB_BASE_NAME: canvas-lms:$NAME\n$BUILD_URL"
gerrit_message="\u2615 $JOB_BASE_NAME build started.\nTag: canvas-lms:$NAME\n$BUILD_URL"
ssh -i "$SSH_KEY_PATH" -l "$SSH_USERNAME" -p $GERRIT_PORT \
hudson@$GERRIT_HOST gerrit review -m "'$gerrit_message'" $GERRIT_CHANGE_NUMBER,$GERRIT_PATCHSET_NUMBER
'''
@ -167,7 +167,7 @@ pipeline {
script {
withGerritCredentials({ ->
sh '''
gerrit_message="Gerrit Builder $JOB_BASE_NAME Successful.\nTag: $PATCHSET_TAG\nBuild: $BUILD_URL"
gerrit_message="\u2713 $JOB_BASE_NAME build successful.\nTag: canvas-lms:$NAME\n$BUILD_URL"
ssh -i "$SSH_KEY_PATH" -l "$SSH_USERNAME" -p $GERRIT_PORT \
hudson@$GERRIT_HOST gerrit review -m "'$gerrit_message'" $GERRIT_CHANGE_NUMBER,$GERRIT_PATCHSET_NUMBER
'''
@ -179,7 +179,7 @@ pipeline {
script {
withGerritCredentials({ ->
sh '''
gerrit_message="Gerrit Builder $JOB_BASE_NAME: canvas-lms:$NAME Failed.\n$BUILD_URL
gerrit_message="\u274C $JOB_BASE_NAME build failed.\nTag: canvas-lms:$NAME\n$BUILD_URL"
ssh -i "$SSH_KEY_PATH" -l "$SSH_USERNAME" -p $GERRIT_PORT \
hudson@$GERRIT_HOST gerrit review -m "'$gerrit_message'" $GERRIT_CHANGE_NUMBER,$GERRIT_PATCHSET_NUMBER
'''