Create empty generated files to MSBuild doesn't freak.
This commit is contained in:
1
Jenkins/create-gen-files.ps1
Normal file
1
Jenkins/create-gen-files.ps1
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Get-ChildItem -Recurse -Filter "*.csproj" | Select-String -Pattern '"[^"]+Gen.cs' -AllMatches | ForEach-Object {echo $null > ("{0}/../{1}" -f $_.Path, $_.Matches.Value.Substring(1))}
|
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -4,7 +4,7 @@ node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Acquire SE') {
|
stage('Acquire SE') {
|
||||||
bat 'powershell -File jenkins-grab-se.ps1'
|
bat 'powershell -File Jenkins/jenkins-grab-se.ps1'
|
||||||
bat 'IF EXIST GameBinaries RMDIR GameBinaries'
|
bat 'IF EXIST GameBinaries RMDIR GameBinaries'
|
||||||
bat 'mklink /J GameBinaries "C:/Steam/Data/DedicatedServer64/"'
|
bat 'mklink /J GameBinaries "C:/Steam/Data/DedicatedServer64/"'
|
||||||
}
|
}
|
||||||
@@ -14,6 +14,7 @@ node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
bat 'powershell -File Jenkins/create-gen-files.ps1'
|
||||||
bat "\"${tool 'MSBuild'}msbuild\" Torch.sln /p:Configuration=Release /p:Platform=x64"
|
bat "\"${tool 'MSBuild'}msbuild\" Torch.sln /p:Configuration=Release /p:Platform=x64"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user