why not just use a plain sh "docker push foo:tag" step ? I never understood what this docker.xx basic methods where for, as they just replicate the plain docker CLI without extra features
2017-01-20 3:46 GMT+01:00 <jbro...@snapapp.com>: > Hi David! > > I'm not sure that follows. According to the plugin page ( > https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+ > Docker+Pipeline+Plugin), v1.4 includes a change to "Handle recent > deprecation of docker tag --force", so I've got some reason to believe that > it doesn't just run docker commands. I'm certainly not running a docker > command with --force in it. > > Jack > > On Thursday, January 19, 2017 at 7:56:33 PM UTC-5, David Karr wrote: >> >> The plugin just runs docker commands. If the version of docker you >> have installed on the box doesn't support a "--force" parameter, it >> will fail. I have no idea what the history is of that, but it seems >> likely this is the cause of your problem. >> >> On Tue, Jan 17, 2017 at 12:58 PM, <jbr...@snapapp.com> wrote: >> > All right, I was incorrect about one thing- this was NOT due to Docker >> Build >> > & Publish, but Docker Pipeline (formerly CloudBees Docker Pipeline). >> > Supposedly, this was also resolved back in 1.4; I have 1.9.1. Can >> anyone >> > think of why I'm experiencing this issue in Pipeline? >> > >> > Thanks! >> > Jack >> > >> > On Monday, January 16, 2017 at 9:56:55 PM UTC-5, jbr...@snapapp.com >> wrote: >> >> >> >> Hi all, >> >> >> >> I'm running into an issue when executing a job to build and publish an >> >> image to a registry: >> >> >> >> + docker tag --force=true foo:tag foo:tag >> >> unknown flag: --force >> >> See 'docker tag --help'. >> >> >> >> The relevant bit from my Jenkinsfile: >> >> >> >> node { >> >> stage('deploy'){ >> >> git branch: 'feature/branch', credentialsId: 'foo-key', url: >> >> 'g...@github.com:bar/baz.git' >> >> withDockerRegistry([credentialsId: 'ecr:us-east-1:foo-key', url: >> >> 'https://etcetera/']) { >> >> docker.image('foo:tag').push() >> >> } >> >> >> >> Now, I see that the --force=true issue was resolved >> >> (https://issues.jenkins-ci.org/browse/JENKINS-36188), and I've >> confirmed >> >> that my plugin is up to date. Has anyone run into this? I'm planning >> to open >> >> an issue for this unless I'm missing something. >> >> >> >> Thanks! >> >> Jack >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups >> > "Jenkins Users" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an >> > email to jenkinsci-use...@googlegroups.com. >> > To view this discussion on the web visit >> > https://groups.google.com/d/msgid/jenkinsci-users/071e74d8- >> c5e0-4c4e-afb3-3a8e550aea6d%40googlegroups.com. >> > >> > For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jenkinsci-users/0ecdf71e-6627-45e5-bfff-7d30a93d1998%40googlegroups. > com > <https://groups.google.com/d/msgid/jenkinsci-users/0ecdf71e-6627-45e5-bfff-7d30a93d1998%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzkrP50AC8WXZJG1smW4_-YdVv81L1uotmrLDxdSba4ciQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.