Permalink
This commit does not belong to any branch on this respository, and may belong to a fork outside of the repository.
Showing
with
23 additions
and 8 deletions.
- +2 −2 Dockerfile
- +7 −1 Jenkinsfile
- +9 −5 download-midpoint
- +5 −0 jenkins-rebuild.sh
@@ -1,16 +1,20 @@ | ||
#!/bin/bash | ||
|
||
dir=`dirname "$0"` | ||
echo "Downloading midPoint 3.9-SNAPSHOT" | ||
DIR=`dirname "$0"` | ||
if [[ -n "$1" ]]; then | ||
MP_VERSION=$1 | ||
else | ||
MP_VERSION=3.9-SNAPSHOT | ||
fi | ||
echo "Downloading midPoint $MP_VERSION" | ||
echo "-----------------------------------------" | ||
curl --output $dir/midpoint-3.9-SNAPSHOT-dist.tar.gz "https://evolveum.com/downloads/midpoint-tier/midpoint-3.9-SNAPSHOT-dist.tar.gz" | ||
curl --output $dir/midpoint-dist.tar.gz "https://evolveum.com/downloads/midpoint-tier/midpoint-$MP_VERSION-dist.tar.gz" | ||
echo "-----------------------------------------" | ||
echo "Checking the download..." | ||
if tar -tf $dir/midpoint-3.9-SNAPSHOT-dist.tar.gz >/dev/null; then | ||
if tar -tf $dir/midpoint-dist.tar.gz >/dev/null; then | ||
echo "OK" | ||
exit 0 | ||
else | ||
echo "The file was not downloaded correctly" | ||
exit 1 | ||
fi | ||
|