简体   繁体   English

对 Azure DevOps 管道的困惑

[英]confusion on Azure DevOps pipelines

I've recently been working on switching from On premise TFS to Azure DevOps, and trying to learn more about the different pipelines and I think I may have had my Build pipeline do too much.我最近一直致力于从内部部署 TFS 切换到 Azure DevOps,并试图了解有关不同管道的更多信息,我想我的构建管道可能做得太多了。

Currently I have my Build Pipeline do目前我有我的构建管道

  1. Get Source code from Repo从 Repo 获取源代码
  2. Run database scripts/deploy dacpacs运行数据库脚本/部署 dacpacs
  3. Copy files over to virtual machines that have web application set up already将文件复制到已设置 Web 应用程序的虚拟机
  4. Run unit/integration tests运行单元/集成测试
  5. Publish the test results发布测试结果

I repeat these steps closely multiple times, one for develop branch, one for current and previous release branch.我多次重复这些步骤,一次用于开发分支,一次用于当前和以前的发布分支。

But if I want to take advantage of the Releases and Deployments areas what would that really get me?但是,如果我想利用发布和部署区域,这对我有什么好处?

It looks like it would be easier to say yes this code did make it out to this dev/beta environment.看起来更容易说是,这段代码确实适用于这个开发/测试环境。

I'm working with ColdFusion code that includes some .NET webservices within the repo, would I have to make an artifact that zips up the repo and then deploys it, or is there a better way to take advantage of the release pipeline?我正在使用在存储库中包含一些 .NET Web 服务的 ColdFusion 代码,我是否必须制作一个压缩存储库然后部署它的工件,还是有更好的方法来利用发布管道?

It's not necessary to make an artifact that zips up the repo and then deploys it.没有必要制作一个压缩存储库然后部署它的工件。 There are several types of tools you might use in your application lifecycle process to produce or store artifacts.您可以在应用程序生命周期过程中使用多种类型的工具来生成或存储工件。 For example, you might use version control systems such as Git or TFVC to store your artifacts.例如,您可以使用版本控制系统(例如 Git 或 TFVC)来存储您的工件。 You can configure Azure Pipelines to deploy artifacts from multiple sources.可以将 Azure Pipelines 配置为从多个源部署项目。 Check the following link for more details:查看以下链接了解更多详情:

https://docs.microsoft.com/en-us/azure/devops/pipelines/release/artifacts?view=azure-devops#sources https://docs.microsoft.com/en-us/azure/devops/pipelines/release/artifacts?view=azure-devops#sources

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM