Open sanjayc-jfrog opened 8 months ago
We are seeing this problem too when configuring a local maven repository like this:
repositories {
maven {
url "/path/to/local/maven/repository/"
}
}
We found a workaround for this issue by removing the resolver from the jenkins gradle script. So we removed, from our Jenkinsfile
:
- gradle.resolver repo:'repo-libs-local', server: server
Before version 4.0, this resolver configuration seems to be an additional resolver configuration, next to existing resolvers, now it became a unique resolver overriding existing resolvers.
We agree that this is not an optimal solution, and will not work in all cases.
Hi @sanjayc-jfrog @steven-aerts , Jenkins Artifactory Plugin 4.0.8 was just released and includes a fix for this issue. We'd appreciate your feedback for it.
Describe the bug After upgrading Jenkins Artifactory Plugin from 4.0.0 to higher version(4.0.1-4.0.3), Gradle build fails to resolve dependencies from flatDir. The same build was working fine with 4.0.0 and older version.
To Reproduce
Expected behavior The build should able to resolve the dependencies from flatDir(dependencies based on local file system directories).
Versions