Merge "Add quick verify job for RPM building logic"
[releng/builder.git] / jjb / integration-distribution-delete-snaphot-artifacts.sh
index 42ba838562241df024228935b211380580d08871..825023d31958a73633162c5bec2e812f3697ccc6 100644 (file)
@@ -1,9 +1,18 @@
 #!/bin/bash -x
+# SPDX-License-Identifier: EPL-1.0
+##############################################################################
+# Copyright (c) 2017 The Linux Foundation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+##############################################################################
 
 set +e  # To avoid failures in projects which generate zero snapshot artifacts.
-find /tmp/r/org/opendaylight/$GERRIT_PROJECT/ -path *-SNAPSHOT* -delete
+find "/tmp/r/org/opendaylight/$GERRIT_PROJECT/" -path "*-SNAPSHOT*" -delete
 find /tmp/r/ -regex '.*/_remote.repositories\|.*/maven-metadata-local\.xml\|.*/maven-metadata-fake-nexus\.xml\|.*/resolver-status\.properties' -delete
 find /tmp/r/ -type d -empty -delete
 echo "INFO: A listing of project related files left in local repository follows."
-find /tmp/r/org/opendaylight/$GERRIT_PROJECT/
+find "/tmp/r/org/opendaylight/$GERRIT_PROJECT/"
 true  # To prevent the possibly non-zero return code from failing the job.