mirror of
https://github.com/cna-bootcamp/phonebill.git
synced 2026-01-22 02:26:22 +00:00
Scripted Pipeline 문법 오류 수정
- when 지시어를 if 문으로 변경하여 Scripted Pipeline 호환성 확보 - SonarQube 조건부 실행을 위한 올바른 문법 적용 - 백엔드 CI/CD 가이드에 동일한 문법 반영
This commit is contained in:
parent
d596780a64
commit
8064def373
5
deployment/cicd/Jenkinsfile
vendored
5
deployment/cicd/Jenkinsfile
vendored
@ -101,10 +101,8 @@ podTemplate(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!skipSonarQube) {
|
||||||
stage('SonarQube Analysis & Quality Gate') {
|
stage('SonarQube Analysis & Quality Gate') {
|
||||||
when {
|
|
||||||
not { skipSonarQube }
|
|
||||||
}
|
|
||||||
container('gradle') {
|
container('gradle') {
|
||||||
withSonarQubeEnv('SonarQube') {
|
withSonarQubeEnv('SonarQube') {
|
||||||
// 각 서비스별 테스트 및 SonarQube 분석
|
// 각 서비스별 테스트 및 SonarQube 분석
|
||||||
@ -129,6 +127,7 @@ podTemplate(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build & Push Images') {
|
stage('Build & Push Images') {
|
||||||
timeout(time: 30, unit: 'MINUTES') {
|
timeout(time: 30, unit: 'MINUTES') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user