• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • libvirt-slave-plugin
    • None
    • Jenkins ver. 2.108; libvirt-slave 1.8.5

      The libvirt slave plugin was built with a very old version of Jenkins, and it can't support current functionality for slaves.  In particular, 'workDir' and 'remoteDir' in the slave configuration are not transferred to the slave during startup (see also https://issues.jenkins-ci.org/browse/JENKINS-47834  The JNLPLauncher class that was used to build the plugin in 2015 doesn't contain the "RemotingWorkDirSettings workDirSettings" field, and the VirtualMachineLauncher class defined in the plugin doesn't support the fields required by "slave-agent.jnlp.jelly".

          [JENKINS-50427] Libvirt Slaves Plugin needs updating to 2.x

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - The related ML thread: https://groups.google.com/forum/#!topic/jenkinsci-dev/w66m_3LTAxs

          I was able to fix this with the attached files.  Some more work is needed to add this to the libvirt-slave release, e.g., there are unchecked type conversions in the methods added to VirtualMachineLauncher.

          libvirt-fix.tar.xz

          Glenn Burkhardt added a comment - I was able to fix this with the attached files.  Some more work is needed to add this to the libvirt-slave release, e.g., there are unchecked type conversions in the methods added to VirtualMachineLauncher. libvirt-fix.tar.xz

            bgermann Bastian Germann
            gbburkhardt Glenn Burkhardt
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: