Compare commits

...

10 Commits

Author SHA1 Message Date
PATRYK GUDALEWICZ (ext.) 527c05e1d8 Jenkinsfile edited online with Bitbucket
testing python 3.9
2023-07-17 08:09:39 +00:00
PATRYK GUDALEWICZ (ext.) 8ec54d0e94 Jenkinsfile edited online with Bitbucket
Adding distutils reference during python installation
2023-07-17 07:21:55 +00:00
Peter Oehmichen de4eb80d06 corrected Xibix address 2023-07-04 09:14:06 +02:00
Andreas Danzer (DE-701) c7dd0c4923 Jenkinsfile online editiert mit Bitbucket
added johann
2023-07-03 11:19:18 +00:00
Andreas Danzer (DE-701) 30d882f6b4 Jenkinsfile online editiert mit Bitbucket
updated persons
2023-07-03 11:07:37 +00:00
Daniel Mikula 884bd86c54 set back to prod recipients 2023-07-03 12:47:08 +02:00
Daniel Mikula a5805099c5 set back to test 2023-07-03 12:03:18 +02:00
Daniel Mikula ebd6b49c82 set recipients back to production 2023-07-03 11:59:14 +02:00
Daniel Mikula 255c204414 set recipients to test 2023-07-03 10:14:53 +02:00
Daniel Mikula 8aa17dcd30 set recipients back to production 2023-06-28 13:45:50 +02:00
1 changed files with 13 additions and 12 deletions

25
Jenkinsfile vendored
View File

@ -87,12 +87,13 @@ pipeline {
}
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
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 +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"
}
}
@ -173,9 +174,9 @@ pipeline {
emailext subject: "THE OFFICIAL ${env.JOB_NAME}",
mimeType: 'text/html',
body: "Please find the output of the daily QM-Report attached </br></br>${summary}",
// to: 'Ermis.Wieger@nttdata.com, Andreas.DB.Danzer@bmwgroup.com, OOC-Support@bmwgroup.com, Michaela.Jaeger@bmw.de, Thilo.Bindel@bmwgroup.com, Mohammed.Abadel@bmw.de, Jan.SC.Schaefer@bmw.de, ops-xibix@list.bmw.com, omo-xibix@list.bmw.com, omo@bmwgroup.com',
to: 'Ermis.Wieger@nttdata.com, Andreas.DB.Danzer@bmwgroup.com, OOC-Support@bmwgroup.com, Michaela.Jaeger@bmw.de, Thilo.Bindel@bmwgroup.com, Mohammed.Abadel@bmw.de, Jan.SC.Schaefer@bmw.de, omt-xibix@list.bmw.com, johann.wildgruber@bmwgroup.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, *.csv'
} catch ( mailExc ) {
@ -191,7 +192,7 @@ pipeline {
failure {
emailext subject: "THE OFFICIAL ${env.JOB_NAME} build ${env.BUILD_ID} failed",
body: "QM report failed, see logs for details: ${env.BUILD_URL}",
to: 'Arnel.Arnautovic@nttdata.com, Daniel.Mikula@nttdata.com, ops-xibix@list.bmw.com, omo-xibix@list.bmw.com, omo@bmwgroup.com'
to: 'Arnel.Arnautovic@nttdata.com, Daniel.Mikula@nttdata.com, omt-xibix@list.bmw.com'
// to post to the teams channel "0 - APM Service Desk" just uncomment the following command:
// office365ConnectorSend webhookUrl: "https://bmwgroup.webhook.office.com/webhookb2/483edc00-c925-4672-8088-8299a0139fca@ce849bab-cc1c-465b-b62e-18f07c9ac198/JenkinsCI/9aca6923685b40f794134853fcbe88f1/ff31bcee-96b3-4481-9bd8-4f74180b263b",
// message: "QM report failed, see logs for details: ${env.BUILD_URL}",