Jenkins_Pipeline_Library/vars/BuildBundlesAndroid.groovy
2025-12-29 18:06:36 +08:00

18 lines
772 B
Groovy

//=================================================================
// Byway Studios Inc. Confidential Information.
// Copyright Byway Studios Inc. All rights reserved
//=================================================================
def call(config){
echo("clear AB begin")
//Clean any previously build asset bundles
bat """
if exist "${WORKSPACE}\\AB" del /F /S /Q "${WORKSPACE}\\AB\\*"
"""
echo("execUnityMethod begin")
//Generate AssetBundle to AB //params: is Clean packageCache,Build Method
execUnityMethod_Windows(config.alwaysClearPackageCache, "${config.execUnityMethod}")
//stash in pipeline , maybe wait to make differents
//stash allowEmpty: true, includes: '**/AB/**', name:"${config.name}_bundles_android"
}