-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
79 lines (74 loc) · 2.63 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
G_giturl = "git@github.com:tonlabs/ton-client-node-js.git"
G_project = ""
G_reason = ""
def getVar(Gvar) {
return Gvar
}
pipeline {
agent any
options {
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')
disableConcurrentBuilds()
parallelsAlwaysFailFast()
}
stages {
stage("Build info") {
steps {
script {
def buildCause = currentBuild.getBuildCauses()
echo "buildCause: ${buildCause}"
C_TEXT = """
Job: ${JOB_NAME}
Build cause: ${buildCause.shortDescription[0]}
"""
C_PROJECT = GIT_URL.substring(19,GIT_URL.length()-4)
echo C_PROJECT
echo C_TEXT
currentBuild.description = C_TEXT
}
}
}
stage('Run tests') {
steps {
echo "Job: ${JOB_NAME}"
script {
def params = [
[
$class: 'StringParameterValue',
name: 'ton_client_js_branch',
value: "master"
// value: "0.24.0-rc"
],
[
$class: 'BooleanParameterValue',
name: 'CHANGE_JS_DEPS',
value: false
// value: true
],
[
$class: 'StringParameterValue',
name: 'ton_client_node_js_branch',
value: "${GIT_BRANCH}"
],
[
$class: 'StringParameterValue',
name: 'ton_client_node_js_commit',
value: "${GIT_COMMIT}"
],
[
$class: 'BooleanParameterValue',
name: 'RUN_TESTS_ALL',
value: false
],
[
$class: 'BooleanParameterValue',
name: 'RUN_TESTS_TON_CLIENT_NODE_JS',
value: true
],
]
build job: "Integration/integration-tests/master", parameters: params
}
}
}
}
}