lock the repository for the whole upload process
will prevent that the CI fails in between of the operations and that results in an unknow state. The CI process can not restarted easly and a manual operation is required to fix it. With this fix, the CI process can be restarted if the db was locked.
Showing with 10 additions and 6 deletions