[JIRA] [docker-workflow-plugin] (JENKINS-29046) NPE when using withDockerRegistry

2015-08-12 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jesse Glick commented on  JENKINS-29046 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: NPE when using withDockerRegistry  
 
 
 
 
 
 
 
 
 
 
docker.withRegistry is not “advanced”, it is an advertised feature under the docker global variable, the entry point for all functionality in this plugin. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [docker-workflow-plugin] (JENKINS-29046) NPE when using withDockerRegistry

2015-08-04 Thread kennedy.tr...@yahoo.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Tracy Kennedy commented on  JENKINS-29046 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: NPE when using withDockerRegistry  
 
 
 
 
 
 
 
 
 
 
Jesse Glick I meant that even though this step is not meant for end users per the docs, the snippet generator lists it as an option for registering a Docker registry under the Advanced/Deprecated section. I assume `withDockerRegistry` falls under the latter category, but that distinction might not be obvious enough for a newbie who is experimenting and hasn't read the docs yet. 
Perhaps the Advanced/Deprecated sections should be broken out into separate listings, with `withDockerRegistry` clearly plopped into the deprecated section and the preferred `docker.withRegistry` under the Advanced section. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [docker-workflow-plugin] (JENKINS-29046) NPE when using withDockerRegistry

2015-08-03 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jesse Glick commented on  JENKINS-29046 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: NPE when using withDockerRegistry  
 
 
 
 
 
 
 
 
 
 
Tracy Kennedy not following what you are saying. Yes the withDockerRegistry step is listed in Snippet Generator, with documentation explaining that you normally should not use it, and referring you to the docker DSL global variable instead. If you insist on using the step directly anyway, you can use the Snippet Generator to get an example syntax. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [docker-workflow-plugin] (JENKINS-29046) NPE when using withDockerRegistry

2015-08-03 Thread kennedy.tr...@yahoo.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Tracy Kennedy commented on  JENKINS-29046 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: NPE when using withDockerRegistry  
 
 
 
 
 
 
 
 
 
 
Jesse Glick The snippet generator is actually generating the withDockerRegistry([]) step. It's under the Advanced/Deprecated section as Sets up Docker registry endpoint. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [docker-workflow-plugin] (JENKINS-29046) NPE when using withDockerRegistry

2015-07-28 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jesse Glick resolved as Not A Defect 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
Source 
You are passing unrecognized parameters url and credentialsId and not passing the mandatory parameter registry; basically missing [] around the arguments. 
Anyway this step is not designed for end users. Use docker.withRegistry instead, as covered by the inline documentation in Snippet Generator, as well as the manual. 
 
 
 
 
 
 
 
 
 
 Jenkins /  JENKINS-29046 
 
 
 
  NPE when using withDockerRegistry  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jesse Glick 
 
 
 

Status:
 
 Open Resolved 
 
 
 

Resolution:
 
 NotADefect 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [docker-workflow-plugin] (JENKINS-29046) NPE when using withDockerRegistry

2015-06-23 Thread gsym...@gsconsulting.biz (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Greg Symons created an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Jenkins /  JENKINS-29046 
 
 
 
  NPE when using withDockerRegistry  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Jesse Glick 
 
 
 

Components:
 

 docker-workflow-plugin 
 
 
 

Created:
 

 23/Jun/15 9:01 PM 
 
 
 

Environment:
 

 Jenkins 1.609.1   Plugins:  workflow 1.8  docker-workflow 1.0   docker 1.6.2  jenkins itself is running in a docker container; access to docker daemon is through shared host unix socket 
 
 
 

Priority:
 
  Blocker 
 
 
 

Reporter:
 
 Greg Symons 
 
 
 
 
 
 
 
 
 
 
I get a NullPointerException when I try to use the withDockerRegistry step from the docker workflow plugin. 
Workflow: 

 

stage 'Build'

node {
withDockerRegistry(url: 'https://docker-registry.example.com', credentialsId: '69d57484-a048-4ab2-88b1-7483b800bd20') {
  docker.image('docker-registry.example.com/infrastructure/sbt-build').inside {
checkout([$class: 'MercurialSCM',
  credentialsId: '69d57484-a048-4ab2-88b1-7483b800bd20', 
  source:   'https://hg.example.com/my/repo'])
  }
  }
}
 

 
Output: