Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/roles/jenkins-workspace/files/clean_binary_tmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cd ~binary_tmp/binary_tmp.git
(echo; date) >> ~binary_tmp/clean_binary_tmp.log
du -sh ~binary_tmp/binary_tmp.git/ >> ~binary_tmp/clean_binary_tmp.log

git fetch origin +master:master
git fetch origin +main:main

for b in $(git branch | sed /\*/d); do
if [ -z "$(git log -1 --since='7 days ago' -s $b)" ]; then
Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/jenkins-workspace/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
regexp: "clean_binary_tmp"

- name: Disable automatic garbage collection
become: true
become_user: binary_tmp
command: "git config gc.auto 0"
args:
chdir: "~binary_tmp/binary_tmp.git/"
Expand Down