Skip to content

Commit

Permalink
[dlrn_promote]Fixed dlrnapi hash params
Browse files Browse the repository at this point in the history
The correct params for dlrnapi is as follows/l
```
❯ dlrnapi report-result --help
usage: dlrnapi report-result [-h] --job-id JOB_ID [--commit-hash COMMIT_HASH] [--distro-hash DISTRO_HASH] [--extended-hash EXTENDED_HASH]
                             [--agg-hash AGG_HASH] --info-url INFO_URL --timestamp TIMESTAMP --success SUCCESS [--notes NOTES]

options:
  -h, --help            show this help message and exit
  --job-id JOB_ID       Name of the CI sending the vote
  --commit-hash COMMIT_HASH
                        commit_hash of tested repo
  --distro-hash DISTRO_HASH
                        distro_hash of tested repo
  --extended-hash EXTENDED_HASH
                        extended_hash of tested repo
  --agg-hash AGG_HASH   hash of the tested aggregated repo. Note that either --commit-hash and --distro-hash or --agg-hash must be specified.
  --info-url INFO_URL   URL where to find additional information from the CI execution
  --timestamp TIMESTAMP
                        Timestamp (in seconds since the epoch)
  --success SUCCESS     Was the CI execution successful? Set to true or false.
  --notes NOTES         Additional notes
```

It should be dash instead of underscrore.

Signed-off-by: Chandan Kumar <[email protected]>
  • Loading branch information
raukadah authored and openshift-merge-bot[bot] committed May 14, 2024
1 parent 8958f87 commit 5796e8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/dlrn_promote/tasks/check_for_previous_promotions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--agg-hash {{ cifmw_repo_setup_full_hash }}
{% endif -%}
{% if (cifmw_repo_setup_extended_hash is defined) and (cifmw_repo_setup_extended_hash | length > 0) -%}
--extended_hash {{ cifmw_repo_setup_extended_hash }}
--extended-hash {{ cifmw_repo_setup_extended_hash }}
{% endif -%}
{% if (cifmw_repo_setup_commit_hash is defined) and (cifmw_repo_setup_commit_hash | length > 0) -%}
--commit_hash {{ cifmw_repo_setup_commit_hash }}
--commit-hash {{ cifmw_repo_setup_commit_hash }}
{% endif -%}
{% if (cifmw_repo_setup_distro_hash is defined) and (cifmw_repo_setup_distro_hash | length > 0) -%}
--distro_hash {{ cifmw_repo_setup_distro_hash }}
--distro-hash {{ cifmw_repo_setup_distro_hash }}
{% endif -%}
--promote-name {{ cifmw_dlrn_promote_promotion_target }}
| tee -a {{ cifmw_dlrn_promote_workspace }}/cifmw_dlrn_promote_hash_promote_target_output.txt
Expand Down

0 comments on commit 5796e8f

Please sign in to comment.