From 0eb333e69c9288ee239790a7cd99f0929b2be36c Mon Sep 17 00:00:00 2001 From: Joep van Delft Date: Tue, 14 May 2024 11:22:11 +0200 Subject: [PATCH] Prune running under scl --- jobs/build/accept-release/Jenkinsfile | 4 ---- pipeline-scripts/buildlib.groovy | 8 +------- .../scanning/unresolved-art-threads/Jenkinsfile | 8 +------- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/jobs/build/accept-release/Jenkinsfile b/jobs/build/accept-release/Jenkinsfile index acfe1573c6..795f42b313 100644 --- a/jobs/build/accept-release/Jenkinsfile +++ b/jobs/build/accept-release/Jenkinsfile @@ -61,11 +61,7 @@ node { buildlib.withAppCiAsArtPublish() { commonlib.shell( script: """ - if [[ -f /bin/scl ]]; then - scl enable rh-python38 -- python3 release-tool.py --message "${message}" --reason "${message}" --architecture ${params.ARCH} -c `oc config current-context` ${confirm_param} ${action} ${params.RELEASE_NAME} - else python3 release-tool.py --message "${message}" --reason "${message}" --architecture ${params.ARCH} -c `oc config current-context` ${confirm_param} ${action} ${params.RELEASE_NAME} - fi """, ) } diff --git a/pipeline-scripts/buildlib.groovy b/pipeline-scripts/buildlib.groovy index 57ebf0c00f..d0d2ad2c15 100644 --- a/pipeline-scripts/buildlib.groovy +++ b/pipeline-scripts/buildlib.groovy @@ -140,13 +140,7 @@ def setup_venv() { VIRTUAL_ENV = "${env.WORKSPACE}/art-venv" commonlib.shell(script: "rm -rf ${VIRTUAL_ENV}") - commonlib.shell(script: """ - if [[ -f /bin/scl ]]; then - scl enable rh-python38 -- python3 -m venv --system-site-packages --symlinks ${VIRTUAL_ENV} - else - python3.9 -m venv --system-site-packages --symlinks ${VIRTUAL_ENV} - fi - """) + commonlib.shell(script: "python3.9 -m venv --system-site-packages --symlinks ${VIRTUAL_ENV}") env.PATH = "${VIRTUAL_ENV}/bin:${env.PATH}" diff --git a/scheduled-jobs/scanning/unresolved-art-threads/Jenkinsfile b/scheduled-jobs/scanning/unresolved-art-threads/Jenkinsfile index 7f094cfd6d..dd7578981e 100644 --- a/scheduled-jobs/scanning/unresolved-art-threads/Jenkinsfile +++ b/scheduled-jobs/scanning/unresolved-art-threads/Jenkinsfile @@ -16,13 +16,7 @@ node() { string(credentialsId: "art-bot-slack-signing-secret", variable: "SLACK_SIGNING_SECRET") ]) { retry(10) { - commonlib.shell(script: """ - if [[ -f /bin/scl ]]; then - scl enable rh-python38 -- scheduled-jobs/scanning/unresolved-art-threads/unresolved-thread-notification.py - else - python -- scheduled-jobs/scanning/unresolved-art-threads/unresolved-thread-notification.py - fi - """) + commonlib.shell(script: "python -- scheduled-jobs/scanning/unresolved-art-threads/unresolved-thread-notification.py") } } } catch (e) {