Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13824

update install-grinder jobs to use short workspace & INSTALL_PLAN instead of groovy environment variable hack

XMLWordPrintable

      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

              nickboldt Nick Boldt
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: