From 5f68dbdc488e82d53e0cc6a52cd85238d9a7e2f0 Mon Sep 17 00:00:00 2001
From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
Date: Tue, 2 Mar 2021 16:34:12 +0100
Subject: [PATCH] Add example.net workaround for OSTC DNS issue

OSTC DNS server has problems resolving www.example.com

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
---
 .ostc-ci/gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.ostc-ci/gitlab-ci.yml b/.ostc-ci/gitlab-ci.yml
index 8fa3e51..ed97c8a 100644
--- a/.ostc-ci/gitlab-ci.yml
+++ b/.ostc-ci/gitlab-ci.yml
@@ -51,6 +51,10 @@
     # devtool and other related tools.
     # xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
+    # Point to https://example.net instead of the default https://example.com.
+    # The OSTC cloud provider has misconfigured DNS which resolves the latter incorrectly.
+    - echo 'CONNECTIVITY_CHECK_URIS = "https://example.net/"' >> "$SCRATCH_DIR"/build/conf/local.conf
+
 
   after_script:
     # Reload the value of SCRATCH_DIR set in the before_script phase.
-- 
GitLab