Skip to content

Commit

Permalink
Publish build scans to develocity.apache.org (#5528)
Browse files Browse the repository at this point in the history
* Publish build scans to develocity.apache.org
* Use `DEVELOCITY_ACCESS_KEY` to authenticate to `develocity.apache.org`
* Update Develocity plugin versions
  • Loading branch information
clayburn authored Jan 21, 2025
1 parent 364ace7 commit 7ef091c
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/0-on-demand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ env:
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
GH_BRANCH: ${{ github.head_ref || github.ref_name }}

# https://ge.apache.org
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
# https://develocity.apache.org
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

# (optional) you need to add as secrets an ngrok token and a password to debug a build on demand
NGROK_DEBUG: ${{ inputs.enable_ngrok_debug }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/1-unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ env:
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
GH_BRANCH: ${{ github.head_ref || github.ref_name }}

# https://ge.apache.org
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
# https://develocity.apache.org
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

jobs:
openwhisk:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/2-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ env:
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
GH_BRANCH: ${{ github.head_ref || github.ref_name }}

# https://ge.apache.org
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
# https://develocity.apache.org
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

jobs:
openwhisk:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/3-multi-runtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ env:
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
GH_BRANCH: ${{ github.head_ref || github.ref_name }}

# https://ge.apache.org
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
# https://develocity.apache.org
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

jobs:
openwhisk:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/4-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ env:
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
GH_BRANCH: ${{ github.head_ref || github.ref_name }}

# https://ge.apache.org
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
# https://develocity.apache.org
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

jobs:
openwhisk:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/5-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ env:
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
GH_BRANCH: ${{ github.head_ref || github.ref_name }}

# https://ge.apache.org
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
# https://develocity.apache.org
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

jobs:
openwhisk:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/6-performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ env:
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
GH_BRANCH: ${{ github.head_ref || github.ref_name }}

# https://ge.apache.org
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
# https://develocity.apache.org
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

jobs:
openwhisk:
Expand Down
15 changes: 7 additions & 8 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,20 @@
*/

plugins {
id 'com.gradle.enterprise' version '3.13.2'
id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.10'
id 'com.gradle.develocity' version '3.18.2'
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
}

def isGithubActions = System.getenv('GITHUB_ACTIONS') != null
def isJenkins = System.getenv('JENKINS_URL') != null
def isCI = isGithubActions || isJenkins

gradleEnterprise {
server = "https://ge.apache.org"
develocity {
server = "https://develocity.apache.org"
projectId = "openwhisk"
buildScan {
capture { taskInputFiles = true }
uploadInBackground = !isCI
publishAlways()
publishIfAuthenticated()
publishing.onlyIf { it.isAuthenticated() }
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.
Expand All @@ -44,7 +43,7 @@ buildCache {
enabled = !isCI
}

remote(gradleEnterprise.buildCache) {
remote(develocity.buildCache) {
enabled = false
}
}
Expand Down

0 comments on commit 7ef091c

Please sign in to comment.