Skip to content

Commit

Permalink
Upgrade configuration UI from tables to div (#73)
Browse files Browse the repository at this point in the history
On recent versions of Jenkins, it's not possible to save the
configuration of this plugin in the "Configure Cloud" page.
It also impacts any other "Cloud" plugin which is configured there, and
render the whole "Configure Cloud" page unusable anymore, as long as the
nomad-plugin is configured.

Fix: JENKINS-64488
  • Loading branch information
multani authored Dec 20, 2020
1 parent 0e2db7a commit 2b486b2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">

<table width="100%">
<div>

<f:entry title="Attribute" field="ltarget">
<f:textbox/>
Expand All @@ -15,11 +15,11 @@
<f:entry title="Value" field="rtarget">
<f:textbox/>
</f:entry>

<f:entry>
<f:repeatableDeleteButton />
</f:entry>

</table>
</div>

</j:jelly>
</j:jelly>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">

<table width="100%">
<div>

<f:entry title="Name" field="name">
<f:textbox/>
Expand All @@ -11,11 +11,11 @@
<f:entry title="Count" field="count">
<f:textbox/>
</f:entry>

<f:entry>
<f:repeatableDeleteButton />
</f:entry>

</table>
</div>

</j:jelly>
</j:jelly>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">

<table width="100%">
<div>

<f:entry title="Label" field="label">
<f:textbox/>
Expand All @@ -16,6 +16,6 @@
<f:repeatableDeleteButton />
</f:entry>

</table>
</div>

</j:jelly>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?jelly escape-by-default='true'?>

<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<table width="100%">
<div>
<f:entry title="${%Cloud Name}" field="cloudName">
<f:readOnlyTextbox />
</f:entry>
Expand All @@ -27,5 +27,5 @@
<f:entry title="Reusable">
<f:checkbox name="reusable" field="reusable" default="true" value="${instance.reusable}" />
</f:entry>
</table>
</div>
</j:jelly>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">

<table width="100%">
<div>

<f:entry title="Job Prefix" field="prefix">
<f:textbox default="jenkins"/>
Expand Down Expand Up @@ -40,7 +40,7 @@

<f:entry title="Vault Policies" field="vaultPolicies">
<f:textbox/>
</f:entry>
</f:entry>

<f:entry title="Switch User" field="switchUser">
<f:textbox name="switchUser" default="" />
Expand Down Expand Up @@ -132,6 +132,6 @@
</div>
</f:entry>

</table>
</div>

</j:jelly>

0 comments on commit 2b486b2

Please sign in to comment.