Skip to content

Commit

Permalink
Fix Save repo-setup hash content task
Browse files Browse the repository at this point in the history
`Save repo-setup hash content` task dumps the proper dlrn md5 hash
for component/intergration/check pipeline.

Currently this task depends on cifmw_repo_setup_component_promotion_tag
whose default value is defined in role defaults.

In this case, this task is working wrongly. Let's use
cifmw_repo_setup_component_name length as a param to dump the
proper hash.

Signed-off-by: Chandan Kumar <[email protected]>
  • Loading branch information
raukadah authored and openshift-merge-bot[bot] committed May 10, 2024
1 parent 3d499e4 commit 8960d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/repo_setup/tasks/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
_repo_setup_json: "{{ _get_hash.stdout | from_json }}"
block:
- name: Dump full hash in delorean.repo.md5 file
when: cifmw_repo_setup_component_promotion_tag is not defined
when: cifmw_repo_setup_component_name | length == 0
ansible.builtin.copy:
content: |
{{ _repo_setup_json['full_hash'] }}
dest: "{{ cifmw_repo_setup_basedir }}/artifacts/repositories/delorean.repo.md5"

- name: Dump current-podified hash when using with component repo
when: cifmw_repo_setup_component_promotion_tag is defined
when: cifmw_repo_setup_component_name | length > 0
ansible.builtin.get_url:
url: "{{ cifmw_repo_setup_dlrn_uri }}/{{ cifmw_repo_setup_os_release }}{{ cifmw_repo_setup_dist_major_version }}-{{ cifmw_repo_setup_branch }}/current-podified/delorean.repo.md5"
dest: "{{ cifmw_repo_setup_basedir }}/artifacts/repositories/delorean.repo.md5"
Expand Down

0 comments on commit 8960d90

Please sign in to comment.