Hi everyone,
We are using the Artifactory public api (2.6.6) in a custom Artifactory
promotion plugin, similar to the sample one here
<https://github.com/JFrogDev/artifactory-user-plugins/blob/master/build/promotion.groovy>
.We have an Artifactory server (Artifactory Pro Power Pack 2.6.6 rev. 13183)
using a standard Maven layout but with Ivy metadata instead. We've decided
that we are going to use a version scheme without any maturity information
in it, just the build number, for example: '1.0.0-124'. So the promotion
plugin is not doing much - just changing the "status" in the ivy descriptor
from "integration" to "milestone" and moving the build module's artifacts
from the "snapshot" to the "milestone" repo.So far so good, but we hit an
issue - while moving the module jar artifacts and updating the module with
the new locations works fine, updating the location of the ivy.xml does not
work - the code runs just fine and the artifact is written properly, but the
"Published module" view in Artifactory does not display the proper location
of the ivy descriptor (it should be on the milestone repo), but instead
displays empty location:
<http://forums.jfrog.org/file/n7578539/artifactory_build_view.png>
I tried to skip deleting the original ivy.xml (on the snapshot repository)
and then it displays its location, instead of the new released one - this
makes me think that I have done something wrong when resetting the module's
artifact - but the code is the same for jar artifacts and it works fine - so
the reason is probably because we are modifying the ivy descriptor thus
changing its checksum(s) - I figured that the whole artifacts list is
generated by doing a search using the artifacts' checksums?
I'm attaching the plugin code( BuildPromo.java
<http://forums.jfrog.org/file/n7578539/BuildPromo.java> ), it's not much
different from the example promotion plugin, but who knows, I might be
missing something.Any help is greatly appreciated.
Thanks, Detelin
--
View this message in context:
http://forums.jfrog.org/Issue-with-Artifactory-s-Papi-when-modifying-build-module-s-artifacts-tp7578539.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users