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

Home Directory it's wrong on slaves

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • nvm-wrapper-plugin
    • None

      scurrilous

       
      I think JENKINS-40268 introduced a regression. It now uses System.getProperty("user.home") instead of "~" for the home directory, which causes the home directory of the Jenkins master to be used instead of the Jenkins slave. For example, I get:

      $ bash -c "source /var/lib/jenkins/.nvm/nvm.sh && NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist nvm install v7.8.0 && nvm use v7.8.0 && export > nvm.env"
      bash: /var/lib/jenkins/.nvm/nvm.sh: No such file or directory
      

      When my slave home directory is actually /home/jenkins.

            atoms Tomas Salazar
            atoms Tomas Salazar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: