init commit
parent
d9b28b3200
commit
b1453aefd9
|
|
@ -76,7 +76,7 @@
|
||||||
stage('Execute Reporting Script') {
|
stage('Execute Reporting Script') {
|
||||||
steps {
|
steps {
|
||||||
|
|
||||||
sh 'python slo-report-monthly.py'
|
sh 'python createReport.py'
|
||||||
print env.FROMDATE
|
print env.FROMDATE
|
||||||
//Only required once CN is not reachable from EMEA
|
//Only required once CN is not reachable from EMEA
|
||||||
//loopEnvironments(environments)
|
//loopEnvironments(environments)
|
||||||
|
|
@ -91,7 +91,7 @@
|
||||||
body: 'Please find the output of your reports attached',
|
body: 'Please find the output of your reports attached',
|
||||||
to: 'rene.forstner@nttdata.com',
|
to: 'rene.forstner@nttdata.com',
|
||||||
replyTo: 'coco-apm@bmw.de',
|
replyTo: 'coco-apm@bmw.de',
|
||||||
attachmentsPattern: '*.csv'
|
attachmentsPattern: '*.xlsx'
|
||||||
|
|
||||||
}
|
}
|
||||||
catch ( mailExc ){
|
catch ( mailExc ){
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ def GatherReportingInfo(DTAPIToken, DTENV,friendlyName):
|
||||||
|
|
||||||
days = (date_to - date_from).days
|
days = (date_to - date_from).days
|
||||||
print (str(days) + " days within reproting period")
|
print (str(days) + " days within reproting period")
|
||||||
|
writer = pd.ExcelWriter(friendlyName+'QM_.xlsx')
|
||||||
while (date_report<=date_to):
|
while (date_report<=date_to):
|
||||||
date_report_end = date_report + datetime.timedelta(hours=days*24)
|
date_report_end = date_report + datetime.timedelta(hours=days*24)
|
||||||
millisec_date_report = date_report.timestamp() * 1000
|
millisec_date_report = date_report.timestamp() * 1000
|
||||||
|
|
@ -65,7 +65,7 @@ def GatherReportingInfo(DTAPIToken, DTENV,friendlyName):
|
||||||
|
|
||||||
date_report = date_report + datetime.timedelta(hours=days*24)
|
date_report = date_report + datetime.timedelta(hours=days*24)
|
||||||
|
|
||||||
|
writer.save()
|
||||||
|
|
||||||
|
|
||||||
with open('./environment.yaml') as file:
|
with open('./environment.yaml') as file:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue