forked from jainishshah17/node-version
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile-deploy
More file actions
25 lines (20 loc) · 779 Bytes
/
Copy pathJenkinsfile-deploy
File metadata and controls
25 lines (20 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
node {
stage('Clone repository') {
/* Let's make sure we have the repository cloned to our workspace */
git url: 'https://github.com/jainishshah17/node-version.git'
}
stage('Install helm') {
/* This installs helm client */
sh 'wget https://kubernetes-helm.storage.googleapis.com/helm-canary-linux-amd64.tar.gz'
sh 'tar -xvzf helm-canary-linux-amd64.tar.gz'
sh 'chmod 777 $WORKSPACE/linux-amd64/helm'
}
stage('Configure helm') {
/* Configure helm client to point to k8s cluster */
sh './linux-amd64/helm init'
}
stage('Deploy chart') {
/* Finally, we'll deploy the image to k8s using helm chart. */
sh './linux-amd64/helm upgrade my-release --install chart/'
}
}