Skip to content

Commit f9d6e41

Browse files
authored
Merge pull request #16 from tylerbertrand/tylerbertrand/develocity-migration
Switch to the Commonhaus Develocity instance
2 parents 7adb8c2 + 5e62e23 commit f9d6e41

File tree

5 files changed

+26
-19
lines changed

5 files changed

+26
-19
lines changed

.github/workflows/build.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ jobs:
6262
./mvnw $MAVEN_ARGS ${{ matrix.os.maven.args }} clean install \
6363
-Pjqassistant -Pdist -Pci-build -DskipITs
6464
env:
65-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
65+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
66+
DEVELOCITY_BASE_URL: "${{ env.DEVELOCITY_BASE_URL || 'https://develocity.commonhaus.dev' }}"
6667
- name: Running integration tests in the default environment
6768
run: |
6869
./mvnw $MAVEN_ARGS ${{ matrix.os.maven.args }} clean verify \
6970
-Pskip-checks \
7071
${{ github.event.pull_request.base.ref && format('-Dincremental -Dgib.referenceBranch=refs/remotes/origin/{0}', github.event.pull_request.base.ref) || '' }}
7172
env:
72-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
73+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
74+
DEVELOCITY_BASE_URL: "${{ env.DEVELOCITY_BASE_URL || 'https://develocity.commonhaus.dev' }}"

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@ nb-configuration.xml
3838
# Local environment
3939
.env
4040

41-
# Gradle Enterprise/Develocity
41+
# Gradle Enterprise (obsolete)
4242
/.mvn/.gradle-enterprise
43+
44+
# Develocity
45+
/.mvn/.develocity
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<gradleEnterprise
2-
xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd">
1+
<develocity
2+
xmlns="https://www.gradle.com/develocity-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd">
44
<server>
5-
<url>https://ge.hibernate.org</url>
5+
<url>#{env['DEVELOCITY_BASE_URL']?:'https://develocity.commonhaus.dev'}</url>
66
<allowUntrusted>false</allowUntrusted>
77
</server>
88
<buildScan>
@@ -16,12 +16,17 @@
1616
<!--
1717
Expression support is documented here: https://docs.gradle.com/enterprise/maven-extension/#expression_support
1818
-->
19+
<publishing>
20+
<onlyIf>
21+
<![CDATA[authenticated]]>
22+
</onlyIf>
23+
</publishing>
1924
<obfuscation>
20-
<!-- Don't share ip addresses-->
21-
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
25+
<!-- Don't share ip addresses-->
26+
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
2227
</obfuscation>
2328
<capture>
24-
<goalInputFiles>true</goalInputFiles>
29+
<fileFingerprints>true</fileFingerprints>
2530
</capture>
2631
<!-- https://docs.gradle.com/enterprise/maven-extension/#manual_access_key_configuration -->
2732
<backgroundBuildScanUpload>#{env['CI'] == null}</backgroundBuildScanUpload>
@@ -33,9 +38,6 @@
3338
<remote>
3439
<enabled>#{properties['no-build-cache'] == null}</enabled>
3540
<storeEnabled>#{env['CI'] != null and (env['CHANGE_ID']?:'').isBlank() and (env['GITHUB_BASE_REF']?:'').isBlank() and !(env['GRADLE_ENTERPRISE_ACCESS_KEY']?:'').isBlank()}</storeEnabled>
36-
<server>
37-
<url>https://ge.hibernate.org/cache/hsearchtest01/</url>
38-
</server>
3941
</remote>
4042
</buildCache>
41-
</gradleEnterprise>
43+
</develocity>

.mvn/extensions.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<extensions>
22
<extension>
33
<groupId>com.gradle</groupId>
4-
<artifactId>gradle-enterprise-maven-extension</artifactId>
5-
<version>1.20.1</version>
4+
<artifactId>develocity-maven-extension</artifactId>
5+
<version>1.23.2</version>
66
</extension>
77
<extension>
88
<groupId>com.gradle</groupId>
99
<artifactId>common-custom-user-data-maven-extension</artifactId>
10-
<version>1.13</version>
10+
<version>2.0.1</version>
1111
</extension>
1212
</extensions>

Jenkinsfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ def withMavenWorkspace(Closure body) {
77
artifactsPublisher(disabled: true),
88
junitPublisher(disabled: true)
99
]) {
10-
withCredentials([string(credentialsId: 'ge.hibernate.org-access-key',
11-
variable: 'GRADLE_ENTERPRISE_ACCESS_KEY')]) {
10+
// These credentials can only push reports.
11+
withCredentials([string(credentialsId: 'ge.hibernate.org-access-key-pr')]) {
1212
withGradle { // withDevelocity, actually: https://plugins.jenkins.io/gradle/#plugin-content-capturing-build-scans-from-jenkins-pipeline
1313
body()
1414
}

0 commit comments

Comments
 (0)