Added 3 more tasks and refactored code to use a standalone shared npm package (installed locally from a tarball).
This commit is contained in:
56
task/ListBlobs/task.json
Normal file
56
task/ListBlobs/task.json
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Microsoft/azure-pipelines-task-lib/master/tasks.schema.json",
|
||||
"id": "f637743e-a1f8-4903-9f9f-cf01ddf1f8d6",
|
||||
"name": "ListBlobs",
|
||||
"friendlyName": "List Blobs",
|
||||
"description": "Lists blobs in an Azure Storage container using OIDC from the selected AzureRM service connection.",
|
||||
"helpMarkDown": "Uses serviceConnectionARM to request OIDC token and list blobs via Azure Storage REST API.",
|
||||
"category": "Deploy",
|
||||
"author": "Slawomir Koszewski",
|
||||
"version": {
|
||||
"Major": 1,
|
||||
"Minor": 0,
|
||||
"Patch": 0
|
||||
},
|
||||
"instanceNameFormat": "List blobs: $(storageAccountName)/$(containerName)",
|
||||
"inputs": [
|
||||
{
|
||||
"name": "serviceConnectionARM",
|
||||
"type": "connectedService:AzureRM",
|
||||
"label": "Azure Resource Manager service connection",
|
||||
"defaultValue": "",
|
||||
"required": true,
|
||||
"helpMarkDown": "AzureRM service connection used to request OIDC token and resolve tenant/client metadata. Requires System.AccessToken to be available to the job."
|
||||
},
|
||||
{
|
||||
"name": "storageAccountName",
|
||||
"type": "string",
|
||||
"label": "Storage Account Name",
|
||||
"defaultValue": "",
|
||||
"required": true,
|
||||
"helpMarkDown": "Storage account name (without domain)."
|
||||
},
|
||||
{
|
||||
"name": "containerName",
|
||||
"type": "string",
|
||||
"label": "Container Name",
|
||||
"defaultValue": "",
|
||||
"required": true,
|
||||
"helpMarkDown": "Container name."
|
||||
},
|
||||
{
|
||||
"name": "prefix",
|
||||
"type": "string",
|
||||
"label": "Blob Prefix",
|
||||
"defaultValue": "",
|
||||
"required": false,
|
||||
"helpMarkDown": "Optional blob name prefix used to filter results."
|
||||
}
|
||||
],
|
||||
"execution": {
|
||||
"Node20_1": {
|
||||
"target": "dist/ListBlobs/src/index.js"
|
||||
}
|
||||
},
|
||||
"minimumAgentVersion": "3.225.0"
|
||||
}
|
||||
Reference in New Issue
Block a user