Skip to content

Commit

Permalink
Cleanup plugin checkouts after test run
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Feb 16, 2024
1 parent 2668234 commit 91ce2bf
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions theforeman.org/scripts/checkout_cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

rm -rf ./foreman
rm -rf ./plugin
1 change: 1 addition & 0 deletions theforeman.org/yaml/jobs/foreman-plugins-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
- gemset_cleanup
- junit:
results: 'foreman/jenkins/reports/unit/*.xml'
- checkout_cleanup

- project:
name: foreman-plugin-pull-request
Expand Down
1 change: 1 addition & 0 deletions theforeman.org/yaml/jobs/test_plugin_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@
- gemset_cleanup
- junit:
results: 'foreman/jenkins/reports/unit/*.xml'
- checkout_cleanup
10 changes: 10 additions & 0 deletions theforeman.org/yaml/publishers/checkout_cleanup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- publisher:
name: checkout_cleanup
publishers:
- post-tasks:
- matches:
- log-text: ""
operator: AND
escalate-status: false
run-if-job-successful: false
script: !include-raw: scripts/checkout_cleanup.sh
2 changes: 1 addition & 1 deletion theforeman.org/yaml/publishers/gemset_cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: gemset_cleanup
publishers:
- post-tasks:
- matches:
- matches:
- log-text: ""
operator: AND
escalate-status: false
Expand Down

0 comments on commit 91ce2bf

Please sign in to comment.