git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/distributions/smartgears-distribution@82560 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b2b39b77bb
commit
2b77c94101
|
@ -1,4 +1,4 @@
|
||||||
|
nexusurl=maven.research-infrastructures.eu/nexus
|
||||||
group=org.gcube.distribution
|
group=org.gcube.distribution
|
||||||
artifact=smartgears-distribution
|
artifact=smartgears-distribution
|
||||||
repo=gcube-releases
|
repo=gcube-releases
|
||||||
|
@ -36,7 +36,7 @@ version_regexp=".*<baseVersion>\(.*\)</baseVersion>.*"
|
||||||
|
|
||||||
|
|
||||||
if [ -z "$version" ]; then
|
if [ -z "$version" ]; then
|
||||||
version=`curl -silent -L "maven.research-infrastructures.eu/nexus/service/local/artifact/maven/resolve?r=$repo&g=$group&a=$artifact&v=LATEST&e=tar.gz" \
|
version=`curl -silent -L $nexusurl/service/local/artifact/maven/resolve?r=$repo&g=$group&a=$artifact&v=LATEST&e=tar.gz" \
|
||||||
| grep "$version_regexp" | sed "s|$version_regexp|\1|"` #(first extract matching line, then extract matching group)
|
| grep "$version_regexp" | sed "s|$version_regexp|\1|"` #(first extract matching line, then extract matching group)
|
||||||
|
|
||||||
if [ -z "$version" ]; then
|
if [ -z "$version" ]; then
|
||||||
|
@ -51,7 +51,7 @@ fi
|
||||||
echo -e "\ndownloading smartgears-distribution-$version.tar.gz...\c"
|
echo -e "\ndownloading smartgears-distribution-$version.tar.gz...\c"
|
||||||
|
|
||||||
|
|
||||||
http_code=`curl -s -o "smartgears-distribution-$version.tar.gz" -w "%{http_code}" -L "maven.research-infrastructures.eu/nexus/service/local/artifact/maven/redirect?r=$repo&g=$group&a=$artifact&v=$version&e=tar.gz"`
|
http_code=`curl -s -o "smartgears-distribution-$version.tar.gz" -w "%{http_code}" -L "$nexusurl/service/local/artifact/maven/redirect?r=$repo&g=$group&a=$artifact&v=$version&e=tar.gz"`
|
||||||
|
|
||||||
if [ ! "$http_code" = "200" ]; then
|
if [ ! "$http_code" = "200" ]; then
|
||||||
echo -e "\n\nERROR: cannot download version $version from $repo." >&2
|
echo -e "\n\nERROR: cannot download version $version from $repo." >&2
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
<useDefaultExcludes>true</useDefaultExcludes>
|
<useDefaultExcludes>true</useDefaultExcludes>
|
||||||
<includes>
|
<includes>
|
||||||
<include>download</include>
|
<include>download</include>
|
||||||
|
<include>clean-app-state</include>
|
||||||
|
<include>clean-container-state</include>
|
||||||
</includes>
|
</includes>
|
||||||
<fileMode>755</fileMode>
|
<fileMode>755</fileMode>
|
||||||
<filtered>true</filtered>
|
<filtered>true</filtered>
|
||||||
|
|
Loading…
Reference in New Issue