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

NVM_NODEJS_ORG_MIRROR=null causes `nvm install` to always fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • nvm-wrapper-plugin
    • nvm-wrapper-plugin v0.1.2
      Jenkins 2.46.3

      This was probably introduced in JENKINS-40268

      Now if no `NVM_NODEJS_ORG_MIRROR` is set (none should be set or needed by default) the value `null` causes all installs and builds to fail, even if the correct version is already installed.

       

      Relevant console output log:

       

      [etx8-web] $ bash -c "export > before.env"
      [etx8-web] $ bash -c "source /home/jenkins/.nvm/nvm.sh && NVM_NODEJS_ORG_MIRROR=null nvm install 6.9.1 && nvm use 6.9.1 && export > nvm.env"
      Version '6.9.1' not found - try `nvm ls-remote` to browse available versions.
      $ ssh-agent -k
      unset SSH_AUTH_SOCK;
      unset SSH_AGENT_PID;
      echo Agent pid 19849 killed;
      [ssh-agent] Stopped.
      ERROR: Failed to fork bash 
      Archiving artifacts
      Finished: FAILURE

       

       

      To avoid the problem I think I will have to manually set the environment variable in all of my builds that use the NVM wrapper.

            atoms Tomas Salazar
            thom_nic Thom Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: