diff --git a/src/main/java/org/jfrog/hudson/generic/ArtifactoryGenericConfigurator.java b/src/main/java/org/jfrog/hudson/generic/ArtifactoryGenericConfigurator.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/jfrog/hudson/generic/ArtifactoryGenericConfigurator.java
+++ b/src/main/java/org/jfrog/hudson/generic/ArtifactoryGenericConfigurator.java
@@ -326,7 +326,7 @@ public class ArtifactoryGenericConfigurator extends BuildWrapper implements Depl
             if (isUseSpecs()) {
                 String spec = SpecUtils.getSpecStringFromSpecConf(
                         downloadSpec, build.getEnvironment(listener), build.getExecutor().getCurrentWorkspace(), listener.getLogger());
-                publishedDependencies = artifactsResolver.retrieveDependenciesBySpec(getArtifactoryUrl(), spec);
+                publishedDependencies = artifactsResolver.retrieveDependenciesBySpec(resolverDetails.getArtifactoryUrl(), spec);
             } else {
                 publishedDependencies = artifactsResolver.retrievePublishedDependencies(resolvePattern);
                 buildDependencies = artifactsResolver.retrieveBuildDependencies(resolvePattern);
HAP-<I> - Add upload and download specs support to Jenkins generic jobs