Skip to content

Commit f331e6f

Browse files
authored
Avoid bom version mismatches with jenkins.baseline (#403)
The Jenkins plugin archetype uses jenkins.baseline to prevent inconsistencies between the minimum required Jenkins version and the Jenkins plugin bill of materials version. Use the same technique in this plugin.
1 parent 5ac1e7c commit f331e6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pom.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
<properties>
3434
<changelist>999999-SNAPSHOT</changelist>
3535
<gitHubRepo>jenkinsci/parameterized-trigger-plugin</gitHubRepo>
36-
<jenkins.version>2.440.3</jenkins.version>
36+
<jenkins.baseline>2.440</jenkins.baseline>
37+
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
3738
<spotbugs.effort>Max</spotbugs.effort>
3839
<spotbugs.threshold>Low</spotbugs.threshold>
3940
<spotless.check.skip>false</spotless.check.skip>
@@ -43,7 +44,7 @@
4344
<dependencies>
4445
<dependency>
4546
<groupId>io.jenkins.tools.bom</groupId>
46-
<artifactId>bom-2.440.x</artifactId>
47+
<artifactId>bom-${jenkins.baseline}.x</artifactId>
4748
<version>3435.v238d66a_043fb_</version>
4849
<type>pom</type>
4950
<scope>import</scope>

0 commit comments

Comments
 (0)