![]() ![]() It is very challenging to troubleshoot when this issue happens, so adding more logging would be helpful.įor example, current theory is somehow Nexus might not be invalidating the npm cache in .#on, so it would be helpful if we had some logging when matchingEvent(updated) = true but hasBlobBeenUpdated(updated) = false with some reason.Nexus should make sure that rebuilding the metadata for necessary NPM group repositories is successful.See internal comments for an artificial way of reproducing this behaviour. If above doesn't work, delete the metadata json from the group repository (eg: with a groovy script), so that next request will rebuild this metadata. Use button from the group repository page. I wrote this script for Nexus 3.3.x so on 3.6 the URL or the attributes returned from the REST call might differ a bit.After publishing a new version into a NPM hosted repository, the NPM group repository, which has this NPM hosted as a member, does not show this newly published version in this component's metadata JSON file. To be honest I really don´t know why Sonatype released Nexus3 without the "latest" function. ![]() value) and use its download URL: od = collections.OrderedDict(sorted(all_download_ems())) request_url = nexus_url + "/service/siesta/rest/v1/assets?continuationToken=" + response + "&repositoryId=" + repository_idĮxtract the artifact-version from the downloadURL, save this and the version to a OrderedDictionary, get the highest artifact number (max. ![]() So you can iterate (while you have a continuation token present) through all artifacts using the continuation token. In the response you will receive 5 random entries of your artifacts containing the download URL, other attributes and a continuation token. The URL(s) you have to query look like this: request_url = nexus_url + "/service/siesta/rest/v1/assets?repositoryId=" + repository_id The artifacts are stored in Nexus Repository Manager and move throughout the CI/CD pipelines into production. Currenctly Nexus 3 does not provide the "latest"-function as you know from Nexus 2. Using Nexus Repository Manager for your NuGet packages, developers and teams will be able to quickly and easily retrieve the required third-party packages for your projects during the build process. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |