-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b596e5
commit 529371c
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
|
||
<!-- Common develocity.xml configuration for Maven shared between CI agents and developers building locally. | ||
The build cache credentials required for CI builds to write to the remote build cache are read from environment variables. | ||
Possibly, the credentials are configured in Jenkins via Credentials plugin (https://plugins.jenkins.io/credentials/) and | ||
Credentials Binding plugin (https://plugins.jenkins.io/credentials-binding/), or the credentials are injected using the | ||
vendor-specific mechanism of the CI server running the build. | ||
Note: In the XML configuration below, you need to adjust | ||
- the server url of your Develocity server | ||
- the name of the environment variable that reveals the build is running in a CI environment | ||
- the names of the environment variables holding the build cache credentials | ||
to the specifics of your CI server settings. --> | ||
|
||
<develocity | ||
xmlns="https://www.gradle.com/develocity-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd"> | ||
<server> | ||
<url>https://develocity.commonhaus.dev</url> <!-- adjust to your Develocity server --> | ||
<allowUntrusted>false</allowUntrusted> <!-- ensure a trusted certificate is configured --> | ||
</server> | ||
<projectId>morphia</projectId> | ||
<buildScan> | ||
<backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload> <!-- adjust to your CI provider --> | ||
<publishing> | ||
<onlyIf><![CDATA[authenticated]]></onlyIf> | ||
</publishing> | ||
<obfuscation> | ||
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses> | ||
</obfuscation> | ||
</buildScan> | ||
<buildCache> | ||
<local> | ||
<enabled>false</enabled> | ||
</local> | ||
<remote> | ||
<enabled>false</enabled> | ||
<storeEnabled>#{isTrue(env['CI'])}</storeEnabled> <!-- adjust to your CI provider --> | ||
</remote> | ||
</buildCache> | ||
</develocity> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters