Jenkins_Pipeline_Library/vars/BuildBundlesAndroid.groovy
2025-12-25 19:15:49 +08:00

16 lines
714 B
Groovy

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