Azure Pipelines —— 资料合集
What is Azure Pipelines? - Azure Pipelines | Microsoft Docs
CI: continuous integration
1. 代码合并,版本控制: merge review ? 通过
2. 自动化测试:测试 ?通过
3. 代码打包为image : 打tag,上传至 docker仓库
CD: continuous delivery
1. 部署到 不同环境 : cloud,虚拟机,本地,Pass服务,容器


注册 Azure Pipelines - Azure Pipelines |微软文档 (microsoft.com)
创建第一个管道 - Azure 管道|微软文档 (microsoft.com)
Where can I read articles about DevOps and CI/CD?
What is Continuous Integration?
What else can I do when I queue a build?
You can queue builds automatically or manually.
When you manually queue a build, you can, for a single run of the build:
Where can I learn more about pipeline settings?
To learn more about pipeline settings, see:
How do I programmatically create a build pipeline?
REST API Reference: Create a build pipeline
https://docs.microsoft.com/en-us/azure/devops/pipelines/customize-pipeline?view=azure-devops
管道 在不同平台上运行
pool: vmImage: "ubuntu-latest"
将更多脚本或任务作为步骤添加到管道
任务
是预先打包的脚本
使用任务来构建、测试、发布或部署您的应用程序
通过选择您的构建并转到测试和覆盖选项卡来查看您的测试和代码覆盖结果。
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: "JaCoCo"
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/site/jacoco/jacoco.xml"
reportDirectory: "$(System.DefaultWorkingDirectory)/**/site/jacoco"
failIfCoverageEmpty: true
在多个平台上构建和测试您的项目。一种方法是使用strategyand matrix。您可以使用变量方便地将数据放入管道的各个部分。
from
pool: vmImage: "ubuntu-latest"tto
strategy:
matrix:
linux:
imageName: "ubuntu-latest"
mac:
imageName: "macOS-latest"
windows:
imageName: "windows-latest"
maxParallel: 3
pool:
vmImage: $(imageName)
每个代理一次只能运行一项作业。要并行运行多个作业,您必须配置多个代理。您还需要足够的并行作业。
使用多个版本构建
单个平台上使用两个不同版本的 Java 构建 Java 项目,也可以在不同平台上运行不同版本的 Java。
使用该语言的不同版本构建项目,您可以使用一个matrix版本和一个变量。

浙公网安备 33010602011771号