I'm building a docker container with spotify's maven plugin and try to push to ecr afterwards.

This happens using cloudbees [Build and Publish](https://plugins.jenkins.io/docker-build-publish) plugin after managing to login with the [Amazon ECR](https://plugins.jenkins.io/amazon-ecr) plugin.

This works like a charm on the jenkins master.
But on the slave I get:

```
no basic auth credentials

Build step 'Docker Build and Publish' marked build as failure

```

Is pushing from slaves out of scope for the ECR Plugin or did I miss something?