From 6fb97ba4a48770acfa7c88d62fa0bceefd5c5122 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Tue, 1 Oct 2024 17:42:40 +0200 Subject: [PATCH] Remove extra chareacters at the beginning of the line --- tests/API-dhcp/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/API-dhcp/Jenkinsfile b/tests/API-dhcp/Jenkinsfile index 9ab7ef8..182b81e 100644 --- a/tests/API-dhcp/Jenkinsfile +++ b/tests/API-dhcp/Jenkinsfile @@ -37,7 +37,7 @@ pipeline { echo "Get IP of API server for DHCP with Vagrant" sh ''' set -e - new_ip=$(vagrant ssh -c "hostname -I" | tr -d '\r' | sed 's/[[:space:]]*$//') + new_ip=$(vagrant ssh -c "hostname -I" | tr -d '\r' | sed 's/^[^a-zA-Z]*//' | sed 's/[[:space:]]*$//') echo "$QINDEL_PASS" | sudo -S bash -c "echo '$new_ip api-test' >> /etc/hosts" echo "IP: $new_ip" curl -X 'GET' "http://$new_ip/ogdhcp/v1/subnets" -H 'accept: /'