|
|
@@ -10,8 +10,11 @@ pipeline {
|
|
|
sh 'npm run build'
|
|
|
}
|
|
|
}
|
|
|
- stage('Deploy') {
|
|
|
+ stage('Build & Deploy') {
|
|
|
+ agent { label 'built-in' }
|
|
|
steps {
|
|
|
+ sh 'npm ci'
|
|
|
+ sh 'npm run build'
|
|
|
sh 'rsync -av --delete --exclude="web.config" --exclude="ecosystem.config.js" --exclude="restart.ps1" .next/standalone/ ${DEPLOY_FRONTEND}/'
|
|
|
sh 'rsync -av --delete .next/static/ ${DEPLOY_FRONTEND}/.next/static/'
|
|
|
sh 'rsync -av --delete public/ ${DEPLOY_FRONTEND}/public/'
|