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:
|
2024-07-31 17:16:57 +03:00
|
|
|
- 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}
|
2022-06-24 22:13:57 +03:00
|
|
|
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()
|