Testing webhook

This commit is contained in:
andrew clark
2025-10-16 15:10:17 -06:00
parent 97ebaa38e4
commit a1116f20ee

44
qetest/Jenkinsfile vendored
View File

@@ -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"
}'
"""
}
}
}
}
}
}