Search code examples
powershellcontinuous-integrationazure-devopsbuild-definition

How to pass arguments for powershell script in xaml build definition


For continous delivery, i need to pass two parameters to a powershell script which is planned to run after VSTS build for copying files from drop folder to deploy location. Note that the build server and the server where the files are dropped are different. There is a column named PostBuildScriptArgs in the xaml build template. but could not find from anywhere how to pass two arguments in one column. what is the format for that? can anybody help

my xaml build definition


Solution

  • Pass the parameters with their names. see for example below.

    -Param1Name 'Param1value' -param2Name param2value -verbose
    

    So your one should be

    -Source 'sourcepath' -Destination 'Destinationpath'