fix(hermes-triage-demo): restore groovy escape depths lost in ConfigMap rewrite
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
167ab91b60
commit
4048ed1de5
@ -531,10 +531,10 @@ data:
|
|||||||
' - |',
|
' - |',
|
||||||
' STATE=$(cat /fixture/state)',
|
' STATE=$(cat /fixture/state)',
|
||||||
' if [ "$STATE" = "healthy" ]; then',
|
' if [ "$STATE" = "healthy" ]; then',
|
||||||
' echo "{\\"event\\":\\"hermes_demo_test_pass\\",\\"incident_id\\":\\"$INCIDENT_ID\\",\\"message\\":\\"fixture state healthy\\"}"',
|
' echo "{\\\\"event\\\\":\\\\"hermes_demo_test_pass\\\\",\\\\"incident_id\\\\":\\\\"$INCIDENT_ID\\\\",\\\\"message\\\\":\\\\"fixture state healthy\\\\"}"',
|
||||||
' exit 0',
|
' exit 0',
|
||||||
' fi',
|
' fi',
|
||||||
' echo "{\\"event\\":\\"hermes_demo_test_failure\\",\\"incident_id\\":\\"$INCIDENT_ID\\",\\"classification_hint\\":\\"demo_fixture_unhealthy\\",\\"message\\":\\"expected fixture state healthy; found $STATE\\"}"',
|
' echo "{\\\\"event\\\\":\\\\"hermes_demo_test_failure\\\\",\\\\"incident_id\\\\":\\\\"$INCIDENT_ID\\\\",\\\\"classification_hint\\\\":\\\\"demo_fixture_unhealthy\\\\",\\\\"message\\\\":\\\\"expected fixture state healthy; found $STATE\\\\"}"',
|
||||||
' exit 1',
|
' exit 1',
|
||||||
' volumeMounts:',
|
' volumeMounts:',
|
||||||
' - name: fixture',
|
' - name: fixture',
|
||||||
@ -552,7 +552,7 @@ data:
|
|||||||
' configMap:',
|
' configMap:',
|
||||||
' name: hermes-triage-demo-fixture'
|
' name: hermes-triage-demo-fixture'
|
||||||
]
|
]
|
||||||
writeFile file: 'test-runner-job.yaml', text: manifest.join('\n') + '\n'
|
writeFile file: 'test-runner-job.yaml', text: manifest.join('\\n') + '\\n'
|
||||||
sh 'kubectl -n hermes-triage-demo create -f test-runner-job.yaml'
|
sh 'kubectl -n hermes-triage-demo create -f test-runner-job.yaml'
|
||||||
def verdict = 'unknown'
|
def verdict = 'unknown'
|
||||||
timeout(time: 3, unit: 'MINUTES') {
|
timeout(time: 3, unit: 'MINUTES') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user