DockerPush Fails from Jenkins to Jfrog Docker Registry

Viewed 278

We have a docker image say xyz:latest which needs to be pushed to my docker registry xxx.com at repo "docker-local" via Jenkins Pipeline

Things were working fine earlier but after updating the artifactory plugins over Jenkins, we are facing the issue with

"INFO: The search failed with "Failed to retrieve repository configuration 'docker-local': HTTP/1.1 400 Bad Request"."

With reference to the code given at (https://www.jfrog.com/confluence/display/JFROG/Setting+Up+Docker+Build-info), more particularly the step 3 part of it, can someone please explain out what does it exactly mean??

// Step 3: Push the image to Artifactory.
// Make sure that <artifactoryDockerRegistry> is configured to reference <targetRepo> Artifactory repository. In cas
    def buildInfo = rtDocker.push '<artifactoryDockerRegistry>/hello-world:latest', '<targetRepo>'.

What my values currently for them are:

artifactoryDockerRegistry: "xxx.com/docker-local/xyz:latest"
targetRepo: "docker-local"

Somehow I land-up with the error as mentioned in the comments section of Step3 above.

Can someone please help me with a generic example as to what should the values be??

0 Answers
Related