-
Notifications
You must be signed in to change notification settings - Fork 106
/
Copy pathconfigure-jfrog.sh
executable file
·31 lines (31 loc) · 1.04 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
#!/bin/bash
MVNC=
case $1 in
"ga")
MVNC="--server-id-resolve=repo.spring.io --server-id-deploy=repo.spring.io --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=repo.spring.io --server-id-deploy=repo.spring.io --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=repo.spring.io --server-id-deploy=repo.spring.io --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