Last active
July 20, 2020 02:50
-
-
Save ssmythe/e65c113f6f1ec20196f7 to your computer and use it in GitHub Desktop.
Node.js via NVM in Jenkins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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