From 85f93b8ec4406c3df7d631ef1c89c80798e69ee5 Mon Sep 17 00:00:00 2001 From: andrzej Date: Thu, 3 Oct 2024 17:23:27 +0200 Subject: [PATCH] try different directory structure --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7c304c7..e97027d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,10 +9,12 @@ 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 ' tar -C .next -cf subman.tar.gz standalone ' + sh 'mkdir build' + sh 'cp -r public build/' + sh 'cp -r prisma build/' + sh 'cp -r .next/static build/.next/' + sh 'cp -r .next/standalone/** build/' + sh ' tar -cf subman.tar.gz build ' } } stage('deploy'){