简体   繁体   English

在本地TFS2017中创建自定义构建任务?

[英]Creating Custom Build Tasks in On Premise TFS2017?

I need to create custom build tasks in TFS2017 ON PREMISE . 我需要在TFS2017 ON PREMISE中创建自定义构建任务。 But in this microsoft link i can see only for VSTS( https://docs.microsoft.com/en-us/azure/devops/extend/develop/add-build-task?view=vsts ) Is it same for ON PREMISE & VSTS? 但是在这个Microsoft链接中,我只能看到VSTS( https://docs.microsoft.com/zh-cn/azure/devops/extend/develop/add-build-task?view=vsts )ON PREMISE是否相同和VSTS? Kindly help me to understand. 请帮助我理解。

Yes, it's the same for on-premise TFS and VSTS. 是的,对于本地TFS和VSTS都是一样的。 Actually it's just an extension. 实际上,这只是一个扩展。

So, when the customized task is created ( Package your extension ), it will generate a package ( *.vsix file). 因此,在创建自定义任务时( 打包您的扩展名 ),它将生成一个包( *.vsix文件)。 For on-premise TFS 2017 you just need to upload the extension ( *.vsix file) and install it for your collections. 对于本地TFS 2017,您只需要上传扩展名( *.vsix文件)并为您的集合安装它。 Please see Install extensions for disconnected TFS for details. 有关详细信息,请参阅为断开的TFS安装扩展

To create a custom task you can follow the steps mentioned in this article: Add a build or release task 若要创建自定义任务,您可以按照本文中提到的步骤进行操作: 添加构建或发布任务

And you can also reference the source codes of existing tasks stored on Github: azure-pipelines-tasks 您还可以引用存储在Github上的现有任务的源代码: azure-pipelines-tasks

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

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