From fb7b6ace9d8344ab22b92925b06f43f25ab9d3d8 Mon Sep 17 00:00:00 2001 From: agardner Date: Thu, 22 Feb 2018 15:20:16 -0500 Subject: Jenkins not reporting lint results to gerrit I set -x in a test and then it did report. not sure what's going on here, I thought this was fixed. May as well cat the violation log as we debug Change-Id: I142fb3855ebc000ee90aa24e0ecb336bb9b313df Signed-off-by: agardner --- jjb/global/releng-macros.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jjb/global') diff --git a/jjb/global/releng-macros.yml b/jjb/global/releng-macros.yml index a12a3c8a5..3d03f33b7 100644 --- a/jjb/global/releng-macros.yml +++ b/jjb/global/releng-macros.yml @@ -318,7 +318,9 @@ - shell: | #!/bin/bash if [[ -s violation.log ]]; then - echo "Reporting lint result..." + cat violation.log + echo "Reporting lint result...." + set -x msg="Found syntax error and/or coding style violation(s) in the files modified by your patchset." sed -i -e "1s#^#${msg}\n\n#" violation.log cmd="gerrit review -p $GERRIT_PROJECT -m \"$(cat violation.log)\" $GERRIT_PATCHSET_REVISION --notify NONE" -- cgit 1.2.3-korg