openrewrite / rewrite-jenkins

OpenRewrite recipes to continuously modernize Jenkins plugins.
Apache License 2.0
9 stars 8 forks source link

Remove `div`-based form layout conditionals #30

Open basil opened 1 year ago

basil commented 1 year ago

If the plugin was previously using HTML table tags to align the content of input forms, then it will likely contain conditional code that detects div-based layout and uses div tags instead of table tags on newer versions of Jenkins. When the base Jenkins version is 2.277.1 or later, the conditional for table based layout can be removed, since all layout is done with div tags beginning with 2.277.1. Search the Jelly files in the plugin for divBasedFormLayout to find conditionals that can be removed.