--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/77fc4aec-b6ab-4828-9a83-01def2d05263%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
See Authenticating Scripted Clients page on the wiki.
On 4/2/2015 12:22 PM, Murthy Gandikota wrote:
Hi All
I am trying to run a shell script in a project as root. Without security enabled it runs fine.With security using Jenkins database -- no fancy LDAP or anything--- enabled, the script fails thus:
$ /bin/sh -xe /tmp/hudson8715135757129650687.sh
+ echo root
root
+ chmod a+x ./myscript.sh
+ ./myscript.sh
There doesn't need to be a root user in Jenkins - just make sure the username and token you pass through in the script are valid to perform the functions you require on the Jenkins server.
I think the examples given in the URL should be enough to show what parameters need to be passed in the HTTP request with your language/HTTP-client of choice?
Richard
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6494dd27-adcc-41f0-88df-6c4f8d0f5297%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.'