This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/master by this push:
     new e0ac7cc  Handle cases where branch-commit property is empty due to bad 
rebase
e0ac7cc is described below

commit e0ac7cc2e69daa534e53a6d001b96c01ad71959a
Author: James Netherton <jamesnether...@gmail.com>
AuthorDate: Thu May 21 12:52:59 2020 +0100

    Handle cases where branch-commit property is empty due to bad rebase
---
 tooling/scripts/report-build-status.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tooling/scripts/report-build-status.groovy 
b/tooling/scripts/report-build-status.groovy
index 889acb5..f714a1e 100644
--- a/tooling/scripts/report-build-status.groovy
+++ b/tooling/scripts/report-build-status.groovy
@@ -36,7 +36,7 @@ final String BUILD_ID = properties['buildId']
 final String REPO = properties['repo']
 final String BRANCH = properties['branch']
 final String BRANCH_NAME = "${BRANCH.split('-')[0].capitalize()} 
${BRANCH.split('-')[1].capitalize()}"
-final String BRANCH_COMMIT = properties['branch-commit']
+final String BRANCH_COMMIT = properties['branch-commit'] ?: 'Unknown'
 final String ACTIONS_URL = 
"https://github.com/${REPO}/actions/runs/${BUILD_ID.split("-")[0]}"
 final String BRANCH_URL = "https://github.com/${REPO}/tree/${BRANCH}";
 final String ISSUE_LABEL = "build/${BRANCH}"

Reply via email to