-
Notifications
You must be signed in to change notification settings - Fork 1
[chore] #323 - Jenkins 파이프라인 가독성 개선 #324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary by CodeRabbit
WalkthroughJenkinsfile의 파이프라인 스크립트에서 환경 변수 할당과 스테이지 순서가 재조정되었습니다. 환경 변수 선언이 초기화 단계로 이동했고, 내부 포트 파싱 스테이지가 'Git Checkout' 이후로 옮겨졌으며, 중복 변수 선언이 제거되었습니다. 디버그 출력을 위한 echo 문도 추가되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Jenkins
participant EnvSetup
participant Git
participant PortParser
participant Deployer
Jenkins->>EnvSetup: Set Variables (환경 변수 초기화, echo 출력)
EnvSetup->>Git: Git Checkout
Git->>PortParser: Parse Internal Port
PortParser->>Deployer: Deploy to Server (환경 변수 사용)
Assessment against linked issues
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (2)
Jenkinsfile (2)
5-8: PORT 값을 굳이 Credentials로 관리할 필요가 있을지 재검토해 주세요
EXTERNAL_PORT_BLUE/EXTERNAL_PORT_GREEN는 민감 정보가 아닌 단순 숫자(포트)일 가능성이 큽니다. Jenkins Credentials 플러그인으로 관리하면
① 관리 화면 진입이 번거로워지고 ② 마스킹돼 로그에서 값 확인이 어려워 디버깅이 힘들 수 있습니다.
일반 환경변수(environment { EXTERNAL_PORT_BLUE = '8080' })나 설정 파일로 옮기는 방안을 고려해 보세요.
36-36: 디버그 로그에 브랜치·환경만 남기고 민감 정보 출력은 피하세요현재는 문제 없지만, 추가로 변수 출력할 때 자격 증명이나 포트 번호 등이 노출되지 않도록 주의해 주세요.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
Jenkinsfile(4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: dev-ci
🔇 Additional comments (1)
Jenkinsfile (1)
49-56:yq의존성 존재 여부 확인 필요
sh "yq e '.server.port' ..."명령은 에이전트에yq가 설치돼 있어야 합니다.
• 일반 노드에서는 기본 미설치 → Stage 실패 가능
• Docker 에이전트 사용 시 이미지 확인 필요설치가 불가피하다면
tools/sh 'curl -L ... -o /usr/local/bin/yq'로 동적 설치agent { docker { image 'mikefarah/yq' } }같이 전용 이미지 지정
중 한 가지 방식을 권장합니다.
Related issue 🛠
Work Description ✏️
Trouble Shooting ⚽️
Related ScreenShot 📷
Uncompleted Tasks 😅
To Reviewers 📢