From d462c531e1fc0a5881e2445edbc74ca416c4b2fc Mon Sep 17 00:00:00 2001 From: Michael Tughan Date: Wed, 2 Jun 2021 07:26:46 -0400 Subject: [PATCH] Fix tables-to-divs issues in directive generator The declarative directive generators had some issues with it after the migration from tables to divs, particularly in the tools section. Make the necessary changes for compatibility with 2.264 and higher. --- .../blockWrapper.jelly | 14 ++++++++ .../lib/pipelinemodeldefinition/taglib | 0 .../EnvironmentDirective/config.jelly | 6 ++-- .../generator/LibrariesDirective/config.jelly | 6 ++-- .../generator/ToolsDirective/config.jelly | 36 +++++++++++++------ 5 files changed, 45 insertions(+), 17 deletions(-) create mode 100644 pipeline-model-definition/src/main/resources/lib/pipelinemodeldefinition/blockWrapper.jelly create mode 100644 pipeline-model-definition/src/main/resources/lib/pipelinemodeldefinition/taglib diff --git a/pipeline-model-definition/src/main/resources/lib/pipelinemodeldefinition/blockWrapper.jelly b/pipeline-model-definition/src/main/resources/lib/pipelinemodeldefinition/blockWrapper.jelly new file mode 100644 index 000000000..297bae482 --- /dev/null +++ b/pipeline-model-definition/src/main/resources/lib/pipelinemodeldefinition/blockWrapper.jelly @@ -0,0 +1,14 @@ + + + + + + + + + + +
+
+
+
diff --git a/pipeline-model-definition/src/main/resources/lib/pipelinemodeldefinition/taglib b/pipeline-model-definition/src/main/resources/lib/pipelinemodeldefinition/taglib new file mode 100644 index 000000000..e69de29bb diff --git a/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/EnvironmentDirective/config.jelly b/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/EnvironmentDirective/config.jelly index a223dd863..e1598c49c 100644 --- a/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/EnvironmentDirective/config.jelly +++ b/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/EnvironmentDirective/config.jelly @@ -23,13 +23,13 @@ ~ THE SOFTWARE. --> - + See the online documentation for more information on the environment directive. - + @@ -42,7 +42,7 @@ -
+
diff --git a/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/LibrariesDirective/config.jelly b/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/LibrariesDirective/config.jelly index ced1ea868..e1e06e352 100644 --- a/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/LibrariesDirective/config.jelly +++ b/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/LibrariesDirective/config.jelly @@ -23,13 +23,13 @@ ~ THE SOFTWARE. --> - + See the online documentation for more information on the libraries directive. - + @@ -41,7 +41,7 @@ -
+
diff --git a/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/ToolsDirective/config.jelly b/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/ToolsDirective/config.jelly index 99ab15016..0a83f6a85 100644 --- a/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/ToolsDirective/config.jelly +++ b/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/ToolsDirective/config.jelly @@ -23,7 +23,7 @@ ~ THE SOFTWARE. --> - + See the online documentation for more information on the tools directive. @@ -31,15 +31,29 @@ - - - - - + + + + + + + + @@ -52,7 +66,7 @@ -
-
- ${d.displayName} + + + +
+
+
+ ${d.displayName} +
+
+
-
+
+ ${d.displayName} +
+
+
@@ -73,7 +87,7 @@
- +