Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

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

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

  1. unity_guru24x7

    unity_guru24x7

    Joined:
    Jul 7, 2019
    Posts:
    1
    Hi

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

    # "deploy.sh"
    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 'deply.sh' 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 deploy.sh etc) ?
    Please guide me how do i achieve this.

    Thanks,
    Saqib
     
    Last edited: Jul 7, 2019