-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement a way to customize the pull request body Fixes #75 Add support for customizing the pull request body using `jte` template files. * Add a new method `hasBodyTemplate` in `TemplateUtils.java` to check for specific `jte` templates for the pull request body. * Update the `renderPullRequestBody` method in `TemplateUtils.java` to use specific `jte` templates if available. * Create a new `jte` template `pr-body-SetupJenkinsfile.jte` for customizing the pull request body for the `SetupJenkinsfile` recipe, including a detailed explanation of why this recipe is important. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/gounthar/plugin-modernizer-tool/issues/75?shareId=XXXX-XXXX-XXXX-XXXX). * Update pr-body-SetupJenkinsfile.jte * fix(jte): Adding aria-label for better accessibility. * fix(jte): Extracting common template name generation logic. * fix(jte): Extracting common template name generation logic. * fix(jte): Spotless. * fix(jte): Adds a custom title for the SetupJenkinsfile recipe. * fix(jte): Reverts the custom title "optimization" * fix(jte): Reverts the custom title "optimization" * fix(jte): Fix the double "jte" suffix.
- Loading branch information
Showing
3 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
plugin-modernizer-core/src/main/jte/pr-body-SetupJenkinsfile.jte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@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 is this important? | ||
|
||
Starting with the Jenkins 2.463 weekly release, Jenkins now requires Java 17 or newer. | ||
The first Long-Term Support (LTS) release requiring Java 17 or newer (version 2.479.x) was released at the end of October 2024. | ||
|
||
The Jenkins core team strongly recommends that all users adopt either Java 17 or Java 21. | ||
The adoption of Java 17 has almost surpassed that of Java 11, and the usage of Java 21 is rapidly increasing. | ||
|
||
There will come a time when we no longer support plugins built with JDK 8 or 11. | ||
|
||
While this PR does not automatically make your plugin compatible with Java 17 or 21, it represents the first step towards a new era. Your plugin will be built and tested within the Jenkins infrastructure using Java 17 and 21. | ||
After this PR is merged, we will submit additional automated PRs to enable your plugin to build with Java 17 and 21. |
5 changes: 5 additions & 0 deletions
5
plugin-modernizer-core/src/main/jte/pr-title-SetupJenkinsfile.jte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import io.jenkins.tools.pluginmodernizer.core.model.Plugin | ||
@import io.jenkins.tools.pluginmodernizer.core.model.Recipe | ||
@param Plugin plugin | ||
@param Recipe recipe | ||
feat(ci): Builds on the Jenkins Infrastructure |