Files
spring-boot-data-geode/ci/deployDocs.sh
John Blum 30b7c66f23 Name the Docker container forks for the deployment of artifacts & docs after the hostname.
Log (echo) the $HOSTNAME for the host running each deployment.
2021-04-08 22:08:07 -07:00

16 lines
439 B
Bash
Executable File

#!/bin/bash -x
set -eou pipefail
echo "Running on host [$HOSTNAME]"
# User ID 1001 is "jenkins"
# Group ID 1001 is "jenkins"
# Syntax: `chown -R userId:groupId .`
chown -R 1001:1001 .
GRADLE_OPTS="-Duser.name=jenkins -Djava.io.tmpdir=/tmp -Dgradle.user.home=/tmp/geode/docs-gradle-cache" \
./gradlew deployDocs --no-daemon --stacktrace \
-PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY \
-PdeployDocsSshUsername=$SPRING_DOCS_USERNAME