-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
CentOS 5.6, Java 1.5
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:
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<span class="code-quote">":"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)
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.
- is duplicated by
-
JENKINS-10975 Using a "Groovy Command" build step with the pre-scm-buildstep plugin returns a 500 server error
- Resolved