Skip to content

Commit

Permalink
use default python for jjb updates
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Aug 20, 2024
1 parent 67711bc commit 16e0f75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions theforeman.org/pipelines/infra/updateJobs.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ 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 .")
}
}
}

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")
}
}
}
Expand Down

0 comments on commit 16e0f75

Please sign in to comment.