Hello Noam,
my goal is to enforce a policy that all deployments to a staging repository
must have a property (set via matrix parameter) qa-ticket and I hoped I
could disallow deployment without this property completely in this event
hook.
Regards Mirko
--
Sent from my phone
On Apr 29, 2012 8:10 AM, "Noam Y. Tenne" <[email protected]> wrote:
> Hi Mirko,
>
> beforeCreate won't be appropriate in this situation since the item was not
> created yet, hence there's no artifact to annotate with properties.
> If you hook into the afterCreate event, you can
> org.artifactory.repo.Repositories#setProperty or
> org.artifactory.repo.Repositories#setPropertyRecursively to annotate.
>
> HTH,
> Noam
>
> On Fri, Apr 27, 2012 at 12:26 AM, Mirko Friedenhagen <
> [email protected]> wrote:
>
>> Hello,
>>
>> say I want to enforce a policy that every upload into a staging
>> repository called libs-staging-local has a value for a property called
>> "qaticket", which will be used during procurement. While I may check
>> easily that the given file does not exist in libs-releases-local, I
>> seem to have no access to properties given as matrix parameters in
>> beforeCreate.
>>
>> Regards Mirko
>>
>>
>> ------------------------------------------------------------------------------
>> 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