I use bitbucket caches with my builds. At the end of my build, I'd like to clear the cache and re-upload it (to cache anything additional the most recent build created).
I've tried using this plugin: https://bitbucket.org/atlassian/bitbucket-clear-cache/src/master/
However, when I get to the end of the pipeline, the cache is not re-uploaded even though it has been cleared by the plugin. The pipeline seems unaware that the plugin has cleared the cache.
```
pipelines:
branches:
master:
- step:
name: Build and Test
caches:
- gradle
script:
# cache hit happens in setup
- ./scripts/build-and-test.sh
# cache is cleared by plugin
- pipe: atlassian/bitbucket-clear-cache:3.0.0
variables:
BITBUCKET_USERNAME: $BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
# BUG? in teardown, pipelines doesn't re-upload the gradle cache
```