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

Cache location should be configurable through the GUI

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None

      This is a follow-up to JENKINS-18578.

      The cache location should be configurable through the GUI. "Launch slave agents on Unix machines via SSH" does not allow specifying -jar-cache so we are expected to manually edit the machine configuration by hand, making it a maintenance nightmare.

      If this configuration were configurable by GUI, we could create a Slave "template" and copy it when creating new nodes.

          [JENKINS-18956] Cache location should be configurable through the GUI

          cowwoc created issue -
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-18578 [ JENKINS-18578 ]

          Daniel Beck added a comment - - edited

          Edit the Suffix Start Slave Command under Advanced and specify e.g. -jar-cache /path/to/jars (with a leading space). Not a convenient button to click, but gets the job done.

          Daniel Beck added a comment - - edited Edit the Suffix Start Slave Command under Advanced and specify e.g. -jar-cache /path/to/jars (with a leading space). Not a convenient button to click, but gets the job done.

          Noel Madali added a comment -

          Is there a way to use the command line parameter on the master node?

          The issue that I have is that it still creates the cache folder with jars even when JENKINS_HOME is set to another directory.

          Noel Madali added a comment - Is there a way to use the command line parameter on the master node? The issue that I have is that it still creates the cache folder with jars even when JENKINS_HOME is set to another directory.
          Noel Madali made changes -
          Assignee New: Daniel Beck [ danielbeck ]
          Daniel Beck made changes -
          Assignee Original: Daniel Beck [ danielbeck ]

          I concur, the jar cache location needs to be configurable. While is is great to be able to change the location from the command line for slaves, this needs to be available for masters/standalone configurations.

          Robert Greathouse added a comment - I concur, the jar cache location needs to be configurable. While is is great to be able to change the location from the command line for slaves, this needs to be available for masters/standalone configurations.

          Another workaround I've found that worked better for me both on master and slave is changing the `user.home` System property by setting the `_JAVA_OPTIONS` environment variable as described [here](http://stackoverflow.com/questions/1501235/change-user-home-system-property).

          Roberto Andrade added a comment - Another workaround I've found that worked better for me both on master and slave is changing the `user.home` System property by setting the `_JAVA_OPTIONS` environment variable as described [here] ( http://stackoverflow.com/questions/1501235/change-user-home-system-property ).
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150403 ] New: JNJira + In-Review [ 177639 ]

            Unassigned Unassigned
            cowwoc cowwoc
            Votes:
            7 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: