jenkinsci / configuration-as-code-plugin

Jenkins Configuration as Code Plugin
https://plugins.jenkins.io/configuration-as-code
MIT License
2.7k stars 722 forks source link

Jenkins Build Failure #2512

Closed jaderowl closed 5 months ago

jaderowl commented 5 months ago

Jenkins version: 2.426.1

Plugin version: workflow-job 2.37

OS: Ubuntu 20.04

I have a Jenkins job that has been running smoothly for months, but recently it started failing consistently. The error message in the console output

java.lang.NoClassDefFoundError: org/jenkinsci/plugins/workflow/job/WorkflowJob at MyPipelineScript.run(MyPipelineScript:10) Caused by: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.job.WorkflowJob at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 1 more Build step 'Execute shell' marked build as failure Finished: FAILURE

jaderowl commented 5 months ago

Thank you it fixed