Skip to content
Snippets Groups Projects
Commit c08163cc authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Improved scans connection

parent ed336253
No related branches found
No related tags found
1 merge request!47Improved scans connection
...@@ -30,8 +30,11 @@ pipeline { ...@@ -30,8 +30,11 @@ pipeline {
echo "orchent depls: OK" echo "orchent depls: OK"
fi fi
# Create ssh tunnel
ssh -o StrictHostKeyChecking=no -f -N -L localhost:9390:192.168.235.234:9390 jenkins@scans.cloud.infn.it
# Greenbone connection test # Greenbone connection test
/var/lib/jenkins/.local/bin/gvm-cli --gmp-username $GMP_USER --gmp-password $GMP_PASSWORD tls --hostname $HOST_IP --xml "<get_version/>" > gvm.output /var/lib/jenkins/.local/bin/gvm-cli --gmp-username $GMP_USER --gmp-password $GMP_PASSWORD tls --hostname 127.0.0.1 --xml "<get_version/>" > gvm.output
if grep -q OK gvm.output if grep -q OK gvm.output
then then
echo "gvm check: OK" echo "gvm check: OK"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment