diff --git a/jenkinsfile/Jenkinsfile b/jenkinsfile/Jenkinsfile index 61cc01bd31da62b48020b8d0b246d4463ddfb959..68a1cc38153aafd8ef063d2337d7d1bd00a66c47 100644 --- a/jenkinsfile/Jenkinsfile +++ b/jenkinsfile/Jenkinsfile @@ -30,8 +30,11 @@ pipeline { echo "orchent depls: OK" 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 - /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 then echo "gvm check: OK"