Files
spring-boot-data-geode/ci/deployDocs.sh
John Blum 5f4c758b59 Switch to the new Jenkins Declarative Pipeline syntax.
Use Docker containers to run the stages & steps of the Jenkins CI build.

Use Bash shell scripts to encapsulae the Gradle commands.
2021-04-09 12:58:58 -07:00

16 lines
446 B
Bash

#!/bin/bash -x
set -eou pipefail
echo "Deploying docs 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