---
- name: get commit.yaml file
  get_url:
    url: "{{ commit_url }}"
    dest: "{{ workspace }}/commit.yaml"
    force: yes
  register: result
  until: result is success
  retries: 3
  delay: 30

- name: fetch commit.yaml file to ansible controller
  fetch:
    dest: "/tmp/"
    src: "{{ workspace }}/commit.yaml"
    flat: yes

- name: load data from commit.yaml file
  include_vars:
    file: "/tmp/commit.yaml"
    name: hashes

- name: get individual commit/distro hashes
  set_fact:
    distro_hash: "{{ hashes['commits'][0]['distro_hash'] }}"
    commit_hash: "{{ hashes['commits'][0]['commit_hash'] }}"

- name: converge commit/distro hashes into full_hash
  set_fact:
     full_hash: "{{ commit_hash }}_{{ distro_hash[:8] }}"

- name: get component (if it exists and is not known)
  set_fact:
     component: "{{ hashes['commits'][0]['component'] }}"
  when: get_component_from_hash|default(false)|bool

---
- name: get commit.yaml file
  get_url:
    url: "{{ commit_url }}"
    dest: "{{ workspace }}/commit.yaml"
    force: yes
  register: result
  until: result is success
  retries: 3
  delay: 30

- name: fetch commit.yaml file to ansible controller
  fetch:
    dest: "/tmp/"
    src: "{{ workspace }}/commit.yaml"
    flat: yes

- name: load data from commit.yaml file
  include_vars:
    file: "/tmp/commit.yaml"
    name: hashes

- name: get individual commit/distro hashes
  set_fact:
    distro_hash: "{{ hashes['commits'][0]['distro_hash'] }}"
    commit_hash: "{{ hashes['commits'][0]['commit_hash'] }}"

- name: print out commit_hash
  debug:
    msg: "{{ commit_hash }}"

- name: print out distro_hash
  debug:
    msg: "{{ distro_hash }}"

- name: converge commit/distro hashes into full_hash
  set_fact:
     full_hash: "{{ commit_hash }}_{{ distro_hash[:8] }}"

- name: print out full_hash
  debug:
    msg: "{{ full_hash }}"

- name: get component (if it exists and is not known)
  set_fact:
     component: "{{ hashes['commits'][0]['component'] }}"
  when: get_component_from_hash|default(false)|bool

Add debug statements to show hashes in component jobs
Add debug statements to show hashes in component jobs

Component pipeline jobs currently do not display
the commit and distro hashes under test.
This review adds debug statements so those hash values
are easily visible in the console output.

Change-Id: I27635f5427b149413242bd67d09a04755326e1fa
