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

Home Directory it's wrong on slaves

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Trevor Robinson

       
      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.

        Attachments

          Issue Links

            Activity

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: atomsfat Path: build.gradle http://jenkins-ci.org/commit/nvm-wrapper-plugin/abf6dc8a49b4e2ec0981b69f5234f1038e186ca1 Log: 0.1.4 Solves https://issues.jenkins-ci.org/browse/JENKINS-45784
            Hide
            atoms Tomas Salazar added a comment -

            Solved in version 0.1.4

            Show
            atoms Tomas Salazar added a comment - Solved in version 0.1.4

              People

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

                Dates

                Created:
                Updated:
                Resolved: