Skip to content
Permalink
Browse files
[JENKINS-28359] Remove support for Legacy Sorter
  • Loading branch information
emsa23 committed May 12, 2015
1 parent 88af842 commit 0b1b307929cf8f53fad96135a2d84e14814d2511
Showing with 5 additions and 22 deletions.
  1. +5 −22 src/main/resources/jenkins/advancedqueue/PrioritySorterConfiguration/config.jelly
@@ -1,25 +1,8 @@
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form" xmlns:st="jelly:stapler">
<f:section title="Priority Sorter">
<j:if test="${instance.legacyMode}">
<f:entry>
<h3>Priority Sorter found Legacy configuration data (version 1.x). This data will be removed when you switch to Advanced mode.</h3>
<h3><i>To keep and convert you priority configurations please downgrade to version 2.x, switch to advanced mode and then upgrade to 3.x</i></h3>
</f:entry>
<f:optionalBlock title="${%Switch to Advanced Priority Sorter Mode}"
checked="false" inline="true" name="advanced">
<f:dropdownDescriptorSelector field="strategy" title="${%Strategy}"/>
<f:entry title="Only Admins can edit Job Priorities" description="Check if only Administrators should be allowed to view and edit the Job Priorities" field="onlyAdminsMayEditPriorityConfiguration">
<f:checkbox name="onlyAdminsMayEditPriorityConfiguration" checked="${onlyAdminsMayEditPriorityConfiguration}"/>
</f:entry>
</f:optionalBlock>
</j:if>
<!-- TODO: remove code duplication -->
<j:if test="${not instance.legacyMode}">
<f:dropdownDescriptorSelector field="strategy" title="${%Strategy}"/>
<f:entry title="Only Admins can edit Job Priorities" description="Check if only Administrators should be allowed to view and edit the Job Priorities" field="onlyAdminsMayEditPriorityConfiguration">
<f:checkbox name="onlyAdminsMayEditPriorityConfiguration" checked="${onlyAdminsMayEditPriorityConfiguration}"/>
</f:entry>
</j:if>

</f:section>
<f:dropdownDescriptorSelector field="strategy" title="${%Strategy}"/>
<f:entry title="Only Admins can edit Job Priorities" description="Check if only Administrators should be allowed to view and edit the Job Priorities" field="onlyAdminsMayEditPriorityConfiguration">
<f:checkbox name="onlyAdminsMayEditPriorityConfiguration" checked="${onlyAdminsMayEditPriorityConfiguration}"/>
</f:entry>
</f:section>
</j:jelly>

0 comments on commit 0b1b307

Please sign in to comment.