-
Bug
-
Resolution: Unresolved
-
Minor
-
None
I'm trying to run powershell script with Start-Job inside via Jenkins Windows slave.
User's credentials are passed into script from Jenkins.
In this scenarion job always finished with powershell error:
The background process reported an error with the following message: .
12:03:05 + CategoryInfo : OpenError: (localhost:String) [], PSRemotingTransportException
12:03:05 + FullyQualifiedErrorId : 2100,PSSessionStateBroken
I can't solution for this, so maybe this is a bug.
[JENKINS-49159] Cannot run Powershell Start-Job with credentials passed from Jenkins
Description |
Original:
I'm trying to run powershell script with Start-Job inside via Jenkins Windows slave. User's credentials is stored at Jenkins. Job always finished with powershell error: The background process reported an error with the following message: . *12:03:05* + CategoryInfo : OpenError: (localhost:String) [], PSRemotingTransportException *12:03:05* + FullyQualifiedErrorId : 2100,PSSessionStateBroken I can't solution for this, so maybe this is a bug. |
New:
I'm trying to run powershell script with Start-Job inside via Jenkins Windows slave. User's credentials are passed into script from Jenkins. In this scenarion job always finished with powershell error: The background process reported an error with the following message: . *12:03:05* + CategoryInfo : OpenError: (localhost:String) [], PSRemotingTransportException *12:03:05* + FullyQualifiedErrorId : 2100,PSSessionStateBroken I can't solution for this, so maybe this is a bug. |
Assignee | New: Pavel Polushin [ pawell ] |
Assignee | Original: Pavel Polushin [ pawell ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: Open [ 1 ] |
I've run into apparently similar issue (going by the error message), although I simply hardcoded the credentials into the script itself.
After reading this, I changed the username format from user to \user and the remote command executed without issues.