mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
[eclipse/xtext#1431] Enhance container support
Disable Gradle daemon, since a new container for each build is spawned and the daemon can't be reused anyway. Remove CPU resource constraint, since default is sufficient. Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
This commit is contained in:
parent
20667db3ac
commit
19848f9236
2 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,10 @@ if [ -z "$JENKINS_URL" ]; then
|
|||
JENKINS_URL=https://ci.eclipse.org/xtext/
|
||||
fi
|
||||
|
||||
if [ -f "/.dockerenv" ]; then
|
||||
export GRADLE_OPTS="-Dorg.gradle.daemon=false"
|
||||
fi
|
||||
|
||||
./gradlew \
|
||||
clean cleanGenerateXtext build createLocalMavenRepo \
|
||||
-PuseJenkinsSnapshots=true \
|
||||
|
|
|
@ -20,10 +20,8 @@ spec:
|
|||
resources:
|
||||
limits:
|
||||
memory: "2Gi"
|
||||
cpu: "1"
|
||||
requests:
|
||||
memory: "2Gi"
|
||||
cpu: "1"
|
||||
volumeMounts:
|
||||
- name: settings-xml
|
||||
mountPath: /home/jenkins/.m2/settings.xml
|
||||
|
|
Loading…
Reference in a new issue