1

I want to pass few arguments to the VSTS build tasks while queue a build (The same way we do for Jenkins). How can i do that. I want to read a comma seperated string and want to pass that argument to a Windows Batch Script task in VSTS build job. I am new to VSTS, someone please help.

Community
  • 1
  • 1
Kalesh Es
  • 53
  • 1
  • 5
  • Possible duplicate: https://stackoverflow.com/questions/36997494/vsts-pass-build-variables-into-powershell-script-task – veddermatic Jan 09 '18 at 16:12

2 Answers2

2

Refer to these steps below:

  1. Add a variable in build definition
  2. Check Settable at queue time option

enter image description here

  1. Specify that variable in Batch Script task

enter image description here

starian chen-MSFT
  • 33,174
  • 2
  • 29
  • 53
0

On the Variables tab, add a variable and check the "Settable at queue time" box. The variable will then appear in the queue build dialog, and will appear as an environment variable in your script.

Jonathan Myers
  • 789
  • 4
  • 12