Excluding go.sum and go.mod from license check
Moving bbsim test to use go mod
Change-Id: I99c22f9d4eef3905ae89a7731f64995e5d917b6b
diff --git a/jjb/shell/licensecheck.sh b/jjb/shell/licensecheck.sh
index 217e3b5..445470e 100755
--- a/jjb/shell/licensecheck.sh
+++ b/jjb/shell/licensecheck.sh
@@ -103,7 +103,8 @@
! -path "*conf*" \
! -path "*git*" \
! -path "*swagger*" \
+ ! -path "go.mod" \
+ ! -path "go.sum" \
-print0 )
exit ${fail_licensecheck}
-
diff --git a/jjb/verify/voltha-bbsim.yaml b/jjb/verify/voltha-bbsim.yaml
index 5c0fdb4..2361b11 100644
--- a/jjb/verify/voltha-bbsim.yaml
+++ b/jjb/verify/voltha-bbsim.yaml
@@ -95,10 +95,10 @@
make test
# generate Jenkins report
- go test -v ./... 2>&1 | go-junit-report > $WORKSPACE/junit-report.xml
+ GO111MODULE=on go test -v ./... 2>&1 | go-junit-report > $WORKSPACE/junit-report.xml
# generate Jenkins coverage
- go test -coverprofile=coverage.txt -covermode=count ./...
+ GO111MODULE=on go test -coverprofile=coverage.txt -covermode=count ./...
gocover-cobertura < coverage.txt > $WORKSPACE/coverage.xml
popd