【发布时间】:2018-04-06 18:27:42
【问题描述】:
我们正在为 VSTS CI/CD 创建架构,以将我们的 Web 应用程序部署到我们的 Azure 应用程序服务。 我们希望在将 web.config 部署到 Azure 服务器时排除它,因为我们直接在不同的环境中修改 web.config。 CI 任务如下所示: CI Taks
CD 任务: 部署 Azure 应用服务 我知道更新 web.config https://docs.microsoft.com/en-us/vsts/build-release/tasks/transforms-variable-substitution 的其他方法,但在我们的例子中,我们想跳过 web.config 文件。 如该线程中所述,我找不到在 VSTS 中发布期间跳过文件的选项 How do I exclude the .cs files within an artifact from a vs-team-services CI build? 有没有办法在构建和部署版本时排除某些文件?
【问题讨论】:
-
您的构建过程是否生成了 webdeploy 包?
-
嘿丹尼尔。答案是“是”
标签: azure-devops azure-pipelines azure-pipelines-release-pipeline