Updated Jenkinsfile now install before building and deploy.
This commit is contained in:
parent
a1046cf99d
commit
03e0747c16
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -4,9 +4,20 @@ pipeline {
|
|||||||
stage ("build") {
|
stage ("build") {
|
||||||
steps {
|
steps {
|
||||||
nodejs("NodeJS (17.4.0)") {
|
nodejs("NodeJS (17.4.0)") {
|
||||||
|
sh "npm install"
|
||||||
sh "npm run build"
|
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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user