Skip to content

Commit 033a0e7

Browse files
authored
Use jenkins.baseline to match archetype (#59)
* Use dependabot config from archetype * Avoid bom version mismatches with jenkins.baseline 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 65600e6 commit 033a0e7

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
1+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates
52

63
version: 2
74
updates:
8-
- package-ecosystem: "maven"
9-
directory: "/"
10-
schedule:
11-
interval: "monthly"
12-
- package-ecosystem: "github-actions"
13-
directory: "/"
14-
schedule:
15-
interval: "monthly"
5+
- package-ecosystem: maven
6+
directory: /
7+
schedule:
8+
interval: monthly
9+
- package-ecosystem: github-actions
10+
directory: /
11+
schedule:
12+
interval: monthly

pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151

5252
<properties>
5353
<changelist>999999-SNAPSHOT</changelist>
54-
<jenkins.version>2.414.3</jenkins.version>
54+
<jenkins.baseline>2.414</jenkins.baseline>
55+
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
5556
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
5657
</properties>
5758

@@ -60,7 +61,7 @@
6061
<dependency>
6162
<!-- Pick up common dependencies for the selected LTS line: https://github.com/jenkinsci/bom#usage -->
6263
<groupId>io.jenkins.tools.bom</groupId>
63-
<artifactId>bom-2.414.x</artifactId>
64+
<artifactId>bom-${jenkins.baseline}.x</artifactId>
6465
<version>2982.vdce2153031a_0</version>
6566
<type>pom</type>
6667
<scope>import</scope>

0 commit comments

Comments
 (0)