관리자 2 месяцев назад
Родитель
Сommit
1e880b15f0
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      Jenkinsfile

+ 4 - 1
Jenkinsfile

@@ -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/'