Skip to content
Snippets Groups Projects
Commit ed2c8791 authored by Karl Wette's avatar Karl Wette
Browse files

.gitlab-ci.yml: use "clone" strategy for macOS jobs

- So permissions are correctly reset on any failed jobs;
  see: https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3726
- With this fix, 'after_script' no longer needed,
  and 'interruptible' should be safe
- Ref #661
parent fc8ee749
No related branches found
No related tags found
1 merge request!2148.gitlab-ci.yml: use "clone" strategy for macOS jobs
......@@ -199,13 +199,10 @@ default:
# helper template for jobs running on macOS
.macos-job:
# if the build fails during the distcheck phase then subsequent builds will
# fail with permissions errors, reset the permissions
after_script:
- chmod -R +w $CI_PROJECT_DIR
# do not cancel macOS job when a newer pipeline starts, to avoid issues
# with permission errors (see above)
interruptible: false
# use the clone strategy so permissions are correctly reset on any failed jobs
# see: https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3726
variables:
GIT_STRATEGY: clone
.macos:
extends:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment