|
|
@@ -13,10 +13,10 @@ USER_ID=$user GROUP_ID=$group docker-compose up --build --exit-code-from maven-s |
|
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then |
|
|
if [ $? -eq 0 ]; then |
|
|
echo "Creating a tarball of the Releases" |
|
|
echo "Creating a tarball of the Releases" |
|
|
tar zcvf ./maven-releases-packages.tar.gz ./data/repositories/releases/* 2>/dev/null |
|
|
|
|
|
|
|
|
tar zcvf ./maven-releases-packages.tar.gz -C ./data/repositories/releases/ . 2>/dev/null |
|
|
chown "$user:$group" ./maven-releases-packages.tar.gz |
|
|
chown "$user:$group" ./maven-releases-packages.tar.gz |
|
|
echo "Creating a tarball of the Snapshots" |
|
|
echo "Creating a tarball of the Snapshots" |
|
|
tar zcvf ./maven-snapshots-packages.tar.gz ./data/repositories/snapshots/* 2>/dev/null |
|
|
|
|
|
|
|
|
tar zcvf ./maven-snapshots-packages.tar.gz -C ./data/repositories/snapshots/ . 2>/dev/null |
|
|
chown "$user:$group" ./maven-snapshots-packages.tar.gz |
|
|
chown "$user:$group" ./maven-snapshots-packages.tar.gz |
|
|
|
|
|
|
|
|
echo "NEXT: mirror *.tar.gz and import into Artifactory." |
|
|
echo "NEXT: mirror *.tar.gz and import into Artifactory." |
|
|
|