Testing markdown

This commit is contained in:
andrew clark
2025-10-22 14:07:51 -06:00
parent cb80ee84df
commit adeb6d2d55

2
qetest/Jenkinsfile vendored
View File

@@ -92,7 +92,7 @@ pipeline {
sh '''
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.replace("'", "\\'") + '''\\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 + '''"}'
-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.replace('"', '\\"').replace("'", "\\'") + '''\\\\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 + '''\"}"
'''
}
}