revert back. pipeline prepared for python3.8

daily
QXZ3NHY 2023-06-16 12:22:38 +02:00
parent d3727830b8
commit 25f2904228
1 changed files with 18 additions and 16 deletions

34
Jenkinsfile vendored
View File

@ -85,20 +85,19 @@ pipeline {
installRetryCount = installRetryCount+1 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 """ sh """
sudo add-apt-repository ppa:deadsnakes/ppa -y && \ pip3 install -r requirements.txt
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
""" """
// 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}" echo "${SCRIPT_PARAMETER}"
sh "python3.8 createReport.py ${SCRIPT_PARAMETER}" // for python3.8
sh "python3.8 summary.py" // 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() summary = readFile('summary.txt').trim()
if (KPI_EXTENSION=='true') { if (KPI_EXTENSION=='true') {
@ -177,9 +179,9 @@ pipeline {
// to: 'patryk.gudalewicz.bp@nttdata.com', // 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', // 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 // 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: // test:
// to: 'Daniel.Mikula@nttdata.com, Arnel.Arnautovic@nttdata.com', to: 'Daniel.Mikula@nttdata.com, Arnel.Arnautovic@nttdata.com',
replyTo: 'coco-apm@bmw.de', replyTo: 'coco-apm@bmw.de',
attachmentsPattern: '*.xlsx' attachmentsPattern: '*.xlsx'
} catch ( mailExc ) { } catch ( mailExc ) {