Following line is used in my groovy pipeline.
powershell "Invoke-WebRequest -Uri 'https://artifacts.company.int/artifactory/nuget-internal-stable/com/company/Exes.zip' -OutFile 'D:\jenkins\workspace\CompanyServices\Folder\Exes.zip'"
But somehow its now working:
It throws following error:
"Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a receive. At D:\jenkins\workspace\CompanyServices\Folder@tmp\durable-2e2f2b14\powershellScript.ps1:1 char:1"