title: Pass variables to build.xml from VSTS build
body: <p>I'm setting up the build pipeline in VSTS (Visual Studio Team Services), and I'm not able to pass a variable to the build. I don't know what the syntax should I use actually to get the variable in the build I guess. I created the variable in the VSTS:<a href="https://i.stack.imgur.com/iHpb0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iHpb0.jpg" alt="VSTS variables"></a>
  I use standard build.xml file:</p>
  
  <pre><code>&lt;project name="Sample usage of Salesforce Ant tasks" default="deployCodeAndRunTests" basedir="." xmlns:sf="antlib:com.salesforce"&gt;
  
  &lt;property file="build.properties"/&gt;
  &lt;property environment="env"/&gt;
  
  &lt;!-- Setting default value for username, password and session id properties to empty string 
       so unset values are treated as empty. Without this, ant expressions such as ${sf.username}
       will be treated literally.
  --&gt;
  &lt;condition property="sf.username" value=""&gt; &lt;not&gt; &lt;isset property="sf.username"/&gt; &lt;/not&gt; &lt;/condition&gt;
  &lt;condition property="sf.password" value=""&gt; &lt;not&gt; &lt;isset property="sf.password"/&gt; &lt;/not&gt; &lt;/condition&gt;
  &lt;condition property="sf.sessionId" value=""&gt; &lt;not&gt; &lt;isset property="sf.sessionId"/&gt; &lt;/not&gt; &lt;/condition&gt;
  
  &lt;taskdef resource="com/salesforce/antlib.xml" uri="antlib:com.salesforce"&gt;
      &lt;classpath&gt;
          &lt;pathelement location="ant-salesforce.jar" /&gt;           
      &lt;/classpath&gt;
  &lt;/taskdef&gt;          
  
  &lt;!-- Deploy code and run tests.  If test fails, rollback deploy. --&gt;
  &lt;target name="deployCodeAndRunTests"&gt;
    &lt;sf:deploy
          username="${sf.username}"
          password="${sf.password}"
          sessionId="${sf.sessionId}"
          serverurl="${sf.serverurl}"
          maxPoll="${sf.maxPoll}"
          deployRoot="..\src"
          testLevel="NoTestRun"
          rollbackOnError="true"
          logType="Detail"/&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>Any suggestion on how to get the variables to the build?</p>