Updated Jenkinsfile now install before building and deploy.

This commit is contained in:
Harrison Deng 2022-01-20 00:16:18 -06:00
parent a1046cf99d
commit 03e0747c16

11
Jenkinsfile vendored
View File

@ -4,9 +4,20 @@ pipeline {
stage ("build") {
steps {
nodejs("NodeJS (17.4.0)") {
sh "npm install"
sh "npm run build"
}
}
}
stage ("deploy") {
when {
branch '**/master'
}
steps {
sshagent(['63d79efc-7b2b-43d6-87ad-90edebf74b1b']) {
sh "scp -r dist/** www-data@sys.reslate.xyz:/var/www/ent.sys.reslate.xyz"
}
}
}
}
}