-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-slave
executable file
·33 lines (28 loc) · 1.09 KB
/
install-slave
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
33
#!/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}/slave.jar ${SLAVE_REPO}/${SLAVE_VERSION}/remoting-${SLAVE_VERSION}.jar
chmod 755 ${JAR_PATH}
chmod 644 ${JAR_PATH}/slave.jar
# Save slave source jar and docs
mkdir -p ${SRC_PATH}/slave
cd ${SRC_PATH}/slave
wget ${SLAVE_REPO}/${SLAVE_VERSION}/remoting-${SLAVE_VERSION}.jar
wget ${SLAVE_REPO}/${SLAVE_VERSION}/remoting-${SLAVE_VERSION}.jar.md5
wget ${SLAVE_REPO}/${SLAVE_VERSION}/remoting-${SLAVE_VERSION}-sources.jar
wget ${SLAVE_REPO}/${SLAVE_VERSION}/remoting-${SLAVE_VERSION}-sources.jar.md5
wget ${SLAVE_REPO}/${SLAVE_VERSION}/remoting-${SLAVE_VERSION}-tests.jar
wget ${SLAVE_REPO}/${SLAVE_VERSION}/remoting-${SLAVE_VERSION}-tests.jar.md5
wget ${SLAVE_REPO}/${SLAVE_VERSION}/remoting-${SLAVE_VERSION}.pom
wget ${SLAVE_REPO}/${SLAVE_VERSION}/remoting-${SLAVE_VERSION}.pom.md5
echo "Sources ..."
ls -la ${SRC_PATH}/slave
echo "Jars ..."
ls -la ${JAR_PATH}