VSTS Build Task Input Types

断了今生、忘了曾经 提交于 2020-08-23 08:35:08

问题


I googled last few days to get the list of input types supported by VSTS Task plugin, but don't get anything appropriate.

Is this possible to create Grid in task plugin


回答1:


At present, there is no way to create a Grid on the task input page. For a complete list of the supported types, take a look at the Reference for creating custom build tasks within extensions for details. This is schema definition for what your custom task JSON needs to conform to. If you look under inputs/items/properties/type you will see these supported types:

  • boolean
  • connectedService:ServiceType
  • connectedService:AzureRM
  • connectedService:Azure
  • connectedService:Azure:Certificate,UsernamePassword
  • connectedService:Chef
  • connectedService:ssh
  • connectedService:Generic
  • connectedService:Jenkins
  • connectedService:servicefabric
  • filePath
  • multiLine
  • pickList
  • radio
  • string



回答2:


You can define custom editor experiences using a KnockoutJS-based HTML page (via the vss-web-extension-sdk) and registering it as a ms.vss-distributed-task.task-input-editor contribution in your extension's vss-extension.json.

The vsts-extension-samples repository includes an example of this in release-manageent/editor-extension




回答3:


In addition, you can create custom endpoint and use in task: connectedService:[endpoint name].

Service Endpoints in VSTS



来源:https://stackoverflow.com/questions/48168077/vsts-build-task-input-types

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!