Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Problem to authenticate in bitbucket-clear-cache pipeline

Karina Melo Rodrigues October 31, 2022

Hi,

Recently, I've tried to use bitbucket-clear-cache pipeline in a project following the documentation. I used the pipeline credentials, but I'm getting this error of the image that Bitbucket no longer supports account passwords for API authentication.

Is that a way to authenticate to use this pipeline to clear the cache? Or exists another solution to do this?

 

Thanks in advance.

 

Captura de tela de 2022-10-31 18-25-06.png

1 answer

1 accepted

1 vote
Answer accepted
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 1, 2022

Hey @Karina Melo Rodrigues 

Welcome to the community.

It would be best if you used App Passwords as your credentials since we no longer support using Atlassian account credentials.

This is why you received the following error message the credentials you use to authenticate are not an App Password.

Let me know how it goes.

Cheers,
Syahrul

Karina Melo Rodrigues November 3, 2022

Hi @Syahrul

Thank for answering! I already tried to use app passwords for both user and password and just only for the password, but I get an error that they are null on running the pipeline.

This project was updated for the last time in 2021-02-02, is there another solution to clean the caches?

Thanks!

Captura de tela de 2022-11-03 14-28-52.png

Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 3, 2022

Hey @Karina Melo Rodrigues 

G'day.

The screenshot error means you are not supplying value to App Password and Username; hence it returns a "null value are not allowed" error.

Please ensure you've added the variables in the repository settings for $BITBUCKET_USERNAME and $BITBUCKET_APP_PASSWORD with your Username and App Password.

Let me know how it goes.

Cheers,
Syahrul

Karina Melo Rodrigues November 7, 2022

Hey, @Syahrul

Thanks for answering! My mistake was I didn't understand that the variables of my account settings has to be the same in the repository. With your explanation, I did run the pipeline successfully.

Thank you very much!

Captura de tela de 2022-11-07 16-45-08.png

Like Syahrul likes this

Suggest an answer

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

Atlassian Community Events