Skip to content

Commit 983cb63

Browse files
authored
Add jenkins.baseline variable to reduce manual bom update mistakes (#737)
1 parent f205696 commit 983cb63

File tree

3 files changed

+9
-6
lines changed
  • empty-plugin/src/main/resources/archetype-resources
  • global-configuration/src/main/resources/archetype-resources
  • hello-world/src/main/resources/archetype-resources

3 files changed

+9
-6
lines changed

empty-plugin/src/main/resources/archetype-resources/pom.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
<revision>1.0</revision>
3636
<changelist>-SNAPSHOT</changelist>
3737
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
38-
<jenkins.version>2.440.3</jenkins.version>
38+
<jenkins.baseline>2.440</jenkins.baseline>
39+
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
3940
#if( $hostOnJenkinsGitHub == "true" )
4041
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
4142
#end
@@ -47,7 +48,7 @@
4748
<dependencies>
4849
<dependency>
4950
<groupId>io.jenkins.tools.bom</groupId>
50-
<artifactId>bom-2.440.x</artifactId>
51+
<artifactId>bom-${jenkins.baseline}.x</artifactId>
5152
<version>3208.vb_21177d4b_cd9</version>
5253
<type>pom</type>
5354
<scope>import</scope>

global-configuration/src/main/resources/archetype-resources/pom.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
<revision>1.0</revision>
3636
<changelist>-SNAPSHOT</changelist>
3737
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
38-
<jenkins.version>2.440.3</jenkins.version>
38+
<jenkins.baseline>2.440</jenkins.baseline>
39+
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
3940
#if( $hostOnJenkinsGitHub == "true" )
4041
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
4142
#end
@@ -47,7 +48,7 @@
4748
<dependencies>
4849
<dependency>
4950
<groupId>io.jenkins.tools.bom</groupId>
50-
<artifactId>bom-2.440.x</artifactId>
51+
<artifactId>bom-${jenkins.baseline}.x</artifactId>
5152
<version>3208.vb_21177d4b_cd9</version>
5253
<type>pom</type>
5354
<scope>import</scope>

hello-world/src/main/resources/archetype-resources/pom.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
<changelist>-SNAPSHOT</changelist>
3737

3838
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
39-
<jenkins.version>2.440.3</jenkins.version>
39+
<jenkins.baseline>2.440</jenkins.baseline>
40+
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
4041
#if( $hostOnJenkinsGitHub == "true" )
4142
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
4243
#end
@@ -49,7 +50,7 @@
4950
<dependency>
5051
<!-- Pick up common dependencies for the selected LTS line: https://github.com/jenkinsci/bom#usage -->
5152
<groupId>io.jenkins.tools.bom</groupId>
52-
<artifactId>bom-2.440.x</artifactId>
53+
<artifactId>bom-${jenkins.baseline}.x</artifactId>
5354
<version>3208.vb_21177d4b_cd9</version>
5455
<type>pom</type>
5556
<scope>import</scope>

0 commit comments

Comments
 (0)