Jenkins_Pipeline_Library/vars/archiveArtifact.groovy
2026-03-07 15:07:06 +08:00

20 lines
705 B
Groovy

//=================================================================
// Byway Studios Inc. Confidential Information.
// Copyright Byway Studios Inc. All rights reserved
//=================================================================
def call(publishSubFolder)
{
// Move artifacts to an Android subdirectory and archive
bat """
if exist tmpPublish rmdir /S /Q tmpPublish
mkdir tmpPublish
copy /Y apk\\*.* tmpPublish\\
del /F /S /Q apk\\*.*
if not exist apk\\${publishSubFolder} mkdir apk\\${publishSubFolder}
move /Y tmpPublish\\* apk\\${publishSubFolder}\\
rmdir tmpPublish
"""
archiveArtifacts artifacts: 'apk/**/*', fingerprint: true
}