forked from plone/plone.restapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
50 lines (39 loc) · 1000 Bytes
/
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
#!groovy
pipeline {
agent any
triggers{
cron('H 23 * * *')
}
options {
buildDiscarder(logRotator(numToKeepStr:'100'))
timeout(time: 60, unit: 'MINUTES')
disableConcurrentBuilds()
}
stages {
// Performance Tests
stage('Performance Tests') {
agent {
label 'node'
}
steps {
deleteDir()
checkout scm
sh "virtualenv ."
sh "bin/pip install -r requirements.txt"
sh "bin/buildout -c plone-5.2.x-performance.cfg"
sh "bin/instance start"
sh "sleep 20"
sh "jmeter -n -t performance.jmx -l performance-jmeter.csv"
sh "jmeter -n -t volto.jmx -l performance-volto.csv"
sh "bin/pip install locust"
sh "bin/locust -f performance/images.py --no-web -c 100 -r 10 --run-time 1m --host http://localhost:12345/Plone"
sh "bin/instance stop"
}
post {
always {
perfReport '**/performance-*.csv'
}
}
}
}
}