Hi Phil,

The latest version of what used to be the buildInfo task is now named
'artifactoryPublish' and it is the one used internally by recent versions of
the Jenkins Artifactory plugin.
Have a look at
http://wiki.jfrog.org/confluence/display/RTF/Gradle+Artifactory+Plugin for
further information on changing your current configuration. Essentially what
you are doing is right, but you'd have to change the 'publishConfigs' of
the 'artifactoryPublish' task.
Another option, which is probably even more convenient, is to use the
'artifactory {}' DSL provided by the Gradle Artifactory plugin. Note that in
both cases you would need to check the 'Project uses the Artifactory Gradle
Plugin' option in your Jenkins job.

-Yoav


On Thu, Jun 23, 2011 at 1:06 AM, pzimmerman <
[email protected]> wrote:

> Hi Tomer,
>
> I have tried this same configuration in order to get gradle to recognize an
> artifact produced by grails using the grails-gradle plugin. I have even
> tried copying the config you provided into my build.gradle and still have
> the same result:
>
> 15:26:59.279 [ERROR] [org.gradle.BuildExceptionReporter] A problem occurred
> evaluating root project 'webportal'.
> 15:26:59.281 [ERROR] [org.gradle.BuildExceptionReporter] Cause: Could not
> find property 'buildInfo' on root project 'webportal'.
>
> I am using the jenkins artifactory plugin to deploy the artifacts into
> artifactory, but the sticking point right now is getting gradle to
> recognize
> the war built by grails. Do you have any ideas as to why it's not
> recognizing the buildInfo task?
>
> Here is what I have in my build.gradle:
>
> configurations {
>    webportaltest
> }
>
> task buildWebportal {
>    configurations.webportaltest.addArtifact( new DefaultPublishArtifact(
> "web_portal", "war", "war", null, new Date(), file('target/web_portal.war')
> ) )
> }
>
> task buildInfo.configuration = configurations.webportaltest
>
> task buildInfo.doFirst {
>    buildWebportal
> }
>
> Thanks,
> -Phil
>
> --
> View this message in context:
> http://forums.jfrog.org/Hudson-failing-to-deploy-artifacts-to-Artifactory-using-the-plugin-tp6015500p6506346.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with
> vRanger.
> Installation's a snap, and flexible recovery options mean your data is
> safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today.
> http://p.sf.net/sfu/quest-sfdev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to