Skip to content

Commit e1aaf6a

Browse files
EzzhevNikitaAnatolii Bolshakov (Akvelon INC)
and
Anatolii Bolshakov (Akvelon INC)
authored
Applied command restrictions to UseRubyVersionV0 task (#14683)
* Added restrictions for UseRubyVersionV0 * Added path to allowed variables Co-authored-by: Anatolii Bolshakov (Akvelon INC) <[email protected]>
1 parent 5003add commit e1aaf6a

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

Tasks/UseRubyVersionV0/task.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
"author": "Microsoft Corporation",
1414
"version": {
1515
"Major": 0,
16-
"Minor": 182,
16+
"Minor": 184,
1717
"Patch": 0
1818
},
1919
"demands": [],
20-
"minimumAgentVersion": "2.115.0",
20+
"minimumAgentVersion": "2.182.1",
2121
"instanceNameFormat": "Use Ruby $(versionSpec)",
2222
"inputs": [
2323
{
@@ -56,5 +56,13 @@
5656
"ToolNotFoundSelfHosted": "If this is a self-hosted agent, see how to configure side-by-side %s versions at %s.",
5757
"VersionNotFound": "Version spec %s for architecture %s did not match any version in Agent.ToolsDirectory.",
5858
"ExactVersionNotRecommended": "It is not recommended to specify exact version on Microsoft-Hosted agents. Patch version of Ruby can be replaced by new one on Hosted agents without notice and build stops to work. it is recommended to specify only major or major and minor version (Example: `2` or `2.4`)"
59+
},
60+
"restrictions": {
61+
"commands": {
62+
"mode": "restricted"
63+
},
64+
"settableVariables": {
65+
"allowed": ["rubyLocation", "PATH"]
66+
}
5967
}
6068
}

Tasks/UseRubyVersionV0/task.loc.json

+13-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
"author": "Microsoft Corporation",
1414
"version": {
1515
"Major": 0,
16-
"Minor": 182,
16+
"Minor": 184,
1717
"Patch": 0
1818
},
1919
"demands": [],
20-
"minimumAgentVersion": "2.115.0",
20+
"minimumAgentVersion": "2.182.1",
2121
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
2222
"inputs": [
2323
{
@@ -56,5 +56,16 @@
5656
"ToolNotFoundSelfHosted": "ms-resource:loc.messages.ToolNotFoundSelfHosted",
5757
"VersionNotFound": "ms-resource:loc.messages.VersionNotFound",
5858
"ExactVersionNotRecommended": "ms-resource:loc.messages.ExactVersionNotRecommended"
59+
},
60+
"restrictions": {
61+
"commands": {
62+
"mode": "restricted"
63+
},
64+
"settableVariables": {
65+
"allowed": [
66+
"rubyLocation",
67+
"PATH"
68+
]
69+
}
5970
}
6071
}

0 commit comments

Comments
 (0)