Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically populate legal Detect Version options #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tasks/synopsys-detect-task/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
{
"name": "DetectVersion",
"type": "string",
"type": "pickList",
"label": "Detect Version",
"defaultValue": "latest",
"required": true,
Expand All @@ -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"
Expand Down
32 changes: 32 additions & 0 deletions vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
]
}

}
]
}