Azure DevOps 管道部署系列之一本地服务器

Azure DevOps 是一个帮助改进 SDLC(软件开发生命周期)的平台。

在本文中,我们将使用 Azure Pipelines 创建自动化部署。

Azure DevOps 团队将 Azure Pipelines 定义为“使用 CI/CD 构建、测试和部署,适用于任何语言、平台和云平台”。

在这里,我将解释如何在 Azure DevOps 中创建构建和发布管道,并将代码部署到本地服务器。

1. 创建hello world build pipeline

首先创建一个devops build pipeline,该pipeline 生成一个txt文件,并把它作为artifact发布。

Azure DevOps 管道部署系列之一本地服务器_第1张图片

trigger:
- main  # Adjust if your default branch is different

pool:
  name: 'agent01'

steps:
- script: |
    echo "Hello, World!" > helloworld.txt
  displayName: 'Create HelloWorld file'

- publish: helloworld.txt
  artifact: hellowor

你可能感兴趣的:(azure,azure,devops)