Last active
August 29, 2015 14:24
-
-
Save xsenechal/1792c51a0ba3c2c3123a to your computer and use it in GitHub Desktop.
Jenkins continuous deploy for nodejs
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 NodeJS plugin, then in the global settings, create a NodeJS install | |
#in the job config check the box "Provide Node & npm bin/ folder to PATH" | |
export http_proxy="http://user:pwd@domain:8080" | |
export https_proxy="http://user:pwd@domain:8080" | |
echo $path | |
node --version | |
bower --version | |
npm install | |
bower install | |
grunt build | |
export NODE_ENV=test | |
if pgrep node; then killall node; fi | |
#this allow to detach the process | |
export BUILD_ID=dontKillMe | |
nohup node server.js > conges.log & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment