Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Creating debug/release apk via gradle (mainTemplate.gradle) using Jenkins

Discussion in 'General Discussion' started by unity_guru24x7, Jul 7, 2019.

  1. unity_guru24x7


    Jul 7, 2019

    I have automate the apk build process via shell scripts as,

    # ""
    echo "Starting build process...................."
    '/C/Program Files/Unity/Editor/Unity.exe' -quit -batchmode -executeMethod MyEditorScript.PerformBuild -nographics -projectPath "./SimpleMobilePlaceholder"
    echo "Ending build process...................."

    I have Jenkins installed with unity3d plugin and doing the above '' tasks via Jenkins, results in an apk generation.
    Now i want to select debug or release builds via jenkins. If i add buildTypes portions in the file mainTemplate.gradle, how can i select it via Jenkins.Do i need to modify or add some script in Unity (like etc) ?
    Please guide me how do i achieve this.

    Last edited: Jul 7, 2019