mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-06-06 07:51:52 +00:00
Testing webhook
This commit is contained in:
44
qetest/Jenkinsfile
vendored
44
qetest/Jenkinsfile
vendored
@@ -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"
|
||||
}'
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user