|
|
@@ -1,7 +1,7 @@
|
|
|
pipeline {
|
|
|
agent any
|
|
|
environment {
|
|
|
- DEPLOY_FRONTEND = '/mnt/h/bitforum'
|
|
|
+ DEPLOY_FRONTEND = '/mnt/h/bitforum/sources'
|
|
|
}
|
|
|
stages {
|
|
|
stage('Build') {
|
|
|
@@ -12,20 +12,20 @@ pipeline {
|
|
|
}
|
|
|
stage('Deploy') {
|
|
|
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 public/ ${DEPLOY_FRONTEND}/public/'
|
|
|
}
|
|
|
}
|
|
|
stage('Restart Frontend') {
|
|
|
- agent { label 'windows-host' }
|
|
|
+ agent { label 'windows-host' }
|
|
|
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 {
|
|
|
- success { echo 'Frontend 배포 성공!' }
|
|
|
- failure { echo 'Frontend 배포 실패 - 로그를 확인하세요.' }
|
|
|
+ success { echo 'Frontend deploy success!' }
|
|
|
+ failure { echo 'Frontend deploy failed!' }
|
|
|
}
|
|
|
}
|