Skip to content

Commit 7ef091c

Browse files
authored
Publish build scans to develocity.apache.org (#5528)
* Publish build scans to develocity.apache.org * Use `DEVELOCITY_ACCESS_KEY` to authenticate to `develocity.apache.org` * Update Develocity plugin versions
1 parent 364ace7 commit 7ef091c

File tree

8 files changed

+21
-22
lines changed

8 files changed

+21
-22
lines changed

.github/workflows/0-on-demand.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ env:
5656
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
5757
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
5858

59-
# https://ge.apache.org
60-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
59+
# https://develocity.apache.org
60+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
6161

6262
# (optional) you need to add as secrets an ngrok token and a password to debug a build on demand
6363
NGROK_DEBUG: ${{ inputs.enable_ngrok_debug }}

.github/workflows/1-unit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ env:
5151
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
5252
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
5353

54-
# https://ge.apache.org
55-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
54+
# https://develocity.apache.org
55+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
5656

5757
jobs:
5858
openwhisk:

.github/workflows/2-system.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ env:
4646
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
4747
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
4848

49-
# https://ge.apache.org
50-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
49+
# https://develocity.apache.org
50+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
5151

5252
jobs:
5353
openwhisk:

.github/workflows/3-multi-runtime.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ env:
4646
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
4747
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
4848

49-
# https://ge.apache.org
50-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
49+
# https://develocity.apache.org
50+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
5151

5252
jobs:
5353
openwhisk:

.github/workflows/4-standalone.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ env:
4646
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
4747
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
4848

49-
# https://ge.apache.org
50-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
49+
# https://develocity.apache.org
50+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
5151

5252
jobs:
5353
openwhisk:

.github/workflows/5-scheduler.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ env:
4646
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
4747
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
4848

49-
# https://ge.apache.org
50-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
49+
# https://develocity.apache.org
50+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
5151

5252
jobs:
5353
openwhisk:

.github/workflows/6-performance.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ env:
4646
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
4747
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
4848

49-
# https://ge.apache.org
50-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
49+
# https://develocity.apache.org
50+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
5151

5252
jobs:
5353
openwhisk:

settings.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,20 @@
1616
*/
1717

1818
plugins {
19-
id 'com.gradle.enterprise' version '3.13.2'
20-
id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.10'
19+
id 'com.gradle.develocity' version '3.18.2'
20+
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
2121
}
2222

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

27-
gradleEnterprise {
28-
server = "https://ge.apache.org"
27+
develocity {
28+
server = "https://develocity.apache.org"
29+
projectId = "openwhisk"
2930
buildScan {
30-
capture { taskInputFiles = true }
3131
uploadInBackground = !isCI
32-
publishAlways()
33-
publishIfAuthenticated()
32+
publishing.onlyIf { it.isAuthenticated() }
3433
obfuscation {
3534
// This obfuscates the IP addresses of the build machine in the build scan.
3635
// Alternatively, the build scan will provide the hostname for troubleshooting host-specific issues.
@@ -44,7 +43,7 @@ buildCache {
4443
enabled = !isCI
4544
}
4645

47-
remote(gradleEnterprise.buildCache) {
46+
remote(develocity.buildCache) {
4847
enabled = false
4948
}
5049
}

0 commit comments

Comments
 (0)