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

+ 2 - 5
Jenkinsfile

@@ -1,5 +1,5 @@
 pipeline {
-    agent any
+    agent { label 'built-in' }
     environment {
         DEPLOY_FRONTEND = '/mnt/h/bitforum/sources'
     }
@@ -10,11 +10,8 @@ pipeline {
                 sh 'npm run build'
             }
         }
-        stage('Build & Deploy') {
-            agent { label 'built-in' }
+        stage('Deploy') {
             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/'