Skip to content

Add retries in ocp4_workload_trusted_application_pipeline #9327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
state: present
namespace: "{{ ocp4_workload_trusted_application_pipeline_jenkins_namespace }}"
definition: "{{ lookup('template', item) | from_yaml }}"
register: r_deploy_nginx
retries: 5
delay: 10
until: r_deploy_nginx is successful
loop:
- pvc-nginx.yml.j2
- deployment-nginx.yml.j2
Expand All @@ -84,6 +88,9 @@
kind: Infrastructure
name: cluster
register: r_infra
retries: 5
delay: 10
until: r_infra is successful

- name: Get the Openshift API URL
ansible.builtin.set_fact:
Expand Down Expand Up @@ -124,4 +131,5 @@
pod: "{{ r_nginx_pod.resources[0].metadata.name }}"
command: >-
nginx -s stop
ignore_errors: true
ignore_errors: true
...
Loading