Skip to content

Commit 3ae52e6

Browse files
committed
Updates
1 parent 6f82a42 commit 3ae52e6

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

.secrets.baseline

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2025-10-25T11:33:24Z",
6+
"generated_at": "2025-10-27T10:20:07Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -82,15 +82,15 @@
8282
"hashed_secret": "053f5ed451647be0bbb6f67b80d6726808cad97e",
8383
"is_secret": false,
8484
"is_verified": false,
85-
"line_number": 28,
85+
"line_number": 35,
8686
"type": "Secret Keyword",
8787
"verified_result": null
8888
},
8989
{
90-
"hashed_secret": "765d3d433049b64dc1292181b213854947cfc6e5",
90+
"hashed_secret": "4f75456d6c1887d41ed176f7ad3e2cfff3fdfd91",
9191
"is_secret": false,
9292
"is_verified": false,
93-
"line_number": 37,
93+
"line_number": 44,
9494
"type": "Secret Keyword",
9595
"verified_result": null
9696
}

bin/mas-devops-notify-slack

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ def notifyProvisionFyre(channel: str, rc: int) -> bool:
2222
print("CLUSTER_NAME env var must be set")
2323
sys.exit(1)
2424

25+
# Support optional metadata from standard IBM CD Toolchains environment variables
26+
toolchainLink = ""
27+
toolchainUrl = os.getenv("TOOLCHAIN_PIPELINERUN_URL", None)
28+
toolchainTriggerName = os.getenv("TOOLCHAIN_TRIGGER_NAME", None)
29+
if toolchainUrl is not None and toolchainTriggerName is not None:
30+
toolchainLink = f" | <{toolchainUrl}|Pipeline Run>"
31+
2532
if rc == 0:
2633
url = os.getenv("OCP_CLUSTER_URL", None)
2734
username = os.getenv("OCP_USERNAME", None)
@@ -32,18 +39,18 @@ def notifyProvisionFyre(channel: str, rc: int) -> bool:
3239
sys.exit(1)
3340

3441
message = [
35-
SlackUtil.buildSection(f":glyph-ok: *Your IBM DevIT Fyre OCP cluster ({name}) is ready*"),
42+
SlackUtil.buildHeader(f":glyph-ok: Your IBM DevIT Fyre OCP cluster ({name}) is ready"),
3643
SlackUtil.buildSection(f"{url}"),
37-
SlackUtil.buildSection(f"- Username: `{username}`\n - Password: `{password}`")
44+
SlackUtil.buildSection(f"- Username: `{username}`\n - Password: `{password}`"),
45+
SlackUtil.buildSection(f"<https://beta.fyre.ibm.com/development/vms|Fyre Dashboard>{toolchainLink}")
3846
]
3947
else:
4048
message = [
41-
SlackUtil.buildSection(f":glyph-fail: *Your IBM DevIT Fyre OCP cluster ({name}) failed to deploy*"),
42-
SlackUtil.buildSection("https://beta.fyre.ibm.com/development/vms")
49+
SlackUtil.buildHeader(f":glyph-fail: Your IBM DevIT Fyre OCP cluster ({name}) failed to deploy"),
50+
SlackUtil.buildSection(f"<https://beta.fyre.ibm.com/development/vms|Fyre Dashboard>{toolchainLink}")
4351
]
4452

4553
response = SlackUtil.postMessageBlocks(channel, message)
46-
4754
return response.data.get("ok", False)
4855

4956

0 commit comments

Comments
 (0)