Is there a way to set a project variable only on the deploy to the first environment in a particular lifecycle and then reuse the value of that variable throughout the rest of the lifecycle deployments? The particular use case that I have is a legacy monolithic deploy that does not use NuGet because it’s huge. As I have it configured now, there’s a “BuildNumber” variable which I use in a URL to pull a zip file over HTTP. I prompt for this variable at each deployment. But what I’d really like is for it to prompt only on the deployment to the first environment and then use that value for the rest of the lifecycle. This would prevent human error.
An alternative approach I am considering is using the fourth “octet” in the Release number (e.g. 2015.9.0.434 where 434 is the build number). But I’m not sure I like that idea as much.
Comments and suggestions welcome!