Fwd: [jenkinsci-docs] jenkins reload configuration from disk using command line with google Login either Oauth2

7 views
Skip to first unread message

Shrinivas Devarkonda

unread,
Oct 19, 2017, 2:25:01 AM10/19/17
to jenkins...@googlegroups.com
Hi Jenkins Users Group,

Kindly help us on this ticket "jenkins reload configuration from disk using command line with google Login either Oauth2".

=============================================

Hi All,

We are using jenkins with "configure global security" and Access Control --> security Realm --> Login with google with client_id, client_secret and google apps domain "ourdomain.com".

Everything is working fine , Email who are @ourdomain.com are able to access jenkins.

We want to achieve following by using command line.   

** We are changing deploy ips in config.xml from command line which is effected in jenkins console ,so the solution is either reload or restart or reload configuration from disk.

/etc/init.d/jenkins reload  ( this actually restarts jenkins , so we can not use this ) , 

So only one way is "jenkins reload configuration from disk" either from jenkins UI or command line.   From jenkins UI it works fine.

We need to do the same from command line.    I tried by using below line and it fails as Google Login Auth is required.

/etc/alternatives/java -jar jenkins-cli.jar -s http://10.10.1.7:8080 reload-configuration
error : hudson.security.AccessDeniedException2: anonymous is missing the Overall/Read permission


Please help us how to do this.

Thanks,
Shrinivas Devarkonda
Manager - DevOps.


=============================




---------- Forwarded message ----------
From: Jesse Glick <jgl...@cloudbees.com>
Date: Wed, Oct 18, 2017 at 11:23 PM
Subject: Re: [jenkinsci-docs] jenkins reload configuration from disk using command line with google Login either Oauth2
To: shrinivas....@via.com
Cc: jenkins...@googlegroups.com


I think you meant to use jenkinsci-users@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Documentation" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-docs/9_h88eBmaBg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-docs+unsubscribe@googlegroups.com.
To post to this group, send email to jenkinsci-docs@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-docs/CANfRfr1Q28H8oLYdZB9bEbD7pOBvY6LPH%3D7v_R5ayQG0CWQgrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--

Thanks and Regards,

via-com-logo.png (106×50)

Shrinivas Devarkonda  |  Manager - Infrastructure .


E: shrinivas....@via.com  |  M: +91 - 9663361030.




Reply all
Reply to author
Forward
0 new messages