-
Notifications
You must be signed in to change notification settings - Fork 105
/
configure-jfrog.sh
executable file
·32 lines (32 loc) · 1.11 KB
/
configure-jfrog.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
MVNC=
readonly JF_SERVER_ID=${JF_SERVER_ID:-spring-cloud}
case $1 in
"ga" | "release")
MVNC="--server-id-resolve=${JF_SERVER_ID} --server-id-deploy=${JF_SERVER_ID} --repo-resolve-releases=libs-release --repo-resolve-snapshots=libs-snapshot --repo-deploy-releases=libs-staging-local --repo-deploy-snapshots=libs-snapshot-local"
;;
"milestone")
MVNC="--server-id-resolve=${JF_SERVER_ID} --server-id-deploy=${JF_SERVER_ID} --repo-resolve-releases=libs-milestone --repo-resolve-snapshots=libs-snapshot --repo-deploy-releases=libs-milestone-local --repo-deploy-snapshots=libs-snapshot-local"
;;
"snapshot")
MVNC="--server-id-resolve=${JF_SERVER_ID} --server-id-deploy=${JF_SERVER_ID} --repo-resolve-releases=libs-snapshot --repo-resolve-snapshots=libs-snapshot --repo-deploy-releases=libs-milestone-local --repo-deploy-snapshots=libs-snapshot-local"
;;
*)
echo "Invalid build type $1"
exit 1
;;
esac
echo "MVNC=$MVNC"
jfrog mvnc $MVNC
RC=$?
if ((RC !=0)); then
echo "jfrog mvnc $MVNC"
echo "error: $RC"
exit $RC
fi
jfrog rt ping
RC=$?
if ((RC !=0)); then
echo "jfrog rt ping error: $RC"
exit $RC
fi