There is a difference between the global variable docker and the defined variable rtDocker which is part of Artifactory jenkins plugin. The correct usage in this instance is docker.withRegistry not rtDocker.withRegistry. Please note that using docker.withRegistry is not designed to work with Artifactory.docker API. Pushing image with Artifactory plugin require setting username and password or credentialsId for Artifactory docker instance and pushing the correct tagged image that includes the registry path, for example: def rtDocker = Artifactory.docker credentialsId: "credentialsPluginId" rtDocker.push("registry/imageName:version", "targetRepositoryNameInArtifactory") More information can be found in the following link: https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+-+Working+With+the+Pipeline+Jenkins+Plugin |