Pull request: clear working directory after each build to prevent agent's disk bloat

Merge in DNS/adguard-home from clean-working-directory to master

Squashed commit of the following:

commit cf5908c8bff984544f6d6fcad5bcd0b8e2109225
Author: Константин Замякин <sc@adguard.com>
Date:   Wed Apr 14 02:06:20 2021 +0300

    clear working directory after each build to prevent agent's disk bloat
This commit is contained in:
Ainar Garipov 2021-04-14 12:40:48 +03:00
parent 39b9807f19
commit c82080e1a7
2 changed files with 12 additions and 0 deletions

View file

@ -47,6 +47,8 @@
'${system.GO_CACHE_DIR}': '${bamboo.cacheGo}'
'${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}'
'key': 'MR'
'other':
'clean-working-dir': true
'tasks':
- 'checkout':
'force-clean-build': true
@ -82,6 +84,8 @@
'Make and publish docker':
'key': 'MPD'
'other':
'clean-working-dir': true
'tasks':
- 'checkout':
'force-clean-build': true
@ -129,6 +133,8 @@
'Publish to static.adguard.com':
'key': 'PUB'
'other':
'clean-working-dir': true
'tasks':
- 'clean'
- 'checkout':
@ -156,6 +162,8 @@
'docker':
'image': '${bamboo.dockerGo}'
'key': 'PTS'
'other':
'clean-working-dir': true
'tasks':
- 'clean'
- 'checkout':
@ -185,6 +193,8 @@
'Publish to Github Releases':
'key': 'PTGR'
'other':
'clean-working-dir': true
'tasks':
- 'clean'
- 'checkout':

View file

@ -22,6 +22,8 @@
'${system.GO_CACHE_DIR}': '${bamboo.cacheGo}'
'${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}'
'key': 'TEST'
'other':
'clean-working-dir': true
'tasks':
- 'checkout':
'force-clean-build': true