ARTIFACTORY: Why is the Artifactory Jenkins plugin only resolving from one repository and how to resolve from the build.gradle settings instead

ARTIFACTORY: Why is the Artifactory Jenkins plugin only resolving from one repository and how to resolve from the build.gradle settings instead

AuthorFullName__c
Derek Pang
articleNumber
000006093
ft:sourceType
Salesforce
FirstPublishedDate
2024-05-15T07:46:09Z
lastModifiedDate
2024-05-15
VersionNumber
2

You may have run into an issue where your Gradle builds were not resolving from the expected repositories. Upon further investigation, you may find that there were only requests to one repository. This is the result of this change in the Jenkins Artifactory Plugin version 4.0.1. It causes the settings sent by the plugin (i.e. configured in the Jenkinsfile) to take precedence over the project settings. This means that repository configurations in the build.gradle will not be utilized.

In this article, we will show you how to work around this and resolve artifacts based on the build.gradle again.