I'm trying to filter out any empty env variable inside of my .env file like thiscat .env | grep "=$" but the pipeline doesn't output any, in fact it even giving out error Does anyone know how to fix this?
G'day Ky!
Welcome to the Bitbucket Cloud community
I have copied your commands and ran this against my own repository, I was able to produce the same issue with the error in pipelines but only when there was no empty variables.
When I have tried with the following sample text (similar to yours, when there is some empty), it executed in pipelines without issue:
DB_HOST=localhostDB_USER=rootDB_PASS=test123TEST=TEST2=123
Are you able to perform the grep commands in a local Docker container and see if you encounter the same issue?https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/
Cheers!
- Ben (Bitbucket Cloud Support)
It looks like you're new here. Sign in or register to get started.