You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Operating System are you using (both controller, and any agents involved in the problem)?
Jenkins controller running on Linux with one local agent launched via command execution on controller.
Reproduction steps
Create a freestyle project with a Base64 File Parameter named FILE and a shell step just running echo $FILE
Start the job with any file
Expected Results
The shell step should output base64 string.
Actual Results
FATAL: null
java.lang.StackOverflowError
at java.base/java.lang.Class.getDeclaredMethod(Class.java:2473)
at hudson.Util.getMethod(Util.java:1555)
at hudson.Util.isOverridden(Util.java:1519)
at hudson.model.ParameterValue.buildEnvVars(ParameterValue.java:166)
at hudson.model.ParameterValue.buildEnvironment(ParameterValue.java:194)
at io.jenkins.plugins.file_parameters.AbstractFileParameterValue.buildEnvironment(AbstractFileParameterValue.java:95)
at io.jenkins.plugins.file_parameters.Base64FileParameterValue.buildEnvironment(Base64FileParameterValue.java:64)
at hudson.model.ParameterValue.buildEnvVars(ParameterValue.java:167)
at hudson.model.ParameterValue.buildEnvironment(ParameterValue.java:194)
at io.jenkins.plugins.file_parameters.AbstractFileParameterValue.buildEnvironment(AbstractFileParameterValue.java:95)
at io.jenkins.plugins.file_parameters.Base64FileParameterValue.buildEnvironment(Base64FileParameterValue.java:64)
at hudson.model.ParameterValue.buildEnvVars(ParameterValue.java:167)
at hudson.model.ParameterValue.buildEnvironment(ParameterValue.java:194)
at io.jenkins.plugins.file_parameters.AbstractFileParameterValue.buildEnvironment(AbstractFileParameterValue.java:95)
at io.jenkins.plugins.file_parameters.Base64FileParameterValue.buildEnvironment(Base64FileParameterValue.java:64)
at hudson.model.ParameterValue.buildEnvVars(ParameterValue.java:167)
...
Anything else?
If I remove the shell step the job succeeds.
The text was updated successfully, but these errors were encountered:
should likely be removed. Possibly I never bothered to write tests for non-Pipeline projects.
jglick
changed the title
StackOverflowError when using Base64 File Parameter
StackOverflowError when using Base64 File Parameter on freestyle project
Aug 1, 2022
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Jenkins controller running on Linux with one local agent launched via command execution on controller.
Reproduction steps
echo $FILE
Expected Results
The shell step should output base64 string.
Actual Results
Anything else?
If I remove the shell step the job succeeds.
The text was updated successfully, but these errors were encountered: