-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
windows
I am not able to login vcenter through jenkins,outside of jenkins script is working properly. i enabled remote execution as well.Error throwing like not able to login vcenter.
Started by user
Dipsmita Das
[EnvInject] - Loading node environment variables.
Building in workspace C:\Program Files (x86)\Jenkins\workspace\powershell
[powershell] $ powershell.exe -NonInteractive -ExecutionPolicy ByPass "& 'C:\WINDOWS\TEMP\jenkins3351442832204363723.ps1'"
Get-PSSnapin : No Windows PowerShell snap-ins matching the pattern 'VMWare.VimAutomation.Core' were found. Check the
pattern and then try the command again.
At C:\WINDOWS\TEMP\jenkins3351442832204363723.ps1:1 char:10
+ if(-not (Get-PSSnapin VMWare.VimAutomation.Core))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (VMWare.VimAutomation.Core:String) [Get-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : NoPSSnapInsFound,Microsoft.PowerShell.Commands.GetPSSnapinCommand
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.
At C:\WINDOWS\TEMP\jenkins3351442832204363723.ps1:3 char:2
+ Add-PSSnapin VMWare.VimAutomation.Core
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (VMWare.VimAutomation.Core:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
WARNING: Please consider joining the VMware Customer Experience Improvement Program, so you can help us make PowerCLI a
better product. You can join using the following command:
Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true
VMware's Customer Experience Improvement Program ("CEIP") provides VMware with information that enables VMware to
improve its products and services, to fix problems, and to advise you on how best to deploy and use our products. As
part of the CEIP, VMware collects technical information about your organization's use of VMware products and services
on a regular basis in association with your organization's VMware license key(s). This information does not personally
identify any individual.
For more details: type "help about_ceip" to see the related help article.
To disable this warning and set your preference use the following command and restart PowerShell:
Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true or $false.
Connect-VIServer : 7/24/2018 10:24:03 PM Connect-VIServer Could not determine user name and/or password for server
icdslabvc.icdslab.net
At C:\WINDOWS\TEMP\jenkins3351442832204363723.ps1:6 char:1
+ Connect-VIServer icdslabvc.icdslab.net -user $UserName -Password $Pa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( [Connect-VIServer], ViServerConnectionException
+ FullyQualifiedErrorId : ViCore_Login_CredentialNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.ConnectVISe
rver
Get-VMHost : 7/24/2018 10:24:04 PM Get-VMHost You are not currently connected to any servers. Please connect first
using a Connect cmdlet.
At C:\WINDOWS\TEMP\jenkins3351442832204363723.ps1:9 char:1
+ Get-VMHost
+ ~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: ( [Get-VMHost], ViServerConnectionException
+ FullyQualifiedErrorId : Core_BaseCmdlet_NotConnectedError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVMHost
Get-VMHost : 7/24/2018 10:24:04 PM Get-VMHost You are not currently connected to any servers. Please connect first
using a Connect cmdlet.
At C:\WINDOWS\TEMP\jenkins3351442832204363723.ps1:12 char:1
+ Get-VMHost| Export-CSV C:\temp\VMHosts.csv
+ ~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: ( [Get-VMHost], ViServerConnectionException
+ FullyQualifiedErrorId : Core_BaseCmdlet_NotConnectedError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVMHost
Finished: SUCCESS