I am using a bitbucket repository and I have a pipeline (let's call it P1) that is triggered when users commit to the repository on bitbucket. The main task done by P1 is to sync the code from the bitbucket repository with the Azure DevOps repository.
I did our first pull request directly on Azure DevOps, from a feature branch to master, and I squashed all the commits contained within the pull request. Thus my repository on Azure DevOps is now ahead of the bitbucket repository, and I need to sync them. I created a new pipeline (P2) which runs only a powershell script, and triggers it manually, as per the link.
P2 execution succeeded, but instead of the single commit coming from the pull request, only the first commit within the pull request was persisted on bitbucket. And now, triggering P2 succeeds but it tells me that the repository is up-to-date.
How can I fix this?
Also, if you have some suggestions with regards my approach, please go ahead! I could have done the pull request on bitbucket, and I think that might have avoided all this mess. And if I wouldn't have squashed the commits into a single commit as well, but it is so much cleaner...