I don't think this is possible. Do you use docker with your build? You could could use docker save or export and move containers/images between stages by archiving them as part of the first stage (ideally you'd just archive a reference to a container registry). I have experimented with this as we have large Gradle MonoRepo that can run across one of many build agents some of which appear elastically. Fresh builds on these agents builds can take a while to run even though they may be triggered by a very minor commit. By exporting an image from the last successful build it should be possible for us to incrementally build every time regardless of which agent picks it up..
Another option might be to martial which agent gets allocated through the Elastic Agent API.. d. On Wednesday, May 10, 2017 at 5:20:28 PM UTC+12, Naash wrote: > > Hi all, > > I am using your product and it is smooth. Thanks for a great product. I > need a little guidance in the following: > > I have many pipelines and many agents. For a given pipelines, there are > multiple agents which can run its jobs and they are identified by setting > the proper "resource" tag in job settings and also tagging the agents with > the same resource-tag. > > What I want is that for a given pipeline once an agent is picked for the > first stage, all subsequent stages should use the same agent. > > In other words, suppose agents A and B are both tagged with "resource-tag" > R and the pipeline P has two stages S1 and S2 with jobs that are configured > to use the resource R. In this scenario it is possible that S1 runs on A > and S2 on B. What I woould like to configure is that S1 picks agent A or B > depending on availabilty and S2 will then use the same agent that S1 picked. > > It might be trivial, but I have not been able to configure this. Any > guidance or tip will be hugely appreciated. > > Thanks and regards > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
