[jbosstools-issues] [JBoss JIRA] (JBIDE-13824) groovy environment variable hack no longer works in install-grinder jobs

Nick Boldt (JIRA) jira-events at lists.jboss.org
Wed Mar 20 12:23:42 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-13824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762167#comment-12762167 ] 

Nick Boldt commented on JBIDE-13824:
------------------------------------

https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/DevStudio/view/DevStudio_6.0.juno/job/jbosstools-4.0_stable_branch.install-tests.matrix has been retooled to do this, for every eclipse version specified (Juno R, Juno SR1, Juno SR2):

* install eclipse
* install JBT then install everything from JBT Central
* install eclipse again
* install JBDS then  install everything from JBDS Central

                
> groovy environment variable hack no longer works in install-grinder jobs
> ------------------------------------------------------------------------
>
>                 Key: JBIDE-13824
>                 URL: https://issues.jboss.org/browse/JBIDE-13824
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Build/Releng, testing-tools
>    Affects Versions: 4.0.1.Final, 4.1.0.Alpha1
>            Reporter: Nick Boldt
>            Assignee: Mickael Istria
>
> {code:title=https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/DevStudio/view/DevStudio_6.0.juno/job/jbosstools-4.0_stable_branch.upgrade-tests.matrix/7/console}
> Started by user nboldt at 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
> {code}
> Similar problem (which I worked around by removing the check on url and just hardcoding the values of product and proto):
> {code:title=https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/DevStudio/view/DevStudio_6.0.juno/job/jbosstools-4.0_stable_branch.install-tests.matrix/77/console}
> Started by user nboldt at 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{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list