Clarify log message to not look like a failure
[releng/builder.git] / jjb / packaging / packaging-macros.yaml
index 568f942239313c766fb585e7d2d004cceceda75f..c573746a0167a9bc33602cbde82a0e73dd80431c 100644 (file)
@@ -20,8 +20,9 @@
       - shell: !include-raw: stop-odl.sh
       - shell: !include-raw: uninstall-rpm.sh
       - shell: |
-          # Remove old host key so future installs don't fail to SSH
-          rm /home/jenkins/.ssh/known_hosts || echo "No known_hosts file"
+          # Remove old host key (if exists) so future installs don't fail SSH
+          rm /home/jenkins/.ssh/known_hosts || \
+            echo "No known_hosts file to clean up, which is fine"
 
 - builder:
     name: install-test-uninstall-deb
@@ -43,5 +44,6 @@
       - shell: !include-raw: stop-odl.sh
       - shell: !include-raw: uninstall-deb.sh
       - shell: |
-          # Remove old host key so future installs don't fail to SSH
-          rm /home/jenkins/.ssh/known_hosts || echo "No known_hosts file"
+          # Remove old host key (if exists) so future installs don't fail SSH
+          rm /home/jenkins/.ssh/known_hosts || \
+            echo "No known_hosts file to clean up, which is fine"