redhat-developer / mapt

Multi Architecture Provisioning Tool
Apache License 2.0
9 stars 7 forks source link

[bug] Qenvs is reporting exist successfully (exit code 0) even when pulumi up is failing #182

Closed adrianriobo closed 9 months ago

adrianriobo commented 9 months ago
{"level":"error","msg":"failed to run update: exit status 255\ncode: 255\nstdout: Updating (stackRHELBaremetal-crc-snc-..."}
+ create_exit_code=0

This is picked from tekton task spec: https://github.com/adrianriobo/qenvs/blob/1883cea0ed9b27d686f93bcf0aad7cc7b21a2854/tkn/infra-aws-rhel.yaml#L132

We need to check the errors coming from pulumi execution and if any error print and exit