-
Bug
-
Resolution: Unresolved
-
Major
-
None
When publishing this project:
https://github.com/jwcarman/gradle-test
on my local Jenkins server using a gradle build, it publishes the artifacts using this name:
com.carmanconsulting.gradle:workspace:1.0-SNAPSHOT
The "workspace" name is not mentioned anywhere in my build.gradle file. Presumably it comes from the name of the Jenkins workspace directory where the files are checked out and the project is built. Is there a work-around?
I have also encountered this problem, although I'm not sure it is an Artifactory plugin problem.
When Jenkins builds your Gradle project, it seems to checkout your code into a directory call 'workspace' rather than the name of your git repo.
Since Gradle uses the project directory as the default for the artifact name, your artifact gets built with the name 'workspace' which is wrong.
The workaround is to use the "Advanced Project Options" in Jenkins to make sure you project is built in an appropriately named directory.
The Artifactory plugin is unwittingly picking up the artifact as produced by Gradle.
It seems that this might be more of an issue of Gradle/Jenkins integration.