Use Bash shell scripts to encapsulate build steps in the Jenkins CI build stages.
This commit is contained in:
14
ci/setup.sh
Executable file
14
ci/setup.sh
Executable 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/session/artifacts-gradle-cache
|
||||
mkdir -p /tmp/geode/session/build-gradle-cache
|
||||
mkdir -p /tmp/geode/session/docs-gradle-cache
|
||||
echo "Logging into Docker..."
|
||||
docker login --username ${DOCKER_HUB_USR} --password ${DOCKER_HUB_PSW}
|
||||
exit 0
|
||||
Reference in New Issue
Block a user