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

Distribute Build action for Docker builds is unsupported

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Steps to reproduce:

      https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-DistributeBuild

      curl -u admin:password -XPOST http://localhost:8081/artifactory/api/build/distribute/dockerpipeline/36 -H "Content-Type: application/json" -T ./text.json

      with text.json:

      {     "publish" : "true",                   "overrideExistingFiles" : "true",        "async" : "false",                        "targetRepo" : "dist-test",                       "dryRun" : "false"                   }

      Returns:

      {
      "message" : "Distribution of dockerpipeline #36 encountered errors: Error distributing docker-local/busybox/2/sha256_8c811b4aec35f259572d0f79207bc0678df4c736eeec50bc9fec37ed936a472a -> registry/busybox/2/busybox/2/sha2568c811b4aec35f259572d0f79207bc0678df4c736eeec50bc9fec37ed936a472a: Illegal manifest.json path: busybox/2/sha256_8c811b4aec35f259572d0f79207bc0678df4c736eeec50bc9fec37ed936a472a, Aborting push of tag.",
      "distributed" : [ {
      "repoName" : "registry",
      "created" : false,
      "type" : "docker",
      "visibility" : "Public",
      "premium" : false,
      "packages" : [ {
      "packageName" : "busybox",
      "created" : false,
      "licenses" : [ "AFL-2.1" ],
      "versions" : [

      { "versionName" : "2", "created" : false, "paths" : [ "docker-local/busybox/2/manifest.json -> registry/busybox/2/busybox/2/manifest.json" ] }

      ]
      } ]
      } ],
      "messagesByPath" : [ {
      "path" : "docker-local/busybox/2/sha256__8c811b4aec35f259572d0f79207bc0678df4c736eeec50bc9fec37ed936a472a",
      "errors" : [

      { "code" : 409, "message" : "Error distributing docker-local/busybox/2/sha256__8c811b4aec35f259572d0f79207bc0678df4c736eeec50bc9fec37ed936a472a -> registry/busybox/2/busybox/2/sha256__8c811b4aec35f259572d0f79207bc0678df4c736eeec50bc9fec37ed936a472a: Illegal manifest.json path: busybox/2/sha256__8c811b4aec35f259572d0f79207bc0678df4c736eeec50bc9fec37ed936a472a, Aborting push of tag." }

      ]
      }, {
      "path" : "docker-local/busybox/2/sha256__07a152489297fc2bca20be96fab3527ceac5668328a30fd543a160cd689ee548",
      "errors" : [

      { "code" : 409, "message" : "Error distributing docker-local/busybox/2/sha256__07a152489297fc2bca20be96fab3527ceac5668328a30fd543a160cd689ee548 -> registry/busybox/2/busybox/2/sha256__07a152489297fc2bca20be96fab3527ceac5668328a30fd543a160cd689ee548: Illegal manifest.json path: busybox/2/sha256__07a152489297fc2bca20be96fab3527ceac5668328a30fd543a160cd689ee548, Aborting push of tag." }

      ]
      } ]
      }

      Note that the REST API actually distributes to bintray, however throws an error. With Jenkins, the distribution fails:

      ERROR: Distribution failed. View Artifactory logs for more details: HTTP/1.1 409 Conflict
      Distribution of dist-test #34 encountered errors: Error distributing docker-local/busybox/2/sha256_8c811b4aec35f259572d0f79207bc0678df4c736eeec50bc9fec37ed936a472a -> registry/busybox/2/busybox/2/sha2568c811b4aec35f259572d0f79207bc0678df4c736eeec50bc9fec37ed936a472a: Illegal manifest.json path: busybox/2/sha256_8c811b4aec35f259572d0f79207bc0678df4c736eeec50bc9fec37ed936a472a, Aborting push of tag.

       

        Attachments

          Activity

            People

            • Assignee:
              danf Dan Feldman
              Reporter:
              mattheww Matthew Wang
              Assigned QA:
              Liza Dashevski (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: