install dependencies

This commit is contained in:
Joan Sanchez 2018-10-25 11:38:21 +02:00
parent c2ab736281
commit 5e086d45eb
1 changed files with 5 additions and 9 deletions

14
Jenkinsfile vendored
View File

@ -25,10 +25,8 @@ node {
}
stage ('Install Node dependencies') {
nodejs('node-8.12.0') {
sh "npm install -g gulp"
sh "npm install -g docker-compose"
sh "npm install --only=prod"
// sh "npm install --only=dev"
sh "npm install"
//sh "npm install --only=dev"
sh "gulp install"
}
}
@ -39,10 +37,8 @@ node {
}
stage ('Generating new dockers') {
nodejs('node-8.12.0') {
sh "docker build -t vn-loopback:latest ./services/loopback/"
sh "docker-compose up -d --build"
sh "docker image prune -f"
}
sh "docker build -t vn-loopback:latest ./services/loopback/"
sh "docker-compose up -d --build"
sh "docker image prune -f"
}
}