File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -136,13 +136,16 @@ default:
136
136
policy : $BUILD_CACHE_POLICY
137
137
before_script :
138
138
- source .gitlab/gitlab-utils.sh
139
- - export GRADLE_USER_HOME=` pwd` /.gradle
139
+ - export GRADLE_USER_HOME=$( pwd) /.gradle
140
140
- |
141
141
# Don't put jvm args here as it will be picked up by child gradle processes used in tests
142
142
cat << EOF > $GRADLE_USER_HOME/gradle.properties
143
143
mavenRepositoryProxy=$MAVEN_REPOSITORY_PROXY
144
144
gradlePluginProxy=$GRADLE_PLUGIN_PROXY
145
145
EOF
146
+ - |
147
+ # replace maven central part by MAVEN_REPOSITORY_PROXY in .mvn/wrapper/maven-wrapper.properties
148
+ sed -i "s|https://repo.maven.apache.org/maven2/|$MAVEN_REPOSITORY_PROXY|g" .mvn/wrapper/maven-wrapper.properties
146
149
- 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'"
147
150
- export GRADLE_ARGS=" --build-cache --stacktrace --no-daemon --parallel --max-workers=$GRADLE_WORKERS"
148
151
- *normalize_node_index
@@ -371,7 +374,7 @@ muzzle:
371
374
- ./gradlew writeMuzzleTasksToFile $GRADLE_ARGS
372
375
- sort workspace/build/muzzleTasks > sortedMuzzleTasks
373
376
- split --number=l/$NORMALIZED_NODE_TOTAL --suffix-length=1 --numeric-suffixes sortedMuzzleTasks muzzleSplit
374
- - ./gradlew ` cat muzzleSplit${NORMALIZED_NODE_INDEX} | xargs` $GRADLE_ARGS
377
+ - ./gradlew $( cat muzzleSplit${NORMALIZED_NODE_INDEX} | xargs) $GRADLE_ARGS
375
378
after_script :
376
379
- *cgroup_info
377
380
- source .gitlab/gitlab-utils.sh
You can’t perform that action at this time.
0 commit comments