์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- ํ์ดํผ๋ฐ์ด์
- nGrinder
- s3 ์ด๋ฏธ์ง ๋ค์ด๋ก๋
- ๋ค์ค ์ปจํ ์ด๋
- ์ ํจ์ค ์ค์ผ์ค๋ฌ
- private subnet ec2 ๋ก์ปฌ ์ ์
- aws ์ฟ ํฐ
- aws saa ํฉ๊ฒฉ
- ์๋ฐ
- ํ๋ก๊ทธ๋๋จธ์ค ํฉ์นํ์์๊ธ
- docker ps -a
- ํ๋ก๊ทธ๋๋จธ์ค ์ปฌ๋ฌ๋ง๋ถ
- redis ํ ์คํธ์ฝ๋
- prod docker-compose
- JPA
- Entity
- jvm ๋ฐ๋ฐ๋ฅ๊น์ง ํํค์น๊ธฐ
- AWS Certified Solutions Architect - Associate
- ์๋ฒ ํฐ์ง๋ ๋์ปค ์ฌ์คํ
- ์คํํ๋ ๋ฏธ์ค
- docker-compose kafka
- s3 log ์ ์ฅ
- Codedeploy ์ค๋ฅ
- s3 ์ด๋ฏธ์ง ์ ์ฅ
- ํ๋ก๊ทธ๋๋จธ์ค
- docker compose
- Kafka
- ์ ํจ์ค ๋น๋ ์ค๋ฅ
- docker
- redis ์กฐํ
- Today
- Total
๐๐ข๐๐ โ๐๐๐ ๐๐๐ก๐๐ ๐๐๐๐โง
[Jenkins] ์ ํจ์ค ๋น๋ ์ค๋ฅ ํด๊ฒฐ ๋ณธ๋ฌธ
[Jenkins] ์ ํจ์ค ๋น๋ ์ค๋ฅ ํด๊ฒฐ
๐คRyusun๐ค 2024. 3. 3. 12:48ํ๋ก์ ํธ์ ์ ํจ์ค๋ก CI๋ฅผ ๊ตฌ์ถํ ํ AWS CodeDeploy๋ฅผ ํตํด ์๋ CD ํ๊ฒฝ์ ๋ง๋ค์๋๋ฐ, ๊น ๋จธ์ง ํ, ์ ์คํ๋๋ ์ ํจ์ค๊ฐ ๊ฐ์๊ธฐ ๋น๋ ์ค๋ฅ ๋๊ณ CodeDeploy ๋ฐฐํฌ๋ ์คํจํ๋ค...์์ด๋ผ๋ ธ์์ด๋ผ๋ ธ๐คฏ
์ ํจ์ค ์ค๋ฅ ๋ก๊ทธ๋ฅผ ๋ณด๋
Started by user dog
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/deploy-api-server
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
The recommended git tool is: NONE
using credential dog-git-pw-token
Cloning the remote Git repository
Cloning repository https://github.com/PetCampus-Inc/daeng_v1_back
> git init /var/lib/jenkins/workspace/deploy-api-server # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not init /var/lib/jenkins/workspace/deploy-api-server
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:1073)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:819)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1222)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1305)
at hudson.scm.SCM.checkout(SCM.java:540)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1248)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:649)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:521)
at hudson.model.Run.execute(Run.java:1895)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
Caused by: hudson.plugins.git.GitException: Error performing git command: git init /var/lib/jenkins/workspace/deploy-api-server
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2858)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2762)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2757)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:2051)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:1071)
... 12 more
Caused by: java.io.IOException: Cannot run program "git" (in directory "/var/lib/jenkins/workspace/deploy-api-server"): error=0, Failed to exec spawn helper: pid: 56596, signal: 11
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at hudson.Proc$LocalProc.<init>(Proc.java:252)
at hudson.Proc$LocalProc.<init>(Proc.java:221)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:994)
at hudson.Launcher$ProcStarter.start(Launcher.java:506)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2835)
... 16 more
Caused by: java.io.IOException: error=0, Failed to exec spawn helper: pid: 56596, signal: 11
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 22 more
ERROR: Error cloning remote repo 'origin'
Skipping CodeDeploy publisher as build failed
Finished: FAILURE
์ ํํ ์ค๋ฅ๊ฐ ์๋์ค๊ณ ์ค๋ฅ ์คํจ๋ง ํ๋ค๋ ๋ง๋ง ๊ธธ๊ฒ ๋ณด์ฌ์ค๋ค;
ํ๋ฃจ ์ฃ์ผ ๊ตฌ๊ธ๋ง๊ณผ chatGpt์ ์ด์ฌํ ํด๋ดค์ง๋ง ์์ธ ์ฐพ๊ธฐ ์คํจํ๋คใ ใ ๊ณ์ ์ฝ์งํ๋ฉด์ ๋ค์ง๋ค๊ฐ ํ ๋ต๊ธ์ ๋ฐ๊ฒฌ!
๋๋ต ์ ๋ฐ์ดํธ ๋๋ฌธ์ ์ ํจ์ค๊ฐ ์ ๋ฐ์ดํธ๋ฅผ ๋ฐ๋ผ๊ฐ์ง ๋ชปํ๋ค๋ ๋ง์ด๋ค.
๋์ ๊ฐ์ ๊ฒฝ์ฐ๋ ์๋ง ๊น์์ ์ถฉ๋ ๋์ ์ ํจ์ค๊ฐ ๋น๋๋ฅผ ์คํจํ ๊ฒ ๊ฐ์๋ค.
๊ทธ๋์ ์คํ ์ค์ด์๋ ์๋ฐ ํ๋ก์ธ์ค์ ์ ํจ์ค ํ๋ก์ธ์ค๋ฅผ kill ํ๊ณ ์ฌ์คํ ํ ๋น๋ํ๋ค.
ps -ef | grep java
ํ์ฌ ์คํ๋๊ณ ์๋ java ๊ด๋ จ ํ๋ก์ธ์ค๊ฐ ์๋์ง ํ์ธ
kill -9 pid(ํ๋ก์ธ์ค๋ฒํธ)
kill -9 ๋ฅผ ํตํด ํ๋ก์ธ์ค๋ฅผ ์ค์ง์ํจ๋ค.
์ฌ์คํ ํ ๋น๋ํ๋๊น... ๊ฒฐ๊ณผ๋ ์ฑ๊ณต!!!!!ใ ใ ใ ใ ใ ใ ใ ใ ใ
์ถฉ๋ ๋์ ๋น๋๊ฐ ์๋ผ ์์๋ pr๋ค์ด ํ๊บผ๋ฒ์ ๋น๋๊ฐ ๋์๋ค.
Joshua๋ ๋ฒ ๋ฆฌ๋ฒ ๋ฆฌ ๋กํ~ใ ใ
๋ง์ฝ ๋จธ์ง ํ ๊ฐ์๊ธฐ ์ ํจ์ค ์ค๋ฅ๊ฐ ๋๋ค๋ฉด ์ ํจ์ค ํ๋ก์ธ์ค๋ฅผ kill ํ๊ณ ๋ค์ ๋น๋๋ฅผ ์๋ํด ๋ณด๊ธธ ์ถ์ฒํ๋ค.
๋จธ๋ ์ง ์ ์๋๋ฉด ๊ป๋ค๊ฐ ๋ค์ ์ผ๋ณด์^^
+ ์ถ๊ฐ
์๋ง ์์ธ์ด ์ ํจ์ค ์บ์ ๋ฌธ์ ์๋ ๊ฒ ๊ฐ๋ค.
์บ์ ๋ฌธ์ ๋ผ์ ์๋ฒ ๊ป๋ค ์ผ๋ ํด๊ฒฐ๋๊ธด ํ๋ค.
ํ์์ ๋น์ทํ ๋ฌธ์ ๊ฐ ์๋ค๋ฉด ์๋ ๋ธ๋ก๊ทธ์์ ์์ธ์ ์ฐธ๊ณ ํ์๋ฉด ์ข์ ๋ฏํ๋ค.
https://jojoldu.tistory.com/446
์ ํจ์ค ๋น๋ ํ์ผ ์บ์ ๋ฌธ์
์ ํจ์ค๋ฅผ ํตํด Github Clone -> Build๋ฅผ ํ๋ค๋ณด๋ฉด ๋ค์๊ณผ ๊ฐ์ด ์ด๋ฆ์ด ๋ณ๊ฒฝ๋ ํ์ผ์ ์ด์ ํ์ผ์ด ๊ทธ๋๋ก ๋จ์ ์๋ ๊ฒฝ์ฐ๋ฅผ ์ข ์ข ๋ณด๊ฒ ๋ฉ๋๋ค. ์๋ ์ฌ์ง์ 01-makeFiles.config์๋ ํ์ผ์ 00-makeFiles.config๋ก
jojoldu.tistory.com
'๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ด๐ป > ๐๐๐ง๐ค๐ข๐ง๐ฌ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Jenkins] ์ ํจ์ค ์ค์ผ์ค๋ฌ๋ฅผ ํ์ฉํ ํน์ API ์ ๊ธฐ ์์ ์คํํ๊ธฐ (0) | 2024.03.06 |
---|