|
1 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> |
2 | | - |
3 | | -<!-- Common develocity.xml configuration for Maven shared between CI agents and developers building locally. |
4 | | -
|
5 | | - The build cache credentials required for CI builds to write to the remote build cache are read from environment variables. |
6 | | - Possibly, the credentials are configured in Jenkins via Credentials plugin (https://plugins.jenkins.io/credentials/) and |
7 | | - Credentials Binding plugin (https://plugins.jenkins.io/credentials-binding/), or the credentials are injected using the |
8 | | - vendor-specific mechanism of the CI server running the build. |
9 | | -
|
10 | | - Note: In the XML configuration below, you need to adjust |
11 | | -
|
12 | | - - the server url of your Develocity server |
13 | | - - the name of the environment variable that reveals the build is running in a CI environment |
14 | | - - the names of the environment variables holding the build cache credentials |
15 | | -
|
16 | | - to the specifics of your CI server settings. --> |
17 | | - |
18 | 2 | <develocity |
19 | 3 | xmlns="https://www.gradle.com/develocity-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
20 | 4 | xsi:schemaLocation="https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd"> |
| 5 | + <projectId>OpenAPITools</projectId> |
21 | 6 | <server> |
22 | | - <url>https://ge.openapi-generator.tech/</url> |
23 | | - <allowUntrusted>false</allowUntrusted> |
| 7 | + <url>https://community.develocity.cloud</url> |
24 | 8 | </server> |
25 | 9 | <buildScan> |
26 | | - <backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload> <!-- adjust to your CI provider --> |
| 10 | + <backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload> |
27 | 11 | <publishing> |
28 | 12 | <onlyIf>authenticated</onlyIf> |
29 | 13 | </publishing> |
30 | 14 | <obfuscation> |
31 | | - <!-- Use a redacted value.--> |
32 | 15 | <ipAddresses>#{{'0.0.0.0'}}</ipAddresses> |
33 | 16 | </obfuscation> |
34 | 17 | </buildScan> |
35 | 18 | <buildCache> |
36 | | - <local> |
37 | | - <enabled>true</enabled> |
38 | | - </local> |
39 | 19 | <remote> |
40 | | - <enabled>true</enabled> |
41 | | - <!-- Check credentials presence to avoid build cache errors on PR builds when credentials are not present --> |
42 | | - <storeEnabled>#{isTrue(env['CI']) and isTrue(env['GRADLE_ENTERPRISE_ACCESS_KEY'])}</storeEnabled> |
| 20 | + <storeEnabled>#{isTrue(env['CI']) and isTrue(env['DEVELOCITY_ACCESS_KEY'])}</storeEnabled> |
43 | 21 | </remote> |
44 | 22 | </buildCache> |
45 | 23 | </develocity> |
0 commit comments