This repository has been archived by the owner on May 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
74 lines (70 loc) · 2.57 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
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 name: ${JOB_NAME}
Git branch: ${GIT_BRANCH}
Git commit: ${GIT_COMMIT}
"""
script {
def params = [
[
$class: 'StringParameterValue',
name: 'dockerimage_compilers',
value: "tonlabs/compilers:latest"
],
[
$class: 'StringParameterValue',
name: 'dockerimage_local_node',
value: "tonlabs/local-node:latest"
],
[
$class: 'StringParameterValue',
name: 'ton_client_rs_branch',
value: "${GIT_BRANCH}"
],
[
$class: 'StringParameterValue',
name: 'ton_client_rs_commit',
value: "${GIT_COMMIT}"
],
[
$class: 'BooleanParameterValue',
name: 'RUN_TESTS_ALL',
value: false
],
[
$class: 'BooleanParameterValue',
name: 'RUN_TESTS_TON_CLIENT_RS',
value: true
],
]
build job: "Integration/integration-tests/master", parameters: params
}
}
}
}
}