Distribution check: Improve error reporting
[releng/builder.git] / jjb / releng-templates-java.yaml
index 4af4d24620fe31fa9f82f1b595a51b10d5be3007..08b29ee7fa5a50b3866f0cfc0719fcffcfe6bb0f 100644 (file)
       - shell: |
           mkdir -p /tmp/t/org/opendaylight/$GERRIT_PROJECT
           mv /tmp/n/org/opendaylight/$GERRIT_PROJECT/* /tmp/t/org/opendaylight/$GERRIT_PROJECT/
-          test `find /tmp/n/ -type f | wc -l` -eq 0
+          test -z "`find /tmp/n/ -type f`" || ( echo "ERROR: Mismatched groupId detected (see above)." && false )
           rm -rf /tmp/n
           mv /tmp/t /tmp/n
       # Step three: Online build of integration distribution.