mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Unbreak the nightly build
This moves the nightly build to a new Windows autobuilder running a recent Windows Server version. In this new environment, the Jenkins agent runs as a normal user connected through SSH. This fixes #7148. Use the opportunity to use svn directly instead of Jenkins' scm step, which hangs for 30 min.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
// This pipeline is used to generate the nightly builds.
|
||||
|
||||
def visualStudioPath = "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe\""
|
||||
def visualStudioPath = "\"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\Bin\\MSBuild.exe\""
|
||||
def buildOptions = "/p:PlatformToolset=v141_xp /p:XPDeprecationWarning=false /t:pyrogenesis /t:AtlasUI /m:2 /nologo -clp:Warningsonly -clp:ErrorsOnly"
|
||||
|
||||
def gitHash = ""
|
||||
@@ -26,7 +26,7 @@ def buildSPIRV = false
|
||||
pipeline {
|
||||
agent {
|
||||
node {
|
||||
label 'WindowsAgent'
|
||||
label 'WindowsAgentNew'
|
||||
customWorkspace 'workspace/nightly-build'
|
||||
}
|
||||
}
|
||||
@@ -66,8 +66,8 @@ pipeline {
|
||||
stage ("Pre-build") {
|
||||
steps {
|
||||
bat "cd libraries && get-windows-libs.bat"
|
||||
bat "(robocopy C:\\wxwidgets3.2.5\\lib libraries\\win32\\wxwidgets\\lib /MIR /NDL /NJH /NJS /NP /NS /NC) ^& IF %ERRORLEVEL% LEQ 1 exit 0"
|
||||
bat "(robocopy C:\\wxwidgets3.2.5\\include libraries\\win32\\wxwidgets\\include /MIR /NDL /NJH /NJS /NP /NS /NC) ^& IF %ERRORLEVEL% LEQ 1 exit 0"
|
||||
bat "(robocopy E:\\wxWidgets-3.2.6\\lib libraries\\win32\\wxwidgets\\lib /MIR /NDL /NJH /NJS /NP /NS /NC) ^& IF %ERRORLEVEL% LEQ 1 exit 0"
|
||||
bat "(robocopy E:\\wxWidgets-3.2.6\\include libraries\\win32\\wxwidgets\\include /MIR /NDL /NJH /NJS /NP /NS /NC) ^& IF %ERRORLEVEL% LEQ 1 exit 0"
|
||||
bat "cd build\\workspaces && update-workspaces.bat --atlas --without-pch --large-address-aware --without-tests"
|
||||
}
|
||||
}
|
||||
@@ -98,8 +98,8 @@ pipeline {
|
||||
stage("Mirror to SVN") {
|
||||
steps {
|
||||
ws("workspace/nightly-svn") {
|
||||
svn(url: "https://svn.wildfiregames.com/nightly-build/trunk", changelog: false)
|
||||
bat "svn revert -R . && svn cleanup"
|
||||
bat "svn co https://svn.wildfiregames.com/nightly-build/trunk ."
|
||||
bat "svn revert -R ."
|
||||
script { env.NIGHTLY_PATH = env.WORKSPACE }
|
||||
}
|
||||
bat """
|
||||
@@ -172,4 +172,12 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
ws("workspace/nightly-svn") {
|
||||
bat "svn cleanup"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user