Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. 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



    • Similar Issues:


      If the the "buildWrappers" section of a job's config.xml (corresponding to the "Build Environment" configuration section) contains a Pyenv Plugin configuration (see snippet below), the entire "buildWrappers" section will not be loaded in the Jenkins web interface (also any configuration that may be present for other plugins). It is not visible in the job's configuration page and is ignored when the job is built.

      The configuration file is not changed upon reload/restart. Of course, if the job's configuration is opened via the UI and then saved, it gets deleted (since the UI's Build Environment section is not populated as it was previously configured in the file).

      I can not reproduce the issue with Ruby Runtime Plugin version 0.12.

      The issue is triggered when the job's config.xml contains the following Pyenv Plugin configuration:

            <ruby-object ruby-class="Jenkins::Tasks::BuildWrapperProxy" pluginid="pyenv">
              <pluginid pluginid="pyenv" ruby-class="String">pyenv</pluginid>
              <object ruby-class="PyenvWrapper" pluginid="pyenv">
                <pyenv__root pluginid="pyenv" ruby-class="String">$HOME/.pyenv</pyenv__root>
                <pip__list pluginid="pyenv" ruby-class="String">numpy,matplotlib,pytest,psutil,six,paramiko,pylint,pep8</pip__list>
                <pyenv__revision pluginid="pyenv" ruby-class="String">master</pyenv__revision>
                <version pluginid="pyenv" ruby-class="String">2.7.11</version>
                <ignore__local__version ruby-class="FalseClass" pluginid="pyenv"/>
                <pyenv__repository pluginid="pyenv" ruby-class="String">https://github.com/yyuu/pyenv.git</pyenv__repository>
          <!-- some other Build Environment config. -->


          Issue Links


            danieldwright Daniel Wright created issue -
            cantorman Dave Hildebrandt made changes -
            Field Original Value New Value
            Component/s core [ 15593 ]
            Component/s rvm-plugin [ 17536 ]
            Component/s timestamper-plugin [ 15749 ]
            cantorman Dave Hildebrandt made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            cantorman Dave Hildebrandt made changes -
            Link This issue is duplicated by JENKINS-37771 [ JENKINS-37771 ]
            daspilker Daniel Spilker made changes -
            Link This issue is related to JENKINS-39193 [ JENKINS-39193 ]
            daspilker Daniel Spilker made changes -
            Assignee R. Tyler Croy [ rtyler ] Daniel Spilker [ daspilker ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]


              daspilker Daniel Spilker
              danieldwright Daniel Wright
              4 Vote for this issue
              10 Start watching this issue