From 842b073501f404daa7a53b452b5c594b5fd440f8 Mon Sep 17 00:00:00 2001 From: Sanchit Vijay Date: Fri, 12 Apr 2024 17:33:35 -0400 Subject: [PATCH] resolved cleanup at last --- ci/Jenkinsfile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index aecf423..11c7f3a 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -73,7 +73,6 @@ pipeline { sh 'pip install mypy' catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE'){ sh 'python3 -m mypy -p src.grag --junit-xml mypy-report.xml' - } } } @@ -82,7 +81,6 @@ pipeline { withChecks('Static Type Checks'){ junit 'mypy-report.xml' } - } } } @@ -104,15 +102,6 @@ pipeline { withChecks('Integration Tests'){ junit 'pytest-report.xml' } - - cleanWs( - cleanWhenNotBuilt: false, - deleteDirs: true, - disableDeferredWipeout: true, - notFailBuild: true, - patterns: [[pattern: '.gitignore', type: 'INCLUDE'], - [pattern: '.propsfile', type: 'EXCLUDE']] - ) } } } @@ -130,5 +119,15 @@ pipeline { sh 'git commit -m "test status updated"' sh 'git push' } + cleanup{ + cleanWs( + cleanWhenNotBuilt: false, + deleteDirs: true, + disableDeferredWipeout: true, + notFailBuild: true, + patterns: [[pattern: '.gitignore', type: 'INCLUDE'], + [pattern: '.propsfile', type: 'EXCLUDE']] + ) + } } }