I would like to ask you if someone knows how to create a correct path to powershell in Azure Devops Pipeline Yaml Syntax.
How looks like my YAML (Currently):
trigger:
- develop
pool:
vmImage: 'ubuntu-latest'
steps:
- task: PowerShell@2
inputs:
filePath: './scripts/script.ps1'
How looks like my directory:
What kind of path returns the pipeline:
Get-Content: /home/vsts/work/1/s/scripts/script.ps1:12
What kind of error returns the pipeline:
##[error]PowerShell exited with code '1'.
Correct answer: