-
Bug
-
Resolution: Fixed
-
Major
-
None
-
U
When both the NodeJS and RVM plugins are enabled for a single build, the build fails to run. It appears that the PATH accessible to the RVM plugin when it is setting up the environment is incorrect. We have used each of the plugins separately in our environment and they work fine.
Here is example output from a build with nothing defined in it apart from enabling the two plugins.
Started by user Ben Butler-Cole [EnvInject] - Loading node environment variables. Building remotely on civm02 in workspace /var/tmp/workspace/bbc-test Capturing environment variables produced by 'rvm use 1.9.3@release' $ bash -c export $ bash -c "test -f ~/.rvm/scripts/rvm" [bbc-test] $ bash -c " source ~/.rvm/scripts/rvm && rvm use --install --create 1.9.3@release && export > rvm.env" /home/ubuntu/.rvm/scripts/rvm: line 67: dirname: command not found /home/ubuntu/.rvm/scripts/rvm: line 96: dirname: command not found ERROR: Missing proper 'which' command. Make sure it is installed before using RVM! ERROR: Failed to setup RVM environment [BFA] Scanning build for known causes... [BFA] Done. 0s Notifying upstream projects of job completion Finished: FAILURE
I have attached the system info for our system.
- is duplicated by
-
JENKINS-24425 Using both NodeJS and Rbenv build environment plugins, rbenv is unable to create .rbenv.lock directory
-
- Closed
-
I've had the same experience with rbenv plugin.
I've tried with an updated version of NodeJS plugin that uses jenkins parent 1.575 and maven-hpi-plugin 1.106 but without any luck.
From what I see, rbenv plugin can execute native bash commands normally (e.g. directory location testing) but the PATH is not set for it so commands like mkdir, git, env and others just fail. When I turn off the NodeJS plugin from the job configuration, everything works as expected.
We use Jenkins 1.575. The master is a windows machine and the slave is CentOS one.