-
Bug
-
Resolution: Fixed
-
Minor
to reproduce :
- create a multi-configuration job, use slave axe
- unselect "master" (sole node) from axe
- save job configuration
=>
Failed to instantiate class hudson.matrix.LabelAxis from
"values" is missing from JSON data.
For sure, disabling all nodes from slave-axe don't make much sense, but this error is confusing for user.
Code changed in jenkins
User: Jesse Glick
Path:
changelog.html
core/src/main/java/hudson/matrix/Axis.java
core/src/main/java/hudson/matrix/Layouter.java
http://jenkins-ci.org/commit/jenkins/58c8a9393fbe31e4533343229603cae47723cc6e
Log:
[FIXED JENKINS-19135] Permit a user to configure an axis with no values without throwing exceptions.
The project cannot be usefully built in this case but at least they can go back and reconfigure it.
Also fixing Layouter.Column to not throw NoSuchElementException (in violation of Iterator contract)
and thus break project overview when there is an empty Axis in the trivial list (due to an unintentional IndexOutOfBoundsException).