onlyutkarsh / ExportImportBuildDefinition

Export and Import your build definitions. Useful for recreating all the build steps, variables, schedules, etc in a different team project/account.
http://bit.ly/exportimportbuild
Other
17 stars 8 forks source link

Error after import: "Cannot read property 'length' of undefined" #40

Closed BastiaanMolsbeck closed 6 years ago

BastiaanMolsbeck commented 6 years ago

Installed product versions

Description

Error "Cannot read property 'length' of undefined" after importing a build definition in a VSTS account, which was exported from a different VSTS account. The build definition is about a Xamarin Android project and consists of the following tasks:

Steps to recreate

  1. Export the build definition from a VSTS account
  2. Log in in a different VSTST account
  3. Go to Builds
  4. Click Import
  5. Choose the export file and click Import

Current behavior

After the import an error is shown: Cannot read property 'length' of undefined

Expected behavior

No error should be shown, the build definition should be correctly imported

Additional information

The marketplace build tasks "Version assemblies" and "Google Play - Release" have been added to the targtet VSTS account before trying to import the build definition.

BastiaanMolsbeck commented 6 years ago

This issue can be closed. It was caused by using the wrong (built-in) import functionality of VSTS, which uses a different JSON structure.