Skip to content

APP-5197 - Add --conflict-resolution flag to version-create command#90

Open
danielreJfrog wants to merge 2 commits into
jfrog:mainfrom
danielreJfrog:feature/APP-5197-conflict-resolution-flag
Open

APP-5197 - Add --conflict-resolution flag to version-create command#90
danielreJfrog wants to merge 2 commits into
jfrog:mainfrom
danielreJfrog:feature/APP-5197-conflict-resolution-flag

Conversation

@danielreJfrog

Copy link
Copy Markdown
Contributor

Summary

  • Add --conflict-resolution flag to jf apptrust version-create command
  • Accepts automatic (Artifactory picks newest artifact) or manual (rejects if conflicts exist)
  • Passes the value as conflict_resolution query parameter to the AppTrust API
  • When omitted, the parameter is not sent (preserving default RLM behavior)

Test plan

  • Unit tests updated for CreateAppVersion service (3 new cases: automatic, manual, empty)
  • Mock updated to match new interface signature
  • All existing cmd and service tests updated with the new parameter
  • E2E test with --conflict-resolution=automatic on a real server

Made with Cursor

Pass conflict_resolution query parameter to AppTrust API when creating
application versions. Supports 'automatic' and 'manual' values.

Co-authored-by: Cursor <cursoragent@cursor.com>
Tests are skipped until the platform version with conflict_resolution
support is released. Covers automatic, manual, and invalid value scenarios.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant