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

Added greenbone check

parent 6bee0371
No related branches found
No related tags found
1 merge request!40Added greenbone check
......@@ -9,27 +9,33 @@ pipeline {
stages {
stage ('Test environment'){
steps {
sh '''#!/bin/bash
eval `oidc-agent-service use`
oidc-add infn-cloud-ops
env
withCredentials([
usernamePassword(credentialsId: "jenkins_scans_creds", usernameVariable: 'GMP_USER', passwordVariable: 'GMP_PASSWORD')
]) {
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
echo "orchent depls: NOT ok"
cat depls.output
exit 1
else
echo "orchent depls: ok"
fi
# Orchent connection test
orchent depls > depls.output
if cat depls.output | grep -q ERROR
then
echo "orchent depls: NOT ok"
cat depls.output
exit 1
else
echo "orchent depls: ok"
fi
# Greenbone connection test
/var/lib/jenkins/.local/bin/gvm-cli --gmp-username $GMP_USERNAME --gmp-password $GMP_PASSWD tls --hostname $HOST_IP --xml "<get_version/>"
which gvm-cli
'''
# Greenbone connection test
/var/lib/jenkins/.local/bin/gvm-cli --gmp-username $GMP_USERNAME --gmp-password $GMP_PASSWD tls --hostname $HOST_IP --xml "<get_version/>"
'''
}
}
}
stage ('Create test deployment'){
......
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