관리자 2 сар өмнө
parent
commit
2a43faa26b
1 өөрчлөгдсөн 2 нэмэгдсэн , 5 устгасан
  1. 2 5
      Jenkinsfile

+ 2 - 5
Jenkinsfile

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