Skip to content

Commit

Permalink
Allow dependency jobs to specify JDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta authored and yrodiere committed Mar 4, 2024
1 parent 7824ef8 commit 120f306
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/dependency-update/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Map settings() {
]
case 'lucene10':
return [
testCompilerTool: 'OpenJDK 21 Latest',
updateProperties: ['version.org.apache.lucene'],
onlyRunTestDependingOn: ['hibernate-search-backend-lucene'],
additionalMavenArgs: '-Dtest.elasticsearch.skip=true -pl :hibernate-search-backend-lucene,:hibernate-search-util-internal-integrationtest-backend-lucene'
Expand Down Expand Up @@ -73,7 +74,8 @@ def pullContainerImages() {
}

def withMavenWorkspace(Closure body) {
withMaven(jdk: 'OpenJDK 17 Latest', maven: 'Apache Maven 3.9',
var actualJdk = settings().testCompilerTool == null ? 'OpenJDK 17 Latest' : settings().testCompilerTool
withMaven(jdk: actualJdk, maven: 'Apache Maven 3.9',
mavenLocalRepo: env.WORKSPACE_TMP + '/.m2repository',
options: [artifactsPublisher(disabled: true)]) {
body()
Expand Down

0 comments on commit 120f306

Please sign in to comment.