[英]How to deploy to a server without build a projekt
We have an ImageVault website that we do not develop ourselves. 我们有一个不自行开发的ImageVault网站。 But want version management in TFS and be able to publish against tests and production servers.
但是要在TFS中进行版本管理,并能够针对测试和生产服务器进行发布。 It does not need to be built because it is already finished.
由于它已经完成,因此不需要构建。 How should you set up a building when you should not build anything?
不建房屋时应如何建房? Is it possible to set up a pipeline without having a building?
是否可以在没有建筑物的情况下建立管道?
It is possible to set up a pipeline that doesnot build your project. 可以设置不构建项目的管道。 You project is built by the build tasks in the pipeline.
您的项目是由管道中的构建任务构建的。 You can just disable or exclude the build tasks from your pipeline if you donot want your project be built.
如果您不希望构建项目,则可以仅从管道中禁用或排除构建任务。
You can also create an empty pipeline without any tasks inside. 您也可以创建一个没有任何任务的空管道。 You can follow below steps to create an empty pipeline.
您可以按照以下步骤创建一个空管道。
1,Sign in to your Azure DevOps organization and navigate to your project. 1,登录到您的Azure DevOps组织并导航到您的项目。
2,In your project, navigate to the Pipelines page. 2,在您的项目中,导航到“管道”页面。 Choose the Pipelines tab and click new pipeline on the top right corner of the page.
选择“ 管道”选项卡,然后单击页面右上角的新管道。
3,Walk through the steps of the wizard by first selecting the location of your source code.(You can create a classic UI pipeline by choosing " Use the classic editor to create a pipeline without YAML ".) 3,首先选择源代码的位置来完成向导的步骤。(您可以通过选择“ 使用经典编辑器创建不带YAML的管道 ” 来创建经典UI管道。)
4,Then choose to start with An Empty Job under Select a template 4,然后在选择模板下选择以 空作业开始
With above steps, a pipeline without build tasks is created. 通过上述步骤,创建了没有构建任务的管道。 You can then add some utility tasks like copy file task , publish artifacts task etc. Utility tasks donot do the building work.
然后,您可以添加一些实用程序任务,例如复制文件任务 , 发布工件任务等。实用程序任务不会执行构建工作。
You might need to add some utility tasks like publish build artifacts tasks if you want to deploy release pipeline. 如果要部署发布管道,可能需要添加一些实用程序任务,例如发布构建工件任务。
Check here to learn more about creating your pipeline 单击此处以了解有关创建管道的更多信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.