diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2024-04-11 08:49:08 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2024-04-11 08:50:03 +0000 |
commit | f5a28a9eef13b4de7a196fd3147760a44de507a5 (patch) | |
tree | 5acce44c7eee956f988acb056511362957e8ee59 /tcwg-cleanup-stale-results.yaml.in | |
parent | f6554107ebd6481d9c012e5f0a93b6ba69bbfa55 (diff) |
tcwg-cleanup-stale-results: Improve dryrun support
Change-Id: I514e4c594e5dfcb2ea56ab85893a6d6ff6bb6269
Diffstat (limited to 'tcwg-cleanup-stale-results.yaml.in')
-rw-r--r-- | tcwg-cleanup-stale-results.yaml.in | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/tcwg-cleanup-stale-results.yaml.in b/tcwg-cleanup-stale-results.yaml.in index 09e0f7290a..70a987bbd4 100644 --- a/tcwg-cleanup-stale-results.yaml.in +++ b/tcwg-cleanup-stale-results.yaml.in @@ -7,19 +7,21 @@ properties: - default-properties parameters: - - bool: + - choice: name: cleanup_gc - default: 'true' + choices: + - true + - dryrun + - false description: 'Cleanup the git repositories' - - bool: + - choice: name: cleanup_annex - default: 'true' + choices: + - dryrun + - true + - false description: 'Cleanup the annex results files' - bool: - name: dryrun - default: 'true' - description: 'dryrun mode' - - bool: name: verbose default: 'false' description: 'Whether to be verbose' @@ -49,12 +51,11 @@ ./jenkins-scripts/tcwg-cleanup-stale-results.sh \ --cleanup_gc $cleanup_gc \ --cleanup_annex $cleanup_annex \ - --dryrun $dryrun \ --verbose $verbose if [ x"$(cat list_annex.exist_but_not_referenced.txt | wc -l)" != x"0" ]; then ( - if $dryrun; then + if [ "$cleanup_annex" = "dryrun" ]; then echo "# Cleanup-stale-results was run in DRYRUN mode." echo "# Please double check and run this script manually." else |