Jan Kundrát | 93d261d | 2020-04-08 20:46:20 +0200 | [diff] [blame] | 1 | - name: Place for new version of sources |
| 2 | file: |
| 3 | path: "{{ new_source_prefix }}" |
| 4 | state: directory |
| 5 | |
| 6 | - name: Prepare copy of the new version of sources |
| 7 | command: git worktree add {{ new_source_prefix }}/{{ zuul.project.short_name }} {{ zuul.branch }} |
| 8 | args: |
| 9 | chdir: "{{ zuul.project.src_dir }}" |
| 10 | |
| 11 | - name: Retrieve coverage from parent jobs |
| 12 | include_tasks: download.yaml |
| 13 | loop: "{{ zuul.artifacts | json_query(artifact_seletcor) }}" |
| 14 | vars: |
| 15 | artifact_seletcor: "[([?metadata.type == 'cobertura_xml' && project == '{{ zuul.project.name }}'])[-1]]" |
| 16 | loop_control: |
| 17 | loop_var: artifact |