]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
sbuild-post-build-get-reports: Improve info message.
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Thu, 24 Jul 2014 12:22:42 +0000 (14:22 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Thu, 24 Jul 2014 12:22:42 +0000 (14:22 +0200)
sbuild-post-build-get-reports

index af502e08d8e3af763d447c61de787f14b0344577..246d1eb28d10ecf179bf2e6f437a7e60bce38e4f 100755 (executable)
@@ -32,7 +32,11 @@ else
     if test "$files" -eq 0; then
         echo "Found no report files in $(pwd)."
     else
-        echo "Found $files report files in $(pwd) (copy them out of the chroot):"
+        if test "$files" -eq 1; then
+            echo "Found $files report file in $(pwd) (copy it out of the chroot):"
+        else
+            echo "Found $files report files in $(pwd) (copy them out of the chroot):"
+        fi
         find . -name surefire-reports -o -name failsafe-reports -o -name unittest.log -o -name tests-0.log -o -name build.log -o -name test-run-all.xml
 
         # Copy reports from the chroot into the workspace (for Jenkins)