Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-16969

CLONE Distributing a docker build to Bintray fails with REST API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Distributing a docker build to Bintray fails with REST API (or using the jenkins DSL) has issues:

      Steps to reproduce:

      -create distribution repo, use default rules

      -create a docker build

      -try to use https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DistributeBuild or https://www.jfrog.com/confluence/display/RTF/Working+With+Pipeline+Jobs+in+Jenkins#WorkingWithPipelineJobsinJenkins-DistributingBuildArtifacts for the build.

      -see that the API errors out (see curl.txt and jenkins.txt). The curl request seems to distribute to Bintray with a partial success (you see the image in the bintray repo), however using the Jenkins API completely fails.

      -Workaround: add docker.repoName and docker.manifest properties to all layers of the artifacts in the build

        Attachments

        1. curl.txt
          4 kB
        2. jenkins.txt
          2 kB

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            mattheww Matthew Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: