1010 "version" : {
1111 "Major" : 0 ,
1212 "Minor" : 160 ,
13- "Patch" : 0
13+ "Patch" : 1
1414 },
1515 "runsOn" : [
1616 " Agent" ,
366366 "endpointId" : " tfs:feed" ,
367367 "endpointUrl" : " {{endpoint.url}}/_apis/packaging/feeds" ,
368368 "resultSelector" : " jsonpath:$.value[*]" ,
369- "resultTemplate" : " { \" Value\" : \" {{{id}}}\" , \" DisplayValue\" : \" {{{name}}}\" }"
369+ "resultTemplate" : " { \" Value\" : \" {{#if project}}{{{project.id}}} \\ /{{/if}}{{ {id}}}\" , \" DisplayValue\" : \" {{{name}}}\" }"
370370 },
371371 {
372372 "target" : " packageListDownload" ,
373373 "endpointId" : " tfs:feed" ,
374- "endpointUrl" : " {{endpoint.url}}/_apis/packaging/feeds/$(feedListDownload)/packages?includeUrls=false&protocolType=UPack" ,
374+ "parameters" : {
375+ "feed" : " $(feedListDownload)"
376+ },
377+ "endpointUrl" : " {{endpoint.url}}/{{ #regex ([a-fA-F0-9\\ -]+/)[a-fA-F0-9\\ -]+ feed }}_apis/packaging/feeds/{{ #regex (?:[a-fA-F0-9\\ -]+/)?([a-fA-F0-9\\ -]+) feed }}/packages?includeUrls=false&protocolType=UPack" ,
375378 "resultSelector" : " jsonpath:$.value[?(@.protocolType=='UPack')]" ,
376379 "resultTemplate" : " { \" Value\" : \" {{{id}}}\" , \" DisplayValue\" : \" {{{name}}}\" }"
377380 },
378381 {
379382 "target" : " versionListDownload" ,
380383 "endpointId" : " tfs:feed" ,
381- "endpointUrl" : " {{endpoint.url}}/_apis/packaging/feeds/$(feedListDownload)/packages/$(packageListDownload)/versions?includeUrls=false&isDeleted=false" ,
384+ "parameters" : {
385+ "feed" : " $(feedListDownload)" ,
386+ "packageName" : " $(packageListDownload)"
387+ },
388+ "endpointUrl" : " {{endpoint.url}}/{{ #regex ([a-fA-F0-9\\ -]+/)[a-fA-F0-9\\ -]+ feed }}_apis/packaging/feeds/{{ #regex (?:[a-fA-F0-9\\ -]+/)?([a-fA-F0-9\\ -]+) feed }}/packages/{{{packageName}}}/versions?includeUrls=false&isDeleted=false" ,
382389 "resultSelector" : " jsonpath:$.value[*]" ,
383390 "resultTemplate" : " { \" Value\" : \" {{{version}}}\" , \" DisplayValue\" : \" {{{normalizedVersion}}}\" }"
384391 },
387394 "endpointId" : " tfs:feed" ,
388395 "endpointUrl" : " {{endpoint.url}}/_apis/packaging/feeds" ,
389396 "resultSelector" : " jsonpath:$.value[*]" ,
390- "resultTemplate" : " { \" Value\" : \" {{{id}}}\" , \" DisplayValue\" : \" {{{name}}}\" }"
397+ "resultTemplate" : " { \" Value\" : \" {{#if project}}{{{project.id}}} \\ /{{/if}}{{ {id}}}\" , \" DisplayValue\" : \" {{{name}}}\" }"
391398 },
392399 {
393400 "target" : " packageListPublish" ,
394401 "endpointId" : " tfs:feed" ,
395- "endpointUrl" : " {{endpoint.url}}/_apis/packaging/feeds/$(feedListPublish)/packages?includeUrls=false&includeDeleted=false" ,
402+ "parameters" : {
403+ "feed" : " $(feedListPublish)"
404+ },
405+ "endpointUrl" : " {{endpoint.url}}/{{ #regex ([a-fA-F0-9\\ -]+/)[a-fA-F0-9\\ -]+ feed }}_apis/packaging/feeds/{{ #regex (?:[a-fA-F0-9\\ -]+/)?([a-fA-F0-9\\ -]+) feed }}/packages?includeUrls=false&includeDeleted=false" ,
396406 "resultSelector" : " jsonpath:$.value[?(@.protocolType=='UPack')]" ,
397407 "resultTemplate" : " { \" Value\" : \" {{{name}}}\" , \" DisplayValue\" : \" {{{name}}}\" }"
398408 }
439449 "Error_UniversalPackagesNotSupportedOnPrem" : " ms-resource:loc.messages.Error_UniversalPackagesNotSupportedOnPrem" ,
440450 "Error_ProcessorArchitectureNotSupported" : " ms-resource:loc.messages.Error_ProcessorArchitectureNotSupported"
441451 }
442- }
452+ }
0 commit comments