Use Bash shell scripts to separate and encapsulate the build steps in the Jenkins CI build stages.

This commit is contained in:
John Blum
2021-04-12 16:12:27 -07:00
parent b5ea5358a2
commit 7f0f7b83df
6 changed files with 69 additions and 0 deletions

14
ci/setup.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash -x
# User ID 1001 is "jenkins"
# Group ID 1001 is "jenkins"
# Syntax: `chown -R userId:groupId .`
echo "Logged in as user [$USER] with home directory [$HOME] in the current working directory [$PWD]"
chown -R 1001:1001 .
mkdir -p /tmp/geode/boot/artifacts-gradle-cache
mkdir -p /tmp/geode/boot/build-gradle-cache
mkdir -p /tmp/geode/boot/docs-gradle-cache
echo "Logging into Docker..."
docker login --username ${DOCKER_HUB_USR} --password ${DOCKER_HUB_PSW}
exit 0