Update Jenkinsfile
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -41,6 +41,8 @@ spec:
|
|||||||
workingDir: /home/jenkins/agent
|
workingDir: /home/jenkins/agent
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
args: ["sleep 9999999"]
|
args: ["sleep 9999999"]
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
@@ -129,15 +131,20 @@ spec:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Helm check') {
|
||||||
|
steps {
|
||||||
|
container('helm') {
|
||||||
|
sh 'helm repo list'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Setup Helm Repo') {
|
stage('Setup Helm Repo') {
|
||||||
agent { node { label 'default' } }
|
|
||||||
steps {
|
steps {
|
||||||
sh 'helm repo add my-helm-repo http://nexus-repo-nexus-repository-manager:8081/repository/my-helm-repo/'
|
sh 'helm repo add my-helm-repo http://nexus-repo-nexus-repository-manager:8081/repository/my-helm-repo/'
|
||||||
sh 'helm repo update'
|
sh 'helm repo update'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy Helm Chart') {
|
stage('Deploy Helm Chart') {
|
||||||
agent { node { label 'default' } }
|
|
||||||
steps {
|
steps {
|
||||||
sh 'helm install example-app my-helm-repo/example-app --set port=8090'
|
sh 'helm install example-app my-helm-repo/example-app --set port=8090'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user