Ver código fonte

Update 'Jenkinsfile'

관리자 2 meses atrás
pai
commit
1e880b15f0
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      Jenkinsfile

+ 4 - 1
Jenkinsfile

@@ -10,8 +10,11 @@ pipeline {
                 sh 'npm run build'
             }
         }
-        stage('Deploy') {
+        stage('Build & Deploy') {
+            agent { label 'built-in' }
             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/'