Azure Pipelines —— 资料合集

What is Azure Pipelines? - Azure Pipelines | Microsoft Docs

 

MicrosoftDocs/azure-devops-docs: This repo is the home of the official Azure DevOps documentation for Microsoft. GitHub Issues filed in this repository should be for problems with the documentation.

 

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 is Continuous Delivery?

What is DevOps?

 

 

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

 

管道 在不同平台上运行

1
2
pool:
  vmImage: "ubuntu-latest"

  

 

将更多脚本任务作为步骤添加到管道

 

任务

是预先打包的脚本

使用任务来构建、测试、发布或部署您的应用程序

 

通过选择您的构建并转到测试覆盖选项卡来查看您的测试和代码覆盖结果。

1
2
3
4
5
6
- task: PublishCodeCoverageResults@1
  inputs:
    codeCoverageTool: "JaCoCo"
    summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/site/jacoco/jacoco.xml"
    reportDirectory: "$(System.DefaultWorkingDirectory)/**/site/jacoco"
    failIfCoverageEmpty: true

  

在多个平台上构建和测试您的项目。一种方法是使用strategyand matrix您可以使用变量方便地将数据放入管道的各个部分。

from

1
2
pool:
  vmImage: "ubuntu-latest"tto
1
2
3
4
5
6
7
8
9
10
11
12
strategy:
  matrix:
    linux:
      imageName: "ubuntu-latest"
    mac:
      imageName: "macOS-latest"
    windows:
      imageName: "windows-latest"
  maxParallel: 3
 
pool:
  vmImage: $(imageName)

 每个代理一次只能运行一项作业。要并行运行多个作业,您必须配置多个代理。您还需要足够的并行作业

 

 

使用多个版本构建

单个平台上使用两个不同版本的 Java 构建 Java 项目,也可以在不同平台上运行不同版本的 Java。

使用该语言的不同版本构建项目,您可以使用一个matrix版本和一个变量。

 

 

 

posted @   PanPan003  阅读(86)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· 没有源码,如何修改代码逻辑?
· NetPad:一个.NET开源、跨平台的C#编辑器
· 面试官:你是如何进行SQL调优的?
历史上的今天:
2016-05-25 策略模式
点击右上角即可分享
微信分享提示