Skip to content

Commit 188c419

Browse files
GitLab CI: use low priority Gradle processes.
1 parent 52b0022 commit 188c419

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ variables:
1616
# Docker volume containing GRADLE_USER_HOME. If the container is stopped after a job
1717
# Gradle daemons may get killed, preventing proper clean-up of lock files in GRADLE_USER_HOME.
1818
# Configure file.encoding to always use UTF-8 when running Gradle.
19-
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dfile.encoding=UTF-8"
19+
# Use low priority processes to avoid Gradle builds consuming all build machine resources.
20+
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dfile.encoding=UTF-8 -Dorg.gradle.priority=low"
2021
GITLAB_REPO_ARGS: "-PgitlabUrl=$CI_SERVER_URL -PgitlabTokenName=Job-Token -PgitlabPrivateToken=$CI_JOB_TOKEN"
2122
CENTRAL_REPO_ARGS: "-PsonatypeUsername=$SONATYPE_USER -PsonatypePassword=$SONATYPE_PWD"
2223
# CI_COMMIT_REF_SLUG is the branch or tag name, but web-safe (only 0-9, a-z)

0 commit comments

Comments
 (0)