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

+ 6 - 6
Jenkinsfile

@@ -1,7 +1,7 @@
 pipeline {
 pipeline {
     agent any
     agent any
     environment {
     environment {
-        DEPLOY_FRONTEND = '/mnt/h/bitforum'
+        DEPLOY_FRONTEND = '/mnt/h/bitforum/sources'
     }
     }
     stages {
     stages {
         stage('Build') {
         stage('Build') {
@@ -12,20 +12,20 @@ pipeline {
         }
         }
         stage('Deploy') {
         stage('Deploy') {
             steps {
             steps {
-                sh 'rsync -av --delete --exclude="web.config" --exclude="ecosystem.config.js" .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/'
             }
             }
         }
         }
         stage('Restart Frontend') {
         stage('Restart Frontend') {
-			agent { label 'windows-host' }
+            agent { label 'windows-host' }
             steps {
             steps {
-                bat 'powershell.exe -ExecutionPolicy Bypass -File /mnt/h/bitforum/restart.ps1'
+                bat 'chcp 65001 && powershell.exe -ExecutionPolicy Bypass -File H:\\IIS\\bitforum\\restart.ps1'
             }
             }
         }
         }
     }
     }
     post {
     post {
-        success { echo 'Frontend 배포 성공!' }
-        failure { echo 'Frontend 배포 실패 - 로그를 확인하세요.' }
+        success { echo 'Frontend deploy success!' }
+        failure { echo 'Frontend deploy failed!' }
     }
     }
 }
 }