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:
20
20
- generate-signing-key
21
21
22
22
variables :
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
+
23
27
REGISTRY : 486234852809.dkr.ecr.us-east-1.amazonaws.com
24
28
BUILD_JOB_NAME : " build"
25
29
DEPENDENCY_CACHE_POLICY : pull
@@ -133,8 +137,14 @@ default:
133
137
before_script :
134
138
- source .gitlab/gitlab-utils.sh
135
139
- 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
136
146
- 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"
138
148
- *normalize_node_index
139
149
# for weird reasons, gradle will always "chmod 700" the .gradle folder
140
150
# 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 1
1
repositories {
2
2
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
+ }
3
6
if (project. rootProject. hasProperty(" mavenRepositoryProxy" )) {
4
7
maven {
5
8
url project. rootProject. property(" mavenRepositoryProxy" )
You can’t perform that action at this time.
0 commit comments