We have an angular app which has some e2e tests on it. We create a standalone docker image with the e2e tests, one for the app.
When we deploy the app, using azure devops release pipelines, we have a poststep, after deploy that should run the e2e tests.
We run these commands:
az container create --resource-group $(DEV_RG) --name $(E2E_IMAGE_NAME) --image $(E2E_IMAGE_REGISTRY) --registry-username $(REGISTRY_USERNAME) --registry-password $(REGISTRY_PASSWORD) --vnet $(VNET_LOCATION) --subnet $(E2E_SUBNET) --subnet-address-prefix $(E2E_IP_GROUP) --command-line ./rune2e.sh
Then, we want to see the output:
az container logs --resource-group $(DEV_RG) --name $(E2E_IMAGE_NAME)
I've also tried
az container attach --resource-group $(DEV_RG) --name $(E2E_IMAGE_NAME)
No matter what happens in those logs, the step is always green.
How can I catch the stderr
event that the container is outputting, and marking the step red in Azure devops?