File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
dd-smoke-tests/maven/src/test/groovy/datadog/smoketest Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,8 @@ default:
164164 - source .gitlab/gitlab-utils.sh
165165 - mkdir -p .gradle
166166 - export GRADLE_USER_HOME=$(pwd)/.gradle
167+ - mkdir -p .m2
168+ - export MAVEN_USER_HOME=$(pwd)/.m2
167169 - |
168170 # Don't put jvm args here as it will be picked up by child gradle processes used in tests
169171 cat << EOF > $GRADLE_USER_HOME/gradle.properties
Original file line number Diff line number Diff line change @@ -371,6 +371,11 @@ class MavenSmokeTest extends CiVisibilitySmokeTest {
371371 " -Dmaven.multiModuleProjectDirectory=${ projectHome.toAbsolutePath()} " . toString(),
372372 ]
373373
374+ String m2 = System . getenv(). get(" MAVEN_USER_HOME" )
375+ if (m2 != null ) {
376+ arguments + = " -Dmaven.repo.local=${ m2} " . toString()
377+ }
378+
374379 if (runWithAgent) {
375380 if (System . getenv(" DD_CIVISIBILITY_SMOKETEST_DEBUG_PARENT" ) != null ) {
376381 // for convenience when debugging locally
You can’t perform that action at this time.
0 commit comments