Change Jenkinsfile
This commit is contained in:
parent
990ef81b16
commit
3c649b6948
|
@ -5,13 +5,19 @@ pipeline {
|
|||
|
||||
stages {
|
||||
stage('Install node modules'){
|
||||
steps {
|
||||
sh "npm install"
|
||||
}
|
||||
}
|
||||
stage('Build'){
|
||||
steps {
|
||||
sh "npm run build:ssr"
|
||||
}
|
||||
}
|
||||
stage('Deploy'){
|
||||
steps {
|
||||
sh "pm2 restart all"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue