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

Plugin not saving vault executable path between server restarts

    • 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.

          [JENKINS-17143] Plugin not saving vault executable path between server restarts

          Wei-min Lee added a comment -

          I'm seeing this issue with Jenkins 2.46.1.

          The first time I notice this issue was when Jenkins introduced the Global Tool Configuration (not sure which version).

          I originally defined the tool on the node configuration, but since the introduction of the Global Tool Configuration, the tool has to be defined differently and now this problem has resurfaced.

          Wei-min Lee added a comment - I'm seeing this issue with Jenkins 2.46.1. The first time I notice this issue was when Jenkins introduced the Global Tool Configuration (not sure which version). I originally defined the tool on the node configuration, but since the introduction of the Global Tool Configuration, the tool has to be defined differently and now this problem has resurfaced.

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

              Created:
              Updated: