Skip to content

Commit 2b3795f

Browse files
committed
Configure jenkins
1 parent 95834cb commit 2b3795f

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

‎Jenkins/jenkins-grab-se.ps1‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
param([string]$previewPass)
2+
13
pushd
24

3-
$steamData = "C:/Steam/Data/"
5+
$steamData = "C:/Steam/Data-preview/"
46
$steamCMDPath = "C:/Steam/steamcmd/"
57
$steamCMDZip = "C:/Steam/steamcmd.zip"
68

@@ -17,6 +19,6 @@ if (!(Test-Path $steamCMDPath)) {
1719
}
1820

1921
cd "$steamData"
20-
& "$steamCMDPath/steamcmd.exe" "+login anonymous" "+force_install_dir $steamData" "+app_update 298740" "+quit"
22+
& "$steamCMDPath/steamcmd.exe" "+login anonymous" "+force_install_dir $steamData" "+app_update 298740 -beta steamctg -betapassword $previewPass validate" "+quit"
2123

22-
popd
24+
popd

‎Jenkinsfile‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,23 @@ node {
4848
}
4949

5050
stage('Acquire SE') {
51-
bat 'powershell -File Jenkins/jenkins-grab-se.ps1'
51+
withCredentials([string(credentialsId: 'previewSecretPass', variable: 'previewPass')]) {
52+
powershell "& Jenkins/jenkins-grab-se.ps1 $previewPass"
53+
}
5254
bat 'IF EXIST GameBinaries RMDIR GameBinaries'
53-
bat 'mklink /J GameBinaries "C:/Steam/Data/DedicatedServer64/"'
55+
bat 'mklink /J GameBinaries "C:/Steam/Data-preview/DedicatedServer64/"'
5456
}
5557

5658
stage('Acquire NuGet Packages') {
5759
bat 'nuget restore Essentials.sln'
5860
}
5961

60-
if (env.BRANCH_NAME == "Patron") {
62+
if (env.BRANCH_NAME == "master") {
6163
buildMode = "Release"
6264
} else {
6365
buildMode = "Debug"
6466
}
65-
result = test_with_torch("Patron")
67+
result = test_with_torch("survival")
6668
if (result) {
6769
currentBuild.result = "SUCCESS"
6870
stage('Archive') {

0 commit comments

Comments
 (0)