Hi Noam, sorry about the name confusion, I was not expecting a name so close
to 'Yoav'.  :)

I understand now what is going on... as a new user it seems the various
layout options interact in subtle ways.    I expected that if Artifactory
accepts my deployment, then the layout is valid, but I see this is not the
case.    It seems the Gradle default layout is closest to what I am
currently using, so I will try that.

Thanks,
Carlton

On Mon, Apr 4, 2011 at 10:46 AM, Noam Y. Tenne <[email protected]> wrote:

> Hi Carlton,
>
> It's actually Noam, not Yoav; but that's fine :)
>
> So it seems like the patterns that your resolver uses do not fit the
> patterns of the default Ivy layout in Artifactory; it's missing the type tag
> and expects the classifier in a different place.
> The cleanup can only be performed on integration revision artifacts that
> resolve to a valid module by the layout of their hosting repository.
>
> All in all you've got two choices here:
>
>    1. Continue working with the default Ivy layout and change your
>    resolver's patterns to:
>
>    Ivy - [organisation]/[module]/[revision]/*[type]s*/ivy-[revision].xml
>
>    Artifact - [organisation]/[module]/[revision]/*[type]s*/[artifact]*
>    (-[classifier])*-[revision].[ext]
>
>    2. Create your own customized repository layout that fits the
>    resolver's patterns, and publish to a repository that's configured with the
>    new layout.
>
>
> In both cases I'd recommend you read the repository layout user guide (
> http://wiki.jfrog.org/confluence/display/RTF/Repository+Layouts) as it's
> quite insightful on the subject.
>
> HTH,
> Noam
>
> On Mon, Apr 4, 2011 at 5:29 PM, Carlton Brown <[email protected]>wrote:
>
>> Hi Yoav, thanks for your quick repsonse.
>>
>> This is my resolver definition:
>>     <url name="artifactory-publish">
>>       <ivy pattern="http://
>> ${artifactory.host}:8080/artifactory/try-integration/[organisation]/[module]/[revision]/ivy-[revision].xml"/>
>>       <artifact pattern="http://
>> ${artifactory.host}:8080/artifactory/try-integration/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/>
>>     </url>
>>
>>
>>
>> On Mon, Apr 4, 2011 at 10:19 AM, Noam Y. Tenne <[email protected]> wrote:
>>
>>> Hi Carlton,
>>>
>>> I see the repository uses the default Ivy layout, so only your first
>>> example of a revision integration pattern should fit; do the deployed
>>> artifacts adhere to this layout?
>>> A couple of ways to find out:
>>>
>>>    - Selecting one of the deployed artifacts in the tree browser, does
>>>    the "Module ID" field in the "General" panel display a valid module ID or
>>>    just "N/A"?
>>>    - Each pattern configuration editor (Admin->Configuration->Repository
>>>    Layouts) has a resolution tester where you can paste artifact paths and 
>>> test
>>>    to see how the pattern analyzes them. Does the test produce the expected
>>>    information?
>>>
>>> The artifact's revision integration representation makes no difference to
>>> the cleanup as long as it's distinctive enough to uniquely distinguish
>>> release artifacts from revision artifacts; the cleanup decides which modules
>>> to clean according to their earliest creation time.
>>>
>>> In either case, please provide examples of the artifact and Ivy paths you
>>> deploy too so that we can try to figure out the problem.
>>>
>>> Noam
>>>
>>> On Mon, Apr 4, 2011 at 4:57 PM, Carlton Brown <[email protected]>wrote:
>>>
>>>> Hi,
>>>>
>>>> I am unable to get the automated snapshot cleanup mechanism working.
>>>> In a repository with max unique snapshots = 3, when I publish the 4th
>>>> artifact, it is not cleaned up.
>>>>
>>>> I am publishing from the Ivy publish task.   My repository looks like
>>>> this.
>>>>         <localRepository>
>>>>             <key>try-integration</key>
>>>>             <description>Test repo</description>
>>>>             <notes>Test notes</notes>
>>>>             <includesPattern>**/*</includesPattern>
>>>>             <repoLayoutRef>ivy-default</repoLayoutRef>
>>>>             <blackedOut>false</blackedOut>
>>>>             <handleReleases>false</handleReleases>
>>>>             <handleSnapshots>true</handleSnapshots>
>>>>             <maxUniqueSnapshots>3</maxUniqueSnapshots>
>>>>
>>>>  <suppressPomConsistencyChecks>true</suppressPomConsistencyChecks>
>>>>             <propertySets/>
>>>>             <snapshotVersionBehavior>unique</snapshotVersionBehavior>
>>>>
>>>>  
>>>> <localRepoChecksumPolicyType>server-generated-checksums</localRepoChecksumPolicyType>
>>>>         </localRepository>
>>>>     </localRepositories>
>>>>
>>>> I have tried publishing the artifacts with names such as:
>>>> \d{14}
>>>> SNAPSHOT-\d{14|
>>>> \d{14}-SNAPSHOT
>>>>
>>>> Any help?
>>>>
>>>> Thanks,
>>>> Carlton
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Create and publish websites with WebMatrix
>>>> Use the most popular FREE web apps or write code yourself;
>>>> WebMatrix provides all the features you need to develop and
>>>> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
>>>>
>>>> _______________________________________________
>>>> Artifactory-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Create and publish websites with WebMatrix
>>> Use the most popular FREE web apps or write code yourself;
>>> WebMatrix provides all the features you need to develop and
>>> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
>>>
>>> _______________________________________________
>>> Artifactory-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Create and publish websites with WebMatrix
>> Use the most popular FREE web apps or write code yourself;
>> WebMatrix provides all the features you need to develop and
>> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
>>
>> _______________________________________________
>> Artifactory-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
>
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to