cicd

· Toy Project
https://realyun99.tistory.com/entry/CICD-EC2-CodePipeline-Test-1 [CI/CD] EC2 CodePipeline Test -1 Spring project 생성 * 환경: jdk-21, Gradle, vscode 활용 vscode에서 ctrl + shift + p (Show all commands) 단축키를 누르고 spring Initializr 를 검색합니다. 원하는 대로 선택 후 프로젝트 생성하면 됩니다. 테스트 용도 realyun99.tistory.com https://realyun99.tistory.com/entry/CICD-EC2-CodePipeline-Test-2 [CI/CD] EC2 CodePipeline Test -2 이전 포스팅: https:..
· Toy Project
이전 포스팅: https://realyun99.tistory.com/entry/CICD-EC2-CodePipeline-Test-1 [CI/CD] EC2 CodePipeline Test -1 Spring project 생성 * 환경: jdk-21, Gradle, vscode 활용 vscode에서 ctrl + shift + p (Show all commands) 단축키를 누르고 spring Initializr 를 검색합니다. 원하는 대로 선택 후 프로젝트 생성하면 됩니다. 테스트 용도 realyun99.tistory.com 이전 포스팅에서 수동으로 배포하는 방법에 대해 알아보았다면, 이번 포스팅에선 해당 수동 배포를 자동화하는 방법에 대해 알아보겠습니다. * github, github action, code..
· Toy Project
Spring project 생성 * 환경: jdk-21, Gradle, vscode 활용 vscode에서 ctrl + shift + p (Show all commands) 단축키를 누르고 spring Initializr 를 검색합니다. 원하는 대로 선택 후 프로젝트 생성하면 됩니다. 테스트 용도의 간단한 페이지를 하나 생성합니다. (! + enter 치면 기본 html 틀 코드 생성됨) cd ./gradlew ./gradlew build ./gradlew bootRun vscode의 bash terminal 위에서 해당 명령어들을 입력해 확인합니다. (http://localhost:8080) 해당 프로젝트를 github에 올립니다. cd git config --global user.email "~~~" ..
Slack 연결 목적: ChatOps slack 채널 생성(무료플랜) Jenkins Plugin 설치 slack 앱 추가 Jenkins에 slack 연결 연결 확인 # Jenkinsfile node { // job try { stage('build') { println('so far so good...') } stage('test') { println('A test has failed!') sh 'exit 1' } } catch(e) { // mark build as failed currentBuild.result = "FAILURE"; // send slack notification slackSend (color: '#FF0000', message: "FAILED: Job '${env.JOB_NAME}..
Jenkins 구축 관련해서 아래의 블로그를 참고! https://realyun99.tistory.com/199 Jekins Pipeline Jenkins를 사용하여 CD Pipeline 을 구현하고 통합하는 것을 지원하는 플러그인의 집합 Pipeline DSL 구문을 통해 코드로 전송 파이프라인을 모델링하기 위한 확장 가능한 자동화 서버를 갖추고 있음 Jenkinsfile 소스에 해당 내용을 넣고 경로를 보여주면 됨 Pipeline에 대한 자세한 내용은 해당 블로그를 참고하면 좋을 듯 싶다! https://dev-gorany.tistory.com/339 Jenkins Pipeline 프로젝트 생성 project configure 지금 빌드 클릭 Docker Pipeline 프로젝트 생성 docker p..
Jenkins란 모든 언어의 조합과 소스 코드 레포지토리에 대한 CI/CD 환경을 구축하기 위한 도구 빌드: 서버에 올릴 수 있는 상태로 만드는 것 배포: 서버에 올려 사용자가 사용할 수 있게 하는 것 기능: 컴파일 오류 검출, 자동화 테스트 수행, 정적 코드 분석으로 인한 코딩 규약 준수 여부 체크, 성능 변화 감시 등.. EC2에 Jenkins 설치 EC2 생성 후 서버 접속(ssh, TCP 8080 뚫어주기) 아래의 스크립트 실행 출처: https://github.com/wardviaene/jenkins-course/blob/master/scripts/install_jenkins.sh #!/bin/bash # this script is only tested on ubuntu focal 20.04 (..
yj_oo_
'cicd' 태그의 글 목록