-
Notifications
You must be signed in to change notification settings - Fork 1
/
sched-tests-bonnie++-io-test.jenkinsfile
58 lines (53 loc) · 1.39 KB
/
sched-tests-bonnie++-io-test.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
pipeline {
agent { label params.NODE }
parameters {
string(name: 'NODE', defaultValue: '', description: 'The DUT to run on. Must be Linux based DUT.')
string(name: 'DESCRIPTION', defaultValue: '', description: 'Describe your experiment so that we have a meaningful name for this run to return to')
string(name: 'BRANCH', defaultValue: "${MYCI_BRANCH}", description: 'Which branch to run from? For power users experimenting/developing new changes.')
}
environment {
MYCI_BRANCH = "${BRANCH}"
}
options {
buildDiscarder logRotator(artifactDaysToKeepStr: '7', artifactNumToKeepStr: '10', daysToKeepStr: '7', numToKeepStr: '10')
}
stages {
stage('Init') {
steps {
library "sched-tests-utils@${MYCI_BRANCH}"
verify_params()
set_description()
}
}
stage('Verify') {
steps {
verify_linux()
}
}
stage('Bonnie++') {
steps {
start_perfetto("bonnie++")
run_bonnie()
stop_perfetto()
}
}
stage('Generate Result') {
steps {
plot_frequency()
}
}
stage('Archive') {
steps {
archiveArtifacts artifacts: '*.txt', followSymlinks: false
archiveArtifacts artifacts: '*.png', followSymlinks: false
archiveArtifacts artifacts: '*.csv', followSymlinks: false, allowEmptyArchive: true
archiveArtifacts artifacts: '*.perfetto-trace', followSymlinks: false, allowEmptyArchive: true
}
}
}
post {
always {
cleanWs()
}
}
}