-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
Ubuntu 16.04, Jenkins 2.46.3
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:
java.net.MalformedURLException: JENKINS-37599: empty classpath entries not allowed
at org.jenkinsci.plugins.scriptsecurity.scripts.ClasspathEntry.pathToURL(ClasspathEntry.java:62)
at org.jenkinsci.plugins.scriptsecurity.scripts.ClasspathEntry.<init>(ClasspathEntry.java:57)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
It would be best if the plugin did not add an additional classpath entry if it is not needed/desired.
- is related to
-
JENKINS-37599 f:repeatable mishandles minimum (was: Custom Groovy Script for Promoted Builds always includes bogus classpath entry)
-
- Resolved
-
[JENKINS-44824] "minimum" of f:repeatableProperty is inherit from ancestors
Component/s | New: core [ 15593 ] | |
Component/s | Original: groovy-postbuild-plugin [ 15685 ] | |
Assignee | Original: Stefan Wolf [ wolfs ] | |
Description |
Original:
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: java.net.MalformedURLException: at org.jenkinsci.plugins.scriptsecurity.scripts.ClasspathEntry.pathToURL(ClasspathEntry.java:62) at org.jenkinsci.plugins.scriptsecurity.scripts.ClasspathEntry.<init>(ClasspathEntry.java:57) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at It would be best if the plugin did not add an additional classpath entry if it is not needed/desired. |
New:
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: java.net.MalformedURLException: at org.jenkinsci.plugins.scriptsecurity.scripts.ClasspathEntry.pathToURL(ClasspathEntry.java:62) at org.jenkinsci.plugins.scriptsecurity.scripts.ClasspathEntry.<init>(ClasspathEntry.java:57) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at It would be best if the plugin did not add an additional classpath entry if it is not needed/desired. |
Issue Type | Original: Improvement [ 4 ] | New: Bug [ 1 ] |
Summary | Original: Exception when saving job config due to empty Classpath entry | New: "minimum" of f:repeatableProperty is inherit from ancestors |
Link |
New:
This issue is related to |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Fixed but Unreleased [ 10203 ] |
Released As | New: https://jenkins.io/changelog/#v2.139 | |
Status | Original: Fixed but Unreleased [ 10203 ] | New: Resolved [ 5 ] |