Skip to content

Commit 11d1b64

Browse files
adding agent knob AGENT_RESTRICT_EOL_NODE_VERSIONS
1 parent 32e38b9 commit 11d1b64

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Agent.Sdk/Knob/AgentKnobs.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,13 @@ public class AgentKnobs
575575
new EnvironmentKnobSource("AGENT_RESTRICT_EOL_NODE_VERSIONS"),
576576
new BuiltInDefaultKnobSource("false"));
577577

578+
public static readonly Knob EnableEOLNodeVersionPolicy = new Knob(
579+
nameof(EnableEOLNodeVersionPolicy),
580+
"When enabled, automatically upgrades tasks using end-of-life Node.js versions (6, 10, 16) to supported versions (Node 20.1 or Node 24). Throws error if no supported versions are available on the agent.",
581+
new PipelineFeatureSource("AGENT_RESTRICT_EOL_NODE_VERSIONS"),
582+
new EnvironmentKnobSource("AGENT_RESTRICT_EOL_NODE_VERSIONS"),
583+
new BuiltInDefaultKnobSource("false"));
584+
578585
public static readonly Knob DisableTeePluginRemoval = new Knob(
579586
nameof(DisableTeePluginRemoval),
580587
"Disables removing TEE plugin after using it during checkout.",

0 commit comments

Comments
 (0)