-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
52 lines (42 loc) · 1.06 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
pipeline {
agent any
options {
skipStagesAfterUnstable()
}
environment {
dockerhubpass = credentials('dockerhubpass')
}
stages {
stage('Make scripts executable') {
steps {
sh 'chmod +x ./scripts/*.sh'
}
}
stage('Run before-installation.sh') {
steps {
sh './scripts/before_installation.sh'
}
}
stage('Build images') {
steps {
sh './scripts/build_images.sh'
}
}
stage('Push images to dockerhub') {
steps {
sh 'sudo docker login --username acarli --password $dockerhubpass'
sh './scripts/images_push.sh'
}
}
stage('Deploy Kubernetes') {
steps {
sh './scripts/kubernetes_deploy.sh'
}
}
stage('Run after installation script') {
steps {
sh './scripts/after_installation.sh'
}
}
}
}