This repository has been archived by the owner on Feb 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Jenkinsfile
59 lines (53 loc) · 2.17 KB
/
Jenkinsfile
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
node('master') {
try {
stage 'Downloading sources'
git credentialsId: 'jenkins-ssh', url: 'git@github.com:samsung-ag/kraken-services.git'
stage 'Building and publishing images'
docker.withServer('unix:///run/docker.sock') {
stage 'Building load generator test service image'
def framework = docker.build("samsung_ag/trogdor-framework:${env.BUILD_NUMBER}", "loadtest/build/web_service")
stage 'Pushing load generator test service image'
docker.withRegistry('https://quay.io/v1', 'quay-io') {
framework.push()
framework.push 'latest'
}
stage 'Building load generator image'
def load_gen = docker.build("samsung_ag/trogdor-load-generator:${env.BUILD_NUMBER}", "loadtest/build/load_generator")
stage 'Pushing load generator image'
docker.withRegistry('https://quay.io/v1', 'quay-io') {
load_gen.push()
load_gen.push 'latest'
}
stage 'Building grafana image'
def grafana = docker.build("samsung_ag/grafana:${env.BUILD_NUMBER}", "cluster-monitoring/build/grafana")
stage 'Pushing grafana image'
docker.withRegistry('https://quay.io/v1', 'quay-io') {
grafana.push()
grafana.push 'latest'
}
stage 'Building podpincher image'
def podpincher = docker.build("samsung_ag/podpincher:${env.BUILD_NUMBER}", "podpincher/build")
stage 'Pushing podpincher image'
docker.withRegistry('https://quay.io/v1', 'quay-io') {
podpincher.push()
podpincher.push 'latest'
}
stage 'Building promdash image'
def promdash = docker.build("samsung_ag/promdash:${env.BUILD_NUMBER}", "prometheus/build/promdash")
stage 'Pushing promdash image'
docker.withRegistry('https://quay.io/v1', 'quay-io') {
promdash.push()
promdash.push 'latest'
}
stage 'Building prometheus image'
def prometheus = docker.build("samsung_ag/prometheus:${env.BUILD_NUMBER}", "prometheus/build/prometheus")
stage 'Pushing prometheus image'
docker.withRegistry('https://quay.io/v1', 'quay-io') {
prometheus.push()
prometheus.push 'latest'
}
}
} catch (e) {
throw e
}
}