We are auto deploying our web application on every commit to a xxx/latest location in IIS and this works great. Every build that gets deployed like this also goes through our automated tests. As such we can tell which build was OK and which is not.
However, we'd like to pick deploy sucessfull builds to xxx/test on occasion for the developer to perform the system test. In essence I'd like fire a (deploy) build that downloads the artifacts and deploys it using msdeploy.exe. How can I pass the build number to the build so that it can download the correct artifact?