ADF publish confusion in git mode

…衆ロ難τιáo~ 提交于 2021-02-05 08:05:56

问题


In git mode, when we want to test a pipeline, ADF forces us to publish first. Publish action does two things is my understanding

  1. Saves to the local ADF (DEV) as given here
  2. Creates arm templates in a branch (adf_publish/the branch we specify)

But to get the 'Publish' button enabled, we need to be in collaboration branch. This means no two people can work at the same time on a DEV ADF. As both people will be asked to publish by ADF before they could test the pipeline they are building.

If this is the case then why is there an option for us to connect another branch other than collaboration branch? (by changing it from the drop down)

Also what is a 'working branch'?


回答1:


As we know, we only can 'Publish' in collaboration branch and changes are being pushed to to "adf_publish" branch by default. By default, the collaboration branch is named main.

  1. If you want team work, you need to create several branches.

  2. Working on the own branch, we can validate and debug the pipeline to make sure everything is ok.

  3. Then click save all, it will commit on the own branch. If we want publish, we need to creat a pull request to the main branch.

4.After merged to the main branch, we can publish to the adf_publish branch.



来源:https://stackoverflow.com/questions/65817692/adf-publish-confusion-in-git-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!