blob: 250d40d232dea8bb47c75de28882d4db57b1ed5c [file] [log] [blame]
Jan Kundrát473cdf52020-04-14 13:34:33 +02001- name: Place for previous version of sources
2 file:
3 path: "{{ (previous_source_prefix + '/' + zuul.project.canonical_hostname + '/' + zuul.project.name) | dirname }}"
4 state: directory
5
6- name: Prepare copy of the previous version of sources
7 shell:
8 cmd: git worktree add {{ previous_source_prefix }}/{{ zuul.project.canonical_hostname }}/{{ zuul.project.name }} origin/$(git rev-parse --abbrev-ref HEAD)
9 chdir: "{{ zuul.project.src_dir }}"