Search code examples
tfssonarqubetfsbuildtfs-2015sonarqube-scan

Use variables in build step configuration


I am using the new agent build system with TFS 2015 and TFS "15" and have SonarQube tasks in my build to do source code analysis.
Now I would like to increase the version sent to SonarQube on every build. I tried the following to achive that:
enter image description here
But that does not work - the version is sent to SonarQube as it is there and not with the inserted build id.
How can I pass an increasing version number to SonarQube?


Solution

  • Did you try $(Build.BuildNumber)?
    Any way, all the available build variables can be found here