From 68faa726f5eb27df6a703e1926c5636bc329caec Mon Sep 17 00:00:00 2001 From: Dan Lorenc Date: Fri, 1 Sep 2023 08:45:03 -0400 Subject: [PATCH] Add a maven/configure-mirror pipeline to redirect to GCP. We've seen some slowness and flakiness on GCP runners when hitting maven central. Configuring this is tricky, so I made a pipeline. Signed-off-by: Dan Lorenc --- .../pipelines/maven/configure-mirror.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pkg/build/pipelines/maven/configure-mirror.yaml diff --git a/pkg/build/pipelines/maven/configure-mirror.yaml b/pkg/build/pipelines/maven/configure-mirror.yaml new file mode 100644 index 000000000..56ead9d3f --- /dev/null +++ b/pkg/build/pipelines/maven/configure-mirror.yaml @@ -0,0 +1,20 @@ +name: Configure GCP Maven Central mirror for faster downloads +needs: + packages: + - busybox +pipeline: + runs: | + # Maven checks $USER/.m2, we set $HOME to /home/build but it hardcodes $USER somehow + mkdir -p /root/.m2 + cat > /root/.m2/settings.xml < + + + google-maven-central + GCS Maven Central mirror + https://maven-central.storage-download.googleapis.com/maven2/ + * + + + + EOF