jenkinsci / fabric-beta-publisher-plugin

DEPRECATED: A Jenkins plugin that lets you publish Android apps to Fabric Beta
MIT License
24 stars 17 forks source link

Custom "Build_version" #39

Closed Matthis2909 closed 5 years ago

Matthis2909 commented 5 years ago

Hi,

For CI, I want custom build_version. I want add BRANCH_NAME at this value.

Is it possible with this plugin ?

egor-n commented 5 years ago

No, there's no way to set a custom build version using this plugin. What should be done instead:

  1. In Jenkins set an environment variable to desirable build version (e.g. CUSTOM_BUILD_NUMBER)
  2. Then, use it in the build.gradle by calling System.getenv("CUSTOM_BUILD_NUMBER")
Matthis2909 commented 5 years ago

How you get version_code ? Where is this File ? I see you Zip apkFile but where is this assets/crashlytic.properties ?

egor-n commented 5 years ago

You shouldn't need the version_code. In you build.gradle file do something like:

versionName "1.0.0" + getCustomVersionName()