Skip to content

Instantly share code, notes, and snippets.

@ssmythe
Last active July 20, 2020 02:50
Show Gist options
  • Save ssmythe/e65c113f6f1ec20196f7 to your computer and use it in GitHub Desktop.
Save ssmythe/e65c113f6f1ec20196f7 to your computer and use it in GitHub Desktop.
Node.js via NVM in Jenkins
# Install Jenkins NVM plugin
mkdir -p /app/jenkins/plugins
chown jenkins:jenkins /app/jenkins/plugins
chmod 775 /app/jenkins/plugins
curl -o /app/jenkins/plugins/jenkins-nvm.hpi -ssL https://github.com/gextech/jenkins-nvm-plugin/blob/master/dist/jenkins-nvm.hpi?raw=true
chown jenkins:jenkins /app/jenkins/plugins/jenkins-nvm.hpi
chmod 0644 /app/jenkins/plugins/jenkins-nvm.hpi
#!/bin/bash
. ~/.nvm/nvm.sh
nvm install 0.12.2
nvm use 0.12.2
node --version
npm install grunt-cli@~0.1.13
grunt --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment