Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pass multiple arguments to Command line in VSTS

I am using Command line in VSTS in the Release pipeline. Unfortunately not sure how to pass multiple arguments like "username", "password" and "siteurl" to the command line

like image 396
Scarlet959 Avatar asked Oct 26 '25 22:10

Scarlet959


1 Answers

If you are using Command Line task, you can use the format $(variablename) to pass argument.

Such as below example:

enter image description here


For passing multiple variables in the Command Line task, the format is still $(variablename).

Such as, the command line script can be:

echo "Please enter your user name: $(username). Please enter to you password: $(password). Please enter the site url: $(siteurl)"
like image 56
Marina Liu Avatar answered Oct 29 '25 20:10

Marina Liu