diff --git a/Jenkinsfile b/Jenkinsfile index 7c304c7..18a5774 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 stagingDir' + sh 'cp -r public stagingDir/' + sh 'cp -r prisma stagingDir/' + sh 'cp -r .next/static stagingDir/.next/' + sh 'cp -r .next/standalone/ stagingDir/' + sh ' tar -cf subman.tar.gz app ' } } stage('deploy'){