From bf508afa17d4f97586ad4347bb2a7fac3f923e64 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Mon, 3 Jun 2024 22:51:33 +0200 Subject: [PATCH 1/5] Added basic Develocity integration --- .mvn/develocity.xml | 45 +++++++++++++++++++++++++++++++++++++++++++++ .mvn/extensions.xml | 13 +++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .mvn/develocity.xml create mode 100644 .mvn/extensions.xml diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml new file mode 100644 index 000000000000..4a469f094a72 --- /dev/null +++ b/.mvn/develocity.xml @@ -0,0 +1,45 @@ + + + + + + + https://ge.apache.org + false + + + #{isFalse(env['GITHUB_ACTIONS'])} + + #{{'0.0.0.0'}} + + + + + + + + + + false + + + false + #{isTrue(env['GITHUB_ACTIONS'])} + + + \ No newline at end of file diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml new file mode 100644 index 000000000000..376697226377 --- /dev/null +++ b/.mvn/extensions.xml @@ -0,0 +1,13 @@ + + + + com.gradle + develocity-maven-extension + 1.21.4 + + + com.gradle + common-custom-user-data-maven-extension + 2.0 + + \ No newline at end of file From e94e4284bc05e7fdd71b699d505514897089df9d Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Mon, 3 Jun 2024 22:55:05 +0200 Subject: [PATCH 2/5] Added develocity access key setup to github actions (maven) workflows --- .github/workflows/build.yml | 3 +++ .github/workflows/ci.yml | 3 +++ .github/workflows/codecov.yml | 3 +++ .github/workflows/linter.yml | 3 +++ .github/workflows/main-sonar-check.yml | 3 +++ .github/workflows/rat.yml | 3 +++ .github/workflows/sonar-check.yml | 3 +++ .github/workflows/ui.yml | 3 +++ 8 files changed, 24 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c6c90a61837..566f4f1120be 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,9 @@ concurrency: permissions: contents: read +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: runs-on: ubuntu-22.04 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fac2d6266fa5..7b2840197499 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,9 @@ concurrency: permissions: contents: read +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: if: github.repository == 'apache/cloudstack' diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index a8f923d708d4..45a43249b4ee 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -26,6 +26,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: if: github.repository == 'apache/cloudstack' diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 784df0cf03ca..b216f35ca823 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -26,6 +26,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: pre-commit: name: Run pre-commit diff --git a/.github/workflows/main-sonar-check.yml b/.github/workflows/main-sonar-check.yml index 66bb1093e040..3fd6d37e4e18 100644 --- a/.github/workflows/main-sonar-check.yml +++ b/.github/workflows/main-sonar-check.yml @@ -26,6 +26,9 @@ permissions: contents: read # to fetch code (actions/checkout) pull-requests: write # for sonar to comment on pull-request +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: if: github.repository == 'apache/cloudstack' diff --git a/.github/workflows/rat.yml b/.github/workflows/rat.yml index b8f83de81940..f4a7e32ff8cf 100644 --- a/.github/workflows/rat.yml +++ b/.github/workflows/rat.yml @@ -26,6 +26,9 @@ concurrency: permissions: contents: read +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: runs-on: ubuntu-22.04 diff --git a/.github/workflows/sonar-check.yml b/.github/workflows/sonar-check.yml index 2ebcf1fb2db7..94ec6faadf5c 100644 --- a/.github/workflows/sonar-check.yml +++ b/.github/workflows/sonar-check.yml @@ -27,6 +27,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: if: github.repository == 'apache/cloudstack' && github.event.pull_request.head.repo.full_name == github.repository diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 476526aff32c..fd575abb2e10 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -26,6 +26,9 @@ concurrency: permissions: contents: read +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: runs-on: ubuntu-22.04 From 2601328052467b8dc3ca1249293a9fb9b8dbfb38 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Mon, 3 Jun 2024 23:28:21 +0200 Subject: [PATCH 3/5] Cleanup --- .mvn/develocity.xml | 19 ++----------------- .mvn/extensions.xml | 2 +- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml index 4a469f094a72..207fab6bc22b 100644 --- a/.mvn/develocity.xml +++ b/.mvn/develocity.xml @@ -1,20 +1,5 @@ - - @@ -39,7 +24,7 @@ false - #{isTrue(env['GITHUB_ACTIONS'])} + #{isTrue(env['GITHUB_ACTIONS'])} - \ No newline at end of file + diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml index 376697226377..ea686d82aaa2 100644 --- a/.mvn/extensions.xml +++ b/.mvn/extensions.xml @@ -10,4 +10,4 @@ common-custom-user-data-maven-extension 2.0 - \ No newline at end of file + From 217cd5d82f70d7feea54a36128745c6ac3d67e02 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Tue, 4 Jun 2024 16:15:12 +0200 Subject: [PATCH 4/5] Added licensing header to .mvn/extensions.xml --- .mvn/extensions.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml index ea686d82aaa2..8f5335529d1d 100644 --- a/.mvn/extensions.xml +++ b/.mvn/extensions.xml @@ -1,4 +1,25 @@ + + com.gradle From 9c66ca41e8e5acdd72ac49d3798a4382347f75f8 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Tue, 4 Jun 2024 17:06:30 +0200 Subject: [PATCH 5/5] Added lincesing info and .gitignore for develocity integration --- .gitignore | 3 +++ .mvn/develocity.xml | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/.gitignore b/.gitignore index 648b93b06965..802ba4d5ab82 100644 --- a/.gitignore +++ b/.gitignore @@ -99,6 +99,9 @@ tools/marvin/marvin/cloudstackAPI/* unittest venv waf-* +waf3-* + +**/.mvn/.develocity* # this ignores _all files starting with '.'. Don't do that! #.* diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml index 207fab6bc22b..b935f389405f 100644 --- a/.mvn/develocity.xml +++ b/.mvn/develocity.xml @@ -1,4 +1,24 @@ +