CI: Drop .git directory that was not present during first build
continuous-integration/drone/push Build is passing Details on plain agent00/evobackup/pipeline/head This commit looks good Details

This commit is contained in:
David Prevot 2022-07-11 14:39:50 +02:00
parent ba4629bee7
commit f0581fee47
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ pipeline {
steps {
script {
sh 'mk-build-deps --install --remove debian/control'
sh 'rm -rf {source,*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt}'
sh 'rm -rf {source,*.gz,*.bz2,*.xz,*.deb,*.dsc,*.changes,*.buildinfo,lintian.txt,.git}'
sh "gbp clone --debian-branch=$GIT_BRANCH $GIT_URL source"
sh 'cd source && git checkout $GIT_BRANCH && gbp buildpackage -us -uc'