Skip to content

chore: tidy legacy CLI references and javadocs - #301

Merged
matt-richardson merged 31 commits into
mainfrom
mr/go-cli-tidy-ups
Nov 9, 2026
Merged

matt-richardson merged 31 commits into
mainfrom
mr/go-cli-tidy-ups

Conversation

@matt-richardson

Copy link
Copy Markdown
Contributor

Merges into #276, after #287 and #296. It's branched from #296, which includes #287, so its diff shows their changes until they merge.

Small leftovers from the review of #276:

  • docs/e2e-tests.md still said the e2e steps run octo create-release.
  • ConnectionPropertyNames.VERSION had no users outside two tests. Those tests model a connection stored by an older plugin, so they now use the octopus_version key directly.
  • Two javadocs from fix: require an Octopus space instead of falling back to Default #287 are reworded.
  • TeamCityRest.setPasswordParameter's javadoc sat above setParameter, leaving setParameter with two javadocs and setPasswordParameter with none.

🤖 Generated with Claude Code

APErebus and others added 28 commits October 20, 2026 12:21
The Go CLI archives are now downloaded at build time (#282). Drop the
committed cli/ archives and point downloadOctopusCli at resources/cli/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring in the per-architecture Go CLI archives (#283). Port the
architecture lookup into cli/OctopusOsUtils and move its test into the
cli package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…est (#286)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops the error patterns that only matched octo's .NET output, the 2.0
version folder the bundled Go CLI sat under, and a test that passed
whatever octopus_version a step carried.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o-cli-default-space

# Conflicts:
#	e2e/src/test/java/octopus/teamcity/e2e/test/OctopusConnectionBuildInformationE2ETest.java
#	e2e/src/test/java/octopus/teamcity/e2e/test/OctopusPromoteReleaseNewCliE2ETest.java
#	e2e/src/test/java/octopus/teamcity/e2e/test/OctopusPushPackageE2ETest.java
#	octopus-agent/src/main/java/octopus/teamcity/agent/cli/CLIBuildProcess.java
#	octopus-agent/src/test/java/octopus/teamcity/agent/cli/CLIBuildProcessTest.java
#	octopus-common/src/main/java/octopus/teamcity/common/SpaceSelection.java
#	octopus-server/src/main/java/octopus/teamcity/server/PropertiesValidator.java
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Additional command line arguments reach the Go CLI unchanged. Steps
written for the legacy octo CLI can carry arguments the Go CLI rejects
with only "unknown flag"; the build log now says where the argument
came from.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The Go CLI is bundled for amd64 and arm64 only. Every runner reported
every agent as compatible, so a build could be sent to an agent whose
JVM architecture has no bundled CLI and fail when the step started.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…o-cli-default-space

# Conflicts:
#	octopus-agent/src/main/java/octopus/teamcity/agent/cli/CLIBuildProcess.java
…o-cli-leftovers

# Conflicts:
#	octopus-agent/src/main/java/octopus/teamcity/agent/cli/CLIBuildProcess.java
#	octopus-agent/src/test/java/octopus/teamcity/agent/cli/CLIBuildProcessTest.java
…/go-cli-leftovers

# Conflicts:
#	octopus-agent/src/test/java/octopus/teamcity/agent/cli/CLIBuildProcessTest.java
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the chore label Oct 30, 2026
Base automatically changed from ap/default-to-new-cli to main November 5, 2026 04:10
matt-richardson and others added 2 commits November 5, 2026 14:23
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	octopus-agent/src/main/java/octopus/teamcity/agent/cli/CLIBuildProcess.java
#	octopus-agent/src/test/java/octopus/teamcity/agent/cli/CLIBuildProcessTest.java
#	octopus-common/src/main/java/octopus/teamcity/common/SpaceSelection.java
#	octopus-server/src/main/java/octopus/teamcity/server/OctopusDeployReleaseRunType.java
#	octopus-server/src/main/java/octopus/teamcity/server/PropertiesValidator.java
@matt-richardson
matt-richardson marked this pull request as ready for review November 9, 2026 03:37
@matt-richardson
matt-richardson merged commit 40d9c3c into main Nov 9, 2026
5 checks passed
@matt-richardson
matt-richardson deleted the mr/go-cli-tidy-ups branch November 9, 2026 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants