OK - so this works:
@client = JenkinsApi::Client.new(:server_ip => '10.128.150.11', :server_port => 8080)
puts @client.job.list("^DI_3_PSR")
But this does not:
@client = JenkinsApi::Client.new(:server_url => '
http://awsjenkins.ventyx.abb.com', :server_port => 8080)
puts @client.job.list("^DI_3_PSR")
I, [2014-09-22T17:35:20.693506 #41508] INFO -- : Obtaining jobs matching filter '^DI_3_PSR'
I, [2014-09-22T17:35:20.693622 #41508] INFO -- : GET /api/json
E, [2014-09-22T17:35:20.751151 #41508] ERROR -- : JenkinsApi::Exceptions::NotFound: Requested component is not found on the Jenkins CI server.
/home/aubesul/.rvm/gems/ruby-2.0.0-p451@msd-ji-depinf/gems/jenkins_api_client-1.0.1/lib/jenkins_api_client/client.rb:724:in `handle_exception': Requested component is not found on the Jenkins CI server. (JenkinsApi::Exceptions::NotFound)
from /home/aubesul/.rvm/gems/ruby-2.0.0-p451@msd-ji-depinf/gems/jenkins_api_client-1.0.1/lib/jenkins_api_client/client.rb:336:in `api_get_request'
from /home/aubesul/.rvm/gems/ruby-2.0.0-p451@msd-ji-depinf/gems/jenkins_api_client-1.0.1/lib/jenkins_api_client/job.rb:589:in `list'
from /home/aubesul/work/msd-ji-depinf/ruby/lib/stack/psr_builder.rb:8:in `build'
from /home/aubesul/work/msd-ji-depinf/ruby/lib/stack/psr_builder.rb:14:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'
I will debug source further to see what the problem is...
Any ideas would be much appreciated.
Thanks
Ben