1
1
{
2
- "id" : " D9BAFED4-0B18-4F58-968D-86655B4D2CE9" ,
3
- "name" : " CmdLine" ,
4
- "friendlyName" : " Command line" ,
5
- "description" : " Run a command line script using Bash on Linux and macOS and cmd.exe on Windows" ,
6
- "helpUrl" : " https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line" ,
7
- "helpMarkDown" : " [Learn more about this task](https://go.microsoft.com/fwlink/?LinkID=613735)" ,
8
- "category" : " Utility" ,
9
- "visibility" : [
10
- " Build" ,
11
- " Release"
12
- ],
13
- "runsOn" : [
14
- " Agent" ,
15
- " DeploymentGroup"
16
- ],
17
- "author" : " Microsoft Corporation" ,
18
- "version" : {
19
- "Major" : 2 ,
20
- "Minor" : 246 ,
21
- "Patch" : 0
2
+ "id" : " D9BAFED4-0B18-4F58-968D-86655B4D2CE9" ,
3
+ "name" : " CmdLine" ,
4
+ "friendlyName" : " Command line" ,
5
+ "description" : " Run a command line script using Bash on Linux and macOS and cmd.exe on Windows" ,
6
+ "helpUrl" : " https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line" ,
7
+ "helpMarkDown" : " [Learn more about this task](https://go.microsoft.com/fwlink/?LinkID=613735)" ,
8
+ "category" : " Utility" ,
9
+ "visibility" : [
10
+ " Build" ,
11
+ " Release"
12
+ ],
13
+ "runsOn" : [
14
+ " Agent" ,
15
+ " DeploymentGroup"
16
+ ],
17
+ "author" : " Microsoft Corporation" ,
18
+ "version" : {
19
+ "Major" : 2 ,
20
+ "Minor" : 250 ,
21
+ "Patch" : 0
22
+ },
23
+ "releaseNotes" : " Script task consistency. Added support for multiple lines." ,
24
+ "showEnvironmentVariables" : true ,
25
+ "groups" : [
26
+ {
27
+ "name" : " advanced" ,
28
+ "displayName" : " Advanced" ,
29
+ "isExpanded" : false
30
+ }
31
+ ],
32
+ "inputs" : [
33
+ {
34
+ "name" : " script" ,
35
+ "type" : " multiLine" ,
36
+ "label" : " Script" ,
37
+ "required" : true ,
38
+ "defaultValue" : " echo Write your commands here\n\n echo Hello world\n " ,
39
+ "properties" : {
40
+ "resizable" : " true" ,
41
+ "rows" : " 10" ,
42
+ "maxLength" : " 5000"
43
+ },
44
+ "helpMarkDown" : " "
45
+ },
46
+ {
47
+ "name" : " workingDirectory" ,
48
+ "type" : " filePath" ,
49
+ "label" : " Working Directory" ,
50
+ "defaultValue" : " " ,
51
+ "required" : false ,
52
+ "groupName" : " advanced"
53
+ },
54
+ {
55
+ "name" : " failOnStderr" ,
56
+ "type" : " boolean" ,
57
+ "label" : " Fail on Standard Error" ,
58
+ "defaultValue" : " false" ,
59
+ "required" : false ,
60
+ "helpMarkDown" : " If this is true, this task will fail if any errors are written to the StandardError stream." ,
61
+ "groupName" : " advanced"
62
+ }
63
+ ],
64
+ "instanceNameFormat" : " Command Line Script" ,
65
+ "execution" : {
66
+ "PowerShell3" : {
67
+ "target" : " cmdline.ps1" ,
68
+ "platforms" : [
69
+ " windows"
70
+ ]
22
71
},
23
- "releaseNotes" : " Script task consistency. Added support for multiple lines." ,
24
- "showEnvironmentVariables" : true ,
25
- "groups" : [
26
- {
27
- "name" : " advanced" ,
28
- "displayName" : " Advanced" ,
29
- "isExpanded" : false
30
- }
31
- ],
32
- "inputs" : [
33
- {
34
- "name" : " script" ,
35
- "type" : " multiLine" ,
36
- "label" : " Script" ,
37
- "required" : true ,
38
- "defaultValue" : " echo Write your commands here\n\n echo Hello world\n " ,
39
- "properties" : {
40
- "resizable" : " true" ,
41
- "rows" : " 10" ,
42
- "maxLength" : " 5000"
43
- },
44
- "helpMarkDown" : " "
45
- },
46
- {
47
- "name" : " workingDirectory" ,
48
- "type" : " filePath" ,
49
- "label" : " Working Directory" ,
50
- "defaultValue" : " " ,
51
- "required" : false ,
52
- "groupName" : " advanced"
53
- },
54
- {
55
- "name" : " failOnStderr" ,
56
- "type" : " boolean" ,
57
- "label" : " Fail on Standard Error" ,
58
- "defaultValue" : " false" ,
59
- "required" : false ,
60
- "helpMarkDown" : " If this is true, this task will fail if any errors are written to the StandardError stream." ,
61
- "groupName" : " advanced"
62
- }
63
- ],
64
- "instanceNameFormat" : " Command Line Script" ,
65
- "execution" : {
66
- "PowerShell3" : {
67
- "target" : " cmdline.ps1" ,
68
- "platforms" : [
69
- " windows"
70
- ]
71
- },
72
- "Node10" : {
73
- "target" : " cmdline.js" ,
74
- "argumentFormat" : " "
75
- },
76
- "Node16" : {
77
- "target" : " cmdline.js" ,
78
- "argumentFormat" : " "
79
- }
72
+ "Node10" : {
73
+ "target" : " cmdline.js" ,
74
+ "argumentFormat" : " "
80
75
},
81
- "messages" : {
82
- "GeneratingScript" : " Generating script." ,
83
- "JS_ExitCode" : " Bash exited with code '%s'." ,
84
- "JS_Stderr" : " Bash wrote one or more lines to the standard error stream." ,
85
- "PS_ExitCode" : " Cmd.exe exited with code '{0}'." ,
86
- "PS_UnableToDetermineExitCode" : " Unexpected exception. Unable to determine the exit code from cmd.exe." ,
87
- "ScriptContents" : " Script contents:"
76
+ "Node16" : {
77
+ "target" : " cmdline.js" ,
78
+ "argumentFormat" : " "
88
79
}
80
+ },
81
+ "messages" : {
82
+ "GeneratingScript" : " Generating script." ,
83
+ "JS_ExitCode" : " Bash exited with code '%s'." ,
84
+ "JS_Stderr" : " Bash wrote one or more lines to the standard error stream." ,
85
+ "PS_ExitCode" : " Cmd.exe exited with code '{0}'." ,
86
+ "PS_UnableToDetermineExitCode" : " Unexpected exception. Unable to determine the exit code from cmd.exe." ,
87
+ "ScriptContents" : " Script contents:"
88
+ }
89
89
}
0 commit comments