From 2659efdb38b0c37795c24dbe225781e89ea65868 Mon Sep 17 00:00:00 2001 From: Itms Date: Tue, 29 Apr 2025 16:26:27 +0200 Subject: [PATCH] Speed up nightly build generation New files in the repository are naively added using `svn add --force` which adds all unversioned files according to the documentation. However, this iterates through the entire repository and takes about 12 minutes. Using `svn status` and parsing through the results only takes a couple seconds. --- build/jenkins/pipelines/nightly-build.Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/jenkins/pipelines/nightly-build.Jenkinsfile b/build/jenkins/pipelines/nightly-build.Jenkinsfile index 6296ac74f1..edb7a26022 100644 --- a/build/jenkins/pipelines/nightly-build.Jenkinsfile +++ b/build/jenkins/pipelines/nightly-build.Jenkinsfile @@ -165,7 +165,7 @@ pipeline { stage("Commit") { steps { ws("workspace/nightly-svn") { - bat "svn add --force ." + bat "(for /F \"tokens=* delims=? \" %%A in ('svn status ^| findstr /R \"^?\"') do (svn add "%%A")) || (echo No new files found) ^& exit 0" bat "(for /F \"tokens=* delims=! \" %%A in ('svn status ^| findstr /R \"^!\"') do (svn delete "%%A")) || (echo No deleted files found) ^& exit 0" bat "for /R %%F in (*.sh) do (svn propset svn:executable ON %%F)" withCredentials([usernamePassword(credentialsId: 'nightly-autobuild', passwordVariable: 'SVNPASS', usernameVariable: 'SVNUSER')]) {