← Back to team overview

canonical-ci-engineering-notifications team mailing list archive

Re: Jenkins migration to OpenID/SSO phase 2 EOD update

 

Le 29/04/2014 23:28, Larry Works a écrit :
Greetings all,
Hi


The Jenkins instances d-jenkins and q-jenkins have been migrated to
OpenID/SSO authentication. With the migrations of m-jenkins, dmz-jenkins
and dev-jenkins yesterday this means that all of the Jenkins instances
internal to the CI lab are now using OpenID/SSO with the exception of
s-jenkins which will be migrated tomorrow.
[...]

I do most of the job management (creation/update/builds) via scripts with python-jenkins and this is now failing with an authentication error similar to:

Traceback (most recent call last):
File "/home/ubiquity/ubiquity/autopilot/ubiquity-autopilot-runner/jenkins/update-jenkins-job", line 357, in <module>
    main()
File "/home/ubiquity/ubiquity/autopilot/ubiquity-autopilot-runner/jenkins/update-jenkins-job", line 244, in main
    args.update_jobs, args.output, args.dry_run):
File "/home/ubiquity/ubiquity/autopilot/ubiquity-autopilot-runner/jenkins/update-jenkins-job", line 311, in setup_job
    if not jkh.job_exists(jobname):
File "/usr/lib/python2.7/dist-packages/jenkins/__init__.py", line 382, in job_exists
    if self.get_job_name(name) == name:
File "/usr/lib/python2.7/dist-packages/jenkins/__init__.py", line 187, in get_job_name
    urllib2.Request(self.server + JOB_NAME % locals()))
File "/usr/lib/python2.7/dist-packages/jenkins/__init__.py", line 218, in jenkins_open
    'Possibly authentication failed [%s]' % (e.code)
jenkins.JenkinsException: Error in request.Possibly authentication failed [401]

Does anyone know how to make python-jenkins work with OpenID/SSO?

JB.

--
Jean-Baptiste Lallement
Canonical Services Ltd.
IRC: jibel


Follow ups

References