Your suggested file uri format works ... thanks!  Though it seems non
standard (http://en.wikipedia.org/wiki/File_URI_scheme) which is why it
confused me.  If it is passed directly to a java URL object, I would have
thought many of the formats I tried would work.


Anyway, as for the "matching" I'm still trying to digest the nuances of how
jenkins nodes and selenium nodes work together.

Is a "jenkins node" the same as a Jenkins slave?

If so, then if I use the "Match nodes from a label expression" option, I
can associate a specific "selenium node" configuration to a subset of
Jenkins slaves where the Jenkins slave name matches the given label
expression?

So for example, if I have slaves called LinuxSlave-1, LinuxSlave-2,
WindowsSlave-1, WindowsSlave-2 and I have a "selenium node" configuration
with a label expression like "Windows*", then that selenium node
configuration would be sent to all jenkins Windows slaves?

If that is not correct, could you outline an example?

If I have a Jenkins Master with multiple Jenkins slaves, does the SeGrid2
plugin run one "hub" on the master and zero or more seleniuim "hub"s on the
master and/or slaves?

Thank you!

On Wed, Oct 10, 2012 at 4:51 PM, Richard Lavoie <[email protected]>wrote:

> Comments inlined.
>
> On Wed, Oct 10, 2012 at 4:22 PM, Jeff <[email protected]> wrote:
>
>> I'm missing something simple and the documentation for the Selenium Grid
>> Plugin doesn't cover these in any detail.  I'm using the latest Selenium
>> Plugin with Jenkins v1.482.
>>
>> *First:*
>>
>> I can't get the plugin to find my JSON file that I'm trying to use to
>> configure the node.  I've tried the following:
>>
>> C:\.jenkins\SeleniumNodeConfig\nodecfg.json
>> C:/.jenkins/SeleniumNodeConfig/nodecfg.json
>> C:\\.jenkins\\SeleniumNodeConfig\\nodecfg.json
>> file:///C:/.jenkins/SeleniumNodeConfig/nodecfg.json
>> file:////.jenkins/SeleniumNodeConfig/nodecfg.json
>> C:/Temp/nodecfg.json
>> file:///C:/Temp/nodecfg.json
>>
>>
>
> did you try file:/c:/Temp/nodecfg.json ?
>
>
> I'll try to look into it tonight to at least add some examples. I thought
> people would prefer using the HTTP scheme than local files for distributed
> environment.
>
>
>>  But Jenkins throws a NullPointerException during startup in each case:
>>
>> java.lang.NullPointerException
>>  at
>> hudson.plugins.selenium.PluginImpl.getGlobalConfigurationForComputer(PluginImpl.java:598)
>>  at
>> hudson.plugins.selenium.PluginImpl.startSeleniumNode(PluginImpl.java:505)
>> at
>> hudson.plugins.selenium.ComputerListenerImpl.onOnline(ComputerListenerImpl.java:26)
>>  at jenkins.model.Jenkins.<init>(Jenkins.java:832)
>> at hudson.model.Hudson.<init>(Hudson.java:81)
>>  at hudson.model.Hudson.<init>(Hudson.java:77)
>> at hudson.WebAppMain$2.run(WebAppMain.java:214)
>>
>> What am I missing?
>>
>>
>>
>> *Second:*
>>
>> Can anyone explain the "Matching type" setting in the node configuration
>> editor?  I am not grasping what it is "matching" to?  I thought that the
>> configuration is defining the node itself so how or what is it matching to?
>>
>>
>>
> The concept of configurations in this plugin is global to all nodes. It
> will try to apply all the "matching" configurations to every nodes it can
> work on. So when a node comes online, for each configurations defined, it
> will ask the matcher if this configuration is allowed on this node. There
> are currently 3 matchers, All (will run this configuration on all the
> nodes), None (will run it on no nodes, hence disable a configuration) and
> label matching where the configuration will run on this node only if this
> computer label matches the specified label expression.
>
> There is a distinction to make in between a selenium node (a running java
> process on the machine) and the jenkins computer node (the machine
> slave/master that will host the selenium java process)
>
>  While this plugin creates selenium node configurations, the selenium
> configurations are applied to jenkins computer nodes.
>
> Hope that clarifies it.
>
>
> Thanks!
>>
>> --
>> Jeff Vincent
>> [email protected]
>> See my LinkedIn profile at:
>> http://www.linkedin.com/in/rjeffreyvincent
>> I ♥ DropBox <http://db.tt/9O6LfBX> !!
>>
>>
>
>
> --
> Richard Lavoie
> IT consultant / consultant en informatique
>



-- 
Jeff Vincent
[email protected]
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox <http://db.tt/9O6LfBX> !!

Reply via email to