From a5c6f9d3cbf4d723055ec38ab29ee9503a0ae41a Mon Sep 17 00:00:00 2001 From: andrzej Date: Thu, 3 Oct 2024 18:13:48 +0200 Subject: [PATCH] build in separate folder --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 94b6fa8..49c0faf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,9 +9,10 @@ agent any steps{ sh 'npm install' sh 'npm run build' - sh 'cp -r public .next/standalone/' - sh 'cp -r prisma .next/standalone/' - sh 'cp -r .next/static .next/standalone/' + sh 'mkdir standalone' + sh 'cp -r public standalone/' + sh 'cp -r prisma standalone/' + sh 'cp -r .next/static standalone/.next/' sh ' tar -C .next -cf subman.tar.gz standalone ' } } @@ -28,7 +29,7 @@ agent any deleteDirs: true, disableDeferredWipeout: true, notFailBuild: true, - patterns: [[pattern: '.gitignore', type: 'INCLUDE'], + patterns: [[pattern: '**/*', type: 'INCLUDE'], [pattern: '.propsfile', type: 'EXCLUDE']]) } }