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

Updated oidc-agent account

parent b7017685
No related branches found
No related tags found
1 merge request!18Updated oidc-agent account
Pipeline #111395 passed
......@@ -11,8 +11,10 @@ pipeline {
stage ('Create test deployment'){
steps {
sh '''#!/bin/bash
wget -O site.yaml "${PLAYBOOK_URL}"
ansible-playbook site.yaml --extra-vars "paas_ci_test_step='create_deployment'"
eval `oidc-agent-service use`
oidc-add infn-cloud-ops --pw-env=PASS
wget -O site.yaml "${PLAYBOOK_URL}"
ansible-playbook site.yaml --extra-vars "paas_ci_test_step='create_deployment'"
'''
}
}
......@@ -23,8 +25,10 @@ pipeline {
usernamePassword(credentialsId: "jenkins_scans_creds", usernameVariable: 'GMP_USER', passwordVariable: 'GMP_PASSWORD')
]) {
sh '''#!/bin/bash
cp ${keyfile} /home/jenkins/.ssh/id_rsa
ansible-playbook site.yaml --extra-vars "paas_ci_test_step='scan'"
eval `oidc-agent-service use`
oidc-add infn-cloud-ops --pw-env=PASS
cp ${keyfile} /home/jenkins/.ssh/id_rsa
ansible-playbook site.yaml --extra-vars "paas_ci_test_step='scan'"
'''
}
}
......@@ -39,6 +43,8 @@ pipeline {
post {
always {
sh '''#!/bin/bash
eval `oidc-agent-service use`
oidc-add infn-cloud-ops --pw-env=PASS
ansible-playbook site.yaml --extra-vars "paas_ci_test_step='clean'"
'''
}
......
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