@@ -13,30 +13,36 @@ Map settings() {
13
13
case ' orm6.2' :
14
14
return [
15
15
updateProperties : [' version.org.hibernate.orm' ],
16
- onlyRunTestDependingOn : [' hibernate-search-mapper-orm' ]
16
+ onlyRunTestDependingOn : [' hibernate-search-mapper-orm' ],
17
+ requiresSourceModifications : true
17
18
]
18
19
case ' orm6.3' :
19
20
return [
20
21
updateProperties : [' version.org.hibernate.orm' ],
21
- onlyRunTestDependingOn : [' hibernate-search-mapper-orm' ]
22
+ onlyRunTestDependingOn : [' hibernate-search-mapper-orm' ],
23
+ requiresSourceModifications : true
22
24
]
23
25
case ' lucene9' :
24
26
return [
25
27
updateProperties : [' version.org.apache.lucene' ],
26
28
onlyRunTestDependingOn : [' hibernate-search-backend-lucene' ],
29
+ requiresSourceModifications : true
27
30
]
28
31
case ' lucene10' :
29
32
return [
30
33
updateProperties : [' version.org.apache.lucene' ],
31
34
onlyRunTestDependingOn : [' hibernate-search-backend-lucene' ],
35
+ requiresSourceModifications : true
32
36
]
33
37
case ' elasticsearch-latest' :
34
38
return [
35
39
// There are no properties to update in this case.
36
40
updateProperties : [],
37
41
onlyRunTestDependingOn : [' hibernate-search-backend-elasticsearch' ],
38
42
// We want to use the snapshot version of an image from the ES registry since that's where they are publishing their snapshots.
39
- additionalMavenArgs : ' -Dtest.elasticsearch.run.elastic.image.name=docker.elastic.co/elasticsearch/elasticsearch -Dtest.elasticsearch.run.elastic.image.tag=master-SNAPSHOT'
43
+ additionalMavenArgs : ' -Dtest.elasticsearch.run.elastic.image.name=docker.elastic.co/elasticsearch/elasticsearch -Dtest.elasticsearch.run.elastic.image.tag=master-SNAPSHOT' ,
44
+ // This job won't change the versions in the pom. We are passing the latest Elasticsearch version through an additional maven argument `-D`
45
+ requiresSourceModifications : false
40
46
]
41
47
default :
42
48
return [:]
@@ -161,7 +167,7 @@ pipeline {
161
167
sh " ci/dependency-update/perform-update.sh ${ env.DEPENDENCY_UPDATE_NAME} '${ settings().updateProperties?.join(",") ?: ''} '"
162
168
}
163
169
script {
164
- if (0 != sh(script : " git diff origin/${ BRANCH_NAME} | grep -q '.'" , returnStatus : true )) {
170
+ if (settings() . requiresSourceModifications && 0 != sh(script : " git diff origin/${ BRANCH_NAME} | grep -q '.'" , returnStatus : true )) {
165
171
error " This job does not seem to update any dependency; perhaps it is misconfigured? The source code has not been updated, neither by merging a WIP branch nor by updating version properties."
166
172
}
167
173
}
0 commit comments