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

"Scope is not Valid" Error #27

Closed brett3210 closed 6 years ago

brett3210 commented 6 years ago

Installed product versions

Description

Received the error "Scope is not valid: 'vso.agentpools'"

Steps to recreate

  1. Downloaded older v0.0.2 as per https://marketplace.visualstudio.com/items?itemName=onlyutkarsh.ExportImportBuildDefinition#review-details
  2. Imported it to TFS 2015 Update 3

Current behavior

Received error "Scope is not valid: 'vso.agentpools'". Import/Export menu item doesn't appear in Chrome

Expected behavior

No error

onlyutkarsh commented 6 years ago

Please see my response to similar issue #17 - You need to install the older version of this extension.

brett3210 commented 6 years ago

Thanks, however I can't seem to find a specific reference to an older version in the Issue you've referred to. As per my Issue, I used the older v0.0.2 version. Can you please clarify?

onlyutkarsh commented 6 years ago

Yes, you should use v0.0.2. The vso.agentpools scope is available from Update1 RC2 onwards only. If the upgrade is not feasible for you, you should use the older 0.0.2 version which unfortunately lacks few features.

brett3210 commented 6 years ago

Thanks, however we have already installed v0.0.2 of the Extension, with TFS 2015 Update 3, with the errors mentioned. Can you please clarify how we can get it working?

onlyutkarsh commented 6 years ago

@brett3210 That seems weird. If you see 0.0.2's manifest file you will see the only scopes it requires are as

"scopes": [
        "vso.build_execute",
        "vso.build"
    ],

I am really not getting how the v0.0.2 of the extension can demand vso.agentpools. Can you please share the VSIX file you using?

brett3210 commented 6 years ago

I've tried again and it is working now thanks

onlyutkarsh commented 6 years ago

Glad you got it working! thanks.