forked from F5Networks/f5-openstack-lbaasv2-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
45 lines (40 loc) · 1.31 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
#!/usr/bin/env groovy
pipeline {
agent { docker defaultWorker.getConfig("openstack-test") }
options {
ansiColor('xterm')
timestamps()
timeout(time: 2, unit: "HOURS")
}
stages {
stage("systest") {
steps {
sh '''
# - source this job's environment variables
export ENV_FILE=systest/${JOB_BASE_NAME}.env
if [ -e $ENV_FILE ]; then
. $ENV_FILE
fi
# - print build properties
printenv | sort | grep -v OS_PASSWORD
# - setup ssh agent
eval $(ssh-agent -s)
ssh-add
# - run systests
target_name=tempest_$(echo $JOB_BASE_NAME | sed s/-/_/g)
make -C systest $target_name
# - copy results files to nfs
# (note that the nfs results directory is mounted inside
# the CI worker's home directory)
cp -r $WORKSPACE/systest/test_results/* ~/results/
'''
}
}
}
post {
always {
// cleanup workspace
dir("${env.WORKSPACE}") { deleteDir() }
}
}
}