[JIRA] (JENKINS-44143) ECR plugin: no basic auth credentials

2018-02-21 Thread ifernandezca...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ivan Fernandez Calvo commented on  JENKINS-44143  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: ECR plugin: no basic auth credentials   
 

  
 
 
 
 

 
 I forgot to put this workaround here, this removes the docker credentials before create new ones from Amazon ECR 

 

node {
//cleanup current user docker credentials
sh 'rm  ~/.dockercfg || true'
sh 'rm ~/.docker/config.json || true'

//configure registry
docker.withRegistry('https://ID.ecr.eu-west-1.amazonaws.com', 'ecr:eu-west-1:86c8f5ec-1ce1-4e94-80c2-18e23bbd724a') {
  
//build image
def customImage = docker.build("my-image:${env.BUILD_ID}")

//push image
customImage.push()
}
 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-44143) ECR plugin: no basic auth credentials

2018-02-20 Thread jenk...@lugoues.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Peter Brunner commented on  JENKINS-44143  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: ECR plugin: no basic auth credentials   
 

  
 
 
 
 

 
 Tom Manterfield a question for you, if you will. I too ran into this problem and noticed that the $JENKINS_HOME that this ECR plugin runs with differed from the $JENKINS_HOME that the docker plugin used. This essentially caused the config.json to be written to one place while docker looked in another. Was this the case for you too?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.