From 9515b18d1e3d51be3b76a477e4f77afd7a9a4e9f Mon Sep 17 00:00:00 2001 From: CatChow0 Date: Wed, 8 Oct 2025 15:01:52 +0200 Subject: [PATCH] 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. --- Jenkinsfile | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0530adb..6c90a9e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 } } }