-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
When trying to send groovy scripts to stdin for the groovy CLI, it fails with
"-" is not a valid option
[JENKINS-4636] Groovy CLI fails when trying to read from stdin
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 134709 ] | New: JNJira + In-Review [ 203013 ] |
I guess args4j does not handle just - as an option, so I have changed - to =. Not sure whether that is the
best choice, but it works.
Also I needed to change the name of the class to something static and not the name of the input, as "-"
does not make for a good groovy class name. Neither does some-script.groovy.