How can my first build definition work if it breaks after the “New build queue” in Visual Studio 2010?

I am trying to use my automated coded user interface test (CUIT) with Microsoft Test Manager 2010 in a physical environment.

  • Build definition created
  • Define the unpack folder for Builds and
  • Share this folder as recommended here
  • Created the build service in TFS 2010 as an "Interactive Process".
  • Build controller created
  • Agent created

I don’t remember in which order (in case this is important)

ERRORS FROM MS Visual Studio 2010 (for IMAGE Plese go HERE )

Error One (1)

TF215097: an error occurred while initializing the assembly to determine the assembly \ Test Sample \ Project1BuildOne: there was no listening to the endpoints athttp: // us07ws45510012: 9191 / Build / v3.0 / Services / Controller / 1, This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

or

Error two (2)

Assembly controller us07ws45510012 - The controller does not contain an activated assembly agent with the name * and without tags

ERRORS FROM MS TFS 2010

Error Three (3)

Service 'us07ws45510012 - Agent1 (OR CONTROLLER)' had an exception: Exception message: problem loading custom assemblies: API restriction: build file: /// C: \ Users \ raul.reyes \ AppData \ Local \ Temp \ BuildAgent \ 1 \ TestProject \ obj \ Debug \ TestProject1.dll is already loaded from another location. It cannot be downloaded from a new location within the same application.

If you want to see VISUAL STUDIO 20120 PICTURE Plese Go HERE

+1
source share
1 answer

Regarding error # 2 ( Assembly controller [controller_name] does not contain an activated assembly agent with the name * and without tags ), I encountered this error after re-assigning my assembly controller and creating a new assembly agent with tags.

Tags Definition of assembly definition

When the assembly is in progress, matching is performed with the tags defined in the assembly agent definition. In the assembly definition, this can be viewed / configured as follows:

  • In the Visual Studio IDE, under "Builds" (in Team Explorer), right-click the assembly definition and select "Modify Assembly Definition ..."
  • In the Process section, expand Advanced, then Agent Settings. Pay attention to the "Tag Filter". Here you can select tags and the build agent will be selected based on the tags.

Build Definition settings, Tags Filter expanded

In this case, the error indicates that the assembly definition is looking for "no tags" and exact match ( MatchExactly ). So, does the build agent have tags? If so, either remove them from the assembly agent, or configure the assembly definition to use tags for which the assembly agent will be mapped.

Defining Tags in Build Agent

Tags are defined in the Build agent. They can be modified on the TFS build server (based on the build controller and build agent configured in the build definition).

To define / modify tags in the Build agent, on the TFS build server ...

  • Launch Team Foundation Server Administration Console
  • Go to Build Configuration
  • Locate the assembly agent assigned to the assembly controller used in the assembly definition and select Properties
  • Labels can be created, added and deleted in the Assembly Agent Properties dialog box:

Build agent tag settings

Given the above figures for the configuration of the Build Definition and Build Agent (with only one Build agent), this error will be the result because the assembly definition expects an exact match without tags and the only assembly agent configured for the assembly controller associated with the assembly definition has a specific tag ( 'prototype'). Thus, there is no exact match between 'no tags' and 'prototype'.

+5
source

Source: https://habr.com/ru/post/1441074/


All Articles