Skip to content

Commit de8c7f7

Browse files
committed
Incremement to 2.492.1
1 parent d72efda commit de8c7f7

6 files changed

Lines changed: 18 additions & 18 deletions

File tree

plugin-modernizer-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<dependencies>
1616
<dependency>
1717
<groupId>io.jenkins.tools.bom</groupId>
18-
<artifactId>bom-2.479.x</artifactId>
18+
<artifactId>bom-2.492.x</artifactId>
1919
<version>4669.v0e99c712a_30e</version>
2020
<type>pom</type>
2121
<scope>import</scope>

plugin-modernizer-core/src/main/resources/META-INF/rewrite/recipes.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ recipeList:
168168
---
169169
type: specs.openrewrite.org/v1beta/recipe
170170
name: io.jenkins.tools.pluginmodernizer.UpgradeNextMajorParentVersion
171-
displayName: Upgrade to the next major parent version (5.X) requiring Jenkins 2.479 and Java 17
172-
description: Upgrade to the next major parent version (5.X) requiring Jenkins 2.479 and Java 17.
171+
displayName: Upgrade to the next major parent version (5.X) requiring Jenkins 2.492 and Java 17
172+
description: Upgrade to the next major parent version (5.X) requiring Jenkins 2.492 and Java 17.
173173
tags: ['dependencies']
174174
recipeList:
175175
- io.jenkins.tools.pluginmodernizer.core.recipes.EnsureRelativePath
@@ -180,9 +180,9 @@ recipeList:
180180
artifactId: plugin
181181
newVersion: 5.X
182182
- io.jenkins.tools.pluginmodernizer.core.recipes.UpgradeJenkinsVersion:
183-
minimumVersion: 2.479.3
183+
minimumVersion: 2.492.3
184184
- io.jenkins.tools.pluginmodernizer.core.recipes.UpgradeJenkinsTestHarnessVersion:
185-
jenkinsVersion: 2.479.3
185+
jenkinsVersion: 2.492.3
186186
- org.openrewrite.java.ChangePackage: #deprecating
187187
oldPackageName: com.gargoylesoftware.htmlunit
188188
newPackageName: org.htmlunit
@@ -576,7 +576,7 @@ description: Check if the plugin using using a version with commons-compress rem
576576
tags: ['condition']
577577
recipeList:
578578
- org.openrewrite.jenkins.IsJenkinsPlugin:
579-
version: "[2.489,)" # Adapt when LTS
579+
version: "[2.492.1,)"
580580
---
581581
type: specs.openrewrite.org/v1beta/recipe
582582
name: io.jenkins.tools.pluginmodernizer.EnsureIndexJelly

plugin-modernizer-core/src/main/resources/versions.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
openrewrite.maven.plugin.version = ${openrewrite.maven.plugin.version}
2-
jenkins.parent.version = 5.12
2+
jenkins.parent.version = 5.13
33
bom.version = 4669.v0e99c712a_30e
44
bom.recommended.version = 4228.v0a_71308d905b_
55
remediation.jenkins.plugin.parent.version = 2.37

plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/recipes/DeclarativeRecipesTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,7 @@ void upgradeNextMajorParentVersionTest() {
18971897
</scm>
18981898
<properties>
18991899
<jenkins-test-harness.version>%s</jenkins-test-harness.version>
1900-
<jenkins.version>2.479.3</jenkins.version>
1900+
<jenkins.version>2.492.3</jenkins.version>
19011901
</properties>
19021902
<dependencies>
19031903
<dependency>
@@ -2120,7 +2120,7 @@ void upgradeNextMajorParentVersionTestWithBom() {
21202120
<properties>
21212121
<jenkins-test-harness.version>%s</jenkins-test-harness.version>
21222122
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
2123-
<jenkins.baseline>2.479</jenkins.baseline>
2123+
<jenkins.baseline>2.492</jenkins.baseline>
21242124
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
21252125
</properties>
21262126
<dependencyManagement>
@@ -2305,7 +2305,7 @@ void upgradeNextMajorParentVersionTestWithBaseline() {
23052305
<properties>
23062306
<jenkins-test-harness.version>%s</jenkins-test-harness.version>
23072307
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
2308-
<jenkins.baseline>2.479</jenkins.baseline>
2308+
<jenkins.baseline>2.492</jenkins.baseline>
23092309
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
23102310
</properties>
23112311
<dependencyManagement>
@@ -2993,7 +2993,7 @@ void replaceLibrariesByApiPluginsCompress() {
29932993
<parent>
29942994
<groupId>org.jenkins-ci.plugins</groupId>
29952995
<artifactId>plugin</artifactId>
2996-
<version>4.88</version>
2996+
<version>5.13</version>
29972997
<relativePath />
29982998
</parent>
29992999
<groupId>io.jenkins.plugins</groupId>
@@ -3002,7 +3002,7 @@ void replaceLibrariesByApiPluginsCompress() {
30023002
<packaging>hpi</packaging>
30033003
<name>Empty Plugin</name>
30043004
<properties>
3005-
<jenkins.version>2.489</jenkins.version>
3005+
<jenkins.version>2.492.1</jenkins.version>
30063006
</properties>
30073007
<dependencies>
30083008
<dependency>
@@ -3037,7 +3037,7 @@ void replaceLibrariesByApiPluginsCompress() {
30373037
<parent>
30383038
<groupId>org.jenkins-ci.plugins</groupId>
30393039
<artifactId>plugin</artifactId>
3040-
<version>4.88</version>
3040+
<version>5.13</version>
30413041
<relativePath />
30423042
</parent>
30433043
<groupId>io.jenkins.plugins</groupId>
@@ -3046,7 +3046,7 @@ void replaceLibrariesByApiPluginsCompress() {
30463046
<packaging>hpi</packaging>
30473047
<name>Empty Plugin</name>
30483048
<properties>
3049-
<jenkins.version>2.489</jenkins.version>
3049+
<jenkins.version>2.492.1</jenkins.version>
30503050
</properties>
30513051
<dependencies>
30523052
<dependency>

plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/utils/TemplateUtilsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public void testFriendlyPrTitleUpgradeNextMajorParentVersion() {
292292
Recipe recipe = mock(Recipe.class);
293293

294294
doReturn(metadata).when(plugin).getMetadata();
295-
doReturn("2.479.3").when(metadata).getJenkinsVersion();
295+
doReturn("2.492.3").when(metadata).getJenkinsVersion();
296296
doReturn("io.jenkins.tools.pluginmodernizer.UpgradeNextMajorParentVersion")
297297
.when(recipe)
298298
.getName();
@@ -301,7 +301,7 @@ public void testFriendlyPrTitleUpgradeNextMajorParentVersion() {
301301
String result = TemplateUtils.renderPullRequestTitle(plugin, recipe);
302302

303303
// Assert
304-
assertEquals("feat(java): Require Jenkins core 2.479.3 and Java 17", result);
304+
assertEquals("feat(java): Require Jenkins core 2.492.3 and Java 17", result);
305305
}
306306

307307
@Test

plugin-modernizer-core/src/test/java/io/jenkins/tools/pluginmodernizer/core/visitors/UpdateJenkinsFileVisitorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ void addOnePlatformConfigWithJenkinsVersion() {
144144
public G.CompilationUnit visitCompilationUnit(
145145
G.CompilationUnit cu, ExecutionContext executionContext) {
146146
doAfterVisit(new UpdateJenkinsFileVisitor(
147-
null, null, List.of(PlatformConfig.build(Platform.LINUX, JDK.JAVA_17, "2.479.3"))));
147+
null, null, List.of(PlatformConfig.build(Platform.LINUX, JDK.JAVA_17, "2.492.3"))));
148148
return super.visitCompilationUnit(cu, executionContext);
149149
}
150150
})),
@@ -162,7 +162,7 @@ public G.CompilationUnit visitCompilationUnit(
162162
forkCount: '1C', // run this number of tests in parallel for faster feedback. If the number terminates with a 'C', the value will be multiplied by the number of available CPU cores
163163
useContainerAgent: true, // Set to `false` if you need to use Docker for containerized tests
164164
configurations: [
165-
[platform: 'linux', jdk: 17, jenkins: '2.479.3'],
165+
[platform: 'linux', jdk: 17, jenkins: '2.492.3'],
166166
])
167167
""",
168168
sourceSpecs -> {

0 commit comments

Comments
 (0)