Jenkins - Pentaho execute script as logged in user

Asked

Viewed 117 times

0

Good afternoon gentlemen,

I’m using Jenkins to run a job in Pentaho, this job runs a script, which simulates user interaction, but as Jenkins runs in the background, it does not associate with any user, and with that the script does not work, there is some possibility, to run by setting the Windows user?

1 answer

0

Oops! You can install the Psexec, to enter the user and password and run the script using the following command:

  psexec \\computername -u domain\user -p password

You can put to run on Jenkins' Job. execute-bat-jenkins

An example of opening an http page through Psexec:

psexec \\computername -u domain\user -p password "C:\Program Files\Internet Explorer\iexplore.exe" https://www.google.com

Browser other questions tagged

You are not signed in. Login or sign up in order to post.