๐ 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
๋ช
๋ น์ ์ฌ์ฉํ๋ฉด ๋ ๋ฏ (ํด๋ณด์ง ์์)git sparse-checkout init --no-cone
.git/info/sparse-checkout
/AppIcon/
/Build/
/Config/
/Content/
/Plugins/*/.vs/
/Plugins/*/Resources/
/Plugins/*/Intermediate/
/Plugins/*/Source/
/Plugins/*/*.uplugin
/Source/
/.editorconfig
/.gitattributes
/.gitignore
/.vsconfig
/SuperPlat.uproject
/SuperPlat.uproject.DotSettings.user
/shadertoolsconfig.json
git config lfs.fetchexclude "Plugins/*/Binaries/Win64/*.dll, Binaries/Win64/*.dll"
exclude ํ์ผ
staged(or unstaged) ๋จ๊ณ์์ ์ ๊ฑฐ๊ฐ ์๋ ๊ฒฝ์ฐ
git update-index --assume-unchanged <ํ์ผ๋ช
>
e.g. git update-index --assume-unchanged 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>