Skip to content

run start --dry-run doesn't validate job ID #160

@tiulpin

Description

@tiulpin

CLI Version: dev
TeamCity Server Version: 2026.2
Operating System: macOS

What happened?

tc run start nonexistent_build --dry-run succeeds with exit code 0 without checking if the job exists:

$ tc run start nonexistent_build --dry-run
[dry-run] Would trigger run for nonexistent_build
$ echo $?
0

Expected behavior

--dry-run should validate the job ID against the server and report an error if it doesn't exist. Users expect dry-run to verify what would happen, not just echo input back.

Steps to reproduce

  1. Run tc run start any_nonexistent_id --dry-run
  2. Observe success message and exit code 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions