java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper from {"buildstep":{"bindings":"","classpath":"","kind":"hudson.plugins.groovy.SystemGroovy$DescriptorImpl","scriptSource":{"command":"[\"/home/jenkins/scripts/vm-start-if-not-running.sh\", \"[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx\"].execute().text","value":"0"},"stapler-class":"hudson.plugins.groovy.SystemGroovy"}}

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The following steps threw a server 500 error: - Checked "Run buildstep before SCM runs". - From the "Add build step" drop-down, I chose "Execute system Groovy script". (Provided by the Groovy Plugin) - Chose "Groovy Command". - Entered the following in the text box: -- ["/home/jenkins/scripts/vm-start-if-not-running.sh", "[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx"].execute().text - Scrolled to the bottom of the screen and clicked "Save". This returned the following response: Status Code: 500 Exception: Stacktrace: {code} java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper from {"buildstep":{"bindings":"","classpath":"","kind":"hudson.plugins.groovy.SystemGroovy$DescriptorImpl","scriptSource":{"command":"[\"/home/jenkins/scripts/vm-start-if-not-running.sh\", \"[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx\"].execute().text","value":"0"},"stapler-class":"hudson.plugins.groovy.SystemGroovy"}} at hudson.model.Descriptor.newInstance(Descriptor.java:560) at hudson.util.DescribableList.rebuild(DescribableList.java:155) at hudson.model.Project.submit(Project.java:196) at hudson.model.Job.doConfigSubmit(Job.java:965) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:643) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {code} I can create a pre-scm-buildstep using "Execute shell" without issue. These steps work without issue when I try to create a regular build step in the "Build" section of the job's configuration.
    via by Bernard McKeever,
  • The following steps threw a server 500 error: - Checked "Run buildstep before SCM runs". - From the "Add build step" drop-down, I chose "Execute system Groovy script". (Provided by the Groovy Plugin) - Chose "Groovy Command". - Entered the following in the text box: -- ["/home/jenkins/scripts/vm-start-if-not-running.sh", "[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx"].execute().text - Scrolled to the bottom of the screen and clicked "Save". This returned the following response: Status Code: 500 Exception: Stacktrace: {code} java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper from {"buildstep":{"bindings":"","classpath":"","kind":"hudson.plugins.groovy.SystemGroovy$DescriptorImpl","scriptSource":{"command":"[\"/home/jenkins/scripts/vm-start-if-not-running.sh\", \"[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx\"].execute().text","value":"0"},"stapler-class":"hudson.plugins.groovy.SystemGroovy"}} at hudson.model.Descriptor.newInstance(Descriptor.java:560) at hudson.util.DescribableList.rebuild(DescribableList.java:155) at hudson.model.Project.submit(Project.java:196) at hudson.model.Job.doConfigSubmit(Job.java:965) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:643) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {code} I can create a pre-scm-buildstep using "Execute shell" without issue. These steps work without issue when I try to create a regular build step in the "Build" section of the job's configuration.
    via by Bernard McKeever,
  • The following steps threw a server 500 error: - Checked "Run buildstep before SCM runs". - From the "Add build step" drop-down, I chose "Execute system Groovy script". (Provided by the Groovy Plugin) - Chose "Groovy Command". - Entered the following in the text box: -- ["/home/jenkins/scripts/vm-start-if-not-running.sh", "[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx"].execute().text - Scrolled to the bottom of the screen and clicked "Save". This returned the following response: Status Code: 500 Exception: Stacktrace: {code} java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper from {"buildstep":{"bindings":"","classpath":"","kind":"hudson.plugins.groovy.SystemGroovy$DescriptorImpl","scriptSource":{"command":"[\"/home/jenkins/scripts/vm-start-if-not-running.sh\", \"[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx\"].execute().text","value":"0"},"stapler-class":"hudson.plugins.groovy.SystemGroovy"}} at hudson.model.Descriptor.newInstance(Descriptor.java:560) at hudson.util.DescribableList.rebuild(DescribableList.java:155) at hudson.model.Project.submit(Project.java:196) at hudson.model.Job.doConfigSubmit(Job.java:965) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:643) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {code} I can create a pre-scm-buildstep using "Execute shell" without issue. These steps work without issue when I try to create a regular build step in the "Build" section of the job's configuration.
    via by Bernard McKeever,
  • The following steps threw a server 500 error: - Checked "Run buildstep before SCM runs". - From the "Add build step" drop-down, I chose "Execute system Groovy script". (Provided by the Groovy Plugin) - Chose "Groovy Command". - Entered the following in the text box: -- ["/home/jenkins/scripts/vm-start-if-not-running.sh", "[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx"].execute().text - Scrolled to the bottom of the screen and clicked "Save". This returned the following response: Status Code: 500 Exception: Stacktrace: {code} java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper from {"buildstep":{"bindings":"","classpath":"","kind":"hudson.plugins.groovy.SystemGroovy$DescriptorImpl","scriptSource":{"command":"[\"/home/jenkins/scripts/vm-start-if-not-running.sh\", \"[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx\"].execute().text","value":"0"},"stapler-class":"hudson.plugins.groovy.SystemGroovy"}} at hudson.model.Descriptor.newInstance(Descriptor.java:560) at hudson.util.DescribableList.rebuild(DescribableList.java:155) at hudson.model.Project.submit(Project.java:196) at hudson.model.Job.doConfigSubmit(Job.java:965) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:643) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {code} I can create a pre-scm-buildstep using "Execute shell" without issue. These steps work without issue when I try to create a regular build step in the "Build" section of the job's configuration.
    via by Bernard McKeever,
  • The following steps threw a server 500 error: - Checked "Run buildstep before SCM runs". - From the "Add build step" drop-down, I chose "Execute system Groovy script". (Provided by the Groovy Plugin) - Chose "Groovy Command". - Entered the following in the text box: -- ["/home/jenkins/scripts/vm-start-if-not-running.sh", "[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx"].execute().text - Scrolled to the bottom of the screen and clicked "Save". This returned the following response: Status Code: 500 Exception: Stacktrace: {code} java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper from {"buildstep":{"bindings":"","classpath":"","kind":"hudson.plugins.groovy.SystemGroovy$DescriptorImpl","scriptSource":{"command":"[\"/home/jenkins/scripts/vm-start-if-not-running.sh\", \"[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx\"].execute().text","value":"0"},"stapler-class":"hudson.plugins.groovy.SystemGroovy"}} at hudson.model.Descriptor.newInstance(Descriptor.java:560) at hudson.util.DescribableList.rebuild(DescribableList.java:155) at hudson.model.Project.submit(Project.java:196) at hudson.model.Job.doConfigSubmit(Job.java:965) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:643) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {code} I can create a pre-scm-buildstep using "Execute shell" without issue. These steps work without issue when I try to create a regular build step in the "Build" section of the job's configuration.
    via by Bernard McKeever,
  • The following steps threw a server 500 error: - Checked "Run buildstep before SCM runs". - From the "Add build step" drop-down, I chose "Execute system Groovy script". (Provided by the Groovy Plugin) - Chose "Groovy Command". - Entered the following in the text box: -- ["/home/jenkins/scripts/vm-start-if-not-running.sh", "[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx"].execute().text - Scrolled to the bottom of the screen and clicked "Save". This returned the following response: Status Code: 500 Exception: Stacktrace: {code} java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper from {"buildstep":{"bindings":"","classpath":"","kind":"hudson.plugins.groovy.SystemGroovy$DescriptorImpl","scriptSource":{"command":"[\"/home/jenkins/scripts/vm-start-if-not-running.sh\", \"[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx\"].execute().text","value":"0"},"stapler-class":"hudson.plugins.groovy.SystemGroovy"}} at hudson.model.Descriptor.newInstance(Descriptor.java:560) at hudson.util.DescribableList.rebuild(DescribableList.java:155) at hudson.model.Project.submit(Project.java:196) at hudson.model.Job.doConfigSubmit(Job.java:965) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:643) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {code} I can create a pre-scm-buildstep using "Execute shell" without issue. These steps work without issue when I try to create a regular build step in the "Build" section of the job's configuration.
    via by Bernard McKeever,
  • JMeter - User - CI - Jenkins + Maven + Jmeter
    via by Unknown author,
  • Copy Artifact plugin
    via by PEETERS JOHAN (SDV/AVO),
  • when trying to save a job with a copy artifact build step, a ClassNotFoundException is thrown: java.lang.RuntimeException: Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact from {"":"0","filter":"","flatten":false,"kind":"hudson.plugins.copyartifact.CopyArtifact$DescriptorImpl","optional":false,"projectName":"test","selector":{"buildNumber":"35","fallback":false,"id":"","parameterName":"BUILD_SELECTOR","stableOnly":false,"stapler-class":["hudson.plugins.copyartifact.StatusBuildSelector","hudson.plugins.copyartifact.SavedBuildSelector","hudson.plugins.copyartifact.TriggeredBuildSelector","hudson.plugins.copyartifact.PermalinkBuildSelector","hudson.plugins.copyartifact.SpecificBuildSelector","hudson.plugins.copyartifact.WorkspaceSelector","hudson.plugins.copyartifact.ParameterizedBuildSelector"]},"stapler-class":"hudson.plugins.copyartifact.CopyArtifact","target":""} at hudson.model.Descriptor.newInstance(Descriptor.java:543) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:818) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:805) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:185) at hudson.model.Project.submit(Project.java:197) at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:99) ... Caused by: java.lang.ClassNotFoundException: ["hudson.plugins.copyartifact.StatusBuildSelector","hudson.plugins.copyartifact.SavedBuildSelector","hudson.plugins.copyartifact.TriggeredBuildSelector","hudson.plugins.copyartifact.PermalinkBuildSelector","hudson.plugins.copyartifact.SpecificBuildSelector","hudson.plugins.copyartifact.WorkspaceSelector","hudson.plugins.copyartifact.ParameterizedBuildSelector"] at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:642) at java.lang.ClassLoader.loadClass(ClassLoader.java:660) at java.lang.ClassLoader.loadClass(ClassLoader.java:626) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) ... 67 more
    via by Johan Peeters,
    • java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.preSCMbuildstep.PreSCMBuildStepsWrapper from {"buildstep":{"bindings":"","classpath":"","kind":"hudson.plugins.groovy.SystemGroovy$DescriptorImpl","scriptSource":{"command":"[\"/home/jenkins/scripts/vm-start-if-not-running.sh\", \"[ha-datacenter/datastore1] build-system-pool/bs-slave-04/bs-slave-04.vmx\"].execute().text","value":"0"},"stapler-class":"hudson.plugins.groovy.SystemGroovy"}} at hudson.model.Descriptor.newInstance(Descriptor.java:560) at hudson.util.DescribableList.rebuild(DescribableList.java:155) at hudson.model.Project.submit(Project.java:196) at hudson.model.Job.doConfigSubmit(Job.java:965) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:643) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    No Bugmate found.