Azure-pipelines-tasks: AppCenterDistributeV3 should use new appcenter-cli (>2.7.0)

Created on 9 Dec 2020  路  13Comments  路  Source: microsoft/azure-pipelines-tasks

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: AppCenterDistributeV3

Environment

  • Server - Azure Pipelines or TFS on-premises?
    Azure DevOps Server
    Version Dev17.M153.5
    Selfhosted - Windows 10 Enterprise 1909

  • Agent - Hosted or Private:
    Private Agents - macOS Catalina 10.15.17 / Windows 10 Enterprise 1909

Issue Description

The AppCenter API which is used in Task AppCenterDistributeV3 is deprecated since 08.12.20. The Task should use the new appcenter-cli >2.7.0 instead.

Task logs

2020-12-09T06:44:03.7576653Z ##[debug]Evaluating condition for step: 'Deploy ############.apk to Visual Studio App Center'
2020-12-09T06:44:03.7577444Z ##[debug]Evaluating: succeeded()
2020-12-09T06:44:03.7577627Z ##[debug]Evaluating succeeded:
2020-12-09T06:44:03.7577885Z ##[debug]=> True
2020-12-09T06:44:03.7578244Z ##[debug]Result: True
2020-12-09T06:44:03.7578598Z ##[section]Starten: Deploy ############.apk to Visual Studio App Center
2020-12-09T06:44:03.7764513Z ==============================================================================
2020-12-09T06:44:03.7764665Z Task : App Center-Verteilung
2020-12-09T06:44:03.7764769Z Description : Hiermit verteilen Sie App-Builds 眉ber App Center an Tester und Benutzer.
2020-12-09T06:44:03.7764874Z Version : 3.154.1
2020-12-09T06:44:03.7764955Z Author : Microsoft Corporation
2020-12-09T06:44:03.7765061Z Help : Hilfe zu dieser Aufgabe finden Sie auf der Visual Studio App Center-Supportwebsite.
2020-12-09T06:44:03.7765431Z ==============================================================================
2020-12-09T06:44:03.9211002Z ##[debug]agent.workFolder=D:\Agent\ADOSAgent_work
2020-12-09T06:44:03.9243254Z ##[debug]loading inputs and endpoints
2020-12-09T06:44:03.9251806Z ##[debug]loading ENDPOINT_AUTH_eb76da0a-98a1-463b-96e2-dba441fc4fe0
2020-12-09T06:44:03.9262190Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_eb76da0a-98a1-463b-96e2-dba441fc4fe0_APITOKEN
2020-12-09T06:44:03.9264181Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2020-12-09T06:44:03.9265980Z ##[debug]loading ENDPOINT_AUTH_SCHEME_eb76da0a-98a1-463b-96e2-dba441fc4fe0
2020-12-09T06:44:03.9267597Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2020-12-09T06:44:03.9268944Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2020-12-09T06:44:03.9270115Z ##[debug]loading INPUT_APP
2020-12-09T06:44:03.9271202Z ##[debug]loading INPUT_APPSLUG
2020-12-09T06:44:03.9272640Z ##[debug]loading INPUT_DESTINATIONTYPE
2020-12-09T06:44:03.9273853Z ##[debug]loading INPUT_DSYMPATH
2020-12-09T06:44:03.9275393Z ##[debug]loading INPUT_ISMANDATORY
2020-12-09T06:44:03.9276623Z ##[debug]loading INPUT_ISSILENT
2020-12-09T06:44:03.9277828Z ##[debug]loading INPUT_MAPPINGTXTPATH
2020-12-09T06:44:03.9279229Z ##[debug]loading INPUT_PACKPARENTFOLDER
2020-12-09T06:44:03.9281500Z ##[debug]loading INPUT_PDBPATH
2020-12-09T06:44:03.9282930Z ##[debug]loading INPUT_RELEASENOTESFILE
2020-12-09T06:44:03.9284837Z ##[debug]loading INPUT_RELEASENOTESINPUT
2020-12-09T06:44:03.9286022Z ##[debug]loading INPUT_RELEASENOTESSELECTION
2020-12-09T06:44:03.9287250Z ##[debug]loading INPUT_SERVERENDPOINT
2020-12-09T06:44:03.9288310Z ##[debug]loading INPUT_SYMBOLSPATH
2020-12-09T06:44:03.9291219Z ##[debug]loading INPUT_SYMBOLSTYPE
2020-12-09T06:44:03.9294746Z ##[debug]loading SECRET_KEYSTOREPASSWORD
2020-12-09T06:44:03.9299518Z ##[debug]loaded 22
2020-12-09T06:44:04.3994273Z ##[debug]System.DefaultWorkingDirectory=D:\Agent\ADOSAgent_work\3\s
2020-12-09T06:44:04.4004206Z ##[debug]check path : D:\Agent\ADOSAgent_work_tasks\AppCenterDistribute_b832bec5-8c27-4fef-9fb8-6bec8524ad8a\3.154.1\task.json
2020-12-09T06:44:04.4005876Z ##[debug]set resource file to: D:\Agent\ADOSAgent_work_tasks\AppCenterDistribute_b832bec5-8c27-4fef-9fb8-6bec8524ad8a\3.154.1\task.json
2020-12-09T06:44:04.4005991Z ##[debug]system.culture=de-DE
2020-12-09T06:44:04.4031980Z ##[debug]serverEndpoint=eb76da0a-98a1-463b-96e2-dba441fc4fe0
2020-12-09T06:44:04.4033091Z ##[debug]eb76da0a-98a1-463b-96e2-dba441fc4fe0=https://api.mobile.azure.com/v0.1
2020-12-09T06:44:04.4036499Z ##[debug]eb76da0a-98a1-463b-96e2-dba441fc4fe0 auth param apitoken = *
2020-12-09T06:44:04.4036622Z ##[debug]MSDEPLOY_HTTP_USER_AGENT=TFS_4dc1c0a9-2ced-4415-883e-0bc375a78365_build_5_0
2020-12-09T06:44:04.4036925Z ##[debug]Effective API Url: https://api.mobile.azure.com/v0.1
2020-12-09T06:44:04.4038579Z ##[debug]appSlug=##############
2020-12-09T06:44:04.4041764Z ##[debug]app=D:\Agent\ADOSAgent_work\3\b\DevRelease##############
2020-12-09T06:44:04.4043449Z ##[debug]symbolsType=Apple
2020-12-09T06:44:04.4049012Z ##[debug]dsymPath=D:\Agent\ADOSAgent_work\3\s
2020-12-09T06:44:04.4050530Z ##[debug]packParentFolder=false
2020-12-09T06:44:04.4051636Z ##[debug]releaseNotesSelection=input
2020-12-09T06:44:04.4052714Z ##[debug]releaseNotesInput=Branch: develop
Git-Hash: 8faeb0a05a574a343b71d1b049d843da35fe86c0
Commit-Message: #####################
2020-12-09T06:44:04.4055021Z ##[debug]isMandatory=false
2020-12-09T06:44:04.4056176Z ##[debug]destinationType=groups
2020-12-09T06:44:04.4057356Z ##[debug]destinationGroupIds=null
2020-12-09T06:44:04.4057623Z ##[debug]Effective destinationIds: 00000000-0000-0000-0000-000000000000
2020-12-09T06:44:04.4067929Z ##[debug]isSilent=false
2020-12-09T06:44:04.4068425Z ##[debug]---- Resolving a single path
2020-12-09T06:44:04.4069654Z ##[debug]------- Resolving multiple paths
2020-12-09T06:44:04.4069939Z ##[debug]....... path pattern: D:\Agent\ADOSAgent_work\3\b\DevRelease#########
2020-12-09T06:44:04.4076291Z ##[debug]system.defaultWorkingDirectory=D:\Agent\ADOSAgent_work\3\s
2020-12-09T06:44:04.4076546Z ##[debug]defaultRoot: 'D:\Agent\ADOSAgent_work\3\s'
2020-12-09T06:44:04.4077525Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2020-12-09T06:44:04.4077769Z ##[debug]findOptions.followSymbolicLinks: 'true'
2020-12-09T06:44:04.4079795Z ##[debug]matchOptions.debug: 'false'
2020-12-09T06:44:04.4079907Z ##[debug]matchOptions.nobrace: 'true'
2020-12-09T06:44:04.4080737Z ##[debug]matchOptions.noglobstar: 'false'
2020-12-09T06:44:04.4080932Z ##[debug]matchOptions.dot: 'true'
2020-12-09T06:44:04.4081086Z ##[debug]matchOptions.noext: 'false'
2020-12-09T06:44:04.4081227Z ##[debug]matchOptions.nocase: 'true'
2020-12-09T06:44:04.4081383Z ##[debug]matchOptions.nonull: 'false'
2020-12-09T06:44:04.4083053Z ##[debug]matchOptions.matchBase: 'false'
2020-12-09T06:44:04.4083490Z ##[debug]matchOptions.nocomment: 'false'
2020-12-09T06:44:04.4083630Z ##[debug]matchOptions.nonegate: 'false'
2020-12-09T06:44:04.4083798Z ##[debug]matchOptions.flipNegate: 'false'
2020-12-09T06:44:04.4086557Z ##[debug]pattern: 'D:\Agent\ADOSAgent_work\3\b\DevRelease############'
2020-12-09T06:44:04.4112583Z ##[debug]findPath: 'D:\Agent\ADOSAgent_work\3\b\DevRelease###########'
2020-12-09T06:44:04.4112835Z ##[debug]statOnly: 'true'
2020-12-09T06:44:04.4113479Z ##[debug]found 1 paths
2020-12-09T06:44:04.4113625Z ##[debug]applying include pattern
2020-12-09T06:44:04.4122362Z ##[debug]1 matches
2020-12-09T06:44:04.4123258Z ##[debug]1 final results
2020-12-09T06:44:04.4124665Z ##[debug]....... selectedPaths: D:\Agent\ADOSAgent_work\3\b\DevRelease############
2020-12-09T06:44:04.4125767Z ##[debug]....... uniquePaths: D:\Agent\ADOSAgent_work\3\b\DevRelease############
2020-12-09T06:44:04.4126040Z ##[debug]check path : D:\Agent\ADOSAgent_work\3\b\DevRelease############
2020-12-09T06:44:04.4127807Z ##[debug]VSMobileCenterUpload.ContinueIfSymbolsNotFound=undefined
2020-12-09T06:44:04.4128961Z ##[debug]-- Expanding symbols path pattern to a list of paths
2020-12-09T06:44:04.4129226Z ##[debug]------- Resolving multiple paths
2020-12-09T06:44:04.4129337Z ##[debug]....... path pattern: D:\Agent\ADOSAgent_work\3\s
2020-12-09T06:44:04.4129740Z ##[debug]system.defaultWorkingDirectory=D:\Agent\ADOSAgent_work\3\s
2020-12-09T06:44:04.4129869Z ##[debug]defaultRoot: 'D:\Agent\ADOSAgent_work\3\s'
2020-12-09T06:44:04.4129985Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2020-12-09T06:44:04.4130089Z ##[debug]findOptions.followSymbolicLinks: 'true'
2020-12-09T06:44:04.4130243Z ##[debug]matchOptions.debug: 'false'
2020-12-09T06:44:04.4130413Z ##[debug]matchOptions.nobrace: 'true'
2020-12-09T06:44:04.4131565Z ##[debug]matchOptions.noglobstar: 'false'
2020-12-09T06:44:04.4131665Z ##[debug]matchOptions.dot: 'true'
2020-12-09T06:44:04.4131751Z ##[debug]matchOptions.noext: 'false'
2020-12-09T06:44:04.4131813Z ##[debug]matchOptions.nocase: 'true'
2020-12-09T06:44:04.4131877Z ##[debug]matchOptions.nonull: 'false'
2020-12-09T06:44:04.4131944Z ##[debug]matchOptions.matchBase: 'false'
2020-12-09T06:44:04.4132005Z ##[debug]matchOptions.nocomment: 'false'
2020-12-09T06:44:04.4132288Z ##[debug]matchOptions.nonegate: 'false'
2020-12-09T06:44:04.4132364Z ##[debug]matchOptions.flipNegate: 'false'
2020-12-09T06:44:04.4132434Z ##[debug]pattern: 'D:\Agent\ADOSAgent_work\3\s'
2020-12-09T06:44:04.4134590Z ##[debug]findPath: 'D:\Agent\ADOSAgent_work\3\s'
2020-12-09T06:44:04.4134704Z ##[debug]statOnly: 'true'
2020-12-09T06:44:04.4135732Z ##[debug]found 1 paths
2020-12-09T06:44:04.4136184Z ##[debug]applying include pattern
2020-12-09T06:44:04.4137716Z ##[debug]1 matches
2020-12-09T06:44:04.4137882Z ##[debug]1 final results
2020-12-09T06:44:04.4138487Z ##[debug]....... selectedPaths: D:\Agent\ADOSAgent_work\3\s
2020-12-09T06:44:04.4140197Z ##[debug]....... uniquePaths: D:\Agent\ADOSAgent_work\3\s
2020-12-09T06:44:04.4143239Z ##[debug]-- Prepare symbols
2020-12-09T06:44:04.4203171Z ##[debug]-- Prepare for uploading release.
2020-12-09T06:44:04.4203690Z ##[debug]---- url: https://api.mobile.azure.com/v0.1/apps/############/############/release_uploads
2020-12-09T06:44:05.0138921Z ##[debug]---- "{\"code\":\"gone\",\"message\":\"This API is deprecated. Please use the latest version of the App Center CLI: https://github.com/microsoft/appcenter-cli, or if you need a custom script please use the CLI as the basis for your implementation. (Support ID: 2d384f59-3006-4870-8a76-5215df0e2275)\"}"
2020-12-09T06:44:05.0139649Z ##[debug]---- http call status code: 410
2020-12-09T06:44:05.0176034Z ##[debug]task result: Failed
2020-12-09T06:44:05.0177317Z ##[error]"{\"code\":\"gone\",\"message\":\"This API is deprecated. Please use the latest version of the App Center CLI: https://github.com/microsoft/appcenter-cli, or if you need a custom script please use the CLI as the basis for your implementation. (Support ID: 2d384f59-3006-4870-8a76-5215df0e2275)\"}"
http response code: 410
2020-12-09T06:44:05.0178158Z ##[debug]Processed: ##vso[task.issue type=error;]"{\"code\":\"gone\",\"message\":\"This API is deprecated. Please use the latest version of the App Center CLI: https://github.com/microsoft/appcenter-cli, or if you need a custom script please use the CLI as the basis for your implementation. (Support ID: 2d384f59-3006-4870-8a76-5215df0e2275)\"}"%0D%0Ahttp response code: 410
2020-12-09T06:44:05.0179206Z ##[debug]Processed: ##vso[task.complete result=Failed;]"{\"code\":\"gone\",\"message\":\"This API is deprecated. Please use the latest version of the App Center CLI: https://github.com/microsoft/appcenter-cli, or if you need a custom script please use the CLI as the basis for your implementation. (Support ID: 2d384f59-3006-4870-8a76-5215df0e2275)\"}"%0D%0Ahttp response code: 410
2020-12-09T06:44:05.0339820Z ##[section]Abschlie脽en: Deploy ############.apk to Visual Studio App Center

Error logs

2020-12-09T06:44:05.0177317Z ##[error]"{\"code\":\"gone\",\"message\":\"This API is deprecated. Please use the latest version of the App Center CLI: https://github.com/microsoft/appcenter-cli, or if you need a custom script please use the CLI as the basis for your implementation. (Support ID: 2d384f59-3006-4870-8a76-5215df0e2275)\"}"
http response code: 410

AppCenter bug

Most helpful comment

Our workaround was to add an NPM task to the beginning of the release.
install appcenter-cli -g

All 13 comments

Same issue here.

Microsoft Visual Studio Team Foundation Server
Version 16.131.28226.3

I wrote to their support yesterday telling them we are using their distribute task in TFS and it is failing.
The response I received was just that we needed to use the latest CLI versions (2.7.0 or above) or if we use a pipeline task from ADO we need to use the App Center Distribute Task, which I already told them we are using.
I replied this morning, so I'm looking forward to their response today.

Hello I have same problem. I am using:
Azure DevOps Server 2019 17.153.29522.3 (AzureDevOps2019.Update1.1
and
Task : App Center distribute
Version : 3.154.1

Same issue here. Task only allows to select version 3.* and ends up being a lower version than the fixed version

@Edgaras91 thx for link on appcenter-cli I forgot :)

I am running the latest version using Azure DevOps with a hosted agent and I'm still getting issues. You can check it out here: https://github.com/microsoft/azure-pipelines-tasks/issues/14053

Our workaround was to add an NPM task to the beginning of the release.
install appcenter-cli -g

Same issue

Our workaround was to add an NPM task to the beginning of the release.
install appcenter-cli -g

This doesn't work for me. I also install the new cli on all my agents but there is still the deprecated error message.
The task use the API with HTTP Post request and not the cli commands. Therefore i don't unterstand why this step is fixing the problem for you.

New Answer from AppCenter Support:

We apologize for the inconvenience and issues with the deprecation of the App Center Release Upload APIs and corresponding deprecation of old versions of the App Center CLI and other clients that talked to these APIs. The deprecation was tied to the HockeyApp shutdown as these APIs rely on HockeyApp backend services.

We have heard your feedback and we are temporarily restoring the old APIs until Feb 1, 2021. We are rolling this change out right now as we speak. By Feb 1, 2021, you will have to have migrated to the App Center CLI, latest version of the Azure DevOps task, or use the UI to upload your releases. All of these mechanisms use the new APIs and we strongly encourage you to use those - the App Center CLI has a reference implementation of using the new set of APIs for release upload.

The APIs that will be deprecated are:
POST /v0.1/apps/{owner_name}/{app_name}/release_uploads
PATCH /v0.1/apps/{owner_name}/{app_name}/release_uploads/{upload_id}
We will be taking the following additional steps based on your feedback:
We will add documentation for the new APIs for uploading releases that will help developers that cannot use the CLI https://docs.microsoft.com/en-us/appcenter/distribution/uploading
We will update the status page again as we get closer to Feb 1, 2021 to remind folks of this deprecation
Again we apologize for the inconvenience - please let us know if you have additional questions.
App Center Team
https://status.appcenter.ms/incidents/7930rkfgtg1y

AppCenter still says thay we should use the latest version of the Azure DevOps task which is currently the AppCenterDistributeV3 which is still using the soon to be obsolete API

If i understand it right than there is a newer Version of the Distribution task but the azure devops server version installed at our machine could not fetch the new minor version. The version which actual run at our machine is 3.154.1 but the AppCenter Support says we must use 3.173.0 as you can see on the image below.
image

Maybe it is possible to update the main system to get the new minor version from the build tasks.
At the following link i found a hack to bumping the version of the task. But for me there is no change for the version number in the log.
https://github.com/microsoft/azure-pipelines-tasks/blob/master/docs/taskversionbumping.md

I also understood that we need to update the task to 3.173.0.

We are also using the dev-ops server (on-premise). How can we update the version of the task to 3.173.0? Does it self-update? Do we need to update our dev ops?

Do we just need to wait for the task to be updated by itself? as can only select version 3.*

Please someone confirm.

Was this page helpful?
0 / 5 - 0 ratings