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:
Itms
2024-11-02 11:30:02 +01:00
parent 3c124ecd63
commit 0d294e7cbd
@@ -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"
}
}
}
}