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