Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
617 stars 239 forks source link

[Feature Request] Support Bitbucket #952

Open jonasbark opened 4 years ago

jonasbark commented 4 years ago

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

JKrag commented 3 years ago

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.

abunnyuk commented 2 years ago

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
monkeyhandz commented 1 month ago

Any updates on this ticket? We are also looking for a CLI or Rest API method to create Azure Pipelines that use BitBucket repositories.