17 lines
754 B
Groovy
17 lines
754 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\\*"
|
|
"""
|
|
|
|
unsafeEcho "execUnityMethod begin"
|
|
//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"
|
|
} |