Re: Jenkins-job-builder - getting started problems

2013-07-30 Thread Harsh Desai
I am trying to use jenkins job builder to manage my jenkins instance. 
However, JJB can't even connect to my jenkins due to a URL open error. Can 
anybody help me here?

root@infra-puppet:/etc/jenkins_jobs# jenkins-jobs -l debug test 
configs/jj-test-sanity.yml 

DEBUG:root:Reading config from /etc/jenkins_jobs/jenkins_jobs.ini
DEBUG:root:Config: ConfigParser.ConfigParser instance at 0x9e8396c
DEBUG:jenkins_jobs.builder:Parsing YAML file configs/jj-test-sanity.yml
DEBUG:jenkins_jobs.builder:XMLifying job 'jj-test-sanity'
Traceback (most recent call last):
  File /usr/local/bin/jenkins-jobs, line 9, in module
load_entry_point('jenkins-job-builder==0.0.334.1ac0507', 
'console_scripts', 'jenkins-jobs')()
  File 
/usr/local/lib/python2.7/dist-packages/jenkins_job_builder-0.0.334.1ac0507-py2.7.egg/jenkins_jobs/cmd.py,
 
line 102, in main
output_dir=options.output_dir)
  File 
/usr/local/lib/python2.7/dist-packages/jenkins_job_builder-0.0.334.1ac0507-py2.7.egg/jenkins_jobs/builder.py,
 
line 442, in update_job
if (self.jenkins.is_job(job.name)
  File 
/usr/local/lib/python2.7/dist-packages/jenkins_job_builder-0.0.334.1ac0507-py2.7.egg/jenkins_jobs/builder.py,
 
line 380, in is_job
return self.jenkins.job_exists(job_name)
  File 
/usr/local/lib/python2.7/dist-packages/python_jenkins-0.2-py2.7.egg/jenkins/__init__.py,
 
line 267, in job_exists
self.get_job_info(name)
  File 
/usr/local/lib/python2.7/dist-packages/python_jenkins-0.2-py2.7.egg/jenkins/__init__.py,
 
line 150, in get_job_info
response = self.jenkins_open(urllib2.Request(self.server + 
JOB_INFO%locals()))
  File 
/usr/local/lib/python2.7/dist-packages/python_jenkins-0.2-py2.7.egg/jenkins/__init__.py,
 
line 174, in jenkins_open
return urllib2.urlopen(req).read()
  File /usr/lib/python2.7/urllib2.py, line 126, in urlopen
return _opener.open(url, data, timeout)
  File /usr/lib/python2.7/urllib2.py, line 400, in open
response = self._open(req, data)
  File /usr/lib/python2.7/urllib2.py, line 423, in _open
'unknown_open', req)
  File /usr/lib/python2.7/urllib2.py, line 378, in _call_chain
result = func(*args)
  File /usr/lib/python2.7/urllib2.py, line 1240, in unknown_open
raise URLError('unknown url type: %s' % type)
*urllib2.URLError: urlopen error unknown url type: https*



On Tuesday, May 21, 2013 3:48:56 PM UTC-7, lfast wrote:

 Thanks.  I eventually figured out that even after failing to load, JJB 
 thinks the job is up to date.  My work-around was to disable the up-to-date 
 check.  But it took some digging to find the active python code in

 /usr/lib/python2.6/site-packages/jenkins_job_builder-0.4.0.64.g56083ed-py2.6.egg/jenkins_jobs/builder.py



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




Re: Jenkins-job-builder - getting started problems

2013-05-21 Thread lfast
Thanks.  I eventually figured out that even after failing to load, JJB 
thinks the job is up to date.  My work-around was to disable the up-to-date 
check.  But it took some digging to find the active python code in
/usr/lib/python2.6/site-packages/jenkins_job_builder-0.4.0.64.g56083ed-py2.6.egg/jenkins_jobs/builder.py



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




Jenkins-job-builder - getting started problems

2013-05-09 Thread lfast1
I'm just starting down the road of using jenkins-job-builder and I believe
I'm having API connection problems.  Unfortunately, even with logging set to
debug, I don't get any messages about my connection.

My commandline:
jenkins-jobs -l debug --conf /etc/jenkins-jobs/jenkins_jobs.ini update
/etc/jenkins-jobs my_1stjob.yaml

My jenkins.ini:

[jenkins]
user=lfast
password=932890938230438983
url=http://localhost:8080

I can even change the url string to something meaningless and jenkins-jobs
reports no error. No matter what I do, no jobs are getting created on my
server.

How should I go about debugging my connection problems?




--
View this message in context: 
http://jenkins.361315.n4.nabble.com/Jenkins-job-builder-getting-started-problems-tp4665583.html
Sent from the Jenkins users mailing list archive at Nabble.com.

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