From a192cc8f77dbbb2b0fd99c7cc5aaa4c6e4fa395f Mon Sep 17 00:00:00 2001 From: Autumn Na Date: Fri, 22 Mar 2024 02:12:20 +0900 Subject: [PATCH] =?UTF-8?q?CSS-55=20[DevOps][=EC=8B=A0=EA=B7=9C]=20Google?= =?UTF-8?q?=20Drive=20=EC=97=85=EB=A1=9C=EB=93=9C=20Powershell=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkins/build.ps1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Jenkins/build.ps1 diff --git a/Jenkins/build.ps1 b/Jenkins/build.ps1 new file mode 100644 index 0000000000..c01bed3314 --- /dev/null +++ b/Jenkins/build.ps1 @@ -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 \ No newline at end of file