Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[hudson-dev] Fwd: How can we execute Hudson\Jenkins Job using logged on user credential

Hi,

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 (.bt 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.
 
-Vijendra


Back to the top