AzurePipelineの情報源まとめ

もくじ
https://tera1707.com/entry/2022/02/06/144447#Azure

yaml情報源

Azure DevOps ドキュメントtop

https://learn.microsoft.com/ja-jp/azure/devops/?view=azure-devops

.NET core以降のyamlの基本っぽい
pipelineの基本。全体の流れが説明されてる
https://learn.microsoft.com/en-us/azure/devops/pipelines/get-started/key-pipelines-concepts?view=azure-devops

https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/dotnet-core?view=azure-devops&tabs=dotnetfive

triggerの書き方

https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/azure-repos-git?view=azure-devops&tabs=yaml#ci-triggers

変数の設定の仕方

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#set-variables-in-pipeline

poolの書き方

https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/pools-queues?view=azure-devops&tabs=yaml%2Cbrowser#designate-a-pool-in-your-pipeline

pool:で指定するvmImageの名前

https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#software

元から定義されている変数
Build.ArtifactStagingDirectory とか Build.SourcesDirectory とか。

https://learn.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml

変数の作り方
variables:

https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/variables?view=azure-pipelines

式の書き方
(eq()とかor()とか、startsWith()とか。また、always()とか、failed()とか。)

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/expressions?source=recommendations&view=azure-devops

タスクの一覧

https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/?view=azure-pipelines

条件の書き方
(condition)

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops&tabs=yaml%2Cstages

アーティファクトのpublish

https://learn.microsoft.com/en-us/azure/devops/pipelines/artifacts/pipeline-artifacts?view=azure-devops&tabs=yaml

https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/publish-pipeline-artifact-v1?view=azure-pipelines

https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/copy-files-v2?view=azure-pipelines&tabs=yaml

パイプラインキャッシュ

https://learn.microsoft.com/ja-jp/azure/devops/pipelines/release/caching?view=azure-devops

nugetパッケージをキャッシュする

https://learn.microsoft.com/ja-jp/azure/devops/pipelines/artifacts/caching-nuget?view=azure-devops