Skip to content

Commit

Permalink
Merge #3345
Browse files Browse the repository at this point in the history
3345: Try adding button to clear cabal cache in buildkite r=Anviking a=Anviking

- [x] Try adding button to clear cabal cache in buildkite
    - When not pressing the button...
        - [x] The build should pass (iff previous steps pass)
        - [x] The cache should not be cleared
    - When pressing the button...
        - [x] The cache should be cleared
        - [x] Even if previous steps fail 

### Comments

- Pressing the button will unfortunately only clear the cache on one of the containers 😕 

### Issue Number

None

<!-- Reference the Jira/GitHub issue that this PR relates to, and which requirements it tackles.
  Note: Jira issues of the form ADP- will be auto-linked. -->


Co-authored-by: Johannes Lund <johannes.lund@iohk.io>
  • Loading branch information
iohk-bors[bot] and Anviking committed Jun 20, 2022
2 parents 69ce334 + 29d977c commit 3ad2be4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,13 @@ steps:
- './scripts/shellcheck.sh'
agents:
system: x86_64-linux

- block: "Clear cabal cache"
key: 'should_clear_cache'
allow_dependency_failure: true
depends_on: [] # allows triggering this step even if previous steps failed

- label: 'Clearing cabal cache'
command: 'rm -vrf $CABAL_DIR'
agents:
system: x86_64-linux

0 comments on commit 3ad2be4

Please sign in to comment.