On Tuesday, May 19, 2015 at 4:26:40 PM UTC+2, rginga wrote: > > Let’s see,,, > > > > 1. What SCM are you using? I use Perforce and can tell the Perforce > Plugin “not” to manage “client views” and create one in a fixed location > AND set the Use custom workspace in Advanced Project Options to tell each > job to use the same workspace. Therefore, Jenkins will not create a > workspace with the job name. you do this in each of job1, job2, job,3 etc > My question was, "How can I handle an environment variable set for one build to an other build?". What does this have to do with the used SCM???
build( "linux-3.10.y.prep", PARENT_WORKSPACE:build.workspace, PARENT_JOB_NAME:build.job_name) [...] Is there a list available listing all properties for "build.*" I can use? The property "build.job_name" just doesn't exist. I've tried "build.job.name" and "build.jobname" but all with no success: { groovy.lang.MissingPropertyException <http://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingPropertyException>: No such property: jobname for class: com.cloudbees.plugins.flow.FlowRun <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L17> at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap&entity=method> <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L18> at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63) <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty&entity=method> <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L19> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227) <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty&entity=method> <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L20> at Script1.run(Script1.groovy:1) <http://stacktrace.jenkins-ci.org/search/?query=Script1.run&entity=method> <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L21> at Script1$run.call(Unknown Source) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L22> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L23> at Script1$run.call(Unknown Source) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L24> at com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L25> at com.cloudbees.plugins.flow.FlowRun$BuildWithWorkspaceRunnerImpl.doRun(FlowRun.java:180) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L26> at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L27> at hudson.model.Run.execute(Run.java:1744) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L28> at hudson.model.Run.run(Run.java:1682) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L29> at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:153) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L30> at hudson.model.ResourceController.execute(ResourceController.java:98) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L31> at hudson.model.Executor.run(Executor.java:374) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L32>FATAL: No such property: jobname for class: com.cloudbees.plugins.flow.FlowRun <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L33>groovy.lang.MissingPropertyException <http://stacktrace.jenkins-ci.org/search?query=groovy.lang.MissingPropertyException>: No such property: jobname for class: com.cloudbees.plugins.flow.FlowRun <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L34> at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap&entity=method> <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L35> at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:63) <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty&entity=method> <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L36> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227) <http://stacktrace.jenkins-ci.org/search/?query=org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty&entity=method> <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L37> at Script1.run(Script1.groovy:1) <http://stacktrace.jenkins-ci.org/search/?query=Script1.run&entity=method> <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L38> at Script1$run.call(Unknown Source) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L39> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L40> at Script1$run.call(Unknown Source) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L41> at com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:84) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L42> at com.cloudbees.plugins.flow.FlowRun$BuildWithWorkspaceRunnerImpl.doRun(FlowRun.java:180) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L43> at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L44> at hudson.model.Run.execute(Run.java:1744) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L45> at hudson.model.Run.run(Run.java:1682) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L46> at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:153) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L47> at hudson.model.ResourceController.execute(ResourceController.java:98) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L48> at hudson.model.Executor.run(Executor.java:374) <http://test-sct-jci-muc.bfs.de:8080/me/my-views/view/CJV/job/linux-3.10.y/9/console#L49>Finished: FAILURE } -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/93c37ecf-f5c4-43f3-b061-3e17b6405a1d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.