Fix problem with ip space at the end
testing/og-dhcp-API/pipeline/head There was a failure building this commit Details

testing
Nicolas Arenas 2024-10-01 17:39:16 +02:00
parent 3496a993c9
commit 088b33a235
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')
new_ip=$(vagrant ssh -c "hostname -I" | tr -d '\r' | 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: /'