Affects Version/s: 1.8.1
Fix Version/s: None
The configuration screen for the Artifactory Gradle task has a text box for "Build Script File", which I would imagine would take whatever script you put in there, verify its existence, and tack on a "-b $NAME" to the gradle command line call.
I'd imagine this would be done in ArtifactoryGradleTask.java#execute() by referencing gradleBuildContext.getBuildFile(); and tacking that result onto command being executed.
This doesn't appear to be done, and that getBuildFile function doesn't appear to be referenced (at least in the code from the last release point 1.8.1)
So what ends up happening is that regardless of what you put in that field, only build.gradle gets executed by gradle, rather than the script you want to run.
I've implemented a fairly trivial fix to this and proven it works in my dev environment.