X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration-distribution-delete-snaphot-artifacts.sh;h=d9781894001ffdd521bdd81c97c56043021cdd62;hb=29b2f25826a1d889aa515be1c39c40da83f7ae00;hp=be56d78c21dda0a2b10224fde9581aac7ad19237;hpb=cda0bd827914389f2d053f6a9234b672c2d34aa8;p=releng%2Fbuilder.git diff --git a/jjb/integration-distribution-delete-snaphot-artifacts.sh b/jjb/integration-distribution-delete-snaphot-artifacts.sh index be56d78c2..d97818940 100644 --- a/jjb/integration-distribution-delete-snaphot-artifacts.sh +++ b/jjb/integration-distribution-delete-snaphot-artifacts.sh @@ -1,9 +1,9 @@ #!/bin/bash -x 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/ +echo "INFO: A listing of project related files left in local repository follows." +find "/tmp/r/org/opendaylight/$GERRIT_PROJECT/" true # To prevent the possibly non-zero return code from failing the job.