Hi,
I think I have found a bug in the Bitbucket Pipeline Pipe "Email Notify" (https://bitbucket.org/atlassian/email-notify/src/master/). The parameter "DISABLE_AUTH" does not work if you set it to "true". The problem is probably that the environment variable can only be passed as a string, but in pipe.py:69 it is explicitly checked for a boolean value.
This could be a correction for this:
from distutils.util import strtobool
disable_auth = os.getenv('DISABLE_AUTH', 'False')
if strtobool(disable_auth):
If I have made a mistake in the usage, I would be grateful for a hint.
BR,
Patrick Comes
Thanks for your contributions to the community.
It is a bug, we'll fix it and notify you.
Best regards,
Oleksandr Kyrdan
The new version of the pipe is released:
script: - pipe: atlassian/email-notify:0.13.1 variables: FROM: 'myemail@example.com' TO: 'example@example.com' HOST: 'smtp.gmail.com' DISABLE_AUTH: true
Best regards,
Oleksandr Kyrdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Oleksandr Kyrdan,
I am still having the issue, the pipe does not work with
DISABLE_AUTH: 'true'
It is expecting a boolean value not a string. But we cannot pass a boolean value in pipeline yaml since it gives a syntax error. Any workaround for this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your question!
Please, provide us with logs about your issue.
Best regards,
Oleksandr Kyrdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.