Fix string formatting in Jenkinsfile

The string formatting in the Jenkinsfile during the post of the
checks was broken. Groovy did not accept the operator in a hanging
line.

Change-Id: Ica7e6e9dedde31ca90888e4288975f4a1e6e7a07
This commit is contained in:
Thomas Draebing
2019-10-17 13:28:45 +02:00
parent 70501f4531
commit 5af8dad0ef

4
Jenkinsfile vendored
View File

@@ -98,8 +98,8 @@ def postCheck(check) {
contentType: 'APPLICATION_JSON', requestBody: json,
validResponseCodes: '200', url: gerritPostUrl)
echo "----------------------------------------------------------------------------"
echo "Gerrit Check: ${check.uuid}=" + check.build.result + " to change "
+ check.changeNum + "/" + check.sha1
echo "Gerrit Check: ${check.uuid}=" + check.build.result + " to change " +
check.changeNum + "/" + check.sha1
echo "----------------------------------------------------------------------------"
} catch(Exception e) {
echo "ERROR> Failed to post check results to Gerrit: ${e}"