Skip to content

Commit 4811815

Browse files
.gitlab-ci.yml: update note why Gradle daemon should not be used.
1 parent 68a600a commit 4811815

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ image: objectboxio/buildenv:21.11.11-centos7
1212
# - ORG_GRADLE_PROJECT_signingPassword
1313

1414
variables:
15-
# Disable the Gradle daemon for Continuous Integration servers as correctness
16-
# is usually a priority over speed in CI environments. Using a fresh
17-
# runtime for each build is more reliable since the runtime is completely
18-
# isolated from any previous builds.
15+
# Disable the Gradle daemon. Gradle may run in a Docker container with a shared
16+
# Docker volume containing GRADLE_USER_HOME. If the container is stopped after a job
17+
# Gradle daemons may get killed, preventing proper clean-up of lock files in GRADLE_USER_HOME.
1918
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
2019
GITLAB_REPO_ARGS: "-PgitlabUrl=$CI_SERVER_URL -PgitlabTokenName=Job-Token -PgitlabPrivateToken=$CI_JOB_TOKEN"
2120
CENTRAL_REPO_ARGS: "-PsonatypeUsername=$SONATYPE_USER -PsonatypePassword=$SONATYPE_PWD"

0 commit comments

Comments
 (0)