Update Jenkinsfile
This commit is contained in:
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -80,24 +80,10 @@ spec:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Change values.yaml to nexus') {
|
|
||||||
steps {
|
|
||||||
container('maven') {
|
|
||||||
sh 'sed -i "s|docker.io/root/example-app:1.0.0-SNAPSHOT|localhost:31050/my-docker-repo/example-app:latest|g" target/helm/kubernetes/example-app/values.yaml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Change deployment.yaml to include nexus-secret') {
|
|
||||||
steps {
|
|
||||||
container('maven') {
|
|
||||||
sh 'sed -i "/containers:/i\\ imagePullSecrets:\\n - name: nexus-secret" target/helm/kubernetes/example-app/templates/deployment.yaml'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Make chart') {
|
stage('Make chart') {
|
||||||
steps {
|
steps {
|
||||||
container('helm') {
|
container('helm') {
|
||||||
sh 'helm package target/helm/kubernetes/example-app'
|
sh 'helm package example-app-helm-chart/example-app'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user