File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -610,11 +610,16 @@ def getcp4dCompsVersions():
610610 print ("FVT Run is not yet completed. Skipping slack message with results to report channel" )
611611 sys .exit (0 )
612612
613- if instanceId .startswith ("fvt" ):
614- # To generate the channel name we remove the "fvt" prefix from the instanceId
615- FVT_SLACK_CHANNEL = f"mas-fvtreports-{ instanceId .replace ('fvt' , '' )} "
616- else :
617- FVT_SLACK_CHANNEL = f"mas-fvtreports-{ instanceId } "
613+ FVT_SLACK_CHANNEL = os .getenv ("SLACK_CHANNEL" )
614+ if FVT_SLACK_CHANNEL is None or FVT_SLACK_CHANNEL == "" :
615+ print ("FVT_SLACK_CHANNEL is not set, hence generating channel name based on instanceId" )
616+ if instanceId .startswith ("fvt" ):
617+ # To generate the channel name we remove the "fvt" prefix from the instanceId
618+ FVT_SLACK_CHANNEL = f"mas-fvtreports-{ instanceId .replace ('fvt' , '' )} "
619+ print (f"Generated FVT_SLACK_CHANNEL name is { FVT_SLACK_CHANNEL } " )
620+ else :
621+ FVT_SLACK_CHANNEL = f"mas-fvtreports-{ instanceId } "
622+ print (f"Generated FVT_SLACK_CHANNEL name is { FVT_SLACK_CHANNEL } " )
618623
619624 FVT_JIRA_TOKEN = os .getenv ("FVT_JIRA_TOKEN" )
620625 if FVT_JIRA_TOKEN is None or FVT_JIRA_TOKEN == "" :
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ metadata:
3131---
3232apiVersion : v1
3333kind : Namespace
34+ metadata :
35+ name : db2u
36+ ---
37+ apiVersion : v1
38+ kind : Namespace
3439metadata :
3540 name : mongoce
3641---
You can’t perform that action at this time.
0 commit comments