I need to be able to kick off a custom build based on a dependent builds value (a specific Perforce CL number), but it appears there is no way to do that in a project itself. How does the custom build dialogue pass the info from the 'Last Change' drop down?
I have a specific build that runs and publishes an artifact, and would like to kick off a different build at the same Perforce CL/Sources of the build that generated the artifact, but without using an snapshot dependency. The snapshot dependency makes the build time too long, as we have constant changes being submitted and a snapshot will kick off another dependenct build at the latest sources (which adds significant time to the builds)
Basically I want to make the second build kick off at the same Perforce changelist as the build that published the artifact.
1: 'Dev' build runs at the head CL and if successful, publishes and artifact. - This build runs continuously throughout the day
2: 'Dev2' needs to start and sync the sources at the same CL as 'Dev' by consuming the dependent build.vcs.numer (%dep.BuildsDev.build.vcs.number%) - This build only runs twice per day
I have the build number as a variable (%dep.BuildsDev.build.vcs.number%) available in 'Dev2', but I cannot see a way to pass that value of %dep.BuildsDev.build.vcs.number% to the sync command. I had tried passing that to the "Label/revision to checkout", but that expects a label or CL number so for builds that need to sync to head each time, that option will not work. (not to mention it appears it is not evaluated until after the build starts).