Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Continuous Delivery for Mobile Apps (Android/iO...

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

Continuous Delivery for Mobile Apps (Android/iOS) -DEVOPSDAY Jakarta 2018

Blibli.com mobile apps developer is delivering constant feature and code change, the work of building and submitting mobile apps code to several environment: UAT, Staging and Production to different audience is become repetitive with small value added. So we automate this process using Atlassian Bamboo and Hockey App.

https://www.devopsdays.org/events/2018-jakarta/program/ifnu-bima-fatkhan/

Avatar for Jimmy Harijanto

Jimmy Harijanto

April 26, 2018

Other Decks in Technology

Transcript

  1. Prologue Continuous Delivery for Mobile Apps (Android/iOS) Prologue – The

    Benefits of Continuous Delivery – Chosen Platform – Workflow – Example of Usage
  2. The Benefits of Continuous Delivery Continuous Delivery for Mobile Apps

    (Android/iOS) Prologue – The Benefits of Continuous Delivery – Chosen Platform – Workflow – Example of Usage
  3. The Benefits of Continuous Delivery Keep the build fast Make

    it easy to get the latest builds Avoid last-minute chaos at release dates Everyone can see the results of the latest build
  4. Chosen Platform Continuous Delivery for Mobile Apps (Android/iOS) Prologue –

    The Benefits of Continuous Delivery – Chosen Platform – Workflow – Example of Usage
  5. Chosen Platform Bamboo • Pros: • Integrates well with other

    Atlassian Products • Nice modern interface • Easier to use • Cons: • Expensive • Not so easy to find other users to talk to
  6. Chosen Platform Jenkins • Pros: • Open source and free

    • Comes with a wide range of plugins • Integrates and works with all major tools • Cons: • Unpredictable costs • Lack of governance • No collaborations feature
  7. Workflow Continuous Delivery for Mobile Apps (Android/iOS) Prologue – The

    Benefits of Continuous Delivery – Chosen Platform – Workflow – Example of Usage
  8. Example of Usage Continuous Delivery for Mobile Apps (Android/iOS) Prologue

    – The Benefits of Continuous Delivery – Chosen Platform – Workflow – Example of Usage
  9. Example of Usage Plans on Bamboo Build Pull Requests (for

    safety net with all new code tested and buildable) Using bamboo script plugin ./gradlew --info --stacktrace clean jacocoTestReport -Dorg.gradle.jvmargs=-Xmx2048M --no- daemon -Dkotlin.compiler.execution.strategy="out-of-process“
  10. Example of Usage Plans on Jenkins Daily Build and Upload

    to Playstore Using shell script script #building andriod build cd /opt/Android/workspace/android_build_blibli_app/ ./gradlew clean assembleRelease #signing the app cd <PATH>/app/build/outputs/apk/flavorUnsigned/release/ <PATH_TO_SIGNATURE>sign --<KEYSTORE_PATH> KEYSTORE_NAME.keystore --ks-pass pass:<PASS> --ks-key-alias <ALIAS> <APK_NAME>.apk mv <APK_NAME> <APK_NAME>-${BUILD_NUMBER}.apk
  11. Example of Usage Build & Upload to the HockeyApp/Playstore Source

    Code Checkout Increment Build Version Build and Archive Upload the APK to the HockeyApp / Playstore
  12. Example of Usage 4 Available Plans • Build Pull Requests

    • Build Main Branches • Build, Archive, Export & Upload to the HockeyApp • Build, Archive, Export & Upload to the AppStore
  13. Example of Usage Build, Archive, Export & Upload to the

    AppStore Source Code Checkout Increment Build Version Build and Archive Move All Required Files to a Specific Folder Upload the IPA to the AppStore
  14. Example of Usage Build, Archive, Export & Upload to the

    AppStore • Source Code Checkout • Increment Build Version • Build & Archive • Move All Required Files to a Specific Folder • Upload the IPA to the AppStore
  15. Example of Usage Build, Archive, Export & Upload to the

    AppStore • Source Code Checkout • Increment Build Version • Build & Archive • Move All Required Files to a Specific Folder • Upload the IPA to the AppStore
  16. Example of Usage Build, Archive, Export & Upload to the

    AppStore • Source Code Checkout • Increment Build Version • Build & Archive • Move All Required Files to a Specific Folder • Upload the IPA to the AppStore
  17. Example of Usage Build, Archive, Export & Upload to the

    AppStore • Source Code Checkout • Increment Build Version • Build & Archive • Move All Required Files to a Specific Folder • Upload the IPA to the AppStore