-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-swarm
executable file
·32 lines (27 loc) · 1.3 KB
/
install-swarm
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
#!/usr/bin/env bash
set -o nounset
set -o noclobber
set -o errexit
set -o pipefail
echo "Jars: ${JAR_PATH}"
echo "Source: ${SRC_PATH}"
echo "Repo: ${SLAVE_REPO}"
echo "Version: ${SLAVE_VERSION}"
# Save slave executable
curl --create-dirs -sSLo ${JAR_PATH}/swarm.jar ${SWARM_REPO}/${SWARM_VERSION}/swarm-client-${SWARM_VERSION}.jar
chmod 755 ${JAR_PATH}
chmod 644 ${JAR_PATH}/swarm.jar
# Save swarm source jar and docs
mkdir -p ${SRC_PATH}/swarm
cd ${SRC_PATH}/swarm && wget ${SWARM_REPO}/${SWARM_VERSION}/swarm-client-${SWARM_VERSION}.jar
cd ${SRC_PATH}/swarm && wget ${SWARM_REPO}/${SWARM_VERSION}/swarm-client-${SWARM_VERSION}.jar.md5
cd ${SRC_PATH}/swarm && wget ${SWARM_REPO}/${SWARM_VERSION}/swarm-client-${SWARM_VERSION}-javadoc.jar
cd ${SRC_PATH}/swarm && wget ${SWARM_REPO}/${SWARM_VERSION}/swarm-client-${SWARM_VERSION}-javadoc.jar.md5
cd ${SRC_PATH}/swarm && wget ${SWARM_REPO}/${SWARM_VERSION}/swarm-client-${SWARM_VERSION}-sources.jar
cd ${SRC_PATH}/swarm && wget ${SWARM_REPO}/${SWARM_VERSION}/swarm-client-${SWARM_VERSION}-sources.jar.md5
cd ${SRC_PATH}/swarm && wget ${SWARM_REPO}/${SWARM_VERSION}/swarm-client-${SWARM_VERSION}.pom
cd ${SRC_PATH}/swarm && wget ${SWARM_REPO}/${SWARM_VERSION}/swarm-client-${SWARM_VERSION}.pom.md5
echo "Sources ..."
ls -la ${SRC_PATH}/swarm
echo "Jars ..."
ls -la ${JAR_PATH}