From 66b3618ea4d0afc91b18467f8341139e3824b8f0 Mon Sep 17 00:00:00 2001 From: Clay Johnson Date: Mon, 20 Mar 2023 14:43:00 -0500 Subject: [PATCH] Publish Build Scans to https://ge.apache.org --- .github/workflows/build-docker-mariadb.yml | 2 ++ .github/workflows/build-docker-postgresql.yml | 2 ++ .github/workflows/build-documentation.yml | 2 ++ .github/workflows/build-mariadb.yml | 1 + .github/workflows/build-mysql.yml | 1 + .github/workflows/build-postgresql.yml | 1 + .github/workflows/sonarqube.yml | 1 + settings.gradle | 31 +++++++++++++++++++ 8 files changed, 41 insertions(+) diff --git a/.github/workflows/build-docker-mariadb.yml b/.github/workflows/build-docker-mariadb.yml index 890d75107..2a247c400 100644 --- a/.github/workflows/build-docker-mariadb.yml +++ b/.github/workflows/build-docker-mariadb.yml @@ -8,6 +8,8 @@ permissions: jobs: build: runs-on: ubuntu-20.04 + env: + GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} steps: - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3 diff --git a/.github/workflows/build-docker-postgresql.yml b/.github/workflows/build-docker-postgresql.yml index 4414a24d6..afccd8044 100644 --- a/.github/workflows/build-docker-postgresql.yml +++ b/.github/workflows/build-docker-postgresql.yml @@ -8,6 +8,8 @@ permissions: jobs: build: runs-on: ubuntu-20.04 + env: + GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} steps: - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3 diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 43799f8f8..25b4c1bc6 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -7,6 +7,8 @@ permissions: jobs: build: runs-on: ubuntu-20.04 + env: + GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} steps: - name: Checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3 diff --git a/.github/workflows/build-mariadb.yml b/.github/workflows/build-mariadb.yml index fd9032567..64fcc6bcb 100644 --- a/.github/workflows/build-mariadb.yml +++ b/.github/workflows/build-mariadb.yml @@ -27,6 +27,7 @@ jobs: env: TZ: Asia/Kolkata + GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} steps: - name: Checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3 diff --git a/.github/workflows/build-mysql.yml b/.github/workflows/build-mysql.yml index 3ad98a7ea..b3913103b 100644 --- a/.github/workflows/build-mysql.yml +++ b/.github/workflows/build-mysql.yml @@ -27,6 +27,7 @@ jobs: env: TZ: Asia/Kolkata + GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} steps: - name: Checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3 diff --git a/.github/workflows/build-postgresql.yml b/.github/workflows/build-postgresql.yml index 94a52a6d6..561d4b277 100644 --- a/.github/workflows/build-postgresql.yml +++ b/.github/workflows/build-postgresql.yml @@ -28,6 +28,7 @@ jobs: env: TZ: Asia/Kolkata + GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} steps: - name: Checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3 diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index d7ba59460..e310877c8 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -17,6 +17,7 @@ jobs: SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} + GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} steps: - name: Checkout uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3 diff --git a/settings.gradle b/settings.gradle index 1c3d774b3..9ffbe4fd1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -16,6 +16,37 @@ * specific language governing permissions and limitations * under the License. */ + +plugins { + id 'com.gradle.enterprise' version '3.12.5' + id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.10' +} + +def isCI = System.getenv('JENKINS_URL') != null + +gradleEnterprise { + server = "https://ge.apache.org" + buildScan { + capture { taskInputFiles = true } + uploadInBackground = !isCI + publishAlways() + publishIfAuthenticated() + obfuscation { + ipAddresses { addresses -> + addresses.collect { address -> + "0.0.0.0" + } + } + } + } +} + +buildCache { + local { + enabled = !isCI + } +} + rootProject.name='fineract' include ':fineract-core' include ':fineract-provider'