-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
84 lines (84 loc) · 1.47 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
pipeline {
agent any
stages {
stage('Print ENVs') {
steps {
sh 'printenv'
}
}
stage('Build Image') {
when {
not {
branch 'master'
}
}
steps {
sh './.circleci/docker-build.sh'
}
}
stage('Docker Push') {
when {
not {
branch 'master'
}
}
steps {
sh './.circleci/docker-push.sh'
}
}
stage('Helm Apply') {
when {
not {
branch 'master'
}
}
steps {
sh './.circleci/helm-apply.sh'
}
}
stage('Wait for deployment') {
when {
not {
branch 'master'
}
}
steps {
sh 'sleep 120'
}
}
stage('Fetch test suite') {
when {
not {
branch 'master'
}
}
steps {
git branch: 'master', credentialsId: 'cdecb67a-dd28-49d8-b1c5-3060c2bc8a79', url: 'git@github.com:BlockClusterApp/circleci-webapp-tests.git'
}
}
stage('Tests') {
when {
not {
branch 'master'
}
}
parallel {
stage('UI Tests') {
steps {
sh 'IS_TEST=1 npm run ui-test'
}
}
stage('Hyperion Tests') {
steps {
sh 'npm run test:hyperion'
}
}
stage('Paymeter Tests') {
steps {
sh 'npm run test:paymeter'
}
}
}
}
}
}