From 43d125926aab9d59b21ba9b455703a97d675f95c Mon Sep 17 00:00:00 2001 From: "PATRYK GUDALEWICZ (ext.)" Date: Mon, 17 Jul 2023 08:21:21 +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 63887cc..6bc856f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -87,13 +87,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 """ } } @@ -148,13 +148,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" } }