Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17241

GEM_PATH env variable wrong when using envinject + rvm plugins

    XMLWordPrintable

Details

    Description

      The GEM_PATH environmental variable is not getting set correctly on master nodes. On slave nodes, it works just fine.

      Here is a sample of how it looks:

      GEM_PATH: "file:/var/lib/jenkins/jenkins-data/plugins/ruby-runtime/WEB-INF/lib/stapler-jruby-1.177.jar!/gem"

      Here is an example of how I expect it to render:

      GEM_PATH: "/var/lib/jenkins/.rvm/gems/ree-1.8.7-2012.02rn:/var/lib/jenkins/.rvm/gems/ree-1.8.7-2012.02@global"

      ---------------

      Disabling the envinject plugin renders the GEM_PATH environmental variable correctly.

      Also, we can use the plugin to override the GEM_PATH manually, but this is not ideal. We should be able to render this environmental variable via rvm.

      Attachments

        Activity

          bgoad Brian Goad created issue -
          jtomson James Tomson made changes -
          Field Original Value New Value
          Labels envinject environment-variables gem_path jenkins linux, plugin envinject environment-variables gem_path jenkins linux, plugin rvm
          Summary GEM_PATH env variable wrong when using GEM_PATH env variable wrong when using rvm
          jtomson James Tomson made changes -
          Component/s rvm [ 17536 ]
          jtomson James Tomson made changes -
          Summary GEM_PATH env variable wrong when using rvm GEM_PATH env variable wrong when using envinject + rvm plugins
          jglick Jesse Glick made changes -
          Labels envinject environment-variables gem_path jenkins linux, plugin rvm envinject environment-variables gem_path linux rvm
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 148074 ] JNJira + In-Review [ 177082 ]
          basil Basil Crow made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Resolved [ 5 ]

          People

            gbois Gregory Boissinot
            bgoad Brian Goad
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: