This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
/
task.json
118 lines (116 loc) · 5.32 KB
/
task.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"id": "7915fcdb-f02a-43ae-92bd-494993a31e5d",
"name": "sfpwowerscript-checkoutprojectfromartifact-task",
"friendlyName": "Checkout the project from repository for the associated artifact",
"description": "Use this utility task to checkout the mentioned commit from a sfpowerscripts build artifact/azure artifact for checking out project from associated artifact in a Release Pipelines, This task is part of sfpowerscripts",
"helpMarkDown": "https://dxatscale.gitbook.io/sfpowerscripts/azure-pipelines/task-specifications/deployment-tasks/checkout-a-build-artifact",
"category": "Utility",
"author": "dxatscale@accenture.com",
"version": {
"Major": 14,
"Minor": 0,
"Patch": 0
},
"runsOn": [
"Agent"
],
"instanceNameFormat": "Checkout $(artifact) from associated build pipeline",
"inputs": [
{
"name": "package",
"type": "string",
"label": "Name of the package that is generated as part of the artifact",
"defaultValue": "",
"required": false,
"helpMarkDown": "Name of the package that generated this artifact, Leave blank to support artifacts generated by older version of Create Tasks"
},
{
"name": "aritfactDir",
"type": "string",
"label": "Path to the directory where artifacts are downloaded",
"defaultValue": "",
"required": false,
"helpMarkDown": "Path to the artifact directory where the artifacts are downloaded, If not provided, the default values will be automatically used"
},
{
"name": "versionControlProvider",
"type": "pickList",
"label": "Select the version control provider",
"defaultValue": "github",
"options": {
"github": "GitHub",
"githubEnterprise": "GitHub Enterprise",
"bitbucket": "BitBucket Cloud",
"azureRepo": "Azure Repo",
"otherGit": "Other Git",
"hostedAgentGit": "Git which is already authenticated at the agent level"
},
"required": false,
"helpMarkDown": "Select a version control provider from the dropdown"
},
{
"name": "github_connection",
"type": "connectedService:github:OAuth,PersonalAccessToken,OAuth2",
"label": "GitHub Connection",
"defaultValue": "",
"required": false,
"helpMarkDown": "Specify the service connection name for your GitHub connection. Please note this service connection have permissions to read to the correspinding repostiory. Learn more about service connections [here](https://aka.ms/AA3am5s).",
"visibleRule": "versionControlProvider = github"
},
{
"name": "bitbucket_connection",
"type": "connectedService:bitbucket:OAuth,PersonalAccessToken,OAuth2",
"label": "BitBucket Connection",
"defaultValue": "",
"required": false,
"helpMarkDown": "Specify the service connection name for your BitBucket connection. Please note this service connection have permissions to read to the correspinding repostiory. Learn more about service connections [here](https://aka.ms/AA3am5s).",
"visibleRule": "versionControlProvider = bitbucket"
},
{
"name": "github_enterprise_connection",
"type": "connectedService:githubenterprise:OAuth,PersonalAccessToken,OAuth2",
"label": "GitHub Enterprise Connection",
"defaultValue": "",
"required": false,
"helpMarkDown": "Specify the service connection name for your Git Hub Enterprise connection. Please note this service connection have permissions to read from the correspinding repostiory. Learn more about service connections [here](https://aka.ms/AA3am5s).",
"visibleRule": "versionControlProvider = githubEnterprise"
},
{
"name": "username",
"type": "string",
"label": "Username",
"defaultValue": "",
"helpMarkDown": "Username for the Version Control Provider",
"required": true,
"visibleRule": "versionControlProvider = otherGit"
},
{
"name": "password",
"type": "string",
"label": "Password",
"defaultValue": "",
"required": true,
"helpMarkDown": "App Password/PAT for the Version Control Provider",
"visibleRule": "versionControlProvider = otherGit"
},
{
"name": "skip_on_missing_artifact",
"type": "boolean",
"label": "Skip If no artifact is found",
"defaultValue": false,
"required": false,
"helpMarkDown": "Do not fail the task if attached artifact is missing,Use it to skip artifact installation by removing attached artifacts"
}
],
"OutputVariables": [
{
"name": "sfpowerscripts_checked_out_path",
"description": "The path to the directory where the source code is checked out"
}
],
"execution": {
"Node": {
"target": "lib/CheckoutProjectFromArtifactTask/CheckoutProjectFromArtifact.js"
}
}
}