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

Increase deployment waiting time

parent 7fdaa8b6
No related branches found
No related tags found
1 merge request!28Increase deployment waiting time
...@@ -11,6 +11,7 @@ pipeline { ...@@ -11,6 +11,7 @@ pipeline {
stage ('Test environment'){ stage ('Test environment'){
steps { steps {
sh '''#!/bin/bash sh '''#!/bin/bash
eval `oidc-agent-service use`
oidc-add infn-cloud-ops oidc-add infn-cloud-ops
orchent depls | tee depls.output orchent depls | tee depls.output
cat depls.output | grep -q ERROR && exit 1 cat depls.output | grep -q ERROR && exit 1
...@@ -20,6 +21,7 @@ pipeline { ...@@ -20,6 +21,7 @@ pipeline {
stage ('Create test deployment'){ stage ('Create test deployment'){
steps { steps {
sh '''#!/bin/bash sh '''#!/bin/bash
eval `oidc-agent-service use`
oidc-add infn-cloud-ops oidc-add infn-cloud-ops
wget -O site.yaml "${PLAYBOOK_URL}" wget -O site.yaml "${PLAYBOOK_URL}"
ansible-playbook site.yaml --extra-vars "paas_ci_test_step='create_deployment'" ansible-playbook site.yaml --extra-vars "paas_ci_test_step='create_deployment'"
...@@ -32,7 +34,8 @@ pipeline { ...@@ -32,7 +34,8 @@ pipeline {
sshUserPrivateKey(credentialsId: "ssh_scans", keyFileVariable: 'keyfile'), sshUserPrivateKey(credentialsId: "ssh_scans", keyFileVariable: 'keyfile'),
usernamePassword(credentialsId: "jenkins_scans_creds", usernameVariable: 'GMP_USER', passwordVariable: 'GMP_PASSWORD') usernamePassword(credentialsId: "jenkins_scans_creds", usernameVariable: 'GMP_USER', passwordVariable: 'GMP_PASSWORD')
]) { ]) {
sh '''#!/bin/bash sh '''#!/bin/bash
eval `oidc-agent-service use`
oidc-add infn-cloud-ops oidc-add infn-cloud-ops
cp ${keyfile} /home/jenkins/.ssh/id_rsa cp ${keyfile} /home/jenkins/.ssh/id_rsa
ansible-playbook site.yaml --extra-vars "paas_ci_test_step='scan'" ansible-playbook site.yaml --extra-vars "paas_ci_test_step='scan'"
...@@ -50,6 +53,7 @@ pipeline { ...@@ -50,6 +53,7 @@ pipeline {
post { post {
always { always {
sh '''#!/bin/bash sh '''#!/bin/bash
eval `oidc-agent-service use`
oidc-add infn-cloud-ops oidc-add infn-cloud-ops
ansible-playbook site.yaml --extra-vars "paas_ci_test_step='clean'" 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