How to install a ruby gem in Jenkins? -


I'm looking for a way to install ruby ​​, mani And finally a specific gem ( sass & amp; compass ) only with the jenkins account Which root ).

I had a look but tried to do sudo to install Ruby in "single-user" mode ( apt-go ), So it fails because we are not in the interactive bash, and my Jenkins user will not have the right to set up stuff in Ubuntu anyway.

Any thoughts?

  1. sudo su-l
  2. use rvm $ your_ruby < / Li>
  3. This is probably the simplest way.

    If you are trying to do this many times, RVM is better to change the permissions of the gems folder so that the Jenkins user will keep it - the root will still be able to install it.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -