Skip to content

Commit

Permalink
fix(jte): Add a custom PR body and title for the UpgradeNextMajorPare…
Browse files Browse the repository at this point in the history
…ntVersion recipe. (#627)

* fix(jte): Use conventional commit for the title, and create a custom body for the UpgradeNextMajorParentVersion recipe.

* fix(jte): Use conventional commit for the title, and create a custom body for the UpgradeNextMajorParentVersion recipe.
  • Loading branch information
gounthar authored Jan 14, 2025
1 parent 53df60f commit 79a74dc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@import io.jenkins.tools.pluginmodernizer.core.model.Plugin
@import io.jenkins.tools.pluginmodernizer.core.model.Recipe
@param Plugin plugin
@param Recipe recipe
Hello `${plugin.getName()}` developers! :wave:

This is an automated pull request created by the [Jenkins Plugin Modernizer](https://github.com/jenkins-infra/plugin-modernizer-tool) tool. The tool has applied the following recipes to modernize the plugin:
<details aria-label="Recipe details for ${recipe.getDisplayName()}">
<summary>${recipe.getDisplayName()}</summary>
<p><em>${recipe.getName()}</em></p>
<blockquote>${recipe.getDescription()}</blockquote>
</details>

#### Why Upgrade to Java 17 and Jenkins 2.479.x?

- **Embrace Java 17 LTS Stability:** Benefit from long-term support with modern language features that improve development practice and plugin performance.

- **Harness Jenkins 2.479.x Innovations:** Stay aligned with the latest features and stability improvements, ensuring smooth integration and future-proofing.

- **Enhance Security:** Protect your plugin with up-to-date security fixes from both Java 17 and Jenkins core improvements.

- **Align with the Community:** Keep pace with ecosystem shifts towards Java 17, ensuring compatibility and expanding your plugin's user base.

- **Enjoy a Better Developer Experience:** Make the most of advanced tooling support and simplified dependency management with Java 17's enhancements.

By upgrading, you'll be positioning your plugin at the forefront of performance, security, and user satisfaction. We encourage you to explore these updates and provide feedback. Let's continue to build a robust Jenkins ecosystem together!


Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
@import io.jenkins.tools.pluginmodernizer.core.model.Recipe
@param Plugin plugin
@param Recipe recipe
Require ${plugin.getMetadata().getJenkinsVersion()} and Java 17
feat(java): Require Jenkins core ${plugin.getMetadata().getJenkinsVersion()} and Java 17.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public void testFriendlyPrTitleUpgradeNextMajorParentVersion() {
String result = TemplateUtils.renderPullRequestTitle(plugin, recipe);

// Assert
assertEquals("Require 2.479.1 and Java 17", result);
assertEquals("feat(java): Require Jenkins core 2.479.1 and Java 17.", result);
}

@Test
Expand Down

0 comments on commit 79a74dc

Please sign in to comment.