목표 - 오늘까지는 꼭 test는 실행되게 하기
Artifact
아티팩트란게 산출물 개념인데
Agent 가 일종의 젠킨스 서버 역할을 하고 artifact를 만들어내는 듯 하다
Agent가 Job을 하는데 Job의 일종이 build pipeline 이고 release pipeline 안에 Stage들도 하나의 job 이 된다 . Agent 가 실행할 때!

그 근거는 이 페이지인데 나는 쉽게말해 build pipeline job은 성공중이지만 release pipleline에서 계속 안되는 중이란 것..

예전 job도 있던데 백이사님이 하신듯?

Agent 가 나뉘어서 진행중인데 굳이 그래야 하나 싶기도 하고 하지만 어떻게 바꾸는 지를 모르니..
release agent 가 win2016이던데 이거때문에 문제인가 싶기도 하다
에러를 다시보면

로 다시보고 구글 검색에서도 잘 나온다
No package found with specified pattern: D:\a\r1\a\**\*.zip
I created a build definition in vsts with npm build and then I copy the build folder to the drop location.
https://stackoverflow.com/questions/51790735/no-package-found-with-specified-pattern-d-a-r1-a-zip/52746997

이렇게 하라해서 일단 해보는데..
해보니 artifact name을 내꺼로 넣어야 한다

오른쪽 버튼으로 수정해주고 돌려보기

debug 모드 키는 법 있는데

넣어주고

잘 나온다
web app빼고 deploy 하니 성공인데 server에 deploy 안된듯
Use deployment groups in a release pipeline - Azure Pipelines
Note In Microsoft Team Foundation Server (TFS) 2018 and previous versions, run and release pipelines are called definitions, runs are called builds, service connections are called service endpoints, stages are called environments, and jobs are called phases. A deployment group is a logical set of deployment target machines that have agents installed on each one.
https://docs.microsoft.com/en-us/azure/devops/pipelines/release/deployment-groups/?view=azure-devops

In effect, a deployment group is just another grouping of agents, much like an agent pool.
deployment group 이 일종의 agent group이다 최종목표라는게 다른거지
deployment group 이 agent가 되야하는데 흠

한 30분 삽질하다 겨우찾았다 ㅠㅠ

태그 등록해야해서 swagger태그 등록하고옴

deployment group에 들어가서 machine에서 tag 등록 가능
드디어 성공!
드디어 목표 서버에 파이프라인 구동까지 됬다
근데 yarn start만 넣으니 그 스레드에서 실행되기ㅣ 때문에 pipeline이 안끝나는 오류 발생해서 pm2 로 구현하기로 햇다

일단 build pipeline에서 test한번 해주고

다른 얘기지만 안해둔 git listen 도 시켜주고 continuous deployment tirgger on!


이부분이 중요한데 일단 skip download 해서 pm2 delete 한 다음에


artifact를 다운로드해서 pm2 를 실행시킨다
근데 눈치챗을 수 도 있지만
yarn 을 한번 다시 때리는데 그 이유는 node_modules가 너무 artifact에 넣게에 무거워서 build pipeline에서 체크만 하고 최적화를 위해 node_modules는 빼고 보낸다!당연히 node modules 배고 보내니 다시
yarn 때려야 하고 흠...이렇게 해서 pipeline 실행!

응 오류~

copy 가 문제였다! \가 아니라 우분투라서 /를 써야 제대로 된다는 점!

어림도 없지

artifact 다운로드 없이 하면 그 전 아티팩트 안없어진 상태일줄 알았는데 없어져서 후...
그냥 한작업에 전부 작업하기로!

완료...

제목 hello wolrd commit 부터 서버구현까지 아주 잘된다 감도 ㅠ유유ㅠㅠ

최소화한 정리

startup 등록까지 test는 다시 commit 해보기이

서버가서 sudo reboot 이후 작동확인..후후

Seonglae Cho