Jenkins not reporting lint results to gerrit 75/52475/1
authoragardner <agardner@linuxfoundation.org>
Thu, 22 Feb 2018 20:20:16 +0000 (15:20 -0500)
committeragardner <agardner@linuxfoundation.org>
Thu, 22 Feb 2018 20:20:16 +0000 (15:20 -0500)
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 <agardner@linuxfoundation.org>
jjb/global/releng-macros.yml

index a12a3c8..3d03f33 100644 (file)
       - 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"