diff --git a/Jenkinsfile b/Jenkinsfile index 712602e532..cd7678df1a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,6 +34,18 @@ def checkForPattern(pattern, log) { return [found: false, matchedLine: "", context: ""] } +def testLog() { + // Todo: Remove test examples + sh """ + echo "GPU not found" + echo "Testing GPU not found" + echo "GPU not found Testing" + echo "docker login failed" + echo "Testing docker login failed" + echo "docker login failed Testing" + """ +} + // Scan the build logs for failures and send notifications. def sendFailureNotifications() { // Error patterns to scan build logs for specific failure types and send detailed notifications. @@ -1290,13 +1302,7 @@ pipeline { script { env.SHOULD_RUN_CI = String.valueOf(params.FORCE_CI.toBoolean() || shouldRunCICheck()) echo "SHOULD_RUN_CI: ${env.SHOULD_RUN_CI}" - // Todo: Remove test examples - echo "GPU not found" - echo "Testing GPU not found" - echo "GPU not found Testing" - echo "docker login failed" - echo "Testing docker login failed" - echo "docker login failed Testing" + testLog() } } }