Try artifactoryPublish.dependsOn(jenkinsTest)