From c72992bad983f37f4f1c67f7a4b562a10c720ab8 Mon Sep 17 00:00:00 2001 From: Jason King Date: Wed, 8 Feb 2023 18:47:24 +0100 Subject: [PATCH 1/2] Updated .gitlab-ci.yml to work better in workshop environments --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07dcc03..9c54cdb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,10 +47,12 @@ init-nso: stage: init-nso script: - ansible-playbook ciscops.mdd.nso_init + - ansible-playbook ciscops.mdd.nso_delete_devices - ansible-playbook ciscops.mdd.nso_update_devices + - ansible-playbook ciscops.mdd.update -e dry_run=no resource_group: mdd rules: - - if: $CLEAN == "true" + - if: $NSO_INIT == "true" save-rollback: stage: save-rollback From 43af63d3c22089be9057ff61a6bd208ae666d2c1 Mon Sep 17 00:00:00 2001 From: Jason King Date: Wed, 8 Feb 2023 19:29:09 +0100 Subject: [PATCH 2/2] Updated build stage to wait longer for the lab to be up --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c54cdb..4d27379 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,7 @@ clean: build-cml: stage: build-cml script: - - ansible-playbook cisco.cml.build -e startup='host' -e wait='yes' + - ansible-playbook cisco.cml.build -e startup='host' -e wait='yes' -e retries=100 resource_group: mdd rules: - if: $CLEAN == "true"