react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Promote deployment with version consistency across deployment channels

Open rnagella opened this issue 7 years ago • 2 comments

Hi there,

When promoting a staging deployment to production deployment, the version is not preserved.

Ex:

  • v1 is released to staging.
  • v2 is released to staging.
  • promoted v2 from staging to production. But the version number is denoted as v1 on production.

Is there a flag to promote staging to production with version consistency ?

Following are the reasons why I would feel it is needed -

  1. It helps to upload once single source of truth for bug tracking tools like Bugsnag for various deployment channel (staging, qa, beta, production)
  2. Promote to various channels with same version across deployment channel to enable back tracking of what release was promoted to production from staging or various channels.

rnagella avatar Jan 26 '19 20:01 rnagella

Hi @rnagella, Thanks for reporting!

Yeah, it is expected behaviour as numbering should starting from 1 for each deployment. It is require for keeping consistency for each deployments as CodePush just take the last available release by label. Costumers can promote promote release or make new release from cli and there should be increased version. But if CodePush will keep promoting version it can break consistency. My recommendation for your situation is using --description filed of release for putting some version information of your release and do not worry about label version as it is just for CodePush. Please check this docs for more info: https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli#description-parameter

Please let me know if it was helpful or you have any questions.

Thanks, Alexander

alexandergoncharov-zz avatar Jan 28 '19 06:01 alexandergoncharov-zz

@alexandergoncharov "But if CodePush will keep promoting version it can break consistency." - can you elaborate on why promoting will break consistency ?

rnagella avatar Jan 28 '19 18:01 rnagella