fix(hermes-triage-demo): correct groovy escape depth for newline join and shell JSON quotes
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
48fff25915
commit
8a5c93ac2f
@ -533,10 +533,10 @@ data:
|
|||||||
' fi',
|
' fi',
|
||||||
' STATE=$(cat "$STATE_FILE")',
|
' STATE=$(cat "$STATE_FILE")',
|
||||||
' 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',
|
||||||
@ -553,7 +553,7 @@ data:
|
|||||||
' persistentVolumeClaim:',
|
' persistentVolumeClaim:',
|
||||||
' claimName: hermes-triage-demo-fixture'
|
' claimName: 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