diff --git a/tests/API-dhcp/Jenkinsfile b/tests/API-dhcp/Jenkinsfile index ce5b250..24c6b4f 100644 --- a/tests/API-dhcp/Jenkinsfile +++ b/tests/API-dhcp/Jenkinsfile @@ -6,6 +6,7 @@ pipeline { } environment { ESXI_PASS = credentials('VI_PASSWORD') + QINDEL_PASS = credentials('jenkins-user-slave-password') PATH = "/home/qindel/bin/ovftool:${env.PATH}" } stages { @@ -26,7 +27,7 @@ pipeline { sh ''' set -e new_ip=$(vagrant ssh -c "ip a | grep inet | grep eth0 | awk \'{print $2}\' | cut -d/ -f1") - echo "$new_ip test-api" | sudo tee -a /etc/hosts > /dev/null + echo "$new_ip test-api" | sudo -S tee -a /etc/hosts <<<$QINDEL_PASS echo "IP: $new_ip" curl -L -X 'GET' -H 'accept: application/json' "http://api-test/opengnsys3/rest/dhcp/subnets/" '''