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 } } }