Browse Source
This change publishes a build scan to ge.spring.io for every local build from an authenticated Spring committer and for CI where appropriate access tokens are available. The build will not fail if publishing fails. This change also allows the build to benefit from local and remote build caching, providing faster builds for all contributors. Additionally, the project will have access to all features of Gradle Enterprise such as: - Dashboards to view all historical build scans, along with performance trends over time - Build failure analytics for enhanced investigation and diagnosis of build failures - Test failure analytics to better understand trends and causes around slow, failing, and flaky tests See #3142pull/3173/head
9 changed files with 100 additions and 14 deletions
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<extensions> |
||||
<extension> |
||||
<groupId>com.gradle</groupId> |
||||
<artifactId>gradle-enterprise-maven-extension</artifactId> |
||||
<version>1.18.1</version> |
||||
</extension> |
||||
<extension> |
||||
<groupId>com.gradle</groupId> |
||||
<artifactId>common-custom-user-data-maven-extension</artifactId> |
||||
<version>1.12.2</version> |
||||
</extension> |
||||
</extensions> |
||||
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> |
||||
<gradleEnterprise |
||||
xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd"> |
||||
<server> |
||||
<url>https://ge.spring.io</url> |
||||
</server> |
||||
<buildScan> |
||||
<backgroundBuildScanUpload>false</backgroundBuildScanUpload> |
||||
<captureGoalInputFiles>true</captureGoalInputFiles> |
||||
<publishIfAuthenticated>true</publishIfAuthenticated> |
||||
<obfuscation> |
||||
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses> |
||||
</obfuscation> |
||||
</buildScan> |
||||
<buildCache> |
||||
<local> |
||||
<enabled>true</enabled> |
||||
</local> |
||||
<remote> |
||||
<server> |
||||
<credentials> |
||||
<username>spring-builds+jenkins</username> |
||||
<password>${env.GRADLE_ENTERPRISE_CACHE_PASSWORD}</password> |
||||
</credentials> |
||||
</server> |
||||
<enabled>true</enabled> |
||||
<storeEnabled>#{env['GRADLE_ENTERPRISE_CACHE_USERNAME'] != null and env['GRADLE_ENTERPRISE_CACHE_PASSWORD'] != null}</storeEnabled> |
||||
</remote> |
||||
</buildCache> |
||||
</gradleEnterprise> |
||||
@ -1,6 +0,0 @@
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash -x |
||||
|
||||
set -euo pipefail |
||||
|
||||
MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" \ |
||||
./mvnw -s settings.xml clean -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-jpa |
||||
Loading…
Reference in new issue