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"}}

Jenkins JIRA | Bernard McKeever | 5 years ago
  1. 0

    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.

    Jenkins JIRA | 5 years ago | Bernard McKeever
    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"}}
  2. 0

    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.

    Jenkins JIRA | 5 years ago | Bernard McKeever
    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"}}
  3. 0

    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.

    Jenkins JIRA | 5 years ago | Bernard McKeever
    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"}}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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.

    Jenkins JIRA | 5 years ago | Bernard McKeever
    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"}}
  6. 0

    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.

    Jenkins JIRA | 5 years ago | Bernard McKeever
    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"}}

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Hudson
      AbstractProject.doConfigSubmit
      1. hudson.model.Descriptor.newInstance(Descriptor.java:560)
      2. hudson.util.DescribableList.rebuild(DescribableList.java:155)
      3. hudson.model.Project.submit(Project.java:196)
      4. hudson.model.Job.doConfigSubmit(Job.java:965)
      5. hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:643)
      5 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame