-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Jenkinsfile runner thows NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsUnavailableException #590
Comments
I have this same error. |
This error confuses me. |
This seems to be due to missing plug-ins which are required to run even the simplest of pipelines. I worked through the errors (by running the command over and over) and eventually got it to run error free with the following list of plugins (store in a file and pass with the -p option to jenkinsfile-runner). Hopefully this help someone trying to get up and running with this tool. Do note that this is very sensitive to whitespace. No extra spaces at ends of lines or blank lines are allowed.
|
FWIW the recommended way of packaging custom versions is https://github.com/jenkinsci/jenkinsfile-runner/tree/master/packaging-slim-parent-pom . Using the embedded plugin manager is not very reliable until #248 is finalized, and Plugin Installation Manager is used to declare mandatory plugins |
I'm not sure I follow... what was I supposed to do instead? All I was trying to do was to run that single Jenkinsfile snippet posted in the initial post of this issue. I guess I don't follow why I should have needed to generate a giant list of plug-ins to use to get that simple jenkinsfile to run. Was there some easier path to making this work which we all missed? |
You definitely should not. I plan to provide a Vanilla Executable package that includes all the necessary plugins. Currently it is available as a Docker image only. It was available before to some extent, but it was a bogus one due to #450 |
@oleg-nenashev I am getting same error with latest (just pulled) docker image using next Jenkinsfile
Error:
|
Version report
Jenkins and plugins versions report:
Jenkins 2.321 (WAR)
Windows 10 Enterprise
Reproduction steps
Results
Expected result:
pipeline run
Actual result:
Exploding E:\external-repos\jenkinsfile-runner-1.0-beta-30\jenkins.war, this might take some time.
java.lang.RuntimeException: Unhandled exception
at io.jenkins.jenkinsfile.runner.bootstrap.commands.JenkinsLauncherCommand.call(JenkinsLauncherCommand.java:69)
at io.jenkins.jenkinsfile.runner.bootstrap.Bootstrap.call(Bootstrap.java:71)
at io.jenkins.jenkinsfile.runner.bootstrap.Bootstrap.call(Bootstrap.java:21)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine.execute(CommandLine.java:2078)
at io.jenkins.jenkinsfile.runner.bootstrap.Bootstrap.main(Bootstrap.java:46)
Caused by: java.lang.NoClassDefFoundError: com/cloudbees/plugins/credentials/CredentialsUnavailableException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at io.jenkins.jenkinsfile.runner.JenkinsfileRunnerLauncher.doLaunch(JenkinsfileRunnerLauncher.java:34)
at io.jenkins.jenkinsfile.runner.JenkinsLauncher.launch(JenkinsLauncher.java:132)
at io.jenkins.jenkinsfile.runner.App.run(App.java:32)
at io.jenkins.jenkinsfile.runner.bootstrap.commands.JenkinsLauncherCommand.runJenkinsfileRunnerApp(JenkinsLauncherCommand.java:226)
at io.jenkins.jenkinsfile.runner.bootstrap.commands.JenkinsLauncherCommand.call(JenkinsLauncherCommand.java:67)
... 10 more
Caused by: java.lang.ClassNotFoundException: com.cloudbees.plugins.credentials.CredentialsUnavailableException
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 20 more
The text was updated successfully, but these errors were encountered: