xtext-core/1-gradle-build.sh
Karsten Thoms 19848f9236 [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>
2019-06-18 10:59:29 +02:00

19 lines
455 B
Bash
Executable file

#!/usr/bin/env bash
if [ -z "$JENKINS_URL" ]; then
# if not set in environment use default
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 \
-PJENKINS_URL=$JENKINS_URL \
-PcompileXtend=true \
-PignoreTestFailures=true \
--refresh-dependencies \
--continue \
$@