diff --git a/Jenkinsfile b/Jenkinsfile index 69a6e9b..0530adb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,51 +22,29 @@ pipeline { stage('Build Debug') { steps { - script { - echo 'Building Khaotic Engine Debug...' - - // Trouve le fichier .sln automatiquement - def slnFile = bat( - script: 'dir /b *.sln', - returnStdout: true - ).trim() - - echo "Building solution: ${slnFile}" - - // Build avec MSBuild - bat """ - "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe" ^ - "${slnFile}" ^ - /p:Configuration=Debug ^ - /p:Platform=x64 ^ - /p:ProductVersion=1.0.${env.BUILD_NUMBER}.0 ^ - /m ^ - /verbosity:minimal - """ - } + echo 'Building Debug...' + bat """ + "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe" ^ + "%WORKSPACE%\\KhaoticEngineReborn.sln" ^ + /p:Configuration=Debug ^ + /p:Platform=x64 ^ + /m ^ + /verbosity:minimal + """ } } - + stage('Build Release') { steps { - script { - echo 'Building Khaotic Engine Release...' - - def slnFile = bat( - script: 'dir /b *.sln', - returnStdout: true - ).trim() - - bat """ - "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe" ^ - "${slnFile}" ^ - /p:Configuration=Release ^ - /p:Platform=x64 ^ - /p:ProductVersion=1.0.${env.BUILD_NUMBER}.0 ^ - /m ^ - /verbosity:minimal - """ - } + echo 'Building Release...' + bat """ + "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe" ^ + "%WORKSPACE%\\KhaoticEngineReborn.sln" ^ + /p:Configuration=Release ^ + /p:Platform=x64 ^ + /m ^ + /verbosity:minimal + """ } }