In this scenario we want to access predefined variable $Build.Reason
from the PowerShell script. $Build.Reason
will have different value based on what triggered the build.
Map $Build.Reason
to env variable for the powershell script.
- powershell: |
.\scripts\git-package.ps1