Changeset View
Changeset View
Standalone View
Standalone View
build/jenkins/pipelines/vs2015_autobuild.Jenkinsfile
def AtlasOption = "" | def AtlasOption = "" | ||||
def GlooxOption = "" | def GlooxOption = "" | ||||
def AtlasPrj = "" | |||||
def output = "" | def output = "" | ||||
def jobs = "2" | def jobs = "2" | ||||
pipeline { | pipeline { | ||||
agent { label 'WindowsSlave' } | agent { label 'WindowsSlave' } | ||||
parameters { | parameters { | ||||
booleanParam(name: 'pyrogenesis', defaultValue: true, description: 'Build and commit the main executable.') | booleanParam(name: 'pyrogenesis', defaultValue: true, description: 'Build and commit the main executable.') | ||||
booleanParam(name: 'atlas', defaultValue: false, description: 'Build and commit the AtlasUI library.') | booleanParam(name: 'atlas', defaultValue: false, description: 'Build and commit the AtlasUI library.') | ||||
Show All 23 Lines | stages { | ||||
stage('Setup workspace') { | stage('Setup workspace') { | ||||
steps { | steps { | ||||
bat "del binaries\\system\\pyrogenesis.pdb binaries\\system\\pyrogenesis.exe" | bat "del binaries\\system\\pyrogenesis.pdb binaries\\system\\pyrogenesis.exe" | ||||
script { | script { | ||||
if (env.atlas == 'true') { | if (env.atlas == 'true') { | ||||
echo "atlas is enabled" | echo "atlas is enabled" | ||||
AtlasOption = "--atlas" | AtlasOption = "--atlas" | ||||
AtlasPrj = "/t:AtlasUI" | |||||
bat 'robocopy /MIR C:\\wxwidgets3.0.4\\lib libraries\\win32\\wxwidgets\\lib ^& IF %ERRORLEVEL% LEQ 1 exit 0' | bat 'robocopy /MIR C:\\wxwidgets3.0.4\\lib libraries\\win32\\wxwidgets\\lib ^& IF %ERRORLEVEL% LEQ 1 exit 0' | ||||
bat 'robocopy /MIR C:\\wxwidgets3.0.4\\include libraries\\win32\\wxwidgets\\include ^& IF %ERRORLEVEL% LEQ 1 exit 0' | bat 'robocopy /MIR C:\\wxwidgets3.0.4\\include libraries\\win32\\wxwidgets\\include ^& IF %ERRORLEVEL% LEQ 1 exit 0' | ||||
bat "del binaries\\system\\AtlasUI.dll" | bat "del binaries\\system\\AtlasUI.dll" | ||||
Silier: starts with " ends with '
crap | |||||
} | } | ||||
if (env.gloox == 'true') { | if (env.gloox == 'true') { | ||||
echo "gloox is enabled" | echo "gloox is enabled" | ||||
GlooxOption = "--build-shared-glooxwrapper" | GlooxOption = "--build-shared-glooxwrapper" | ||||
bat "del binaries\\system\\glooxwrapper.pdb binaries\\system\\glooxwrapper.lib binaries\\system\\glooxwrapper.dll" | bat "del binaries\\system\\glooxwrapper.pdb binaries\\system\\glooxwrapper.lib binaries\\system\\glooxwrapper.dll" | ||||
bat "del binaries\\system\\glooxwrapper_dbg.pdb binaries\\system\\glooxwrapper_dbg.lib binaries\\system\\glooxwrapper_dbg.dll" | bat "del binaries\\system\\glooxwrapper_dbg.pdb binaries\\system\\glooxwrapper_dbg.lib binaries\\system\\glooxwrapper_dbg.dll" | ||||
} | } | ||||
if (env.collada == 'true') { | if (env.collada == 'true') { | ||||
echo "collada is enabled" | echo "collada is enabled" | ||||
bat "del binaries\\system\\Collada.dll" | bat "del binaries\\system\\Collada.dll" | ||||
} | } | ||||
output = bat(returnStdout: true, script: 'svnversion source -n').trim() | output = bat(returnStdout: true, script: 'svnversion source -n').trim() | ||||
output = output.readLines().drop(1).join("") | output = output.readLines().drop(1).join("") | ||||
} | } | ||||
bat "cd build\\workspaces && update-workspaces.bat ${AtlasOption} ${GlooxOption} --large-address-aware --jenkins-tests" | bat "cd build\\workspaces && update-workspaces.bat ${AtlasOption} ${GlooxOption} --large-address-aware --jenkins-tests" | ||||
bat "echo L\"${output}\" > build\\svn_revision\\svn_revision.txt" | bat "echo L\"${output}\" > build\\svn_revision\\svn_revision.txt" | ||||
} | } | ||||
} | } | ||||
stage ('Build') { | stage ('Build') { | ||||
steps { | steps { | ||||
bat("cd build\\workspaces\\vc2015 && MSBuild.exe pyrogenesis.sln /m:${jobs} /p:PlatformToolset=v140_xp /t:pyrogenesis /t:test /p:Configuration=Release") | bat("cd build\\workspaces\\vc2015 && MSBuild.exe pyrogenesis.sln /m:${jobs} /p:PlatformToolset=v140_xp /t:pyrogenesis ${AtlasPrj} /t:test /p:Configuration=Release") | ||||
} | } | ||||
} | } | ||||
stage ('Build debug glooxwrapper') { | stage ('Build debug glooxwrapper') { | ||||
when { environment name: 'gloox', value: 'true'} | when { environment name: 'gloox', value: 'true'} | ||||
steps { | steps { | ||||
bat("cd build\\workspaces\\vc2015 && MSBuild.exe pyrogenesis.sln /m:${jobs} /p:PlatformToolset=v140_xp /t:glooxwrapper /p:Configuration=Debug") | bat("cd build\\workspaces\\vc2015 && MSBuild.exe pyrogenesis.sln /m:${jobs} /p:PlatformToolset=v140_xp /t:glooxwrapper /p:Configuration=Debug") | ||||
} | } | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
starts with " ends with '
crap