azure-devops-extensions

Where can i find all available contribution targets for the new azure devops extensions?

痴心易碎 提交于 2020-06-27 04:28:12
问题 The new azure extension development documentation points to a sample project in github where you can see different extension examples targeting different areas of the of the azure DevOps portal. However I am not able to find any documentation regarding all available contribution targets. Where do I find that information. For instance one of the samples in the repo shows how to add a new menu option to the repository picker. This is how the contribution snippet looks: { "contributions": [ {

Send array of object inside custom Azure DevOps tasks / extensions

て烟熏妆下的殇ゞ 提交于 2020-06-15 06:46:07
问题 I want to create a custom Task for Azure DevOps and I would like to have an array of object as parameters and use it like this in yaml: data: - field1: "data1" field2: "data2" - field1: "data3" field2: "data4" However I didn't found any avalable methods or examples for this kind of case, only simple array like string array. How an I pass a listof object from yaml to my custom Azure DevOps task? Feel free to ask me some more details if needed. EDIT: For example, I want to send a complexe lisf

Send array of object inside custom Azure DevOps tasks / extensions

六月ゝ 毕业季﹏ 提交于 2020-06-15 06:44:09
问题 I want to create a custom Task for Azure DevOps and I would like to have an array of object as parameters and use it like this in yaml: data: - field1: "data1" field2: "data2" - field1: "data3" field2: "data4" However I didn't found any avalable methods or examples for this kind of case, only simple array like string array. How an I pass a listof object from yaml to my custom Azure DevOps task? Feel free to ask me some more details if needed. EDIT: For example, I want to send a complexe lisf

How to use output variables across agent jobs in azure release pipeline

对着背影说爱祢 提交于 2020-02-02 11:57:13
问题 In my azure release pipeline I have 2 agent jobs, one is for sql deployment using power-shell and other is for kubernetes using power-shell. How to set an output variable in 1st agent job and use that in second agent job using power-shell. 回答1: How to use output variables across agent jobs in azure release pipeline I am afraid there is no way to use output variables across agent jobs directly for now. There is a related issue Variables set via logging commands are not persistent between

How to use output variables across agent jobs in azure release pipeline

故事扮演 提交于 2020-02-02 11:56:26
问题 In my azure release pipeline I have 2 agent jobs, one is for sql deployment using power-shell and other is for kubernetes using power-shell. How to set an output variable in 1st agent job and use that in second agent job using power-shell. 回答1: How to use output variables across agent jobs in azure release pipeline I am afraid there is no way to use output variables across agent jobs directly for now. There is a related issue Variables set via logging commands are not persistent between

VSTS Dashboard Widget getWorkItem optional parameter expand

余生颓废 提交于 2020-01-16 16:29:06
问题 I am writing a VSTS dashboard widget used for Work Item Tracking However I am running into a problem when using the getWorkItem() function. I want to get the ids of all the Features under a given Epic (I already know the epic ID). I am confident that if I set the expand paremeter of getWorkItem() to "All" I will get a list of all the Features and their respective ids. Unfortunately I do not know how to define the "type" of expand parameter and how to properly pass it as a value to the

How can I call pre-release Rest Apis from an Azure DevOps extension?

拟墨画扇 提交于 2020-01-06 04:50:07
问题 It seems REST clients for preview versions of the Azure DevOps REST APIs do not get published. So the API is there and works, but a REST client is not. So how can I access e.g. the 6.0 (as of now: preview) feature pagesBatch from an Azure DevOps extension? 回答1: Because it's a preview API and not included yet in the SDK you can do a pure HTTP Get/Post Rest API calls with Typescript, for example: Install: npm install --save request npm install --save request-promise-native Then in the extension

How can I call the Wiki REST Api from an Azure DevOps extension?

梦想与她 提交于 2020-01-05 07:12:45
问题 The Add a dashboard widget tutorial explains how to call the work item REST API using a VSS.require("TFS/WorkItemTracking/RestClient") d rest client. I want to do the same, but for the Wiki Rest API. There certainly is a scope for this: vso.wiki . However, I cannot find the equivalent of "TFS/WorkItemTracking/RestClient" for wiki. Maybe it is as simple as "TFS/Wiki/RestClient" , but even if it was, what are the names and parameters of the functions I can use? I don't find that documented

How to make data storage unique to project in VSTS extension?

偶尔善良 提交于 2019-12-13 03:24:11
问题 VSS.getService(VSS.ServiceIds.ExtensionData) // the callback on the next line returns a promise, which the JavaScript engine will follow, so you don't need to nest the next `then` .then((dataService) => dataService.getDocuments('MyCollection2')) .then((docs) => { ... This is how we access data storage in VSTS extension. MyCollection2 is a name of the storage that we are using. However, this is not unique to the project. When I try to access the hub extension from another project within the

VSTS Extension Data Storage on Project Scope Level

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 18:43:33
问题 I have successfully created a settings page with my work item page extension that automates the generation of dev, doc, qa, and testware tasks on work items. The settings page is for modifying the branches ("6.14", "6.15", etc.) that the tasks could be generated for. Using the Data Storage client service API, the extension currently saves settings on a project collection level. What I want to do is have the extension with the settings be unique for each project the extension is installed on.