-
Bug
-
Resolution: Fixed
-
Minor
-
None
Hi,
I am trying to use a simple rbenv wrapper, the settings will be set in config.xml of the job, but neither the UI is picking them up, nor the build itself.
This is the code I am using:
job.wrappers { rbenv(rubyVersion) { ignoreLocalVersion() gems('bundler', 'rake') } }
The settings will be transferred into the config.xml of the job:
<buildWrappers> <ruby-proxy-object> <ruby-object ruby-class="Jenkins::Tasks::BuildWrapperProxy" pluginid="rbenv"> <pluginid ruby-class="String" pluginid="rbenv">rbenv</pluginid> <object ruby-class="RbenvWrapper" pluginid="rbenv"> <version ruby-class="String" pluginid="rbenv">1.9.3-p551</version> <ignore__local__version ruby-class="String" pluginid="rbenv">true</ignore__local__version> <gem__list ruby-class="String" pluginid="rbenv">bundler,rake</gem__list> <rbenv__root ruby-class="String" pluginid="rbenv">$HOME/.rbenv</rbenv__root> <rbenv__repository ruby-class="String" pluginid="rbenv">https://github.com/sstephenson/rbenv.git</rbenv__repository> <rbenv__revision ruby-class="String" pluginid="rbenv">master</rbenv__revision> <ruby__build__repository ruby-class="String" pluginid="rbenv">https://github.com/sstephenson/ruby-build.git</ruby__build__repository> <ruby__build__revision ruby-class="String" pluginid="rbenv">master</ruby__build__revision> </object> </ruby-object> </ruby-proxy-object> </buildWrappers>
But the UI is not picking them up (the checkbox for rbenv build wrapper is unchecked) and the settings are not transferred into the block.
When I manually setup the wrapper the xml looks like this:
<buildWrappers> <ruby-proxy-object> <ruby-object ruby-class="Jenkins::Tasks::BuildWrapperProxy" pluginid="rbenv"> <pluginid ruby-class="String" pluginid="rbenv">rbenv</pluginid> <object ruby-class="RbenvWrapper" pluginid="rbenv"> <version ruby-class="String" pluginid="rbenv">1.9.3-p551</version> <ignore__local__version ruby-class="String" pluginid="rbenv">true</ignore__local__version> <gem__list ruby-class="String" pluginid="rbenv">bundler,rake</gem__list> <rbenv__root ruby-class="String" pluginid="rbenv">$HOME/.rbenv</rbenv__root> <rbenv__repository ruby-class="String" pluginid="rbenv">https://github.com/sstephenson/rbenv.git</rbenv__repository> <rbenv__revision ruby-class="String" pluginid="rbenv">master</rbenv__revision> <ruby__build__repository ruby-class="String" pluginid="rbenv">https://github.com/sstephenson/ruby-build.git</ruby__build__repository> <ruby__build__revision ruby-class="String" pluginid="rbenv">master</ruby__build__revision> </object> </ruby-object> </ruby-proxy-object> </buildWrappers>
I cannot stop the difference. The error goes away when using ruby env 0.12.
- is related to
-
JENKINS-37353 RVM configurations disabled when Jenkins restarts.
- Resolved
-
JENKINS-37771 "Run the build in a RVM-managed environment" field gets unchecked after restarting the Jenkins server.
- Resolved
-
JENKINS-38145 The "buildWrappers" section of config.xml is not loaded upon reloading config from disk when the Pyenv and Ruby Runtime Plugins are enabled
- Resolved
-
JENKINS-39807 job-dsl plugin creating incorrect XML for rvm/ruby-runtime
- Closed
-
JENKINS-37422 No Wrappers if RVM is defined in Job DSL
- Closed