You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a typo in the gitlab ci jobs preventing docker logs from being output, on completion or failure of the end to end tests. In a multiline gitlab yaml file
- MATCHING_CONTAINERS=$( echo "$ANCESTOR_CONTAINERS" | grep "${COMPONENT}-${BRANCH_LOWER}" || echo "")
- if [ -z "$MATCHING_CONTAINERS" ]; then
echo "No matching containers found for image ${FULL_IMAGE_NAME} and component ${COMPONENT}-${BRANCH_LOWER}";
else
echo "Getting log output for the following."
echo "$MATCHING_CONTAINERS"
docker logs $MATCHING_CONTAINERS;
fi
Each shell line needs to be postpended with a ';' otherwise they get grouped together, what is happening here, is the echo statement in the previous lines are getting clumped together with the docker logs.
This is what is getting printed:
Getting log output for the following. echo gcs-fix-ci-build-b5d65087-ZQZ53jCalF docker logs gcs-fix-ci-build-b5d65087-ZQZ53jCalF
Instead of teh commands getting executed.
Steps to Replicate
Additional context
Page occured:
Expected behavior
Artifacts (if appropriate):
The text was updated successfully, but these errors were encountered:
Description
There is a typo in the gitlab ci jobs preventing docker logs from being output, on completion or failure of the end to end tests. In a multiline gitlab yaml file
Each shell line needs to be postpended with a ';' otherwise they get grouped together, what is happening here, is the echo statement in the previous lines are getting clumped together with the docker logs.
This is what is getting printed:
Instead of teh commands getting executed.
Steps to Replicate
Additional context
Page occured:
Expected behavior
Artifacts (if appropriate):
The text was updated successfully, but these errors were encountered: