ARTIFACTORY: What is the ‘Disable Artifact Resolution in Repository’ option?

ARTIFACTORY: What is the ‘Disable Artifact Resolution in Repository’ option?

AuthorFullName__c
Yonatan Hen
articleNumber
000005793
ft:sourceType
Salesforce
FirstPublishedDate
2023-06-18T14:49:42Z
lastModifiedDate
2023-06-18
VersionNumber
2

When the Disable Artifact Resolution in Repository option is set, the repository does not participate in artifact resolution and new artifacts cannot be deployed. It means that artifacts cannot be downloaded or deployed from/to the repository when this option is enabled.

This option can be used, for example, when we want to temporarily disable uploads/downloads from that repo without deleting it.

For instance, when this option is set on a repository, the UI displays the following message in the ‘Artifacts’ screen:

User-added image
When trying to deploy an artifact to a repository with this option set, a log with the following pattern should be generated:
 

2023-05-23T13:46:28.355Z [jfrt ] [ERROR] [2d41860671633292] [.a.d.ArtifactDeployService:141] [http-nio-8081-exec-7] - org.artifactory.api.repo.exception.RepoRejectException: Cannot deploy file '<file_name>'. The repository '<repository_name>' is blacked out and cannot serve artifact '<repository_name>':<file_name>'.

Artifacts should successfully be resolved/deployed from/to the repository after the checkbox is disabled