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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

atlassian/trigger-pipeline - call custom pipelines with 2FA enabled

Currently we are using atlasian/trigger-pipeline plugin to trigger a custom pipeline from another repository. 2FA is enabled for all users. A specific app password is setup for this.

Example:

Repository A runs pipeline X containing two steps. First step is a 'regular' build; the 2nd one is triggering the atlasian/trigger-pipeline plugin with appropiate username and app_password in repository B (target_branch).

This was working till last week. We now get following error:

Failed to initiate a pipeline. API error code: 403. Message: {"type": "error", "error": {"message": "To access this repository, enable two-step verification."}}

Step description :

- pipe: atlassian/trigger-pipeline:4.1.7
variables:
BITBUCKET_USERNAME: $BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
REPOSITORY: 'repository-b'
BRANCH_NAME: 'target_branch'
PIPELINE_VARIABLES: > [#variables not shown]

Any idea how we can enable this setup again. It is not possible to disable 2FA. We tried recreating the app password (having access to everything) without success.

1 answer

1 accepted

0 votes
Answer accepted

It looks like there was an update in the security policies.

Before the update you could use app passwords independently if the user has 2FA enabled. Now if the organisation requires it, you have to enable 2FA for all accounts.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,914 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you