canonical-ci-engineering team mailing list archive
-
canonical-ci-engineering team
-
Mailing list archive
-
Message #00785
Re: [Canonical-ci-engineering-notifications] Jenkins migration to OpenID/SSO phase 2 EOD update
You should be able to use your api token instead of your previous password.
You can get that by clicking on your name in the top right after logging
in, then clicking on configuration on the left side.
On Apr 29, 2014 4:56 PM, "Jean-Baptiste Lallement" <
jean-baptiste.lallement@xxxxxxxxxxxxx> wrote:
> 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
>
> --
> Mailing list: https://launchpad.net/~canonical-ci-engineering-
> notifications
> Post to : canonical-ci-engineering-notifications@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~canonical-ci-engineering-
> notifications
> More help : https://help.launchpad.net/ListHelp
>
References