How to set android app version by number of build in Jenkins?

后端 未结 4 969
名媛妹妹
名媛妹妹 2021-02-13 12:12

Application is automatically building by jenkins after successful push, but version is always 1.0. Instead of \"0\" I want to insert number of corresponding build in jenkins: 1.

4条回答
  •  星月不相逢
    2021-02-13 12:50

    You have to make some preprocessing of your Manifest or build.gradle.

    Fro example

    1. 1st build step is to run some script to paste version that you need.
    2. 2nd build step is to build you app.

    I recommend you to get a system value that you can determine in each build you have, so you can change version of the app yourself in build configuration.

提交回复
热议问题