Skip to content

Commit 421b714

Browse files
authored
Adding Additional Failure Patterns for Alerts (#3663)
* Added two new failure patterns to detect. Including test function to verify if the patterns are detected * Modifying pattern match to detect docker login failure. Removed passing tests. * Removing passing tests. Modifying docker pattern to detect failure * Removed passing tests * Removing test logging function
1 parent 569640d commit 421b714

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Jenkinsfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ def sendFailureNotifications() {
3939
// Error patterns to scan build logs for specific failure types and send detailed notifications.
4040
def failurePatterns = [
4141
[pattern: /login attempt to .* failed with status: 401 Unauthorized/, description: "Docker registry authentication failed"],
42-
[pattern: /(.*)docker login failed(.*)/, description: "Docker login failed"],
42+
[pattern: /.*docker login failed.*/, description: "Docker login failed"],
4343
[pattern: /HTTP request sent .* 404 Not Found/, description: "HTTP request failed with 404"],
4444
[pattern: /cat: .* No such file or directory/, description: "GPU not found"],
45-
[pattern: /(.*)GPU not found(.*)/, description: "GPU not found"],
46-
[pattern: /Could not connect to Redis at .* Connection timed out/, description: "Redis connection timed out"]
45+
[pattern: /.*GPU not found.*/, description: "GPU not found"],
46+
[pattern: /Could not connect to Redis at .* Connection timed out/, description: "Redis connection timed out"],
47+
[pattern: /.*unauthorized: your account must log in with a Personal Access Token.*/, description: "Docker login failed"],
48+
[pattern: /.*sccache: error: Server startup failed: Address in use.*/, description: "Sccache Error"]
4749
]
4850

4951
// Get the build log.

0 commit comments

Comments
 (0)