MOTOSHARE 🚗🏍️

Rent Bikes & Cars Directly from Owners

Motoshare connects vehicle owners with people who need bikes and cars on rent. Owners earn from idle vehicles, and renters get flexible ride options.

Visit Motoshare

groovy.lang.MissingPropertyException: No such property: CASE for class

Jenkins

rajeshkumar created the topic: groovy.lang.MissingPropertyException: No such property: CASE for class
Error
Started by user Rajesh Kumar
[EnvInject] – Loading node environment variables.
[EnvInject] – Preparing an environment for the build.
[EnvInject] – Keeping Jenkins system variables.
[EnvInject] – Keeping Jenkins build variables.
[EnvInject] – Evaluation the following Groovy script content:
if (CASE==null){
return null;
}
def stringValue=”StRinG”;
if (“upper”.equals(CASE)){
def map = [product: stringValue.toUpperCase()]
return map
}

if (“lower”.equals(CASE)){
def map = [product: stringValue.toLowerCase()]
return map
}

FATAL: No such property: CASE for class: Script1
groovy.lang.MissingPropertyException: No such property: CASE for class: Script1
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
at Script1.run(Script1.groovy:1)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589)
at org.jenkinsci.plugins.envinject.service.EnvInjectEnvVars.executeAndGetMapGroovyScript(EnvInjectEnvVars.java:142)
at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentJobPropertyObject(EnvInjectListener.java:188)
at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:44)
at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:575)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:481)
at hudson.model.Run.execute(Run.java:1688)
at hudson.model.Run.run(Run.java:1635)
at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:153)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
at hudson.model.OneOffExecutor.run(OneOffExecutor.java:43)
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x