Skip to content

Commit 9892d5e

Browse files
committed
HSEARCH-5160 Add an option to test against future Lucene versions (e.g. 11)
1 parent 4a9c6a4 commit 9892d5e

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

ci/dependency-update/Jenkinsfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ Map settings() {
3434
]
3535
case 'lucene10':
3636
return [
37-
updateProperties: ['version.org.apache.lucene.next'],
37+
updateProperties: ['version.org.apache.lucene.next.updatable'],
38+
onlyRunTestDependingOn: ['hibernate-search-backend-lucene-next'],
39+
additionalMavenArgs: '-Dtest.elasticsearch.skip=true -pl :hibernate-search-backend-lucene-next,:hibernate-search-util-internal-integrationtest-backend-lucene-next'
40+
]
41+
case 'lucene-future':
42+
return [
43+
updateProperties: ['version.org.apache.lucene.next.updatable'],
3844
onlyRunTestDependingOn: ['hibernate-search-backend-lucene-next'],
3945
additionalMavenArgs: '-Dtest.elasticsearch.skip=true -pl :hibernate-search-backend-lucene-next,:hibernate-search-util-internal-integrationtest-backend-lucene-next'
4046
]
@@ -137,7 +143,7 @@ pipeline {
137143
parameters {
138144
// choice parameter doesn't have a default, but the first value should be treated as a default, if it wasn't specified manually.
139145
// Make sure tp update axis and settings() when adding new choice parameter.
140-
choice(name: 'UPDATE_JOB', choices: ['all', 'orm7', 'lucene9.12','lucene9', 'lucene10', 'elasticsearch-current', 'elasticsearch-next', 'elasticsearch-future'], description: 'Select which update jobs to run. `All` will include all configured update jobs.')
146+
choice(name: 'UPDATE_JOB', choices: ['all', 'orm7', 'lucene9.12','lucene9', 'lucene10', 'lucene-future', 'elasticsearch-current', 'elasticsearch-next', 'elasticsearch-future'], description: 'Select which update jobs to run. `All` will include all configured update jobs.')
141147
string(name: 'ORM_REPOSITORY', defaultValue: '', description: 'Git URL to Hibernate ORM repository. If provided, Hibernate ORM will be built locally. Works only in pair with ORM_BRANCH. Provide an http repository URL rather than an ssh one.')
142148
string(name: 'ORM_BRANCH', defaultValue: '', description: 'Hibernate ORM branch to build from. If provided, Hibernate ORM will be built locally. Works only in pair with ORM_REPOSITORY. Either a pull request ID or a branch name should be provided, but not both at the same time. Use branch if you want to build from a fork repository.')
143149
string(name: 'ORM_PULL_REQUEST_ID', defaultValue: '', description: 'Hibernate ORM pull request id to build from. If provided, Hibernate ORM will be built locally. Works only in pair with ORM_REPOSITORY. Either a pull request ID or a branch name should be provided, but not both at the same time.')
@@ -235,7 +241,7 @@ pipeline {
235241
name 'DEPENDENCY_UPDATE_NAME'
236242
// NOTE: Remember to update the settings() method above when changing this.
237243
// And also add a new choice parameter in the parameters {} section of the pipeline
238-
values 'orm7', 'lucene9.12','lucene9', 'lucene10', 'elasticsearch-current', 'elasticsearch-next', 'elasticsearch-future'
244+
values 'orm7', 'lucene9.12','lucene9', 'lucene10', 'lucene-future', 'elasticsearch-current', 'elasticsearch-next', 'elasticsearch-future'
239245
}
240246
}
241247
stages {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<ruleset comparisonMethod="maven"
2+
xmlns="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 http://mojo.codehaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd">
5+
<ignoreVersions>
6+
<!-- Restrict allowed versions to a particular major/range-of-minors, because forbidding major/minor upgrades
7+
in the version-maven-plugin configuration doesn't always work for some reason. -->
8+
<ignoreVersion type="regex">(?!\d\d\.\d+\.).*</ignoreVersion>
9+
</ignoreVersions>
10+
</ruleset>

0 commit comments

Comments
 (0)