Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17143

Plugin not saving vault executable path between server restarts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • vault-scm-plugin
    • Windows 8 32Bit, Jenkins 1.504

      Reported Issue:

      Jenkins server(v1.504) is installed on a 32-bit Windows 8 machine using the Vault plugin (v1.1.1). In the global configuration settings I have configured a vault installation which points to my vault client executable at “C:\Program Files\SourceGear\Vault Client\vault.exe”.

      Everything works great, until I restart the Jenkins server. On restart the “Path to Vault executable” is reset to “C:\Program Files (x86)\SourceGear\Vault Client\vault.exe”. It appears that the setting is not being saved. I peeked into the org.jvnet.hudson.plugins.VaultSCM.xml file and I see an element for the setting but its empty.

      Looking into the code I’m assuming the problem is with line 54 of VaultSCMInstallation.java where the vaultLocation variable is declared transient, which is going to make it so it doesn’t get serialized. I’m not a regular Java programmer, so that assumption may be wrong.

            Unassigned Unassigned
            stuartwhelan Stuart Whelan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: