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