OctopusDeploy / Library

| Public | A repository of step templates and other community-contributed extensions to Octopus Deploy
Other
171 stars 503 forks source link

"Slack - Detailed Notification" broken on Windows Powershell 4.x #1508

Closed danschreck closed 6 months ago

danschreck commented 6 months ago

Step template

Slack - Detailed Notification

Step version

No response

Octopus version

cloud - 2024.2

Step template parameter inputs

No response

What happened

Fails with:

InvalidArgument: A parameter cannot be found that matches parameter name 'UseBasicParsing'. 
At C:\Octopus\Work\SY7BnVVSUm60epq1okuuQ\Script.ps1:186 char:126

Because Invoke-RestMethod which did not have a 'UseBasicParsing' switch in powershell 4

Reproduction steps

run on a worker with powershell 4

More Information

Discussed on Slack #advice channel with Mark Harrison on 5/1/24 at 3:16 PM.