I am trying to install the msi package through jenkins on a remote computer. Both the msi file and the powershell script are located on the remote computer. From jenkins (this is another machine) using powershell plugin trying to use command
Invoke-Command -ComputerName $ env: client -ScriptBlock {param ($ mach, $ u, $ p) c: \ install \ scripts \ Install_msi.ps1 -database $ mach -username $ u -password $ p} - Credential $ cred -Authentication CredSSP -Args $ env: database, $ env: username, $ env: password
This is an application created by the company, packaged in msi format. This msi package has an application, and also runs C ++ dbsetup.exe, which installs the database.
When I run the powershell script install_msi.ps1 at the powershell command prompt as an administrator directly on the remote computer, it installs the application, including dbsetup.exe, launched and installed the databases.
The problem is that I am trying to do the same with jenkins, it installs only part of the application, but does not start dbsetup.exe, and the databases are not installed. However, I see from the task manager that dbsetup.exe is running, and the status is displayed as running, but none of the databases are installed.
Using Powershell v4, a Windows Server 2012 R2 standard. Jenkins v1.612
The Jenkins server is on one domain, and the remote computer is on a different domain.
I am out of ideas. Any suggestions on how to solve this problem would be great.