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

Creating an ssh agent fails on Windows when Jenkins has not been installed on the C: drive

    XMLWordPrintable

Details

    Description

      Summary

      After creating a node I can see it is attempting to execute the following command and failing with the error "Unable to access jarfile remoting.jar"

      cd "D:\Jenkins" && java -jar remoting.jar -workDir D:\Jenkins\ -jar-cache D:\Jenkins/remoting/jarCache'.

      This is failing as cd does not change the drive.

      It should be cd /d "D:\Jenkins".

      Reproduction steps

      Install jenkins on a drive other than the C:

      1. Go to Manage Jenkins -> Manage Nodes and Clouds
      2. Click + New Node
      3. Fill in the details and select Launch agents via SSH
      4. Click Save
      5. Inspect the log for the node

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            Unassigned Unassigned
            micklang mick lang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: