Hi tarun k
As we discussed in private message,
Instead of hardcoding project names, update your script to accept pipeline parameters:
trigger: none
parameters:
- name: projectNames
type: string
default: "Actuarial,Brazil"
- name: groupName
type: string
default: "MyGroup"
variables:
projectNames: "Actuarial,Brazil"
groupName: "MyGroup"
pool:
vmImage: 'windows-latest'
jobs:
- job: RunScript
steps:
- checkout: self
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
$targetProjectNames = "$(projectNames)".Split(',')
$groupName = "$(groupName)"
.\TFS-AzDO\AzDO_PermissionBitUpdate_ManageDeliveryPlans.ps1
Hope this helps!
Please Let me know if you have any queries.
If you found the information helpful, please click "Upvote" on the post to let us know and consider accepting the answer as the token of appreciation. Thank You.