Skip to content

Commit 5946bd6

Browse files
committed
ci: Building and Testing stages cleans up using git clean
1 parent f66fff8 commit 5946bd6

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

Jenkinsfile

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -884,25 +884,7 @@ pipeline {
884884
}
885885
post{
886886
cleanup{
887-
cleanWs(
888-
patterns: [
889-
[pattern: '.coverage/', type: 'INCLUDE'],
890-
[pattern: '.eggs/', type: 'INCLUDE'],
891-
[pattern: '.mypy_cache/', type: 'INCLUDE'],
892-
[pattern: '.pytest_cache/', type: 'INCLUDE'],
893-
[pattern: 'dist/', type: 'INCLUDE'],
894-
[pattern: 'build/', type: 'INCLUDE'],
895-
[pattern: '*.dist-info/', type: 'INCLUDE'],
896-
[pattern: 'logs/', type: 'INCLUDE'],
897-
[pattern: 'reports/', type: 'INCLUDE'],
898-
[pattern: 'generatedJUnitFiles/', type: 'INCLUDE'],
899-
[pattern: 'py3exiv2bind/*.so', type: 'INCLUDE'],
900-
[pattern: '**/__pycache__/', type: 'INCLUDE'],
901-
[pattern: 'venv/', type: 'INCLUDE'],
902-
],
903-
notFailBuild: true,
904-
deleteDirs: true
905-
)
887+
sh "git clean -dfx"
906888
}
907889
}
908890
}

0 commit comments

Comments
 (0)