Skip to content
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

feat: switch first lifecycle hook to afterCreate #125

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

jacek-rzrz
Copy link
Contributor

Switching the hook which gates artifact downloads from afterRemoteDownload to afterCreate.

For some ecosystems, e.g. Python and Cocoapods, properties would fail to write during the afterRemoteDownload. This would manifest with the following error message in Artifactory logs:

Cannot add properties for <repository path> Item not found.

The afterCreate hook is also attached to initial downloads of artifacts, and properties are successfully created in this context across all ecosystems supported by this plugin.

Switching the hook which gates artifact downloads from `afterRemoteDownload`
to `afterCreate`.

For some ecosystems, e.g. Python and Cocoapods, properties would fail to
write during the `afterRemoteDownload`. This would manifest with the
following error message in Artifactory logs:

```
Cannot add properties for <repository path> Item not found.
```

The `afterCreate` hook is also attached to initial downloads of
artifacts, and properties are successfully created in this context
across all ecosystems supported by this plugin.
@jacek-rzrz jacek-rzrz requested a review from a team as a code owner November 26, 2024 13:18
@jacek-rzrz jacek-rzrz merged commit fd14b8f into main Nov 26, 2024
12 checks passed
@jacek-rzrz jacek-rzrz deleted the feat/switch-first-lifecycle-hook-to-afterCreate branch November 26, 2024 14:18
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.

2 participants