https://www.jenkins.io/doc/book/system-administration/authenticating-scripted-clients/
will
hopefully get you started.

Richard.

On Wed, 24 Jun 2020 at 16:53, Lokeshwaran <[email protected]> wrote:

> Where do we get this API token from
>
> On Wednesday, June 17, 2015 at 12:50:28 PM UTC+5:30, Sushant Gupta wrote:
>>
>> Hi All,
>>
>> I don't know if anyone tried to login to sso enabled jenkins server from
>> python api.
>>
>> I need to automate jenkins, It is very easy to login to jenkins from
>> python with its local-user/password. But our jenkins server is configured
>> with assembla sso and I am not able to login through jenkins.jenkins python
>> module. Can any oen suggest how to login to jenkins server with third party
>> sso configuration.
>> python api docs:
>> https://python-jenkins.readthedocs.org/en/latest/api.html
>>
>> I am open to use any other module.
>>
>> import jenkins
>> j = jenkins.Jenkins('http://your_url_here', 'username', 'password')
>> j.get_jobs()
>>
>>
>> Regards,
>> Sushant
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/2e41317c-832c-460b-9bbd-4220dc850b60o%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/2e41317c-832c-460b-9bbd-4220dc850b60o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAAy0hwe%3DjSh%2BZD_86NE7dgOWqTvdDD8GVm%3DqAv_wpwondLwkpQ%40mail.gmail.com.

Reply via email to