From 16e0f75bf563d06940ffc4671fc73ecf73c4c14b Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 20 Aug 2024 15:35:54 +0200 Subject: [PATCH] use default python for jjb updates --- theforeman.org/pipelines/infra/updateJobs.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/theforeman.org/pipelines/infra/updateJobs.groovy b/theforeman.org/pipelines/infra/updateJobs.groovy index f2cadfe5..6d0ec796 100644 --- a/theforeman.org/pipelines/infra/updateJobs.groovy +++ b/theforeman.org/pipelines/infra/updateJobs.groovy @@ -13,15 +13,15 @@ pipeline { ] ]) - virtEnv('jjb-venv', 'pip install pbr', '3.11') - virtEnv('jjb-venv', 'pip install -r requirements.txt', '3.11') + virtEnv('jjb-venv', 'pip install pbr') + virtEnv('jjb-venv', 'pip install -r requirements.txt') } } stage('Update ci.theforeman.org jobs') { steps { withCredentials([usernamePassword(credentialsId: 'theforeman-jenkins', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { - virtEnv('jjb-venv', "cd ./theforeman.org && REQUESTS_CA_BUNDLE=/etc/pki/tls/cert.pem jenkins-jobs --conf ./foreman_jenkins.ini --user ${env.USERNAME} --password '${env.PASSWORD}' update --delete-old -r .", '3.11') + virtEnv('jjb-venv', "cd ./theforeman.org && REQUESTS_CA_BUNDLE=/etc/pki/tls/cert.pem jenkins-jobs --conf ./foreman_jenkins.ini --user ${env.USERNAME} --password '${env.PASSWORD}' update --delete-old -r .") } } } @@ -29,7 +29,7 @@ pipeline { stage('Update jenkins-foreman.apps.ocp.cloud.ci.centos.org jobs') { steps { withCredentials([usernamePassword(credentialsId: 'centos-jenkins-openshift-cloud', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { - virtEnv('jjb-venv', "cd ./centos.org && REQUESTS_CA_BUNDLE=/etc/pki/tls/cert.pem jenkins-jobs --conf ./centos_jenkins.ini --user ${env.USERNAME} --password '${env.PASSWORD}' update --delete-old -r ./jobs", '3.11') + virtEnv('jjb-venv', "cd ./centos.org && REQUESTS_CA_BUNDLE=/etc/pki/tls/cert.pem jenkins-jobs --conf ./centos_jenkins.ini --user ${env.USERNAME} --password '${env.PASSWORD}' update --delete-old -r ./jobs") } } }