Remove extra chareacters at the beginning of the line
testing/og-dhcp-API/pipeline/head This commit looks good Details

nginx_conf
Nicolas Arenas 2024-10-01 17:42:40 +02:00
parent 2ade9775cc
commit 6fb97ba4a4
1 changed files with 1 additions and 1 deletions

View File

@ -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: /'