Controlling user Jenkins runs as

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Controlling user Jenkins runs as

Jenkins users mailing list
Apologies in advance for being a noob.

I'm having big problems on our new Jenkins 2 server on Windows 2012 and would really appreciate some advice/help.

I'm trying to run a Powershell script to establish a remote session to another (same domain) Windows 2012 machine. I can do this no trouble at all from the Powershell command line. I installed the Powershell plugin and thought it would be a walk in the park to use that to drive the Powershell script to do what I need. Uh hu....

I get "access denied" messages every time. I think it might be because the Powershell script run by Jenkins is executing as a different user. I have tried injecting user names and passwords into the build - but I'm not confident that the correct user is being selected. I can run local Powershell scripts no trouble, and when I do I can get Powershell to dump the current user name and it's not anything like the user I need it to be for removing to work :-( how the heck can I control which user runs the Powershell code from Jenkins?

Would very much appreciate any clues.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/18d729b1-9371-43e4-921e-0feb141d2520%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Controlling user Jenkins runs as

Jenkins users mailing list
If you're running as a service, change the service settings to run as whichever user you desire. I think it defaults to user 'system' by default.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/abe5bca3-f26c-49dd-8dee-0fc36a4af383%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Controlling user Jenkins runs as

Jenkins users mailing list
Hi,
Thank you. That worked as solved the problem. Much appreciated.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/aef0f85f-e24b-4fb9-b0cc-2f2b70cb172b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Controlling user Jenkins runs as

Rony Mathew
In reply to this post by Jenkins users mailing list
Thank You!! It works.

On Tuesday, 24 May 2016 20:11:36 UTC-4, Niksan wrote:
If you're running as a service, change the service settings to run as whichever user you desire. I think it defaults to user 'system' by default.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/892fb0e4-0f44-4fff-a515-be2f639f54db%40googlegroups.com.