Skip to content

Error "Only releases with status draft may be created on draft app." when no releases are in draft #470

Description

@beeradmoore

I am moving my CI/CD to Azure DevOps, and part of that is moving builds to Azure Pipeline.

My test Android app builds fine but while attempting to distribute to the store I get the error,

Only releases with status draft may be created on draft app.

But the problem is there is only 1 track being used, the internal track, and there is not a build in draft.

Image

This is part of my current azure-pipelines.yml

    - task: GooglePlayRelease@4
      inputs:
        serviceEndpoint: 'GooglePlayConnection'
        track: 'internal'
        applicationId: '$(expectedBundleName)'
        action: 'SingleBundle'
        bundleFile: '$(platformSpecificOutputDirectory)/$(expectedBundleName).aab'
        releaseName: $(Build.BuildID)
        isDraftRelease: false
        changeLogFile: 'defaultReleaseNotes.txt'

If I change isDraftRelease to true it will upload but keep it in a draft state.

If I try follow up by immediately making the draft a completed app with

    - task: GooglePlayStatusUpdate@2
      inputs:
        serviceEndpoint: 'GooglePlayConnection'
        track: 'internal'
        packageName: '$(expectedBundleName)'
        status: 'completed'

but then that will fail with the same error

EDIT: I tried pushing to alpha instead of internal and got the same error even after pushing an app there manually.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions