forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
44 lines (43 loc) · 1.48 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
pipeline {
agent {
label 'vagrant'
}
options {
timeout(time: 90, unit: 'MINUTES')
timestamps()
}
stages {
stage ('Tests') {
environment {
MEMORY = '4096'
RUN_TEST_SUITE = '1'
}
steps {
parallel(
"Print Environment": { sh 'env' },
"Runtime Tests": {
// Make sure that VMs from prior runs are cleaned up in case something went wrong in a prior build.
sh 'vagrant destroy -f || true'
sh './contrib/vagrant/start.sh'
},
"K8s multi node Tests": {
sh 'cd ./tests/k8s && vagrant destroy -f || true'
sh './tests/k8s/start.sh'
}
)
}
}
}
post {
always {
sh './tests/copy_files || true'
archiveArtifacts artifacts: "cilium-files-runtime-${JOB_BASE_NAME}-${BUILD_NUMBER}.tar.gz", allowEmptyArchive: true
sh './tests/k8s/copy_files || true'
archiveArtifacts artifacts: "cilium-files-k8s-${JOB_BASE_NAME}-${BUILD_NUMBER}.tar.gz", allowEmptyArchive: true
sh 'rm -rf cilium-files*${JOB_BASE_NAME}-${BUILD_NUMBER}*'
sh 'ls'
sh 'vagrant destroy -f'
sh 'cd ./tests/k8s && vagrant destroy -f'
}
}
}