Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Jenkins build issue - docker autnentication fails #46

Closed
cmoulliard opened this issue Sep 25, 2015 · 0 comments
Closed

Jenkins build issue - docker autnentication fails #46

cmoulliard opened this issue Sep 25, 2015 · 0 comments
Assignees

Comments

@cmoulliard
Copy link
Contributor

When a project is created from the Fabric UI Forge using the CanaryReleaseStageAndApprovePromote.groovy workflow and that we start the build in jenkins of a Camel CDI Project, then we get a docker authentication error

[INFO] Downloaded: http://172.30.200.15:80/content/groups/public/joda-time/joda-time/2.3/joda-time-2.3.jar (568 KB at 166.8 KB/sec)
[INFO] Downloaded: http://172.30.200.15:80/content/groups/public/org/bouncycastle/bcprov-jdk15on/1.51/bcprov-jdk15on-1.51.jar (2777 KB at 812.2 KB/sec)
[INFO] DOCKER> ... Pulling repository docker.io/fabric8/java
[ERROR] DOCKER> Authentication is required.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:23 min
[INFO] Finished at: 2015-09-25T09:56:57+00:00
[INFO] Final Memory: 51M/272M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jolokia:docker-maven-plugin:0.13.2:build (default-cli) on project demo: Authentication is required. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
@rawlingsj rawlingsj self-assigned this Sep 25, 2015
rawlingsj pushed a commit to fabric8io/jenkernetes-docker that referenced this issue Sep 25, 2015
rhuss added a commit to fabric8io/docker-maven-plugin that referenced this issue Oct 6, 2015
If a default login for the registry is configured for authentication this will be used, regardless of the image's username. If no default login is registered, no authentication is used.

This affects only pulling. For push, the default user is extracted from the image name (but can be overwritten with options and config).

This also will fix fabric8io/fabric8-devops#46

Relates to #147
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants