Hi,

The plugin before/after move will probably be a bit too low-level for what
you are trying to achieve. In particular, you will get move/copy events for
every single item in the tree being moved (including directories), and
 there is currently no extension-point to communicate back to the UI about
move cancellation.

A better approach would be to use the REST API to do that -
You can run custom pre/post-promotion checks (e.g., checking that all build
artifacts that are about to be released have a custom 'release' property
set) either by running a series of REST queries or by triggering the logic
in the repository itself using the new Execute Plugin REST API (
http://wiki.jfrog.org/confluence/display/RTF/Artifactory's+REST+API#Artifactory%27sRESTAPI-ExecutePluginCode
).

Promotion itself is fully driven by REST as well (
http://wiki.jfrog.org/confluence/display/RTF/Artifactory's+REST+API#Artifactory%27sRESTAPI-BuildPromotion%28Move%29
).

HTH,

Yoav

On Wed, Nov 10, 2010 at 5:50 PM, bmacmcclure1 <
[email protected]> wrote:

>
> I'm prototyping a software promotion process in Artifactory.  I'm using
> different repositories to represent each software state (e.g. pre-release,
> release candidate, release, deprecated, suspended, retired).  These
> repositories are in a single Artifactory instance.  I'm using the Move
> feature as the promotion method.
>
> I need to be able to perform different processing before and after the
> promotion depending on the source and target promotion states.  For
> example:
>
> Promotion:  release-candidate to release
> Before promotion:  Verify that all dependencies are in release status.  If
> not reject the promotion.
> Post-Processing:   Notify consumers of prior version that a new version is
> available
>
> Has anyone used the User Plugin's beforeMove and afterMove events to handle
> this?
>
> Has anyone patched Artifactory to allow for custom functionality to be
> wrapped around the move transaction or a similar storage transaction?
>
> Are there any other suggestions?
> --
> View this message in context:
> http://forums.jfrog.org/Implementing-custom-promotion-move-processing-tp5725226p5725226.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to