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