Hi Nicky,

Yep, turns out there was a bug that was solved in 2.6.2
RTFACT-4969<https://issues.jfrog.org/jira/browse/RTFACT-4969>
You can test it here on our public Artifactory
curl -I
"http://repo.jfrog.org/artifactory/libs-snapshots-local/org/apache/lucene/lucene-core-jfrog/2.4.1-SNAPSHOT/lucene-core-jfrog-2.4.1-SNAPSHOT.pom;build.name+=lucene-core-trunk;build.number+=13";
curl -I
"http://repo.jfrog.org/artifactory/libs-snapshots-local/org/apache/lucene/lucene-core-jfrog/2.4.1-SNAPSHOT/lucene-core-jfrog-2.4.1-SNAPSHOT.pom;build.name+=lucene-core-trunk;build.number+=14";

HTH,

Eli
On Wed, Sep 5, 2012 at 3:26 PM, Nicky Ramone <[email protected]> wrote:

> Eli,
> I have read the section about "property resolution". I'm using Artifactory
> Pro 2.6.1
>
> #) I have a CI (Jenkins) project named 'dummy' with 27 builds deployed to
> Artifactory.
> #) One of the published artifacts is com.dummy:dummy.jar
> #) The properties of the latest dummy.jar (build#27) are:
>     build.name = dummy
>     build.number = 27
>     build.timestamp = 1346786540690
>     vcs.revision = 77
> #) If I call the API like this:
>     $ curl -I "
> http://myserver.com:8080/artifactory/libs-snapshot-local/com/dummy/dummy/1.0.0-SNAPSHOT/dummy-1.0.0-SNAPSHOT.jar;build.name+=dummy;build.number+=27
> "
>     I get a 200 (OK)
> #) But If I call the API like this:
>     $ curl -I "
> http://myserver.com:8080/artifactory/libs-snapshot-local/com/dummy/dummy/1.0.0-SNAPSHOT/dummy-1.0.0-SNAPSHOT.jar;build.name+=dummy;build.number+=26
> "
>     I get a 404 (NOT FOUND)
>
> Maybe it's a bug where the snapshot is a direct reference to the latest
> one?
>
>
> On Wed, Sep 5, 2012 at 6:43 AM, Dipl.-Ing. Torsten Liermann <
> [email protected]> wrote:
>
>> Hi,
>>
>> I'm using artifactory pro 2.1.3. I know the wiki page, by the way the
>> wiki page is out of date. The properties revision, buildnumber now named
>> vcs.revisionand build.number
>>
>> The feature will not work for a older snapshot artifact in a snapshot
>> repository configured with "Maven Snapshot Version Behavior " = unique.
>> It works only for the newest artifact.
>>
>> Greetings,
>> Torsten
>>
>>
>>
>> On Wed, 5 Sep 2012 11:33:14 +0300
>>  Eli Givoni <[email protected]> wrote:
>> >Hi,
>> >
>> >Please see this wiki about property
>> >resolution<
>> http://wiki.jfrog.org/confluence/display/RTF/Using+Properties+in+Deployment+and+Resolution
>> >rules,
>> >see if that explains your issue.
>> >
>> >Niky can you please attache your query and a pick of the artifact
>> >properties tab.
>> >BTW, what version of Artifactory are you using, I use it a lot and seems
>> to
>> >work fine.
>> >
>> >Thanks
>> >
>> >Eli
>> >On Tue, Sep 4, 2012 at 3:44 PM, Dipl.-Ing. Torsten Liermann <
>> >[email protected]> wrote:
>> >
>> >> Hi,
>> >>
>> >> when I'm using this, i will get an 404 error with the error
>> >> message:
>> >>
>> >> File
>> >>
>> 'yyy-snapshot-local:de/xxx/abc/ArchiveRestGiesing/3.1-SNAPSHOT/ArchiveRestGiesing-3.1-20120904.115314-11-client.jar'
>> >> was found, but mandatory properties do not match.
>> >>
>> >> I would expect that artifactory give me the artifact
>> >> ArchiveRestGiesing-3.1-20120904.082737-9-client.jar because this
>> >> artifact has the property value with the right build.number
>> >>
>> >> 20120904.115314-11 is the unique snapshot ID of the latest deployt
>> >> artifact.
>> >>
>> >> What I'm doing wrong?
>> >>
>> >> Thanks for a hint
>> >> Torsten
>> >>
>> >> On Tue, 4 Sep 2012 10:00:59 +0300
>> >>  Ofer Haze <[email protected]> wrote:
>> >> >Nicky Hi,
>> >> >
>> >> >There are two options you can use:
>> >> >
>> >> >1) You can write your own user-plugin
>> >> ><http://wiki.jfrog.org/confluence/display/RTF/User+Plugins>
>> >> >
>> >> >2) Use metrix params to resolve the artifacts with matching property
>> >> >build.name and build.number. for example:
>> >> >
>> >> > curl -I
>> >> >
>> >>
>> http://localhost:8081/artifactory/libs-snapshot-local/org/springframework/data/spring-data-commons-core/1.2.2.BUILD-SNAPSHOT/spring-data-commons-core-1.2.2.BUILD-
>> >> >    SNAPSHOT.jar;build.number=22;build.name+=spring-demo;
>> >> >
>> >> >I hope this helped
>> >> >
>> >> >Regards
>> >> >Ofer
>> >> >
>> >> >
>> >> >Hello.
>> >> >
>> >> >For reproducibility, we would like to obtain the "locked version" of
>> the
>> >> >deployed snapshot in a build.
>> >> >When I browse the UI in the "Builds" section, I can get the full path
>> to
>> >> >the snapshot file in the "Published Modules" tab, and this path
>> contains
>> >> >the locked snapshot.
>> >> >Example:
>> >>
>> http://myserver.com/artifactory/libs-snapshot-local/com/dummy/dummy/1.0.0-SNAPSHOT/dummy-1.0.0-20120903.133753-8.jar
>> >> >
>> >> >Is it possible to retrieve this information from the build? the build
>> info
>> >> >api doesn't seem to include it.
>> >> >The only way I found of doing this is by using searches, but it is not
>> >> >straightforward nor completely "thread safe".
>> >> >
>> >> >Thanks.
>> >> >Regards.
>> >>
>> >> ----
>> >> Dipl.-Ing. Torsten Liermann          Tel: +49 151/11565077
>> >> Theodolindenplatz 2
>> >> 81545 München                       http://liermann-it.de
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> Live Security Virtual Conference
>> >> Exclusive live event will cover all the ways today's security and
>> >> threat landscape has changed and how IT managers can respond.
>> Discussions
>> >> will include endpoint security, mobile security and the latest in
>> malware
>> >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> >> _______________________________________________
>> >> Artifactory-users mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>> >>
>>
>> ----
>> Dipl.-Ing. Torsten Liermann          Tel: +49 151/11565077
>> Theodolindenplatz 2
>> 81545 München                       http://liermann-it.de
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Artifactory-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to