From 105e8416afaa5d8411d309441633a30dcc96162a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonas=20H=C3=B6ppner?= <jonas.hoeppner@garz-fricke.com>
Date: Tue, 6 Dec 2022 15:21:24 +0100
Subject: [PATCH] CI: Add test command to show ip settings before build

---
 build-yocto.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/build-yocto.yml b/build-yocto.yml
index f0effd61..2334bff0 100644
--- a/build-yocto.yml
+++ b/build-yocto.yml
@@ -1,5 +1,15 @@
 ---
 
+.networkdebug: &networkdebug
+  #
+  - |-
+    set -x
+    ip address show || true
+    ping  -4 -c 2 www.google.com || true
+    ping  -6 -c 2 www.google.com || true
+    ping  -4 -c 1 git.seco.com || true # does not reply but shows the ip
+    set +x
+
 .collect_srcrevs: &collect_srcrevs
   # write all package AUTOREVS to file
   - |-
@@ -83,6 +93,7 @@
     JOB_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}/artifacts/"
     FNG_INSTALL_PATH: "${BUILDPATH}/${IMAGEPATH}/${INSTALLSCRIPT}"
   before_script:
+    - *networkdebug
     - !reference [.docker_check]
     - !reference [.setup_ssh]
     - !reference [.repo_checkout]
-- 
GitLab