Adjust emit_release script for periodic minor jobs

Run update job with current-tripleo as a source and
tripleo-ci-testing as a target in periodic jobs.

Change-Id: I23220d089db3c6483525cc5c028e4ec7c3bb4a04
This commit is contained in:
mciecier 2023-10-20 15:10:31 +02:00
parent a45099a746
commit 9a2d701ac5
1 changed files with 8 additions and 2 deletions

View File

@ -327,10 +327,16 @@ def compose_releases_dictionary(
elif featureset.get('minor_update'):
if is_periodic:
previous_hash = get_dlrn_hash(
stable_release, PREVIOUS_HASH_NAME, distro_name, distro_version
current_hash = get_dlrn_hash(
stable_release, PROMOTION_HASH_NAME, distro_name, distro_version
)
previous_hash = get_dlrn_hash(
stable_release, CURRENT_HASH_NAME, distro_name, distro_version
)
releases_dictionary['undercloud_install_hash'] = previous_hash
releases_dictionary['overcloud_deploy_hash'] = previous_hash
releases_dictionary['undercloud_target_hash'] = current_hash
releases_dictionary['overcloud_target_hash'] = current_hash
else:
target_newest_hash = get_dlrn_hash(
stable_release, NEWEST_HASH_NAME, distro_name, distro_version