fix the thing
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
pushd
|
pushd
|
||||||
|
|
||||||
|
param(
|
||||||
|
[Parameter(Mandatory=$true)][string]$previewPass
|
||||||
|
)
|
||||||
|
|
||||||
$steamData = "C:/Steam/Data-preview/"
|
$steamData = "C:/Steam/Data-preview/"
|
||||||
$steamCMDPath = "C:/Steam/steamcmd/"
|
$steamCMDPath = "C:/Steam/steamcmd/"
|
||||||
$steamCMDZip = "C:/Steam/steamcmd.zip"
|
$steamCMDZip = "C:/Steam/steamcmd.zip"
|
||||||
@@ -16,9 +20,6 @@ if (!(Test-Path $steamCMDPath)) {
|
|||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory($steamCMDZip, $steamCMDPath)
|
[System.IO.Compression.ZipFile]::ExtractToDirectory($steamCMDZip, $steamCMDPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
echo test
|
|
||||||
echo $previewPass
|
|
||||||
|
|
||||||
cd "$steamData"
|
cd "$steamData"
|
||||||
& "$steamCMDPath/steamcmd.exe" "+login anonymous" "+force_install_dir $steamData" "+app_update 298740 -beta steamctg -betapassword $previewPass validate" "+quit"
|
& "$steamCMDPath/steamcmd.exe" "+login anonymous" "+force_install_dir $steamData" "+app_update 298740 -beta steamctg -betapassword $previewPass validate" "+quit"
|
||||||
|
|
||||||
|
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -20,7 +20,9 @@ node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Acquire SE') {
|
stage('Acquire SE') {
|
||||||
bat 'powershell -File Jenkins/jenkins-grab-se.ps1'
|
withCredentials([string(credentialsId: 'previewSecretPass', variable: 'previewPass')]) {
|
||||||
|
bat 'powershell -File Jenkins/jenkins-grab-se.ps1 $previewPass'
|
||||||
|
}
|
||||||
bat 'IF EXIST GameBinaries RMDIR GameBinaries'
|
bat 'IF EXIST GameBinaries RMDIR GameBinaries'
|
||||||
bat 'mklink /J GameBinaries "C:/Steam/Data-preview/DedicatedServer64/"'
|
bat 'mklink /J GameBinaries "C:/Steam/Data-preview/DedicatedServer64/"'
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user