-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
30 lines (30 loc) · 913 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
pipeline {
agent none
triggers { pollSCM('H/3 * * * *') }
stages {
stage ('Build') {
agent any
steps {
sh 'pip install -U virtualenv'
sh 'python -m virtualenv --clear env'
sh './scripts/jenkins_build.sh'
sh './scripts/jenkins_archive.sh'
}
post {
always { deleteDir() }
}
}
stage ('Performance-Test') {
agent { label 'perf-ubuntu-a0' }
when { expression { return env.BRANCH_NAME == 'master' || env.BRANCH_NAME.startsWith('performance') } }
steps {
sh 'pip install -U virtualenv'
sh 'python -m virtualenv --clear env'
sh './scripts/jenkins_perf.sh'
}
post {
always { deleteDir() }
}
}
}
}