/
run.yaml
38 lines (34 loc) · 1.39 KB
/
run.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
- hosts: all
vars:
workspace: "{{ ansible_user_dir }}/workspace"
rdo_infra_ci_config: "{{ ansible_user_dir }}/{{ zuul.projects['review.rdoproject.org/rdo-infra/ci-config'].src_dir }}"
tasks:
- name: Create hash_info file with hashes from {{ promote_source }}
include_role:
name: get_hash
tasks_from: get_hash.yaml
- name: check if commit hash has already been promoted to target name
include_role:
name: promote-hash
tasks_from: check_for_previous_promotions.yml
when: promote_target == 'promoted-components'
- when:
- promote_target == 'promoted-components'
- commit_hash_in_promote_target is defined
- commit_hash_in_promote_target.stdout == '[]'
block:
- name: check reported jobs
include_role:
name: promote-hash
tasks_from: check-reported-jobs.yaml
- name: check component promotion criteria
include_role:
name: promote-hash
tasks_from: check-promotion-criteria.yaml
when: promote_target == 'promoted-components'
- name: Promote {{ promote_source }} to {{ promote_target }} for primary (centos) repo
include_role:
name: promote-hash
tasks_from: promote-primary-distro.yaml
when:
- (commit_hash_in_promote_target is not defined) or (commit_hash_in_promote_target.stdout == '[]')