File tree Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Expand file tree Collapse file tree 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,26 @@ source ${scriptDir}/common.sh
27
27
mvn -version
28
28
echo ${JOB_TYPE}
29
29
30
+ # TODO: We'll change define this value in a different place later
31
+ if [[ " ${JOB_TYPE} " == " integration" ]]; then
32
+ SHARED_DEPS_OVERRIDE=3.45.2-SNAPSHOT
33
+ fi
34
+ if [ -n " ${SHARED_DEPS_OVERRIDE} " ]; then
35
+ echo " Account used for Artifact Registry authentication"
36
+ echo " gcloud config get-value core/account:"
37
+ gcloud config get-value core/account
38
+ echo " wget a file from Artifact Registry:"
39
+ wget --quiet --header=" Authorization: Bearer $( gcloud auth print-access-token) " \
40
+ --output-document=/dev/null \
41
+ https://us-maven.pkg.dev/suztomo-cloud-function-test/test-maven-repo/com/google/cloud/google-cloud-shared-dependencies/3.45.2-latest-deps-2024-0418-102802/google-cloud-shared-dependencies-3.45.2-latest-deps-2024-0418-102802.pom
42
+
43
+ # Tell the integration tests to use the specific shared dependencies available in the snapshot repository.
44
+ INTEGRATION_TEST_ARGS=" ${INTEGRATION_TEST_ARGS} -Dgoogle-cloud-shared-dependencies.version=${SHARED_DEPS_OVERRIDE} -Puse-snapshot-repo"
45
+ echo " Showing dependency tree"
46
+ mvn -B ${INTEGRATION_TEST_ARGS} -ntp dependency:tree
47
+ echo " End of dependency tree"
48
+ fi
49
+
30
50
# attempt to install 3 times with exponential backoff (starting with 10 seconds)
31
51
retry_with_backoff 3 10 \
32
52
mvn install -B -V -ntp \
Original file line number Diff line number Diff line change
1
+ <extensions xmlns =" http://maven.apache.org/EXTENSIONS/1.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : schemaLocation =" http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd" >
3
+ <!-- Extension to allow us to use the "artifactregistry://" URL scheme -->
4
+ <extension >
5
+ <groupId >com.google.cloud.artifactregistry</groupId >
6
+ <artifactId >artifactregistry-maven-wagon</artifactId >
7
+ <version >2.2.5</version >
8
+ </extension >
9
+ </extensions >
10
+
Original file line number Diff line number Diff line change 365
365
</plugins >
366
366
</build >
367
367
</profile >
368
+ <profile >
369
+ <id >use-snapshot-repo</id >
370
+ <repositories >
371
+ <repository >
372
+ <id >artifact-registry</id >
373
+ <url >artifactregistry://us-maven.pkg.dev/suztomo-cloud-function-test/test-maven-repo-snapshot</url >
374
+ <releases >
375
+ <enabled >true</enabled >
376
+ </releases >
377
+ <snapshots >
378
+ <enabled >true</enabled >
379
+ </snapshots >
380
+ </repository >
381
+ </repositories >
382
+ </profile >
368
383
</profiles >
369
384
370
385
<modules >
You can’t perform that action at this time.
0 commit comments