-
Notifications
You must be signed in to change notification settings - Fork 43
/
Jenkinsfile_e2e_parent
45 lines (41 loc) · 1.09 KB
/
Jenkinsfile_e2e_parent
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
@Library('shared-library') _
def COLOR_MAP = [
'SUCCESS': 'good',
'FAILURE': 'danger',
]
pipeline {
agent any
triggers {
cron('30 03 * * 1-5')
}
options {
disableConcurrentBuilds()
timeout(time: 2, unit: 'HOURS')
}
stages{
stage("Run SDK e2e tests in parallel") {
steps {
script {
def environments = ['development', 'staging']
def blockchains = ['ethereum']
def jobs = [:]
for(environment in environments){
for(blockchain in blockchains){
def env_param = environment
def blockchain_param = blockchain
def job = { build job: "e2e-sdk-child",
parameters: [
string(name: 'TEST_ENV', value: "${env_param}"),
string(name: 'BLOCKCHAIN', value: "${blockchain_param}")
],
wait: false }
def index = blockchain + " " + environment
jobs[index] = job
}
}
parallel jobs
}
}
}
}
}