--- # Copyright Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. - name: Install dlrnapi-client ansible.builtin.import_tasks: install.yml - name: Get hash related data from repo_setup role ansible.builtin.include_role: name: repo_setup - name: Check if commit hash is already promoted to target name ansible.builtin.import_tasks: check_for_previous_promotions.yml when: cifmw_dlrn_promote_hash | bool - name: Run DLRN promote hash when: - cifmw_dlrn_promote_hash_in_promote_target is defined - cifmw_dlrn_promote_hash_in_promote_target |length == 0 block: - name: Check reported jobs ansible.builtin.import_tasks: check_reported_jobs.yml - name: Check promotion criteria ansible.builtin.import_tasks: check_promotion_criteria.yml - name: Promote promote_source to target_source ansible.builtin.import_tasks: get_hashes.yml when: cifmw_dlrn_promote_hash_promote_content | bool