This is an automated email from the ASF dual-hosted git repository.

kirs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 77f1afdbac GEODE-10446: Capture build scans on ge.apache.org to 
benefit from deep build insights (#7879)
77f1afdbac is described below

commit 77f1afdbac9208511be14553d5f110d9445faa3b
Author: Clay Johnson <[email protected]>
AuthorDate: Mon Jun 12 08:23:16 2023 -0500

    GEODE-10446: Capture build scans on ge.apache.org to benefit from deep 
build insights (#7879)
---
 .github/workflows/codeql.yml |  2 ++
 .github/workflows/gradle.yml | 20 ++++++++++++++++++++
 settings.gradle              | 30 +++++++++++++++++++++++++++++-
 3 files changed, 51 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index a9d97c0041..822354a09a 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -41,6 +41,8 @@ jobs:
   analyze:
     name: Analyze
     runs-on: ubuntu-latest
+    env:
+      GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
     permissions:
       actions: read
       contents: read
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index 2a931cbc8c..622f157884 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -29,6 +29,8 @@ permissions:
 jobs:
   build:
     runs-on: ubuntu-latest
+    env:
+      GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
     steps:
     - uses: actions/checkout@v3
     - name: Set up JDK 8
@@ -50,6 +52,8 @@ jobs:
          distribution: [ 'liberica' ]
          java: ['11']
      runs-on: ${{ matrix.os }}
+     env:
+       GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
      steps:
      - uses: actions/checkout@v3
      - name: Set up JDK (include all 3 JDKs in the env)
@@ -91,6 +95,8 @@ jobs:
        distribution: ['liberica']
        java: ['8', '11', '17']
    runs-on: ${{ matrix.os }}
+   env:
+     GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
    steps:
    - uses: actions/checkout@v3
    - name: Set up JDK (include all 3 JDKs in env)
@@ -148,6 +154,8 @@ jobs:
          distribution: ['liberica']
          java: ['8']
      runs-on: ${{ matrix.os }}
+     env:
+       GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
      steps:
      - uses: actions/checkout@v3
      - name: Set up JDK
@@ -195,6 +203,8 @@ jobs:
         distribution: ['liberica']
         java: ['8']
     runs-on: ${{ matrix.os }}
+    env:
+      GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
     steps:
       - uses: actions/checkout@v3
       - name: Set up JDK
@@ -235,6 +245,8 @@ jobs:
         distribution: ['liberica']
         java: ['8']
     runs-on: ${{ matrix.os }}
+    env:
+      GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
     steps:
       - uses: actions/checkout@v3
       - name: Set up JDK
@@ -277,6 +289,8 @@ jobs:
         distribution: ['liberica']
         java: ['8']
     runs-on: ${{ matrix.os }}
+    env:
+      GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
     steps:
       - uses: actions/checkout@v3
       - name: Set up JDK
@@ -319,6 +333,8 @@ jobs:
         distribution: ['liberica']
         java: ['8']
     runs-on: ${{ matrix.os }}
+    env:
+      GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
     steps:
       - uses: actions/checkout@v3
       - name: Set up JDK
@@ -361,6 +377,8 @@ jobs:
         distribution: ['liberica']
         java: ['8']
     runs-on: ${{ matrix.os }}
+    env:
+      GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
     steps:
       - uses: actions/checkout@v3
       - name: Set up JDK
@@ -405,6 +423,8 @@ jobs:
         distribution: [ 'liberica' ]
         java: [ '8' ]
     runs-on: ${{ matrix.os }}
+    env:
+      GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
     steps:
       - uses: actions/checkout@v3
       - name: Set up JDK
diff --git a/settings.gradle b/settings.gradle
index 74b2578816..09f362b5db 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -38,6 +38,30 @@ pluginManagement {
   includeBuild('build-tools/scripts')
 }
 
+plugins {
+  id 'com.gradle.enterprise' version '3.13.2'
+  id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.10'
+}
+
+def isGithubActions = System.getenv('GITHUB_ACTIONS') != null
+def isJenkins = System.getenv('JENKINS_URL') != null
+def isCI = isGithubActions || isJenkins
+
+gradleEnterprise {
+  server = "https://ge.apache.org";
+  buildScan {
+    capture { taskInputFiles = true }
+    uploadInBackground = !isCI
+    publishAlways()
+    publishIfAuthenticated()
+    obfuscation {
+      // This obfuscates the IP addresses of the build machine in the build 
scan.
+      // Alternatively, the build scan will provide the hostname for 
troubleshooting host-specific issues.
+      ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} }
+    }
+  }
+}
+
 rootProject.name = 'geode'
 
 // We want to see all test results.  This is equivalent to setting --continue 
on the command line.
@@ -119,6 +143,10 @@ if (GradleVersion.current() < 
GradleVersion.version(minimumGradleVersion)) {
 
 buildCache {
   local {
-    enabled = true
+    enabled = !isCI
+  }
+
+  remote(gradleEnterprise.buildCache) {
+    enabled = false
   }
 }

Reply via email to