diff --git a/Jenkinsfile b/Jenkinsfile index 896daf9..27e90c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { string(name: 'TODATE', defaultValue: '', description: 'Enter to date in format YYYY-MM-DD e.g. 2021-11-30') string(name: 'PRESELECT', defaultValue: 'day', description: 'Enter day | week | month (without |) - auto selects the last full day, week or month') string(name: 'SLICES', defaultValue: 'dt', description: 'Enter h | d | t | y (without spaces or |) - writes the slices hourly, daily, total or year to date into excel given in any order') - string(name: 'KPI_EXTENSION', defaultValue: 'false', description: 'Enter true or false if the extension should be executed') + string(name: 'KPI_EXTENSION', defaultValue: 'true', description: 'Enter true or false if the extension should be executed') } // here comes the trigger according to crontabs - jenkins is in UTC @@ -84,11 +84,6 @@ pipeline { script { installRetryCount = installRetryCount+1 } - - // sh """ - // pip3 install -r requirements.txt - // """ - // for python3.8 sh """ sudo add-apt-repository ppa:deadsnakes/ppa -y && \ sudo apt install python3.8 -y && \ @@ -143,11 +138,8 @@ pipeline { } echo "${SCRIPT_PARAMETER}" - // 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') { @@ -172,16 +164,9 @@ pipeline { emailext subject: "NEW ${env.JOB_NAME}", mimeType: 'text/html', body: "Please find the output of the daily QM-Report attached

${summary}", - // to: 'michaela.jaeger@bmw.de, OOC-Support@bmwgroup.com, Andreas.DA.Danzer@partner.bmw.de', - // to: 'rene.forstner@nttdata.com, Andreas.DA.Danzer@partner.bmw.de, linnea.bickeboeller@partner.bmwgroup.com', - // to: 'rene.forstner@nttdata.com, stephan.oertelt@bmw.de, Mohammed.Abadel@bmw.de, michaela.jaeger@bmw.de', - // to: 'rene.forstner@nttdata.com, ermis.wieger@nttdata.com, 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', - // 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, michaela.jaeger@bmw.de, OOC-Support@bmwgroup.com, Mohammed.Abadel@bmw.de', // 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 ) {