Patch - Packages builds and updates archiving - V14.5.3

Packages debug and release builds into ZIP archives.

Updates artifact archiving to include only the ZIP packages,
rather than individual executables and DLLs. This simplifies
the artifact management process and reduces storage space.
This commit is contained in:
2025-10-08 15:01:52 +02:00
parent d131c78a59
commit 9515b18d1e

24
Jenkinsfile vendored
View File

@@ -48,14 +48,26 @@ pipeline {
}
}
stage('Package') {
steps {
echo 'Packaging Debug and Release builds into ZIPs'
// Crée un dossier builds
bat 'if not exist "%WORKSPACE%\\builds" mkdir "%WORKSPACE%\\builds"'
// Compresse Debug
bat """
powershell -Command "Compress-Archive -Path '%WORKSPACE%\\**\\Debug\\*' -DestinationPath '%WORKSPACE%\\builds\\KhaoticEngineReborn_Debug.zip' -Force"
"""
// Compresse Release
bat """
powershell -Command "Compress-Archive -Path '%WORKSPACE%\\**\\Release\\*' -DestinationPath '%WORKSPACE%\\builds\\KhaoticEngineReborn_Release.zip' -Force"
"""
}
}
stage('Archive Artifacts') {
steps {
echo 'Archiving build artifacts...'
// Archive les exécutables et DLL générés
archiveArtifacts artifacts: '**/Debug/**/*.exe, **/Release/**/*.exe, **/Debug/**/*.dll, **/Release/**/*.dll',
allowEmptyArchive: true,
fingerprint: true
echo 'Archiving ZIP packages'
archiveArtifacts artifacts: 'builds/*.zip', fingerprint: true
}
}
}