Jalon <[email protected]> writes:
> For reasons I just don't want to type out, I'm trying to write a Gradle task
> that will upload build info to Artifactory after artifacts have been
> uploaded.
>
> I have verified that the file I'm creating contains all the correct data,
> including the correct MD5 and SHA1 values for the artifacts themselves
> (verified by checking the artifacts in the repo artifact tree, one by one).
>
> The problem is that Artifactory (Artifactory Pro Power Pack 3.9.4 (rev.
> 30226)) isn't associating the build info with said artifacts.  How can I
> tell?  Because when I go to Artifacts -> Builds -> <my build name> -> <my
> build number> -> Published Modules, then click on a module name and the
> "Repo Path" field is blank for all artifacts.

I recently went down a similar path at work, and encountered the same
symptoms -- artifacts weren't associated with the build-info metadata
even though the MD5 and SHA1 checksums matched.

In my case, I missed the fact that individual artifact uploads need the
build.name, build.number and build.timestamp attributes to be provided.
Specifying the artifacts' MD5 and SHA1 checksums in build-info metadata
is necessary but not sufficent.

   --jtc

FWIW, while I was working on this project, I thought there should be a
more formal definition of the build-info metadata than was provided in
the REST API documentation. 

To help fill this gap, I contributed a JSON schema definition to the
github build-info project (https://github.com/JFrogDev/build-info). I
use the schema to validate the build-info metadata before I upload it
to Artifactory. This may be of use to you and others who are writing
their own build integrations.

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to