Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException at VariablesReplaceBuilder.replaceFileContent (VariablesReplaceBuilder.java:55) on Jenkins 2.277.3 #12

Open
mivola opened this issue Apr 27, 2021 · 1 comment

Comments

@mivola
Copy link

mivola commented Apr 27, 2021

Hi,

I really like this plugin but since the last Jenkins upgrade (to 2.277.3) I see an exception in the log when executing the plugin in a new job:

ERROR: Build step failed with exception
java.lang.NullPointerException
at com.jeeday.jenkins.variablesReplace.VariablesReplaceBuilder.replaceFileContent(VariablesReplaceBuilder.java:55)
at com.jeeday.jenkins.variablesReplace.VariablesReplaceBuilder.perform(VariablesReplaceBuilder.java:50)
at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:803)
at hudson.model.Build$BuildExecution.build(Build.java:197)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:513)
at hudson.model.Run.execute(Run.java:1907)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)

Furthermore I have the feeling the UI is a bit odd when adding "Variables Replace" as a new build step:
image

i.e. I see 3 sections for "Name" & "Value" where I would only expect one.

And (maybe totally unrelated) I have one existing job which seems broken right after the "Variables Replace" plugin:
image

i.e. the UI seems strange and I cant save/update this job...

Any suggestions?

Thanks a lot!
Michael

@Baccanno
Copy link

I'm having issues as well in 2.289.1

Looks like there are some issues in the html structure (repeatable.js)

That's a shame I can't find any similar plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants