Enable and Disable Artifact Auto Collection
Currently, this feature is behind the feature flag ARTIFACT_COLLECTION_CONFIGURABLE
. Contact Harness Support to enable the feature.In some cases, automatic collection of artifacts can cause issues like rate limit increases because of too many calls from the Harness Delegate to your artifact servers.
You can enable or disable automatic artifact collection whenever you need. This topic will walk you through the process.
Before You Begin
Supported Platforms and Technologies
See Supported Platforms and Technologies.
Review: Artifact Auto Collection
Here's a summary of how the Artifact Auto Collection works in Harness:
- Enabled: If auto collection is enabled, Harness collects the artifacts using metadata when you set up the Artifact Source in a Harness Service.
- Disabled: If auto collection is disabled, Harness collects the artifact metadata from the repo on demand when you select the Artifact Source during deployment. Harness then stores the metadata in the Harness database.
- For example, when you deploy a Workflow/Pipeline and select an artifact that has auto collection disabled, Harness will fetch the artifact metadata (tags/versions) on demand at that moment.
Step 1: Set Artifact Auto Collection on the Service
In the Service settings, in Artifact Source, you can enable/disable the Auto Collect Artifact setting.
When Auto Collect Artifact is disabled for an artifact, a stop icon is listed next to the artifact:
If Auto Collect Artifact is disabled for an artifact, you will see the following:
- No artifacts listed for that artifact in the Artifact History in that Service.
- If Auto Collect Artifact is disabled for all artifacts, Artifact History does not appear at all.
- No artifacts listed for that artifact in the Manually Select an Artifact settings.