0

I have multiple images managed by SCVMM 2016. I have a build agent that starts and restore one of multiple images using SCVMM then deploys the testagent on this image and starts tests. At the end the Image will be shutdown.

I want to add multiple build agents so I can run tests paralell, how can I prevent two build agents from restoring the same image.

The only idee I head was adding a requirement with the name of the machine. So only that agent would use this machine. But that would require a build agent per image.

lokimidgard
  • 1,039
  • 10
  • 26
  • Do you want to deploy multiple test agents or add multiple build agents? if you just want to run tests paralell, you just need to deploy multiple test agents. And how did you set for the SCVMM task? – Andy Li-MSFT Sep 06 '17 at 05:21
  • Currently I have one Build Agent which deploys one or more test agents to run a functional test task on those (UI tests). I want to add more build agents but prevent that a new build gets started, that resets a vm using scvmm task that is already running tests by another build task. – lokimidgard Sep 06 '17 at 06:25

1 Answers1

1

If you just want to run tests paralell, you can restore multiple VMs and deploy the test agent for each of them. Multiple build agents are not needed.

Assuming the "images" you said are the Checkpoints which shown in SCVMM task.

You can create a release definition with multiple environments set, then restore the image and deploy the test agent separately, or in build definition add the SCVMM task multiple times to restore the image separately.

In the task you can select the Virtual Machine Names and specify the specific Checkpoint Name. So, they will not restore the same image. If that doesn't work, you can also try to use the Action "New Virtual Machine using Template" to create a new machine for deploying the test agent.

Please correctly me if I misunderstand.

enter image description here

Andy Li-MSFT
  • 28,712
  • 2
  • 33
  • 55
  • I want to enable to start a test while other tests are already running. But prevent that a developer actidently runs tests on a machine that is already running tests and so resetting the VM. I have a set of preconfigured VMs on which we can run tests. So I'm not sure if I can use `New Virtual Machine using template`. I will check this. – lokimidgard Sep 06 '17 at 06:34
  • @lokimidgard Yeah, please check that, according to your clarification, `New Virtual Machine using template` should be an option to resolve that. – Andy Li-MSFT Sep 06 '17 at 06:43
  • We are currently looking at this. I hope next week I can tell you this. Sorry that it takes some time. – lokimidgard Sep 07 '17 at 12:13
  • @lokimidgard Looking forward to the successful info. – Andy Li-MSFT Sep 08 '17 at 09:05