Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some problems were found with the configuration of task ':app:promoteArtifact' (type 'UpdatableTrackLifecycleTask') #1118

Open
cosic opened this issue Jan 25, 2024 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior dontclose Prevents the stale bot from closing this issue/pr

Comments

@cosic
Copy link

cosic commented Jan 25, 2024

Describe the bug

When I try to rollout app I got error:

> Task :app:promoteArtifact FAILED

> Task :commitEditForComDotPetDotMain
Committing changes

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':app:promoteArtifact' (type 'UpdatableTrackLifecycleTask').
  - In plugin 'com.github.triplet.gradle.play.PlayPublisherPlugin$Inject' type 'com.github.triplet.gradle.play.tasks.internal.UpdatableTrackLifecycleTask' property 'extension.commit' doesn't have a configured value.

    Reason: This property isn't marked as optional and no value has been configured.

    Possible solutions:
      1. Assign a value to 'extension.commit'.
      2. Mark property 'extension.commit' as optional.

    For more information, please refer to https://docs.gradle.org/8.5/userguide/validation_problems.html#value_not_set in the Gradle documentation.
  - In plugin 'com.github.triplet.gradle.play.PlayPublisherPlugin$Inject' type 'com.github.triplet.gradle.play.tasks.internal.UpdatableTrackLifecycleTask' property 'extension.defaultToAppBundles' doesn't have a configured value.

    Reason: This property isn't marked as optional and no value has been configured.

    Possible solutions:
      1. Assign a value to 'extension.defaultToAppBundles'.
      2. Mark property 'extension.defaultToAppBundles' as optional.

    For more information, please refer to https://docs.gradle.org/8.5/userguide/validation_problems.html#value_not_set in the Gradle documentation.
  - In plugin 'com.github.triplet.gradle.play.PlayPublisherPlugin$Inject' type 'com.github.triplet.gradle.play.tasks.internal.UpdatableTrackLifecycleTask' property 'extension.enabled' doesn't have a configured value.

    Reason: This property isn't marked as optional and no value has been configured.

    Possible solutions:
      1. Assign a value to 'extension.enabled'.
      2. Mark property 'extension.enabled' as optional.

    For more information, please refer to https://docs.gradle.org/8.5/userguide/validation_problems.html#value_not_set in the Gradle documentation.
  - In plugin 'com.github.triplet.gradle.play.PlayPublisherPlugin$Inject' type 'com.github.triplet.gradle.play.tasks.internal.UpdatableTrackLifecycleTask' property 'extension.resolutionStrategy' doesn't have a configured value.

    Reason: This property isn't marked as optional and no value has been configured.

    Possible solutions:
      1. Assign a value to 'extension.resolutionStrategy'.
      2. Mark property 'extension.resolutionStrategy' as optional.

    For more information, please refer to https://docs.gradle.org/8.5/userguide/validation_problems.html#value_not_set in the Gradle documentation.
  - In plugin 'com.github.triplet.gradle.play.PlayPublisherPlugin$Inject' type 'com.github.triplet.gradle.play.tasks.internal.UpdatableTrackLifecycleTask' property 'extension.track' doesn't have a configured value.

    Reason: This property isn't marked as optional and no value has been configured.

    Possible solutions:
      1. Assign a value to 'extension.track'.
      2. Mark property 'extension.track' as optional.

    For more information, please refer to https://docs.gradle.org/8.5/userguide/validation_problems.html#value_not_set in the Gradle documentation.

How To Reproduce

Plugin configuration from ./app/build.gradle.kts

   plugins {
        id("com.github.triplet.play")
   }

    configure<com.github.triplet.gradle.play.PlayPublisherExtension> {
        serviceAccountCredentials.set(file("$credentialDir/google-play-service-account-key.json"))
        defaultToAppBundles.set(true)
        enabled.set(true)
        commit.set(true)
        resolutionStrategy.set(com.github.triplet.gradle.androidpublisher.ResolutionStrategy.FAIL)
        track.set("beta")
    }

I publish aab into Beta channel as well by.

:app:publishReleaseBundle -Pp_track=beta

(1) After that I try to move and rollout on 5% in production channel:

./gradlew :app:promoteArtifact --from-track beta --promote-track production --release-status inProgress --user-fraction 0.05 --no-configuration-cache 

(2) and after that I try to rollout on 5.1% into production channel:

./gradlew :app:promoteArtifact --from-track production --promote-track production --release-status inProgress --user-fraction 0.051 --no-configuration-cache 

On (1) and (2) task I got the error wich described above.

Versions

  • Gradle Play Publisher: 3.8.6
  • Gradle Wrapper: 8.5
  • Android Gradle Plugin: 8.2.0

Tasks executed

promoteArtifact

Expected behavior

Rollout the app without error.

@cosic cosic added the bug Indicates an unexpected problem or unintended behavior label Jan 25, 2024
@SUPERCILEX SUPERCILEX added the dontclose Prevents the stale bot from closing this issue/pr label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior dontclose Prevents the stale bot from closing this issue/pr
Projects
None yet
Development

No branches or pull requests

2 participants