幾項關於 Azure Pipelines 的紀錄

基本原則 Variables in trigger block is not supported. Maybe all YAML file of Pipelines are same in all branches. template http://thecodemanual.pl/2020/04/02/build-templates-on-azure-devops.html https://docs.microsoft.com/zh-tw/azure/devops/pipelines/process/templates?view=azure-devops detect CHANGED Dir to build & deploy coding in PowerShell to detect What files are changed, get DIR and combine ARRAY build & deploy via FACTORY PATTERN References: https://stackoverflow.com/questions/54541602/pass-array-as-inputs-to-azure-devops-yaml-task https://stackoverflow.com/questions/62835740/loops-and-arrays-in-azure-devops-pipelines https://stackoverflow.com/questions/53227343/triggering-azure-devops-builds-based-on-changes-to-sub-folders https://stackoverflow.com/questions/65088433/how-to-get-only-changed-files-using-azure-devops-pipelines https://stackoverflow.com/questions/67483194/pass-array-of-files-into-the-parameter-of-awscli1-task/67498247#67498247 https://stackoverflow.com/questions/68504910/can-i-loop-an-azure-pipelines-task-on-a-runtime-array-variable-instead-of-an-arr https://docs.microsoft.com/zh-tw/powershell/scripting/learn/deep-dives/everything-about-arrays?view=powershell-7.1#adding-to-arrays 開始 try 的: variables: f1Flag: false f2Flag: false trigger: branches: include: - master # paths: # include: # - "test_pipelines/*" steps: - powershell: |## get the changed files $files=$(git diff-tree --no-commit-id --name-only -r $(Build....

October 18, 2021

Pipeline Error About Free Parallelism

嘗試用 Azure Pipeline 編譯 WinForms 的程式遇到一個問題: 「No hosted parallelism has been purchased or granted」 直接依照指示到 https://aka.ms/azpipelines-parallelism-request 填寫完成後 1-2個工作日可以完成 (操作步驟可以參考:【把玩Azure DevOps】Day8 CI/CD從這裡:設定第一個Pipeline(成功與失敗)) 看國外論壇討論說,因為微軟發現有不少人趁著試用作些其他布樂見的事情而產生許多流量,因此在 2021 年初增加了這項限制的政策。

October 1, 2021