Fix problem with ip space at the end
testing/og-dhcp-API/pipeline/head There was a failure building this commit
Details
testing/og-dhcp-API/pipeline/head There was a failure building this commit
Details
parent
3496a993c9
commit
088b33a235
|
@ -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: /'
|
||||
|
|
Loading…
Reference in New Issue