azure-storage-fuse/azure-pipeline-templates/cleanup.yml

27 строки
639 B
YAML
Исходник Постоянная ссылка Обычный вид История

2022-02-09 19:42:28 +03:00
parameters:
- name: working_dir
type: string
- name: mount_dir
type: string
- name: temp_dir
type: string
steps:
- script: |
ps -ef | grep blobfuse2
df -h
displayName: 'Check process info'
2022-02-09 19:42:28 +03:00
- script: |
sudo fusermount -u ${mount_dir}
sudo fusermount3 -u ${mount_dir}
2022-02-09 19:42:28 +03:00
sudo kill -9 `pidof blobfuse2` || true
rm -rf ${mount_dir}/*
rm -rf ${temp_dir}/*
timeoutInMinutes: 20
env:
working_dir: ${{ parameters.working_dir }}
mount_dir: ${{ parameters.mount_dir }}
temp_dir: ${{ parameters.temp_dir }}
displayName: 'Cleanup'
condition: always()