Quick question (since for some reason I can’t find it in the documentation):
It would help me greatly to find the artifact metadata
(groupId/artifactId/version) if they exist along with the url;
Is there a better hook which supplies me with all the information? (it
seems that itemInfo is a bit lowlevel and doesn’t know the “metadata”)
Thanks in advance,
Ittai
On Wed, Apr 9, 2014 at 3:53 PM, Ittai Zeidman <[email protected]> wrote:
> Hi Itamar,
> Thanks a lot for your reply.
> Your suggestion about the custom plugin and the storage/afterCreate hook
> seems like exactly what I need.
> If it will work out (and I’ll update) I will be able to achieve the same
> goal with using a couple of groovy lines instead of writing an entire
> module to extract that info.
>
>
> On Wed, Apr 9, 2014 at 3:40 PM, itamarb <[email protected]> wrote:
>
>> Hi Ittai,
>>
>> I will split my answer to 2:
>> 1. Handling the builds already deployed to Artifactory
>> 2. Handling future builds
>>
>> 1. In order to get a list of all the artifacts from all builds in
>> Artifactory you could run the ‘ All Builds
>> <
>> http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-AllBuilds
>> >
>> ’ REST query to get a list of all build names, from this response, on each
>> build name, run the ‘ Build Runs
>> <
>> http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-BuildRuns
>> >
>> ’ query to get the list of all build numbers under a build name and on
>> each
>> of these, run the ‘ Build Info
>> <
>> http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-BuildInfo
>> >
>> ’ query to get a list of artifacts from each build.
>>
>> 2. This also can be split into 2 options:
>>
>> a. In order to automate this, you could write a custom user-plugin
>> <
>> http://www.jfrog.com/confluence/display/RTF/User+Plugins#UserPlugins-Build
>> >
>> that will trigger the desired action on a creation of a new artifact by
>> using the ‘ afterCreate
>> <
>> http://www.jfrog.com/confluence/display/RTF/User+Plugins#UserPlugins-PluginExecutionPoints
>> >
>> ’ event; You can refer to some basic plugin examples in our Public GitHub
>> <https://github.com/JFrogDev/artifactory-user-plugins> .
>>
>> b. If you want to run this search manually, you could setup your TeamCity
>> build to add properties to all deployed Artifacts, please refer to this
>> documentation
>> <
>> http://www.jfrog.com/confluence/display/RTF/TeamCity+Artifactory+Plug-in#TeamCityArtifactoryPlug-in-AttachingSearchableParameterstoBuild-InfoandtoPublishedArtifacts
>> >
>> , this will enable you later to search Artifactory for artifacts with this
>> specific property by using the ‘ Property Search
>> <
>> http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-PropertySearch
>> >
>> ’ REST query.
>>
>> Hope this helps,
>> Itamar.
>>
>>
>>
>> --
>> View this message in context:
>> http://forums.jfrog.org/Getting-the-URLs-of-the-published-artifacts-of-a-TC-build-tp7579747p7579755.html
>> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Put Bad Developers to Shame
>> Dominate Development with Jenkins Continuous Integration
>> Continuously Automate Build, Test & Deployment
>> Start a new project now. Try Jenkins in the cloud.
>> http://p.sf.net/sfu/13600_Cloudbees
>> _______________________________________________
>> Artifactory-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>
>
>
> --
>
>
> *Ittai Zeidman*
>
>
>
> Cell: 054-6735021
>
> 40 Hanamal street, Tel Aviv, Israel
>
>
> <http://www.wix.com>
>
--
*Ittai Zeidman*
Cell: 054-6735021
40 Hanamal street, Tel Aviv, Israel
<http://www.wix.com>
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users