-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile2
59 lines (54 loc) · 1.58 KB
/
Jenkinsfile2
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
pipeline {
agent {
node {
label 'kubepod'
}
}
stages {
stage('Deploy result App') {
steps {
kubernetesDeploy(configs: "Deployment/result-app-deployment.yml", kubeconfigId: "mykubeconfig")
}
}
stage('Deploy vote App') {
steps {
kubernetesDeploy(configs: "Deployment/voting-app-deployment.yml", kubeconfigId: "mykubeconfig")
}
}
stage('Deploy worker App') {
steps {
kubernetesDeploy(configs: "Deployment/worker-app-deployment.yml", kubeconfigId: "mykubeconfig")
}
}
stage('Deploy postgres DB') {
steps {
kubernetesDeploy(configs: "Deployment/postgres-deployment.yml", kubeconfigId: "mykubeconfig")
}
}
stage('Deploy redis DB') {
steps {
kubernetesDeploy(configs: "Deployment/redis-deployment.yml", kubeconfigId: "mykubeconfig")
}
}
stage('Deploy result service') {
steps {
kubernetesDeploy(configs: "Services/result-app-service.yml", kubeconfigId: "mykubeconfig")
}
}
stage('Deploy vote service') {
steps {
kubernetesDeploy(configs: "Services/voting-app-service.yml", kubeconfigId: "mykubeconfig")
}
}
stage('Deploy postgres service') {
steps {
kubernetesDeploy(configs: "Services/postgres-service.yml", kubeconfigId: "mykubeconfig")
}
}
stage('Deploy redis service') {
steps {
kubernetesDeploy(configs: "Services/redis-service.yml", kubeconfigId: "mykubeconfig")
}
}
}
}