gitlab-integration icon indicating copy to clipboard operation
gitlab-integration copied to clipboard

Integrate Gitlab to Azure Devops

Open yashika5122 opened this issue 3 years ago • 3 comments

  1. Can it possible that I push my changes in Gitlab and Azure pipeline will run automatically? If YES then how to achieve this and If NO then is there any other alternative way?
  2. My gitlab project is iOS one and I do not have any Mac OS system now(To run the pipeline on gitlab, we have created a shared runner on someone system, so there is an dependency. To remove this dependency I want to go for Azure Devops). So to run pipeline, does Azure supports iOS project without any Mac OS installation or it required to install Mac OS on Azure devops ? If Installation required then how I can install it?
  3. is the same gitlab-ci.yml file will use to run CI/CD process on Azure or I have to write another yml file on Azure side and also where I can put this file?

yashika5122 avatar Apr 25 '21 18:04 yashika5122

Hi @yashika5122 , I have the same questions as yours, did you get it sorted out?

zhanqianwen avatar Jul 21 '21 01:07 zhanqianwen

Hi @zhanqianwen , Yes , it is working for me. For Point 1 - Write git push to Azure repository in gitlab-ci.yml file. So as soon as code push to the gitlab it will run the gitlab pipeline and push the code to Azure repo. On Azure side create a pipeline for all requirements like build, test etc. For Point 2 - Azure provides Linux , window and MacOS as agents , so pipeline of iOS can run on MacOS agent, no need to set up any MacOS. For Point 3 - For Azure side need to create another pipeline file. gitlab-ci.yml file only works for gitlab pipeline. Azure pipeline can we create by two ways-

  1. azures-pipeline.yml
  2. classic pipeline

Please share ,if you find some other way to implement this. Thank you.

yashika5122 avatar Jul 21 '21 06:07 yashika5122

Hi @yashika5122

Thank you for your answers! :-)

zhanqianwen avatar Jul 22 '21 08:07 zhanqianwen