Skip to content

Commit 855593f

Browse files
committed
remove all release agent logic
1 parent 73e4943 commit 855593f

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

scripts/release/pipeline.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,22 @@ def image_build_config_from_args(args) -> ImageBuildConfiguration:
142142
# Get agent_tools_version for agent builds (from --agent-tools-version arg)
143143
agent_tools_version = getattr(args, "agent_tools_version", None)
144144

145-
if version is None:
145+
# Validate version requirements
146+
if image == "agent":
147+
# Agent builds: version can be "all", "current", or explicit version (requires agent_tools_version)
148+
if version is None:
149+
raise ValueError(
150+
"Agent build requires --version. Use one of:\n"
151+
" --version all (for all agents in release.json)\n"
152+
" --version current (for currently used agents)\n"
153+
" --version <ver> --agent-tools-version <tools_ver> (for specific agent)"
154+
)
155+
is_special_version = version in ("all", "current")
156+
if not is_special_version and agent_tools_version is None:
157+
raise ValueError(
158+
f"For agent builds with explicit version '{version}', --agent-tools-version must also be provided."
159+
)
160+
elif version is None:
146161
raise ValueError(f"Version cannot be empty for {image}.")
147162

148163
return ImageBuildConfiguration(

0 commit comments

Comments
 (0)