Re: Running Jenkins jobs in command line

2016-09-22 Thread Daniel Beck

> On 22.09.2016, at 19:38, Indra Gunawan (ingunawa)  wrote:
> 
> If you want your user to crash/shut down your Jenkins with a groovy script 
> that does “System.exit(0)” then you go ahead allow CLI (run jenkins from 
> command line)

While this is theoretically possible, it requires extensive permissions on the 
side of the user: Overall/Administer or Overall/RunScripts are needed to access 
the Script Console or use the Groovy-related CLI methods. Regular users are not 
allowed to do this -- use something like Matrix Authorization Strategy Plugin 
to implement fine-grained permissions control.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/AE550450-CBDB-4B7B-B0A3-74F0608CC9FE%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Running Jenkins jobs in command line

2016-09-22 Thread Indra Gunawan (ingunawa)
If you want your user to crash/shut down your Jenkins with a groovy script that 
does "System.exit(0)" then you go ahead allow CLI (run jenkins from command 
line)

From: 
mailto:jenkinsci-users@googlegroups.com>> on 
behalf of Bubunia Patra 
mailto:bubunia2000s...@gmail.com>>
Reply-To: 
"jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Date: Thursday, September 22, 2016 at 10:32 AM
To: Jenkins Users 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Running Jenkins jobs in command line

Hi all,

One of the opensource tool will trigger the Jenkins job from command line and 
update the results. I googled and found some articles:

http://techieroop.com/run-jenkins-build-from-command-line/
http://www.ittybittytalks.com/how-to-automate-your-jenkins-build-script/

Can some one tell me how effective running jenkins from command line based on 
that i can decide ?

Thanks in advance.

Regards
Pradeep

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/aafc2970-ee6d-4317-9d73-0bece74cbf69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D40964E8.5D66D%25ingunawa%40cisco.com.
For more options, visit https://groups.google.com/d/optout.