install dependencies
This commit is contained in:
parent
c2ab736281
commit
5e086d45eb
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue