Hi Tim,
Unfortunately, Artifactory cannot ensure atomcity when deploying batches of
artifacts.
However, there is a way to work around that:
1. Together with the build info
descriptor<http://wiki.jfrog.org/confluence/display/RTF/Build+Integration>,
our Gradle
plugin<http://wiki.jfrog.org/confluence/display/RTF/Gradle+Artifactory+Plugin>
will
publish all the produced artifacts only once the whole build has completed
successfully; this will greatly reduce the number of partial deployments.
2. To ensure that the users resolving from Artifactory will always
resolve from whole sets of artifacts, you should use a staging repository
and promote the artifacts once the build succeeds; that is, deploy all your
artifacts into a sort of "layover" repository (one that users cannot
resolve from) and when the build completes successfully, copy the group of
artifacts to the exposed repository.
If you're using a CI server, this feature is already included in our
Jenkins<https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Artifactory+Plugin+-+Release+Management>,
TeamCity<http://wiki.jfrog.org/confluence/display/RTF/TeamCity+Artifactory+Plugin+-+Release+Management>and
Bamboo<http://wiki.jfrog.org/confluence/display/RTF/Bamboo+Artifactory+Plugin+-+Release+Management>plugins.
Otherwise this operation can be performed manually via our
REST-API<http://wiki.jfrog.org/confluence/display/RTF/Artifactory%27s+REST+API>
.
Cheers,
Noam
On Thu, Apr 5, 2012 at 5:32 PM, Tim Visher <[email protected]> wrote:
> We have a Gradle multi-project build that produces dozens of artifacts
> (Jars). We follow a Maven snapshot development model. The CI build
> continuously publishes new snapshots of these artifacts to
> Artifactory.
>
> 1. Is it possible to publish these artifacts atomically? In other
> words, we don't want a developer build that runs mid-publishing to see
> some of a build's artifacts but not others.
>
> 2. Is this something that the Gradle Artifactory plugin provides? If
> it doesn't, is there another way to get this behavior?
>
> 3. If publishing a build's artifacts fails mid-way, does Artifactory
> ensure that none of the artifacts meant to be published are visible to
> consumers?
>
> Thanks in advance!
>
>
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users