Repository navigation
Expend vsc detection #485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Expend vsc detection #485
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
da20529
XRAY-139364 - Automatically set VSC properties on uploaded artifacts …
attiasas d188f60
XRAY-139364 - Add tests
attiasas 67201ee
fix windows tests
attiasas 9cca0f7
fix early return
attiasas c740d76
add more place to detect vsc
attiasas 72202e0
Add VSC collection for build publish cmd
attiasas 3be1513
Add VSC collection for conan cmd
attiasas ace3fd2
Add VSC collection for flexpack cmd
attiasas 1f23953
fix npm search dir
attiasas d1bba49
Merge remote-tracking branch 'origin/local_git_detection' into expend…
attiasas 636127c
Add VSC collection for npm cmd
attiasas f0ea071
Add VSC collection for nix cmd
attiasas 144184a
Add VSC collection for pnpm cmd
attiasas f7cf8f3
fix not needed if
attiasas 97e21a9
Add VSC collection for python cmd
attiasas e96b000
Merge remote-tracking branch 'upstream/main' into local_git_detection
attiasas b879889
Merge remote-tracking branch 'upstream/main' into local_git_detection
attiasas b1dd2fa
Merge remote-tracking branch 'origin/local_git_detection' into expend…
attiasas 8ecc061
normalize local url
attiasas 168b70f
fix static
attiasas 9c6e0af
Merge remote-tracking branch 'origin/local_git_detection' into expend…
attiasas 5c7cac0
revert normalization
attiasas a81d7ce
Merge remote-tracking branch 'origin/local_git_detection' into expend…
attiasas e7ae00a
fix tests
attiasas 4746a49
fix(build-publish): set local git VCS props on artifacts without repo…
attiasas 628b7b6
fix tests for repoless
attiasas 2ece497
Merge remote-tracking branch 'upstream/main' into local_git_detection
attiasas e1d2d84
Merge remote-tracking branch 'origin/local_git_detection' into expend…
attiasas d7a0a7b
Merge remote-tracking branch 'upstream/main' into local_git_detection
attiasas d967791
Merge remote-tracking branch 'origin/local_git_detection' into expend…
attiasas 237fc80
CR changes
attiasas d6932dc
Merge remote-tracking branch 'origin/local_git_detection' into expend…
attiasas 3412ebd
tag only artifacts in local repo
attiasas 8d4654c
fix static
attiasas 59ed241
Merge remote-tracking branch 'upstream/main' into expend_vsc_detection
attiasas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the Gradle extractor omits
OriginalDeploymentRepo, the path*/com/example/foo/1.0/foo.jaris used forSetItemProperties. Artifactory will match this pattern across all repos — local deployment repos, virtual repos that shadow the same path, remote repo caches, etc. This silently stamps VCS metadata on artifacts the user never intended to tag.In practice this is mostly harmless (virtual repos are usually read-only for property writes), but if an org has a virtual repo backed by multiple locals and the same artifact was released at the same path in a different local repo, both get tagged.
We can look for a way to restrict the search to local repos only in the AQL or SetProps call when using */? If not, at minimum log a warning when the wildcard fallback is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a log and a call to get all local repositories