-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy pathtask.json
116 lines (116 loc) · 4.99 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
{
"id": "731004D4-1D66-4F70-8C05-638018B22210",
"name": "WindowsMachineFileCopy",
"friendlyName": "Windows Machine File Copy",
"description": "Copy files to remote machine(s)",
"helpMarkDown": "[More Information](https://go.microsoft.com/fwlink/?linkid=627415)",
"category": "Deploy",
"visibility": [
"Build",
"Release"
],
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 1,
"Patch": 1
},
"releaseNotes": "What's new in Version 2.0: <br/> Proxy support is being added. <br/> Removed support of legacy DTL machines.",
"minimumAgentVersion": "1.104.0",
"groups": [
{
"name": "advanced",
"displayName": "Advanced Options",
"isExpanded": false
}
],
"inputs": [
{
"name": "SourcePath",
"type": "filePath",
"label": "Source",
"defaultValue": "",
"required": true,
"helpMarkDown": "Absolute path of the source folder or file on the local machine, or a UNC Share like c:\\fabrikamfiber or \\\\\\\\fabrikamshare\\fabrikamfiber."
},
{
"name": "MachineNames",
"type": "multiLine",
"label": "Machines",
"defaultValue": "",
"required": false,
"helpMarkDown": "Provide a comma separated list of machine IP addresses or FQDNs. <br>Eg: dbserver.fabrikam.com,192.168.12.34 <br>Or provide output variable of other tasks. Eg: $(variableName)"
},
{
"name": "AdminUserName",
"type": "string",
"label": "Admin Login",
"defaultValue": "",
"required": false,
"helpMarkDown": "Administrator login for the target machines."
},
{
"name": "AdminPassword",
"type": "string",
"label": "Password",
"defaultValue": "",
"required": false,
"helpMarkDown": "Password for administrator login for the target machines. <br>It can accept a variable defined in build or release pipelines as '$(passwordVariable)'. <br>You may mark the variable as 'secret' to secure it. "
},
{
"name": "TargetPath",
"type": "string",
"label": "Destination Folder",
"defaultValue": "",
"required": true,
"helpMarkDown": "Local Path on the target machines or an accessible UNC path for copying the files from the source like d:\\fabrikam or \\\\\\\\fabrikam\\Web."
},
{
"name": "CleanTargetBeforeCopy",
"type": "boolean",
"label": "Clean Target",
"defaultValue": "false",
"required": false,
"groupName": "advanced",
"helpMarkDown": "Selecting it will clean the destination folder before copying the files."
},
{
"name": "CopyFilesInParallel",
"type": "boolean",
"label": "Copy Files in Parallel",
"defaultValue": "true",
"required": false,
"groupName": "advanced",
"helpMarkDown": "Selecting it will copy files in parallel to the machines."
},
{
"name": "AdditionalArguments",
"type": "multiLine",
"label": "Additional Arguments",
"required": false,
"groupName": "advanced",
"defaultValue": "",
"helpMarkDown": "Additional robocopy arguments that will be applied when copying files like, /min:33553332 /l."
}
],
"instanceNameFormat": "Copy files from $(SourcePath)",
"execution": {
"PowerShell3": {
"target": "WindowsMachineFileCopy.ps1"
}
},
"messages": {
"WFC_ParameterCannotBeNullorEmpty": "Parameter '{0}' cannot be null or empty.",
"WFC_FailedToConnectToPathWithUser": "Failed to connect to the path {0} with the user {1} for copying.",
"WFC_CopyingFailedConsultRobocopyLogsForMoreDetails": "Copying failed. Consult the robocopy logs for more details.",
"WFC_CopyingRecurivelyFrom0to1MachineSucceed": "Copying recursively from {0} to {1} on machine {2} succeeded.",
"WFC_SourcePathDoesNotExist": "Source path '{0}' does not exist.",
"WFC_RemoteDestinationPathCannotContainEnvironmentVariables": "Remote destination path '{0}' cannot contain environment variables.",
"WFC_CopyStartedFor0": "Copy started for - {0}",
"WFC_NoMachineExistsUnderEnvironment": "No machine exists under environment: '{0}' for deployment",
"WFC_NoMachineExistsUnderEnvironment0ForDeployment": "No machine exists under environment: '{0}' for deployment",
"WFC_CopyingFailedForResource": "Copying failed for resource: {0}",
"WFC_FailedToCreatePSDrive": "Failed to Create PSDrive with Destination: '{0}', ErrorMessage: '{1}'",
"WFC_RobocopyError": "Robocopy Error. Computer: '{0}'. ErrorMessage: '{1}'"
}
}