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.
![enter image description here](https://i.stack.imgur.com/fkd2X.png)
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
![enter image description here](https://i.stack.imgur.com/KI8WT.png)
Update3
Create yaml pipeline in the Azure DevOps, we need select Bitbucket Cloud as the code resource.
![enter image description here](https://i.stack.imgur.com/PfhtD.png)
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.
![enter image description here](https://i.stack.imgur.com/1fXO6.png)
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
![enter image description here](https://i.stack.imgur.com/MHGaV.png)
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:
![enter image description here](https://i.stack.imgur.com/5PkzH.png)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…