build in separate folder
Gitea/subman-nextjs/pipeline/head There was a failure building this commit Details

This commit is contained in:
andrzej 2024-10-03 18:13:48 +02:00
parent 740a57b30e
commit e61ede969f
1 changed files with 4 additions and 3 deletions

7
Jenkinsfile vendored
View File

@ -9,9 +9,10 @@ agent any
steps{ steps{
sh 'npm install' sh 'npm install'
sh 'npm run build' sh 'npm run build'
sh 'cp -r public .next/standalone/' sh 'mkdir standalone'
sh 'cp -r prisma .next/standalone/' sh 'cp -r public standalone/'
sh 'cp -r .next/static .next/standalone/' sh 'cp -r prisma standalone/'
sh 'cp -r .next/static standalone/.next/'
sh ' tar -C .next -cf subman.tar.gz standalone ' sh ' tar -C .next -cf subman.tar.gz standalone '
} }
} }