diff --git a/tasks/synopsys-detect-task/task.json b/tasks/synopsys-detect-task/task.json index 797f2ec..ee2fab9 100644 --- a/tasks/synopsys-detect-task/task.json +++ b/tasks/synopsys-detect-task/task.json @@ -62,7 +62,7 @@ }, { "name": "DetectVersion", - "type": "string", + "type": "pickList", "label": "Detect Version", "defaultValue": "latest", "required": true, @@ -88,6 +88,15 @@ "visibleRule": "DetectRunMode = UseAirGap" } ], + "dataSourceBindings": [ + { + "endpointId": "synopsys-detect-versions-endpoint", + "target": "DetectVersion", + "endpointUrl": "{{endpoint.url}}/artifactory/api/storage/bds-integrations-release/com/synopsys/integration/synopsys-detect/", + "resultSelector": "jsonpath:$.children[*]", + "resultTemplate": "{ \"Value\" : \"{{{uri}}}\", \"DisplayValue\" : \"{{{uri}}}\" }" + } + ], "execution": { "Node10": { "target": "detect-task.js" diff --git a/vss-extension.json b/vss-extension.json index f9cfe03..ffd3a54 100644 --- a/vss-extension.json +++ b/vss-extension.json @@ -144,6 +144,38 @@ } ] } + }, + { + "id": "synopsys-detect-versions-endpoint", + "description": "Service Endpoint for retrieving list of possible detect versions", + "type": "ms.vss-endpoint.service-endpoint-type", + "targets": [ + "ms.vss-endpoint.endpoint-types" + ], + "properties": { + "name": "synopsysdetectartifactory", + "displayName": "SIG Repo Artifactory", + "url": { + "displayName": "Server URL", + "value": "https://sig-repo.synopsys.com", + "helpText": "This Service Endpoint URL is always fixed" + }, + "authenticationSchemes": [ + { + "id": "endpoint-auth-scheme-none", + "description": "Creates an endpoint authentication scheme with no authentication.", + "type": "ms.vss-endpoint.endpoint-auth-scheme-none", + "targets": [ + "ms.vss-endpoint.endpoint-auth-schemes" + ], + "properties": { + "name": "None", + "displayName": "No Authentication" + } + } + ] + } + } ] }