'go mod' related fixes

change path on voltha-bbsim (uses 'go mod')
Detect and run dep on 'go mod' based synopsys jobs
Remove periodic check on CORD, as it gets post-merge checks

Change-Id: Icb64ff899cd2947479a5981fe90ece5b766b7b2c
diff --git a/jjb/pipeline/synopsys-single.groovy b/jjb/pipeline/synopsys-single.groovy
index 96a3bd0..3fd61ba 100644
--- a/jjb/pipeline/synopsys-single.groovy
+++ b/jjb/pipeline/synopsys-single.groovy
@@ -63,7 +63,7 @@
 
         // change the path tested if for golang projects which expect to be found in GOPATH
         script {
-          test_path = sh(script:"if [ -f \"$projectName/Gopkg.toml\" ]; then echo $WORKSPACE/go/src/github.com/opencord/$projectName; else echo $projectName; fi", returnStdout: true).trim()
+          test_path = sh(script:"if [ -f \"$projectName/Gopkg.toml\" ] || [ -f \"$projectName/go.mod\" ] ; then echo $WORKSPACE/go/src/github.com/opencord/$projectName; else echo $projectName; fi", returnStdout: true).trim()
         }
 
         sh returnStdout: true, script: """
@@ -75,12 +75,20 @@
             popd
           elif [ -f "$projectName/Gopkg.toml" ]
           then
-            echo "Found '$projectName/Gopkg.toml', assuming a golang project"
+            echo "Found '$projectName/Gopkg.toml', assuming a golang project using dep"
             mkdir -p "\$GOPATH/src/github.com/opencord/"
             mv "$WORKSPACE/$projectName" "$test_path"
             pushd "$test_path"
             dep ensure
             popd
+          elif [ -f "$projectName/go.mod" ]
+          then
+            echo "Found '$projectName/go.mod', assuming a golang project using go modules"
+            mkdir -p "\$GOPATH/src/github.com/opencord/"
+            mv "$WORKSPACE/$projectName" "$test_path"
+            pushd "$test_path"
+            make dep
+            popd
           fi
         """
       }