Skip to content

Commit

Permalink
Simplify download-midpoint script
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Aug 28, 2018
1 parent 1db3632 commit cc3f48b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions grouper-midpoint/download-midpoint
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
#!/bin/bash

# There's something wrong with Evolveum nexus, so we have to manually resolve 3.9-SNAPSHOT

echo "Determining midPoint 3.9-SNAPSHOT version"
echo "-----------------------------------------"
v=`curl "http://nexus.evolveum.com/nexus/content/repositories/snapshots/com/evolveum/midpoint/dist/3.9-SNAPSHOT/maven-metadata.xml" | sed -n 's:.*<value>\(.*\)</value>.*:\1:p' | sed -n '1 p'`
echo "-----------------------------------------"
echo "Current midPoint 3.9-SNAPSHOT version is $v; starting the download"
echo "Downloading midPoint 3.9-SNAPSHOT"
echo "-----------------------------------------"
curl --output mp-gr/midpoint-server/midpoint-3.9-SNAPSHOT-dist.tar.gz http://nexus.evolveum.com/nexus/service/local/repositories/snapshots/content/com/evolveum/midpoint/dist/3.9-SNAPSHOT/dist-$v-dist.tar.gz
curl --output mp-gr/midpoint-server/midpoint-3.9-SNAPSHOT-dist.tar.gz "https://nexus.evolveum.com/nexus/service/local/artifact/maven/content?r=snapshots&g=com.evolveum.midpoint&a=dist&v=LATEST&c=dist&p=tar.gz"
echo "-----------------------------------------"
echo "Checking the download..."
if tar -tf mp-gr/midpoint-server/midpoint-3.9-SNAPSHOT-dist.tar.gz >/dev/null; then
Expand Down

0 comments on commit cc3f48b

Please sign in to comment.