Remove extra chareacters at the beginning of the line
testing/og-dhcp-API/pipeline/head This commit looks good
Details
testing/og-dhcp-API/pipeline/head This commit looks good
Details
parent
2ade9775cc
commit
6fb97ba4a4
|
@ -37,7 +37,7 @@ pipeline {
|
||||||
echo "Get IP of API server for DHCP with Vagrant"
|
echo "Get IP of API server for DHCP with Vagrant"
|
||||||
sh '''
|
sh '''
|
||||||
set -e
|
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 "$QINDEL_PASS" | sudo -S bash -c "echo '$new_ip api-test' >> /etc/hosts"
|
||||||
echo "IP: $new_ip"
|
echo "IP: $new_ip"
|
||||||
curl -X 'GET' "http://$new_ip/ogdhcp/v1/subnets" -H 'accept: /'
|
curl -X 'GET' "http://$new_ip/ogdhcp/v1/subnets" -H 'accept: /'
|
||||||
|
|
Loading…
Reference in New Issue