Search code examples
jenkinscredentialskeychain

Jenkins fails build with 'error storing credentials'


Im getting the following output, noticed that the error doesnt occur when only one build is running, there seem to be a conflict when other builds are running aswell. I have 2 builder.

Using the existing docker config file.Removing blacklisted property: authsRemoving blacklisted property: credsStore$ docker login -u z*******t -p ******** https://docker.pkg.github.com

WARNING! Using --password via the CLI is insecure. Use --password-stdin.

Error saving credentials: error storing credentials - err: exit status 1, out: The specified item already exists in the keychain.


Solution

  • Seems like a solution is to delete from ~/.docker/config.json - "credsStore"