-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
Oracle Linux
Recently upgraded our internal Jenkins installation to 2.189, which also involved updating the script security plugin from 1.44 to v1.61. This caused a host of issues with scripts not running for various not easily identifiable reasons.
Following the docs, it would appear one should be able to approve signatures and classpaths to resolve most of these issues, but nothing turns up in the GUI for approval in the current installation.
Currently, the problem we're facing is this: Adding a configFileProvider to any script instantly breaks it. I.e., straight up code generated by the snippet generator like this:
steps { configFileProvider([configFile(fileId: 'elapses-properties', targetLocation: 'elapses.properties')]) { // some block } }
Results in this:
org.parboiled.errors.GrammarException: No constructor found for class org.jenkinsci.plugins.tokenmacro.Parser$$parboiled and the given 5 arguments at org.parboiled.common.Utils.findConstructor(Utils.java:294) at org.parboiled.Parboiled.createParser(Parboiled.java:55) Caused: java.lang.RuntimeException: Error creating extended parser class: No constructor found for class org.jenkinsci.plugins.tokenmacro.Parser$$parboiled and the given 5 arguments at org.parboiled.Parboiled.createParser(Parboiled.java:58) at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:80) at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:74) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:199) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:237) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:207) at org.jenkinsci.lib.configprovider.model.ConfigFileManager.provisionConfigFile(ConfigFileManager.java:99) at org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFileUtil.provisionConfigFiles(ManagedFileUtil.java:80) at org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper.setUp(ConfigFileBuildWrapper.java:66) at org.jenkinsci.plugins.workflow.steps.CoreWrapperStep$Execution2.doStart(CoreWrapperStep.java:97) at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Finished: FAILURE
What are we missing? I assume this has something to do with the script-security plugin, as the error is similar to the problem we had before, but I'm not sure how to resolve this.