adding new script
parent
f96dcb1ebd
commit
41567a43cd
|
|
@ -77,7 +77,7 @@
|
||||||
stage('Execute Reporting Script') {
|
stage('Execute Reporting Script') {
|
||||||
steps {
|
steps {
|
||||||
|
|
||||||
sh 'python createReport_.py'
|
sh 'python createReport.py -p week'
|
||||||
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)
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ def get_daily_slice(start_date, end_date):
|
||||||
|
|
||||||
return days
|
return days
|
||||||
|
|
||||||
def initargparse() -> argparse.ArgumentParser:
|
def init_argparse():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
usage="%(prog)s [--fromDate] [toDate] or [preSelect]",
|
usage="%(prog)s [--fromDate] [toDate] or [preSelect]",
|
||||||
description="gather SLO in daily slices for given Timeframe"
|
description="gather SLO in daily slices for given Timeframe"
|
||||||
|
|
@ -106,9 +106,9 @@ def initargparse() -> argparse.ArgumentParser:
|
||||||
|
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def main() -> None:
|
def main():
|
||||||
|
|
||||||
parser = initargparse()
|
parser = init_argparse()
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.preSelect and (args.fromDate or args.toDate):
|
if args.preSelect and (args.fromDate or args.toDate):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue