From fb5eec93176bb8da8d6d930c09e89c0849e22c65 Mon Sep 17 00:00:00 2001 From: "PATRYK GUDALEWICZ (ext.)" Date: Mon, 17 Jul 2023 08:20:29 +0000 Subject: [PATCH] Jenkinsfile edited online with Bitbucket switching to python 3.9 --- Jenkinsfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1f1fbfd..5f91214 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -86,13 +86,13 @@ pipeline { } sh """ sudo add-apt-repository ppa:deadsnakes/ppa -y && \ - sudo apt install python3.8 -y && \ - sudo apt install python3.8-distutils -y && \ - python3.8 --version - curl https://bootstrap.pypa.io/get-pip.py | python3.8 - python3.8 -m pip --version - python3.8 -m pip install -r requirements.txt - python3.8 -m pip install git+https://${AUTH_USR}:${AUTH_PSW}@atc.bmwgroup.net/bitbucket/scm/opapm/keyrequestparser.git + sudo apt install python3.9 -y && \ + sudo apt install python3.9-distutils -y && \ + python3.9 --version + curl https://bootstrap.pypa.io/get-pip.py | python3.9 + python3.9 -m pip --version + python3.9 -m pip install -r requirements.txt + python3.9 -m pip install git+https://${AUTH_USR}:${AUTH_PSW}@atc.bmwgroup.net/bitbucket/scm/opapm/keyrequestparser.git """ } } @@ -147,13 +147,13 @@ pipeline { } echo "${SCRIPT_PARAMETER}" - sh "python3.8 createReport.py ${SCRIPT_PARAMETER}" - sh "python3.8 summary.py" + sh "python3.9 createReport.py ${SCRIPT_PARAMETER}" + sh "python3.9 summary.py" summary = readFile('summary.txt').trim() if (KPI_EXTENSION=='true') { echo "Executing KPI Extension" - sh "python3.8 kpi_extension.py" + sh "python3.9 kpi_extension.py" } }