mirror of
https://github.com/cna-bootcamp/phonebill.git
synced 2025-12-06 08:06:24 +00:00
Jenkinsfile에 Setup Kubernetes2 스테이지 추가
- namespace 생성 스테이지 복원 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
696f9a4fc6
commit
698c146393
8
deployment/cicd/Jenkinsfile
vendored
8
deployment/cicd/Jenkinsfile
vendored
@ -76,6 +76,14 @@ podTemplate(
|
|||||||
props = readProperties file: "deployment/cicd/config/deploy_env_vars_${environment}"
|
props = readProperties file: "deployment/cicd/config/deploy_env_vars_${environment}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage("Setup Kubernetes2") {
|
||||||
|
container('kubectl') {
|
||||||
|
sh """
|
||||||
|
kubectl create namespace ${props.namespace} --dry-run=client -o yaml | kubectl apply -f -
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
container('gradle') {
|
container('gradle') {
|
||||||
sh """
|
sh """
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user