|How can we execute Hudson\Jenkins Job using logged on user credential [message #1064814]
||Fri, 21 June 2013 04:26
| Vijendra Patil
Registered: June 2013
I need to execute few of the Hudson\Jenkins jobs such as "Release to Production" through Hudson\Jenkins UI using logged on user credential. The reason is, its the Support Team Members who have access to the production boxes, so in order to deploy any code base to production, all the Windows Deploy Commands (ex, create, update files, folder etc.) needs to be run with specific user credential who has access to the Production Box.
I tried using parameterized plugin but couldn't able to pass the Password successfully to the batch file which contains MSDeploy instructions.
I checked Role based security plugin, but that doesn't help me much. I just need a plugin which should ask for user to provide their credential before start building the Job and should use the user credential to get the job executed, so that my MSDeploy command will be able to deploy the code on Production boxes, when the Support team member build that Job using their credential. I wish there was support for impersonation. Using "psexec" is very unsecure mechanism to get the Job(.bat file) executed.
Right now all the Hudson\Jenkins Jobs are getting executed using the service account which the Tomcat service is configured to run with on which Hudson\Jenkins is hosted.
Any help would be appreciated.
Powered by FUDForum
. Page generated in 0.04243 seconds