Create and use different/separate Gradle caches (directory locations) for build, artifacts and docs phases/stages.
This commit is contained in:
@@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
set -eou pipefail
|
set -eou pipefail
|
||||||
|
|
||||||
GRADLE_OPTS="-Duser.name=jenkins -Djava.io.tmpdir=/tmp -Dgradle.user.home=/tmp/geode-build-cache" \
|
GRADLE_OPTS="-Duser.name=jenkins -Djava.io.tmpdir=/tmp -Dgradle.user.home=/tmp/geode/build-gradle-cache" \
|
||||||
./gradlew clean check --no-daemon --refresh-dependencies --stacktrace
|
./gradlew clean check --no-daemon --refresh-dependencies --stacktrace
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ set -eou pipefail
|
|||||||
# Syntax: `chown -R userId:groupId .`
|
# Syntax: `chown -R userId:groupId .`
|
||||||
chown -R 1001:1001 .
|
chown -R 1001:1001 .
|
||||||
|
|
||||||
GRADLE_OPTS="-Duser.name=jenkins -Djava.io.tmpdir=/tmp" \
|
GRADLE_OPTS="-Duser.name=jenkins -Djava.io.tmpdir=/tmp -Dgradle.user.home=/tmp/geode/artifacts-gradle-cache" \
|
||||||
./gradlew deployArtifacts finalizeDeployArtifacts --no-build-cache- --no-configuration-cache --no-daemon --stacktrace \
|
./gradlew deployArtifacts finalizeDeployArtifacts --no-build-cache- --no-configuration-cache --no-daemon --stacktrace \
|
||||||
-PartifactoryUsername=$ARTIFACTORY_USERNAME \
|
-PartifactoryUsername=$ARTIFACTORY_USERNAME \
|
||||||
-PartifactoryPassword=$ARTIFACTORY_PASSWORD \
|
-PartifactoryPassword=$ARTIFACTORY_PASSWORD \
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ set -eou pipefail
|
|||||||
# Syntax: `chown -R userId:groupId .`
|
# Syntax: `chown -R userId:groupId .`
|
||||||
chown -R 1001:1001 .
|
chown -R 1001:1001 .
|
||||||
|
|
||||||
GRADLE_OPTS="-Duser.name=jenkins -Djava.io.tmpdir=/tmp" \
|
GRADLE_OPTS="-Duser.name=jenkins -Djava.io.tmpdir=/tmp -Dgradle.user.home=/tmp/geode/docs-gradle-cache" \
|
||||||
./gradlew deployDocs --no-daemon --stacktrace \
|
./gradlew deployDocs --no-daemon --stacktrace \
|
||||||
-PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY \
|
-PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY \
|
||||||
-PdeployDocsSshUsername=$SPRING_DOCS_USERNAME
|
-PdeployDocsSshUsername=$SPRING_DOCS_USERNAME
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
|
|
||||||
echo "Logged in as user [$USER] with home directory [$HOME] in the current working directory [$PWD]"
|
echo "Logged in as user [$USER] with home directory [$HOME] in the current working directory [$PWD]"
|
||||||
chown -R 1001:1001 .
|
chown -R 1001:1001 .
|
||||||
mkdir -p /tmp/geode-build-cache
|
mkdir -p /tmp/geode/artifacts-gradle-cache
|
||||||
|
mkdir -p /tmp/geode/build-gradle-cache
|
||||||
|
mkdir -p /tmp/geode/docs-gradle-cache
|
||||||
echo "Logging into Docker..."
|
echo "Logging into Docker..."
|
||||||
docker login --username ${DOCKER_HUB_USR} --password ${DOCKER_HUB_PSW}
|
docker login --username ${DOCKER_HUB_USR} --password ${DOCKER_HUB_PSW}
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user