Browse Source

Improving cleanup

pull/46/head
Martin Stockhammer 6 years ago
parent
commit
5fcce410ec
2 changed files with 18 additions and 1 deletions
  1. 1
    1
      Jenkinsfile-itest
  2. 17
    0
      src/ci/scripts/prepareWorkspace.sh

+ 1
- 1
Jenkinsfile-itest View File

@@ -66,7 +66,7 @@ pipeline {
)
{
sh "chmod 755 ./src/ci/scripts/prepareWorkspace.sh"
sh "./src/ci/scripts/prepareWorkspace.sh"
sh "./src/ci/scripts/prepareWorkspace.sh -d '.repository'"
// Needs a lot of time to reload the repository files, try without cleanup
// Not sure, but maybe
// sh "rm -rf .repository"

+ 17
- 0
src/ci/scripts/prepareWorkspace.sh View File

@@ -25,6 +25,23 @@
ATTIC_DIRS="archiva-modules/archiva-base/archiva-indexer"
REMOVE_DIRS=".indexer"

while [ ! -z "$1" ]; do
case "$1" in
-d)
shift
REPO_DIR=$1
shift
;;
*)
shift
;;
esac
done

if [ -d "${REPO_DIR}" ]; then
rm -rf "${REPO_DIR}"
fi

for i in ${ATTIC_DIRS}; do
if [ "X${i}" != "X" -a -d ${i} ]; then
echo "Deleting directory ${i}"

Loading…
Cancel
Save