Skip to content

Commit

Permalink
Publish build scans to develocity.apache.org (#5165)
Browse files Browse the repository at this point in the history
* Publish build scans to develocity.apache.org
* Update Develocity plugin versions
* Add a projectId
* Use `DEVELOCITY_ACCESS_KEY` to authenticate to `develocity.apache.org`
  • Loading branch information
clayburn authored Jan 21, 2025
1 parent b948412 commit a7a6ba2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- name: GenerateGrammarSource
run: ./gradlew clean generateGrammarSource --parallel --daemon --scan
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
Expand All @@ -72,12 +72,12 @@ jobs:
./gradlew clean build dist jacocoTestReport --parallel --daemon --scan
-x spotlessJava -x generateGrammarSource -x generateDistLicense -x checkDeniedLicense
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

- name: Install plugin
run: ./gradlew installPlugin --scan
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

- name: Upload coverage report to codecov.io
run: bash <(curl -s https://codecov.io/bash) || echo 'Failed to upload coverage report!'
2 changes: 1 addition & 1 deletion .github/workflows/code-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
if: matrix.language == 'java'
run: ./gradlew clean assemble compileTestJava --parallel --daemon --scan
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
7 changes: 4 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@
*/

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

def isCiServer = System.getenv().containsKey("CI")

develocity {
server = "https://ge.apache.org"
server = "https://develocity.apache.org"
projectId = "eventmesh"
buildScan {
uploadInBackground = !isCiServer
publishing.onlyIf { false }
publishing.onlyIf { it.isAuthenticated() }
obfuscation {
ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} }
}
Expand Down

0 comments on commit a7a6ba2

Please sign in to comment.