This is an automated email from the ASF dual-hosted git repository.
apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 45915d3ae079 Configure Maven cache for Atlassian artifacts on GitHub
Actions
45915d3ae079 is described below
commit 45915d3ae079e6c622a8c02386c82cfcaa65a9fc
Author: Aurélien Pupier <[email protected]>
AuthorDate: Fri Jun 12 10:14:03 2026 +0200
Configure Maven cache for Atlassian artifacts on GitHub Actions
This is not ideal as we won't caught if the remote reposiotry completely
vanish.
It is configured only for Linux based GitHub workflows for now (which
are the one running the most often and more likely to hit this issue)
use the same configuration than what camel-quarkus is using.
so far no proposition or explanation come from Atlassian
https://community.developer.atlassian.com/t/more-and-more-frequent-403-when-downloading-maven-artifacts/101078
Signed-off-by: Aurélien Pupier <[email protected]>
---
.github/workflows/main-build.yml | 21 +++++++++++++++++++++
.github/workflows/pr-build-main.yml | 20 ++++++++++++++++++++
2 files changed, 41 insertions(+)
diff --git a/.github/workflows/main-build.yml b/.github/workflows/main-build.yml
index d94d46ce387b..528709692a56 100644
--- a/.github/workflows/main-build.yml
+++ b/.github/workflows/main-build.yml
@@ -51,6 +51,18 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
+ - name: Get Atlassian dependency version
+ id: atlassian-version
+ run: |
+ JIRA_VERSION=$(./mvnw help:evaluate
-Dexpression=jira-rest-client-api-version -q -DforceStdout -N -f parent/pom.xml)
+ echo "version=${JIRA_VERSION}" >> $GITHUB_OUTPUT
+ - name: Restore Atlassian Maven Cache
+ uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae #
v5.0.5
+ with:
+ path: |
+ ~/.m2/repository/com/atlassian
+ ~/.m2/repository/io/atlassian
+ key: atlassian-maven-${{ steps.atlassian-version.outputs.version }}
- name: maven build
run: ./etc/scripts/regen.sh
- name: archive logs
@@ -59,6 +71,15 @@ jobs:
with:
name: main-build-${{ matrix.java }}.log
path: build.log
+ - name: Save Atlassian Maven Cache
+ uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae #
v5.0.5
+ if: always()
+ with:
+ path: |
+ ~/.m2/repository/com/atlassian
+ ~/.m2/repository/io/atlassian
+ key: atlassian-maven-${{ steps.atlassian-version.outputs.version }}
+
- name: Fail if there are uncommitted changes
shell: bash
run: |
diff --git a/.github/workflows/pr-build-main.yml
b/.github/workflows/pr-build-main.yml
index 1cb4bf59fb19..3e23ef922c9a 100644
--- a/.github/workflows/pr-build-main.yml
+++ b/.github/workflows/pr-build-main.yml
@@ -90,6 +90,18 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
+ - name: Get Atlassian dependency version
+ id: atlassian-version
+ run: |
+ JIRA_VERSION=$(./mvnw help:evaluate
-Dexpression=jira-rest-client-api-version -q -DforceStdout -N -f parent/pom.xml)
+ echo "version=${JIRA_VERSION}" >> $GITHUB_OUTPUT
+ - name: Restore Atlassian Maven Cache
+ uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae #
v5.0.5
+ with:
+ path: |
+ ~/.m2/repository/com/atlassian
+ ~/.m2/repository/io/atlassian
+ key: atlassian-maven-${{ steps.atlassian-version.outputs.version }}
- name: maven build
if: ${{ !inputs.skip_full_build }}
env:
@@ -108,6 +120,14 @@ jobs:
with:
name: build-${{ matrix.java }}.log
path: build.log
+ - name: Save Atlassian Maven Cache
+ uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae #
v5.0.5
+ if: always()
+ with:
+ path: |
+ ~/.m2/repository/com/atlassian
+ ~/.m2/repository/io/atlassian
+ key: atlassian-maven-${{ steps.atlassian-version.outputs.version }}
- name: Fail if there are uncommitted changes
if: ${{ !inputs.skip_full_build }}
shell: bash