From 25f2904228471740eeeb65cc7b8f32575a57e7d2 Mon Sep 17 00:00:00 2001 From: QXZ3NHY Date: Fri, 16 Jun 2023 12:22:38 +0200 Subject: [PATCH] revert back. pipeline prepared for python3.8 --- Jenkinsfile | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 23b6145..2cb047e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -85,20 +85,19 @@ pipeline { installRetryCount = installRetryCount+1 } - // sh """ - // pip3 install -r requirements.txt - // """ - // sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 && \ - // sudo update-alternatives --config python && \ sh """ - sudo add-apt-repository ppa:deadsnakes/ppa -y && \ - sudo apt install python3.8 -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 + pip3 install -r requirements.txt """ + // for python3.8 + // sh """ + // sudo add-apt-repository ppa:deadsnakes/ppa -y && \ + // sudo apt install python3.8 -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 + // """ } } } @@ -144,8 +143,11 @@ pipeline { } echo "${SCRIPT_PARAMETER}" - sh "python3.8 createReport.py ${SCRIPT_PARAMETER}" - sh "python3.8 summary.py" + // for python3.8 + // sh "python3.8 createReport.py ${SCRIPT_PARAMETER}" + // sh "python3.8 summary.py" + sh "python3 createReport.py ${SCRIPT_PARAMETER}" + sh "python3 summary.py" summary = readFile('summary.txt').trim() if (KPI_EXTENSION=='true') { @@ -177,9 +179,9 @@ pipeline { // to: 'patryk.gudalewicz.bp@nttdata.com', // to: 'rene.forstner@nttdata.com, ermis.wieger@nttdata.com, arnel.arnautovic@nttdata.com, patryk.gudalewicz.bp@nttdata.com, stephan.oertelt@bmw.de, Mohammed.Abadel@bmw.de, michaela.jaeger@bmw.de, OOC-Support@bmwgroup.com, Andreas.DB.Danzer@bmwgroup.com', // original recipients below - to: 'Andreas.DB.Danzer@bmwgroup.com, Arnel.Arnautovic@nttdata.com, Ermis.Wieger@nttdata.com', + // to: 'Andreas.DB.Danzer@bmwgroup.com, Arnel.Arnautovic@nttdata.com, Ermis.Wieger@nttdata.com', // test: - // to: 'Daniel.Mikula@nttdata.com, Arnel.Arnautovic@nttdata.com', + to: 'Daniel.Mikula@nttdata.com, Arnel.Arnautovic@nttdata.com', replyTo: 'coco-apm@bmw.de', attachmentsPattern: '*.xlsx' } catch ( mailExc ) {