瀏覽代碼

Update 'Jenkinsfile'

관리자 2 月之前
父節點
當前提交
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/'