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

Update agent label

parent d087f873
No related branches found
No related tags found
1 merge request!73Update agent label
Pipeline #131111 failed
pipeline {
agent { label 'docker-agent' }
agent { label 'docker-paas-agent' }
environment {
ORCHENT_AGENT_ACCOUNT='infn-cloud-ops'
......@@ -10,6 +10,7 @@ pipeline {
stage ('Test environment'){
steps {
withCredentials([
sshUserPrivateKey(credentialsId: "ssh_scans", keyFileVariable: 'keyfile'),
usernamePassword(credentialsId: "jenkins_scans_creds", usernameVariable: 'GMP_USER', passwordVariable: 'GMP_PASSWORD')
]) {
sh '''#!/bin/bash
......@@ -31,10 +32,10 @@ pipeline {
fi
# Create ssh tunnel
cp ${keyfile} /home/jenkins/.ssh/id_rsa
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 127.0.0.1 --xml "<get_version/>" > gvm.output
/usr/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
......
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