From a1116f20eefe7d324c926e7cca7bebe9b9681896 Mon Sep 17 00:00:00 2001 From: andrew clark Date: Thu, 16 Oct 2025 15:10:17 -0600 Subject: [PATCH] Testing webhook --- qetest/Jenkinsfile | 44 +++++++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/qetest/Jenkinsfile b/qetest/Jenkinsfile index 47191a12b9..64e193044f 100644 --- a/qetest/Jenkinsfile +++ b/qetest/Jenkinsfile @@ -23,30 +23,36 @@ pipeline { } post { success { - script { - withCredentials([string(credentialsId: 'ck_ci_errors_webhook_url', variable: 'WEBHOOK_URL')]) { - sh """ - curl -X POST '${WEBHOOK_URL}' \ - -H 'Content-Type: application/json' \ - -d '{ - "subject": "✅ Build Success", - "text": "successful build" - }' - """ + node(rocmnode("nogpu")) { + script { + withCredentials([string(credentialsId: 'ck_ci_errors_webhook_url', variable: 'WEBHOOK_URL')]) { + sh """ + curl -X POST '${WEBHOOK_URL}' \ + -H 'Content-Type: application/json' \ + -d '{ + "subject": "✅ Build Success", + "text": "successful build" + }' + """ + } } } } failure { - withCredentials([string(credentialsId: 'ck_ci_errors_webhook_url', variable: 'WEBHOOK_URL')]) { - sh """ - curl -X POST '${WEBHOOK_URL}' \ - -H 'Content-Type: application/json' \ - -d '{ - "subject": "❌ Build Failed", - "text": "Failed to build" - }' - """ + node(rocmnode("nogpu")) { + script { + withCredentials([string(credentialsId: 'ck_ci_errors_webhook_url', variable: 'WEBHOOK_URL')]) { + sh """ + curl -X POST '${WEBHOOK_URL}' \ + -H 'Content-Type: application/json' \ + -d '{ + "subject": "❌ Build Failed", + "text": "Failed to build" + }' + """ + } } + } } } }