I've an android project that has 2 flavours defined. How can I make a build via Jenkins with a specific flavour? This are my flavours in the build.graddle:
productFlavors{
flavour 1 {
applicationId "app_id"
resValue "string", "app_name", "Flavour 1 app name"
.......
}
flavour 2 {
applicationId "app_id2"
resValue "string", "app_name", "Flavour 2 app name"
.......
}
}
this is how I build it in jenkins:
Thank you in advance!
Your task currently tells gradle to do a clean build of all release flavors:
clean build assembleRelease
You can change this to build only one flavor, using the code below. See the Gradle User Guide for more info.
clean build assembleFlavor1Release
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With