fix: delete old standalone folder before making new one!
Gitea/subman-nextjs/pipeline/head This commit looks good Details

This commit is contained in:
andrzej 2024-10-03 18:36:24 +02:00
parent 9179aab7d4
commit 447504667f
1 changed files with 2 additions and 0 deletions

2
Jenkinsfile vendored
View File

@ -13,7 +13,9 @@ agent any
sh 'cp -r public standalone/' sh 'cp -r public standalone/'
sh 'cp -r prisma standalone/' sh 'cp -r prisma standalone/'
sh 'cp -r .next/static standalone/.next/' sh 'cp -r .next/static standalone/.next/'
sh 'cp -r .next/standalone/** standalone/'
sh ' tar -cf subman.tar.gz standalone ' sh ' tar -cf subman.tar.gz standalone '
sh 'rm -r standalone'
} }
} }
stage('deploy'){ stage('deploy'){