Actualiser Jenkinsfile
This commit is contained in:
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
@@ -22,53 +22,31 @@ 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
|
||||
echo 'Building Debug...'
|
||||
bat """
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe" ^
|
||||
"${slnFile}" ^
|
||||
"%WORKSPACE%\\KhaoticEngineReborn.sln" ^
|
||||
/p:Configuration=Debug ^
|
||||
/p:Platform=x64 ^
|
||||
/p:ProductVersion=1.0.${env.BUILD_NUMBER}.0 ^
|
||||
/m ^
|
||||
/verbosity:minimal
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Release') {
|
||||
steps {
|
||||
script {
|
||||
echo 'Building Khaotic Engine Release...'
|
||||
|
||||
def slnFile = bat(
|
||||
script: 'dir /b *.sln',
|
||||
returnStdout: true
|
||||
).trim()
|
||||
|
||||
echo 'Building Release...'
|
||||
bat """
|
||||
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe" ^
|
||||
"${slnFile}" ^
|
||||
"%WORKSPACE%\\KhaoticEngineReborn.sln" ^
|
||||
/p:Configuration=Release ^
|
||||
/p:Platform=x64 ^
|
||||
/p:ProductVersion=1.0.${env.BUILD_NUMBER}.0 ^
|
||||
/m ^
|
||||
/verbosity:minimal
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Archive Artifacts') {
|
||||
steps {
|
||||
|
||||
Reference in New Issue
Block a user