azure-devops-cli-extension icon indicating copy to clipboard operation
azure-devops-cli-extension copied to clipboard

[Feature Request] Support Bitbucket

Open jonasbark opened this issue 5 years ago • 3 comments

Is your feature request related to a problem? Please describe. We're trying to fully automate our process for creating and deploying azure resources and now reached the step to actually create build pipelines and deploy e.g. microservices. We rely on Bitbucket (Cloud) as our source code management system. This option is still not available with az pipelines create as it only supports github and tfsgit.

Describe the solution you'd like Support bitbucket (cloud) as a provider when creating azure pipelines via CLI.

Additional context This is also a blocker for e.g. https://github.com/microsoft/terraform-provider-azuredevops/issues/219

jonasbark avatar Feb 18 '20 16:02 jonasbark

I obviously can't test it as it isn't supported yet, but it looks to me like having this supported would also be the only way to create a pipeline if you need to use a Service connection to authenticate instead of a personal OAuth user? At least it is in that context that I went searching for a solution and thought for a moment that az pipelines create could help, until realizing that it didn't support BB. I have not yet found any way in the UI to set up a pipeline (with existing yaml file in repo) without it trying to authenticate directly with my user.

JKrag avatar Oct 21 '20 18:10 JKrag

Is there any update on this?

We need to maintain several pipelines that use Bitbucket Cloud. Whilst we can create these via the UI, we want to be able to create them programmatically via az pipelines create.

Here is what I would expect to work:

az pipelines create `
    --name 'infrastrcture' `
    --description 'Pipeline for ARM template deployment' `
    --repository https://bitbucket.org/SampleOrg/SampleRepo `
    --branch master `
    --repository-type bitbucket `
    --yml-path azure-pipelines.yml

abunnyuk avatar Aug 09 '21 10:08 abunnyuk