Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package multiple layout using matrix parameters #16

Merged
merged 1 commit into from
Nov 11, 2014

Conversation

leki75
Copy link

@leki75 leki75 commented Nov 11, 2014

Package multiple layout using matrix parameters

To support package upload to mulitple distributions and/or
architecture the encode_matrix_parameters should be modified
to handle URL layout specified in Artifactory documentation

For example, to upload package libatk1.0_i386.deb to both wheezy and trusty distributions, in both main and contrib components and both i386 and 64bit-arm architectures you would specify the following Target Path to upload using the UI:

pool/libatk1.0_i386.deb;deb.distribution=wheezy;deb.distribution=trusty;deb.component=main;deb.component=contrib;deb.architecture=i386;deb.architecture=64bit-arm

See Artifactory documentation: Multiple layouts using Matrix Parameters

  * To support package upload to mulitple distributions and/or
    architecture the encode_matrix_parameters should be modified
    to handle URL layout specified in Artifactory documentation

    "For example, to upload package libatk1.0_i386.deb to both
     wheezy and trusty distributions, in both main and contrib
     components and both i386 and 64bit-arm architectures you
     would specify the following Target Path to upload using the UI:

     pool/libatk1.0_i386.deb;deb.distribution=wheezy;
       deb.distribution=trusty;deb.component=main;deb.component=contrib;
       deb.architecture=i386;deb.architecture=64bit-arm"

    http://www.jfrog.com/confluence/display/RTF/Debian+Repositories
    See: Specifying multiple layouts

Change-Id: I25b2c3ed1cf71e25ad1be22e30518306e05e4603
@knazarov
Copy link
Contributor

@leki75 welcome!

Have you tested the code with regular metadata? I mean, not only when uploading .deb packages.
Does it work?

@leki75
Copy link
Author

leki75 commented Nov 11, 2014

Yes I have tested it with Artifactory Pro 3.4.1 and it seems it works properly.

The upstream version handles multiple values per key incorrectly. Due to this the artifactory stores metadata as a string with comma not as a list.

knazarov pushed a commit that referenced this pull request Nov 11, 2014
Package multiple layout using matrix parameters
@knazarov knazarov merged commit 73902fa into Parallels:master Nov 11, 2014
@knazarov
Copy link
Contributor

@leki75 released new version to PyPi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants