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

Added greenbone check in env test

parent be93495c
No related branches found
No related tags found
1 merge request!37Debug paas ci
......@@ -4,7 +4,6 @@ pipeline {
environment {
ORCHENT_AGENT_ACCOUNT='infn-cloud'
ORCHENT_URL='https://my.cloud.infn.it/orchestrator'
PASS=''
}
stages {
......@@ -13,6 +12,10 @@ pipeline {
sh '''#!/bin/bash
eval `oidc-agent-service use`
oidc-add infn-cloud-ops
env
# Orchent connection test
orchent depls > depls.output
if cat depls.output | grep -q ERROR
then
......@@ -22,6 +25,11 @@ pipeline {
else
echo "orchent depls: ok"
fi
# Greenbone connection test
export HOST_IP=`/sbin/ip route list scope link | grep -v " 172." | awk '{print $7}' | tr -d '\n'`
gvm-cli --gmp-username $GMP_USERNAME --gmp-password $GMP_PASSWD tls --hostname $HOST_IP --xml "<get_version/>"
'''
}
}
......
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