File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ stages:
2020 - generate-signing-key
2121
2222variables :
23+ # Gitlab runner features; see https://docs.gitlab.com/runner/configuration/feature-flags.html
24+ # Fold and time all script sections
25+ FF_SCRIPT_SECTIONS : 1
26+
2327 REGISTRY : 486234852809.dkr.ecr.us-east-1.amazonaws.com
2428 BUILD_JOB_NAME : " build"
2529 DEPENDENCY_CACHE_POLICY : pull
@@ -133,8 +137,14 @@ default:
133137 before_script :
134138 - source .gitlab/gitlab-utils.sh
135139 - export GRADLE_USER_HOME=`pwd`/.gradle
140+ - |
141+ # Don't put jvm args here as it will be picked up by child gradle processes used in tests
142+ cat << EOF > $GRADLE_USER_HOME/gradle.properties
143+ mavenRepositoryProxy=$MAVEN_REPOSITORY_PROXY
144+ gradlePluginProxy=$GRADLE_PLUGIN_PROXY
145+ EOF
136146 - export GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx$GRADLE_MEM -Xms$GRADLE_MEM -XX:ErrorFile=/tmp/hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'"
137- - export GRADLE_ARGS=" --build-cache --stacktrace --no-daemon --parallel --max-workers=$GRADLE_WORKERS -PmavenRepositoryProxy=$MAVEN_REPOSITORY_PROXY -PgradlePluginProxy=$GRADLE_PLUGIN_PROXY "
147+ - export GRADLE_ARGS=" --build-cache --stacktrace --no-daemon --parallel --max-workers=$GRADLE_WORKERS"
138148 - *normalize_node_index
139149 # for weird reasons, gradle will always "chmod 700" the .gradle folder
140150 # with Gitlab caching, .gradle is always owned by root and thus gradle's chmod invocation fails
Original file line number Diff line number Diff line change 11repositories {
22 mavenLocal()
3+ if (project. rootProject. name != " dd-trace-java" && project. rootProject. name != " buildSrc" ) {
4+ logger. lifecycle(" Using maven repository proxy: " + project. rootProject. findProperty(" mavenRepositoryProxy" ))
5+ }
36 if (project. rootProject. hasProperty(" mavenRepositoryProxy" )) {
47 maven {
58 url project. rootProject. property(" mavenRepositoryProxy" )
You can’t perform that action at this time.
0 commit comments