File tree 3 files changed +13
-10
lines changed
3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,12 @@ jobs:
63
63
-Pjqassistant -Pdist -Pci-build -DskipITs
64
64
env :
65
65
DEVELOCITY_ACCESS_KEY : ${{ secrets.DEVELOCITY_ACCESS_KEY }}
66
+ DEVELOCITY_BASE_URL : " ${{ env.DEVELOCITY_BASE_URL || 'https://develocity.commonhaus.dev' }}"
66
67
- name : Running integration tests in the default environment
67
68
run : |
68
69
./mvnw $MAVEN_ARGS ${{ matrix.os.maven.args }} clean verify \
69
70
-Pskip-checks \
70
71
${{ github.event.pull_request.base.ref && format('-Dincremental -Dgib.referenceBranch=refs/remotes/origin/{0}', github.event.pull_request.base.ref) || '' }}
71
72
env :
72
73
DEVELOCITY_ACCESS_KEY : ${{ secrets.DEVELOCITY_ACCESS_KEY }}
74
+ DEVELOCITY_BASE_URL : " ${{ env.DEVELOCITY_BASE_URL || 'https://develocity.commonhaus.dev' }}"
Original file line number Diff line number Diff line change 2
2
xmlns =" https://www.gradle.com/develocity-maven" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
3
xsi : schemaLocation =" https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd" >
4
4
<server >
5
- <url >https://ge.hibernate.org </url >
5
+ <url >#{env['DEVELOCITY_BASE_URL']?:' https://develocity.commonhaus.dev'} </url >
6
6
<allowUntrusted >false</allowUntrusted >
7
7
</server >
8
8
<buildScan >
38
38
<remote >
39
39
<enabled >#{properties['no-build-cache'] == null}</enabled >
40
40
<storeEnabled >#{env['CI'] != null and (env['CHANGE_ID']?:'').isBlank() and (env['GITHUB_BASE_REF']?:'').isBlank() and !(env['GRADLE_ENTERPRISE_ACCESS_KEY']?:'').isBlank()}</storeEnabled >
41
- <server >
42
- <url >https://ge.hibernate.org/cache/hsearchtest01/</url >
43
- </server >
44
41
</remote >
45
42
</buildCache >
46
43
</develocity >
Original file line number Diff line number Diff line change @@ -7,12 +7,16 @@ def withMavenWorkspace(Closure body) {
7
7
artifactsPublisher(disabled : true ),
8
8
junitPublisher(disabled : true )
9
9
]) {
10
- withCredentials([string(credentialsId : ' ge.hibernate.org-access-key' ,
11
- variable : ' DEVELOCITY_ACCESS_KEY' )]) {
12
- withGradle { // withDevelocity, actually: https://plugins.jenkins.io/gradle/#plugin-content-capturing-build-scans-from-jenkins-pipeline
13
- body()
14
- }
15
- }
10
+ def develocityMainCredentialsId = helper. configuration. file?. develocity?. credentials?. main
11
+ def develocityBaseUrl = helper. configuration. file?. develocity?. url
12
+ withEnv([" DEVELOCITY_BASE_URL=${ develocityBaseUrl} " ]) {
13
+ withCredentials([string(credentialsId : develocityMainCredentialsId,
14
+ variable : ' DEVELOCITY_ACCESS_KEY' )]) {
15
+ withGradle { // withDevelocity, actually: https://plugins.jenkins.io/gradle/#plugin-content-capturing-build-scans-from-jenkins-pipeline
16
+ body()
17
+ }
18
+ }
19
+ }
16
20
}
17
21
}
18
22
You can’t perform that action at this time.
0 commit comments