π AWS EC2μ Jenkins μλ² κ΅¬μΆ (velog.io)
CIλ 무μμ λκΉ? - μ§μμ ν΅ν© μ€λͺ - AWS (amazon.com)
https
Kind | Username with password |
---|---|
Username | Bitbucket κ³μ λͺ |
Password | Bitbucket κ°μΈ μ€μ μμ λ°κΈλ°μ App Password |
ID | jenkins λ΄λΆμμ μ¬μ©ν κ³ μ μλ³μ |
ssh (νμ¬ μ¬μ©νκ³ μλ λ°©μ)
Kind | SSH Username with private key |
---|---|
ID | jenkins λ΄λΆμμ μ¬μ©ν κ³ μ μλ³μ |
Username | Bitbucket κ³μ λͺ |
Private Key | Private Key λ³΅μ¬ λΆμ¬λ£κΈ° |
-----BEGIN OPENSSH PRIVATE KEY---β | |
-----END OPENSSH PRIVATE KEY---β | |
λ¬Έμμ΄κΉμ§ μ λΆ |
git lfs push --object-id
λͺ
λ Ήμ μ¬μ©νλ©΄ λ λ― (ν΄λ³΄μ§ μμ)dll νμΌμ΄ νμν νμ
dll νμΌμ΄ νμνμ§ μλ νμ - λ§€ λ² μ§μ λΉλνμ¬ μμ±ν¨
git sparse-checkout init --no-cone
(ν΄λΌ μ μ©)
.git/info/sparse-checkout
/AppIcon/
/Binaries/
/Build/
/Config/
/Content/
/Plugins/
/Source/
/.editorconfig
/.gitattributes
/.gitignore
/.vsconfig
/SuperPlat.uproject
/SuperPlat.uproject.DotSettings.user
/server.ini
/shadertoolsconfig.json
λλ
/**
!SPEngine/**
!Engine/**
git config lfs.fetchexclude "Plugins/*/Binaries/Win64/*.dll, Binaries/Win64/*.dll"
[lfs] repositoryformatversion = 0 fetchexclude = Engine/, SPEngine/
.git/info/exclude
: lfsλ‘ μΆμ λλ νμΌμ μ μΈλμ§ μμ
staged(or unstaged) λ¨κ³μμ μ κ±°κ° μλ κ²½μ°
git update-index --assume-unchanged <νμΌλͺ
>
e.g. git update-index --assume-unchanged Plugins/*/Binaries/Win64/*.dll
lfs νμΌμ exclude νλ €λ©΄ .git/config
νμΌμ λ€μμ μΆκ°
[lfs]
fetchexclude = Binaries/Win64/*.dll, Plugins/*/Binaries/Win64/*.dll
Groovy Script μμ± μ μ£Όμμ¬ν
echo !OID!>> OIDs.txt // O
echo !OID! >> OIDs.txt // X
!OID! λ€μ κ³΅λ°±μ΄ μμΌλ©΄, 곡백μ μΆκ°νμ¬ OIDs.txt νμΌμ μ°μ¬μ§λ€
for /f "tokens=* usebackq" %%F in (`git diff-tree --no-commit-id --name-only -r HEAD ^| findstr /ri "Plugins/.*/Binaries/Win64/.*\\\\.dll"`) do ()
findstr λ€μ κ²½λ‘λ '/'λ₯Ό μ¬μ©νμ¬ κ²½λ‘λ₯Ό νν.
λ§μ§λ§ dll νμΌμ μ§μ ν λλ '\\\\'λ‘ νν. -> λͺ
λ Ήμ΄ μ€νλ λ, '\\\\'μ '\\'λ‘ ν΄μλ¨
<aside>
git λͺ λ Ήμμ κ²½λ‘κ° μ°μΌ λ, νμ β/βμ μ¬μ©νλ κ²μ΄ μ’λ€.
batch μ€ν¬λ¦½νΈμμλ β\βλ₯Ό μ¬μ©
</aside>