Call kali to collect the log before running the voltha
- Since Kali needs to access the kubernetes, we need to setup the
kubernetes first and then call the kali to collect the log
Change-Id: I0846a5687d49240abee4bb307b1c2f631a638581
diff --git a/jjb/pipeline/voltha-system-test-bbsim.groovy b/jjb/pipeline/voltha-system-test-bbsim.groovy
index 1b291f2..e639d4a 100644
--- a/jjb/pipeline/voltha-system-test-bbsim.groovy
+++ b/jjb/pipeline/voltha-system-test-bbsim.groovy
@@ -43,13 +43,31 @@
}
stages {
- stage('Create K8s Cluster') {
+ stage('Create Kubernetes Cluster') {
steps {
sh """
git clone https://github.com/ciena/kind-voltha.git
pushd kind-voltha/
- ./voltha up
+ JUST_K8S=y ./voltha up
+ popd
+ """
+ }
+ }
+
+ stage('Setup log collector') {
+ steps {
+ sh """
bash <( curl -sfL https://raw.githubusercontent.com/boz/kail/master/godownloader.sh) -b "$WORKSPACE/kind-voltha/bin"
+ kail -n voltha -n default > $WORKSPACE/onos-voltha-combined.log &
+ """
+ }
+ }
+
+ stage('Deploy Voltha') {
+ steps {
+ sh """
+ pushd kind-voltha/
+ ./voltha up
popd
"""
}