Skip to content

Commit

Permalink
CSS-55 [DevOps][신규] Google Drive 업로드
Browse files Browse the repository at this point in the history
Powershell 파일 추가
  • Loading branch information
autumn-na committed Mar 21, 2024
1 parent ad4b5c3 commit a192cc8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Jenkins/build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
param([string]$Version="version.value.error")

# Move to the build directory
Set-Location "C:\\Work\\Career\\2_KMU\\CapstoneProject\\Builds"

# Create a new folder for the build
New-Item -ItemType Directory -Name $Version

# Run the build
$RunUATPath = "C:\\Program Files\\Epic Games\\UE_5.3\\Engine\\Build\\BatchFiles\\RunUAT.bat"
$ProjectOption = "-project=C:\\ProgramData\\Jenkins\\.jenkins\\workspace\\capstone-2024-20\\capstone_2024_20\\capstone_2024_20.uproject"
$ArchivePath = Resolve-Path($Version)
$ArchiveOption = "-archivedirectory="+$ArchivePath
$UATOptions = @("BuildCookRun", $ProjectOption, "-Distribution", "-stage", "-pak", "-build", "-cook", "-prereqs", "-package", "-archive", $ArchiveOption)
Start-Process -FilePath $RunUATPath -ArgumentList $UATOptions -NoNewWindow -Wait

# Make a zip file of the build
$ZipPath = $ArchivePath.ToString() + ".zip"
Compress-Archive -Path $ArchivePath -DestinationPath $ZipPath -Force

0 comments on commit a192cc8

Please sign in to comment.