Skip to content

Commit

Permalink
HSEARCH-5094 Upgrade to hibernate-search-develocity-extension 1.0.6.F…
Browse files Browse the repository at this point in the history
…inal

Better container/Elasticsearch tags and JDK tag, making the build env
tag unnecessary.

Opt-in exact Java version matching.
  • Loading branch information
yrodiere committed Mar 1, 2024
1 parent 3e91cfb commit f221b40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
<extension>
<groupId>org.hibernate.search.develocity</groupId>
<artifactId>hibernate-search-develocity-extension</artifactId>
<version>1.0.5.Final</version>
<version>1.0.6.Final</version>
</extension>
</extensions>
10 changes: 8 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,14 @@ void mavenNonDefaultBuild(BuildEnvironment buildEnv, String args, List<String> a
String toTestEnvironmentArgs(BuildEnvironment buildEnv) {
String args = ''

// Make the build env tag available in Develocity
args += "-Dscan.tag.${buildEnv.tag}"
// Enable exact matching of the JDK version for Develocity build caches.
// This is enabled on this build only to avoid problems with
// Other builds (local, GitHub actions) do not enable this and thus benefit
// from more lenient cache hits.
// The behavior is implemented in our Maven extension, see:
// https://github.com/hibernate/hibernate-search-develocity-extension
args += " -Dbuild-cache.java-version.exact"

// Add a suffix to tests to distinguish between different executions
// of the same test in different environments in reports
def testSuffix = buildEnv.tag.replaceAll('[^a-zA-Z0-9_\\-+]+', '_')
Expand Down

0 comments on commit f221b40

Please sign in to comment.