forked from rovere/dqmgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
97 lines (97 loc) · 3.32 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
85
86
87
88
89
90
91
92
93
94
95
96
97
pipeline {
agent none
stages {
stage('Run Tests') {
failFast true
parallel {
stage('Start') {
agent {
label "dqmgui-ci-worker-start"
}
steps {
// start server in development mode, wait for it to start and print logs
sh '''
source /data/srv/current/apps/dqmgui/128/etc/profile.d/env.sh
/data/srv/current/config/dqmgui/manage -f dev start "I did read documentation"
# check if render plugins are there
ls /data/srv/state/dqmgui/dev/render/*ext
if [ $? != 0 ]; then
exit 1
fi
pgrep -f dqmgui
sleep 10
pgrep -f dqmgui
if [ $? != 0 ]; then
exit 1
fi
for i in /data/srv/logs/dqmgui/dev/*; do echo $i:; cat $i; done
'''
}
}
stage('Integration') {
agent {
label "dqmgui-ci-worker-integration"
}
steps {
checkout scm
// start server in development mode, wait for it to start and print logs
// integration tests use visDQMUpload script so we setup DQM env variables before running
sh '''
source /data/srv/current/apps/dqmgui/128/etc/profile.d/env.sh
monDistPatch -s DQM
if [ $? != 0 ]; then
exit 1
fi
/data/srv/current/config/dqmgui/manage -f dev start "I did read documentation"
# check if render plugins are there
ls /data/srv/state/dqmgui/dev/render/*ext
if [ $? != 0 ]; then
exit 1
fi
pgrep -f dqmgui
sleep 10
pgrep -f dqmgui
if [ $? != 0 ]; then
exit 1
fi
for i in /data/srv/logs/dqmgui/dev/*; do echo $i:; cat $i; done
nosetests --verbosity=3 --where=test/integration/ --with-xunit
'''
}
}
stage('Index Regression') {
agent {
label "dqmgui-ci-worker-index"
}
steps {
checkout scm
// start server in development mode, wait for it to start and print logs
sh '''
source /data/srv/current/apps/dqmgui/128/etc/profile.d/env.sh
monDistPatch -s DQM
if [ $? != 0 ]; then
exit 1
fi
/data/srv/current/config/dqmgui/manage -f dev start "I did read documentation"
ls /data/srv/state/dqmgui/dev/render/*ext
if [ $? != 0 ]; then
exit 1
fi
pgrep -f dqmgui
sleep 10
pgrep -f dqmgui
if [ $? != 0 ]; then
exit 1
fi
for i in /data/srv/logs/dqmgui/dev/*; do echo $i:; cat $i; done
source /data/srv/current/apps/dqmgui/128/etc/profile.d/env.sh
wget https://rovere.web.cern.ch/rovere/test_index.tar.bz2
tar xf test_index.tar.bz2
python test/index/regression.py test_index/
'''
}
}
}
}
}
}