forked from openconfig/kne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
35 lines (34 loc) · 855 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
#!/usr/bin/groovy
@Library('jenkins-pipeline-shared@master') _
pipeline {
agent {
label "kne"
}
stages {
stage("Build") {
steps{
sh "make install"
}
}
stage("Unit Tests") {
steps {
sh "make test"
}
}
stage("Integration Tests") {
steps {
sh "fkne deploy ./deploy/kne/kind-bridge.yaml"
sh "fkne create ./examples/openconfig/lemming.pb.txt"
sh "kubectl get pods -n lemming-twodut"
sh "fkne delete ./examples/openconfig/lemming.pb.txt"
sh "fkne teardown ./deploy/kne/kind-bridge.yaml"
}
}
}
post {
cleanup {
echo "========cleanup========"
cleanWs()
}
}
}