Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: job-dsl-plugin
-
Labels:None
-
Environment:jenkins 1.609.1
job-dsl-plugin 1.35
priority sorter plugin 3.4
-
Similar Issues:
Description
Support for the Priority Sorter Plugin appears to date back to the old hudson plugin and doesn't work with the current jenkins plugin (https://wiki.jenkins-ci.org/display/JENKINS/Priority+Sorter+Plugin).
e.g. from job_dsl_plugin priority(5) I get:
<hudson.queueSorter.PrioritySorterJobProperty> <priority>5</priority> </hudson.queueSorter.PrioritySorterJobProperty>
For the same from the Jenkins priority sorter plugin (version 3.4) I get:
<jenkins.advancedqueue.priority.strategy.PriorityJobProperty>
<useJobPriority>true</useJobPriority>
<priority>5</priority>
</jenkins.advancedqueue.priority.strategy.PriorityJobProperty>
Attachments
Issue Links
- duplicates
-
JENKINS-28303 Job DSL no longer works with Priority Sorter
-
- Closed
-
I believe that this was closed incorrectly. It is a duplicate of
JENKINS-28303. From that bug:"Realised this issue is also mapped to job-dsl-plugin, if you want to upgrade the dsl-plugin to work with never versions on priority-sorter and need some directions just let me know."
That is exactly what I want, sorry if that was not clear. If the recommended way is to support job groups then maybe we should implement that. When I set one of these up in the Jenkins Web interface I get the following added to config.xml:
AND
Are these both required for it to work or can we just add the second one?
Would the following be a reasonable interface in the DSL?
priorityGroup(String groupName)
Personally I believe that setting the priority directly on a job would be helpful for job-dsl-plugin users who probably want to manage as much as possible from their DSL code. If it is still available in the web ui and is not deprecated then I don't see a problem with supporting it in job-dsl-plugin.