1
votes

I want to publish a binary grails plugin to my artifactory repository with jenkins.

The process should be: GIT Push -> Jenkins Build -> Deploy in artifactory

I just tested it with the artifactory jenkins plugin but couldn't get it working because after the plugin deploys the jar i can't resolve it with my main grails application because the jar gets deployed without artifactId, groupId and so on.

How can i get this working? How is this done right?

1

1 Answers

2
votes

Take a look at the Grails Release Plugin. It allows you to publish to private maven-compatible plugin repositories.

You can specify the location of your artifactory repo in BuildConfig.groovy:

grails.project.repos.myRepo.url = "http://my-artifactory/repos"
grails.project.repos.default = "myRepo"

Then you can use the command grails publish-plugin to deploy to your artifactory.

Hope that helps!