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 bad987d commit 22e4703
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 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
4 changes: 2 additions & 2 deletions eventmesh-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ eventmesh-runtime-0-a-0 1/1 Running 0 12m

kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
connector-rocketmq-0 1/1 Running 0 13m 127.0.0.1 minikube <none> <none>
eventmesh-runtime-0-a-0 1/1 Running 0 13m 127.0.0.1 minikube <none> <none>
connector-rocketmq-0 1/1 Running 0 13m 10.244.0.21 minikube <none> <none>
eventmesh-runtime-0-a-0 1/1 Running 0 13m 10.244.0.20 minikube <none> <none>
```
4 changes: 2 additions & 2 deletions eventmesh-sdks/eventmesh-sdk-c/configs/rmb.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

consumerSysId 1000
consumerSysVersion 1.0.0
consumerSvrId 127.0.0.1
consumerSvrId 10.199.199.199
consumerDcn A00
orgId 99996
localIdc A
Expand Down Expand Up @@ -49,7 +49,7 @@ ReqGslSwitch 0

#wemq cc configure
wemqUseHttpCfg 1
configCenterIp 127.0.0.1
configCenterIp 10.255.34.57
configCenterPort 8090
configCenterAddrMulti 127.0.0.1:8090
#connect directly to access when: wemqUseHttpCfg 0
Expand Down
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 22e4703

Please sign in to comment.