was: Exception when saving job config due to empty Classpath entry
The following issue looks caused for the "minimum" of the successor repeatableProperty are inherit from the ancestor repeatableProperty.
Promoted-build always displays more than 1 entry, and every properties with entries under promoted-build are forced that rule.
Steps to reproduce:
- Create a new freestyle project
- Add a promotion process
- Add Groovy Postbuild action to the new promotion process
- Save the job config
- Configure the job again
- Notice there's now a "Classpath entry" that wasn't there initially.
- Try to save the job again without any changes gives the following exception:
JENKINS-37599: empty classpath entries not allowed
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
It would be best if the plugin did not add an additional classpath entry if it is not needed/desired.