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.
Asked
Active
Viewed 2,464 times
1
-
Possible duplicate: https://stackoverflow.com/questions/36997494/vsts-pass-build-variables-into-powershell-script-task – veddermatic Jan 09 '18 at 16:12
2 Answers
2
Refer to these steps below:
- Add a variable in build definition
- Check Settable at queue time option
- Specify that variable in Batch Script task

starian chen-MSFT
- 33,174
- 2
- 29
- 53
-
-
I have one more question here.. Can i add drop down variables like Jenkins? – Kalesh Es Jan 29 '18 at 08:04
-
-
-
There isn't the alternative way, you can submit the user voice here: https://visualstudio.uservoice.com/forums/330519-team-services?category_id=145254 – starian chen-MSFT Jan 29 '18 at 09:54
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
-
I have one more question here.. Can i add drop down variables like Jenkins? – Kalesh Es Jan 29 '18 at 08:04