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

View File

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