Our software needs to be built on a dedicated agent based on the software version ( below version X, build on agent A, above version X, build on agent
. The "easy" approach would be to create 2 plans with the 2 requirements sets and simply invoke the appropriate plan based on the version we are trying to build. The problem with this approach is that there are now 2 plans ( with 4 stages and a lot of jobs) duplicated : 3 stages are similar and only 1 job differs in one stage. My main concern with this is the space taken by the checkouts on the agents.
Is there a way to "programmatically" update a job requirement ( that would be done in the first stage first job and be used at stage 2) ?
Nassim