I push code in the bitbucket repo my pipeline should trigger in the Azure DevOps CI server
We could create service connection in the Azure DevOps, create pipeline in the Azure DevOps and select Bitbucket Cloud as source, then select Enable continuous integration
on the Triggers
tab. We could refer to this doc for more details.
Update1
Yes, We do not need Webhook in the Bitbucket if we enable continuous integration on the triggers tab. I have shared my test result, you could check the pic below.
Update2
According to the pic, it seems that you are using Azure Repos Git as the source instead of Bitbucket Cloud, note the source icon
Update3
Create yaml pipeline in the Azure DevOps, we need select Bitbucket Cloud as the code resource.
Then select Bitbucket repository, it will save the yaml file in the Bitbucket Repo instead of Azure DevOps repo, then we could configure the CI trigger.
I am using default yaml template do the test.
Note: we need update the field trigger, Azure DevOps has update the default branch to main instead of master
Note: If the yml file save in the Azure DevOps repo, it will not trigger the build if we push code in the Bitbucket repo.
Result:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…