Update Jenkinsfile
This commit is contained in:
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@@ -129,14 +129,18 @@ spec:
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy with Helm') {
|
||||
stage('Setup Helm Repo') {
|
||||
steps {
|
||||
sh 'kubectl version --client'
|
||||
// sh 'helm repo add my-helm-repo http://localhost:8081/repository/my-helm-repo/'
|
||||
// sh 'helm repo update'
|
||||
//sh 'helm install example-app my-helm-repo/example-app --set port=8090'
|
||||
sh 'helm repo add my-helm-repo http://nexus-repo-nexus-repository-manager:8081/repository/my-helm-repo/'
|
||||
sh 'helm repo update'
|
||||
}
|
||||
}
|
||||
stage('Deploy Helm Chart') {
|
||||
steps {
|
||||
sh 'helm install example-app my-helm-repo/example-app --set port=8090'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
post {
|
||||
success {
|
||||
|
||||
Reference in New Issue
Block a user