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

gradle-jpi-plugin overwrites JENKINS_HOME system property

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • gradle-jpi-plugin
    • None

      ServerTask.groovy sets the JENKINS_HOME system property as follows:

      System.setProperty("JENKINS_HOME",conv.workDir.getAbsolutePath())

      If the system property is already set to another value, that value is overwritten.

          [JENKINS-13664] gradle-jpi-plugin overwrites JENKINS_HOME system property

          You can set the workDir option in build.gradle to change the value of JENKINS_HOME and to run Jenkins from a different directory:

          ...
          jenkinsPlugin {
              ...
              workDir = file('/tmp/jenkins')
              ...
          }
          ...
          

          Daniel Spilker added a comment - You can set the workDir option in build.gradle to change the value of JENKINS_HOME and to run Jenkins from a different directory: ... jenkinsPlugin { ... workDir = file( '/tmp/jenkins' ) ... } ...

            daspilker Daniel Spilker
            kyleschlosser Kyle Schlosser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: