Testing secure interpolation

This commit is contained in:
andrew clark
2025-10-22 12:07:54 -06:00
parent 870b18c5f4
commit 8e13b5f22d

2
qetest/Jenkinsfile vendored
View File

@@ -90,7 +90,7 @@ pipeline {
for (patternMap in foundPatterns) {
withCredentials([string(credentialsId: 'ck_ci_errors_webhook_url', variable: 'WEBHOOK_URL')]) {
sh """
curl -X POST '${WEBHOOK_URL}' \
curl -X POST '$WEBHOOK_URL' \
-H 'Content-Type: application/json' \
-d '{
"text": "${statusEmoji} ${subjectPrefix}\\n\\n**${buildStatus == 'SUCCESS' ? 'Potential issue detected' : 'Build failure detected'}:**\\n\\n**Build failure detected:** ${patternMap.description}\\n\\n**Log context:**\\n```\\n${patternMap.context}\\n```\\n\\n**Job:** ${env.JOB_NAME}\\n\\n**Branch:** ${env.BRANCH_NAME ?: env.GIT_BRANCH ?: 'Unknown'}\\n\\n**Build:** #${env.BUILD_NUMBER}\\n\\n**URL:** ${env.BUILD_URL}"