title: Jenkins: Push to ECR from slave
body: <p>I'm building a docker container with spotify's maven plugin and try to push to ecr afterwards.</p>
  
  <p>This happens using cloudbees <a href="https://plugins.jenkins.io/docker-build-publish" rel="nofollow noreferrer">Build and Publish</a> plugin after managing to login with the <a href="https://plugins.jenkins.io/amazon-ecr" rel="nofollow noreferrer">Amazon ECR</a> plugin.</p>
  
  <p>This works like a charm on the jenkins master.
  But on the slave I get:</p>
  
  <pre><code>no basic auth credentials
  
  Build step 'Docker Build and Publish' marked build as failure
  </code></pre>
  
  <p>Is pushing from slaves out of scope for the ECR Plugin or did I miss something?</p>