ensure the build folder is cleaned

This commit is contained in:
Ell 2022-01-09 20:00:12 +01:00
parent c45bf86c80
commit 26c5765272

2
Jenkinsfile vendored
View file

@ -8,7 +8,7 @@ pipeline {
steps {
sh '''cd src
npm install
npx presskit build --output ../out --pretty-links --collapse-menu'''
npx presskit build --output ../out --pretty-links --collapse-menu --clean-build-folder'''
sh '''rm -rf /var/www/press/*
cp -r out/. /var/www/press'''
}