-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: prioritysorter-plugin
-
Labels:
-
Environment:Jenkins ver. 1.593
Plugin ver. 3.0
-
Similar Issues:
I found a bug in the jobGroupName-select tag. It added the selected attribute on each option that was not selected, instead of the one that should have been selected.
Hence we ended up with this HTML-ouput.
<tr nameref="rowSetStart44"> <td class="setting-leftspace"> </td> <td class="setting-name">Job Group</td> <td class="setting-main"> <select name="jobGroupName"> <option value="Top Priority">Top Priority</option> <option selected="true" value="Features">Features</option> <option selected="true" value="Slow and steady">Slow and steady</option> </select> </td> <td class="setting-no-help"></td> </tr>
In my case, the option Top Priority should have been choosen, instead Slow and steady was shown. When I looked at my current saved configuration for this specific job, I saw that Top Priority was saved, so it works correctly, it just shows the wrong jobGroupName.
Code changed in jenkins
User: emsa23
Path:
src/main/resources/jenkins/advancedqueue/jobinclusion/strategy/JobInclusionJobProperty/config.jelly
http://jenkins-ci.org/commit/priority-sorter-plugin/a1e32f94d2b82384ad076a1de6dbf050b62f1b1b
Log:
Merge pull request #28 from Kyrremann/
JENKINS-28280_The_selected-attribut_was_invertedJENKINS-28280The selected value was invertedCompare: https://github.com/jenkinsci/priority-sorter-plugin/compare/5d7cc0e68b96...a1e32f94d2b8