Jan Kundrát | 473cdf5 | 2020-04-14 13:34:33 +0200 | [diff] [blame] | 1 | - 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 }}" |