-
Bug
-
Resolution: Done
-
Major
-
4.0.1.Final, 4.1.0.Alpha1
-
None
Started by user nboldt@REDHAT.COM [EnvInject] - Loading node environment variables. [EnvInject] - Preparing an environment for the build. [EnvInject] - Keeping Jenkins system variables. [EnvInject] - Keeping Jenkins build variables. [EnvInject] - Adding build parameters as variables. [EnvInject] - Evaluation the following Groovy script content: // Horrible hack to set PRODUCT ! import hudson.model.* def thr = Thread.currentThread() def build = thr?.executable def resolver = build.buildVariableResolver def url = resolver.resolve("INSTALL_URL") String product = url.contains("devstudio") ? "devstudio" : "jbosstools" String proto = url.contains("devstudio.jboss.com") ? "https" : "http" [PRODUCT: product, PROTO: proto] [EnvInject] - [ERROR] - SEVERE ERROR occurs: No such property: executable for class: hudson.model.OneOffExecutor Notifying upstream projects of job completion Finished: FAILURE
Similar problem (which I worked around by removing the check on url and just hardcoding the values of product and proto):
Started by user nboldt@REDHAT.COM [EnvInject] - Loading node environment variables. [EnvInject] - Preparing an environment for the build. [EnvInject] - Keeping Jenkins system variables. [EnvInject] - Keeping Jenkins build variables. [EnvInject] - Adding build parameters as variables. [EnvInject] - Evaluation the following Groovy script content: // Horrible hack to set PRODUCT ! import hudson.model.* def thr = Thread.currentThread() def build = thr?.getCurrentExecutable() def resolver = build.buildVariableResolver def url = resolver.resolve("INSTALL_URL") String product = url.contains("devstudio") ? "devstudio" : "jbosstools" String proto = url.contains("devstudio.jboss.com") ? "https" : "http" [PRODUCT: product, PROTO: proto] [EnvInject] - [ERROR] - SEVERE ERROR occurs: Cannot invoke method contains() on null object Notifying upstream projects of job completion Finished: FAILURE