Bug: Bitbucket Pipelines Pipe: Email Notify

Patrick Comes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 11, 2024

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

2 answers

1 vote
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 12, 2024

Hi @Patrick Comes 

 

Thanks for your contributions to the community.

It is a bug, we'll fix it and notify you.

 

Best regards,
Oleksandr Kyrdan

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 20, 2024

Hi @Patrick Comes 

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

Tharinda Hashen March 19, 2024

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? 

Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 22, 2024

@Tharinda Hashen 

Thanks for your question!

Please, provide us with logs about your issue.

 

Best regards,
Oleksandr Kyrdan

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events