Enable Caching for Baselines
Loading a large number of Nexus repositories while creating baslines or baseline definitions can last for longer durations—typically slowing down the entire process itself.
By enabling caching for Baselines (which is disabled by default) and setting up webhooks for the Nexus repositories, you can quickly load the list of Nexus repositories available to filter when you create or modify baselines or baseline definitions.
- Run the following adhoc database query in TeamForge's WEBR data store to get the webhook endpoint URL for Nexus and keep it handy for later use.
select 'https://{DomainName}/inbox/v4/Nexus.Repo.Updates/' || publisher_id from publisherv4 where publisher_name='Nexus';
-
Provision services.
teamforge provision
-
Set up webhooks one-by-one for every Nexus repository that is linked to TeamForge.
- Log on to the Nexus server.
- Go to Server Administration and Configurations > System > Capabilities.
- Click Create Capability.
- Select the Webhook Repository capability type.
- Select the repository you want.
- Select the
Asset
andComponent
event types. - Copy and paste the webhook endpoint URL for Nexus (see Step 1) in the
URL
field and click Create Capability.
This concludes the process of enabling caching for Baselines and setting up the webhooks for Nexus repositories.