mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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.
This commit is contained in:
parent
b58ea2698e
commit
2659efdb38
1 changed files with 1 additions and 1 deletions
|
|
@ -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')]) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue