[VOL-3820] Fixed kail installation in dmi-build-and-test pipeline

Change-Id: I50d52fbc70b53ea1cd91d7394ca487992dcee268
diff --git a/jjb/pipeline/voltha/master/dmi-build-and-test.groovy b/jjb/pipeline/voltha/master/dmi-build-and-test.groovy
index aa74c4d..3138e81 100755
--- a/jjb/pipeline/voltha/master/dmi-build-and-test.groovy
+++ b/jjb/pipeline/voltha/master/dmi-build-and-test.groovy
@@ -198,6 +198,13 @@
     }
     stage('Start logging') {
       steps {
+        // check if kail is installed and if not installs it
+        sh """
+        if ! command -v kail &> /dev/null
+        then
+            bash <( curl -sfL https://raw.githubusercontent.com/boz/kail/master/godownloader.sh) -b "$WORKSPACE/bin"
+        fi
+        """
         sh returnStdout: false, script: '''
           # start logging with kail
           cd $WORKSPACE