From 39fe77c1eaf0fca666b588e14e7443e5efdbd7fd Mon Sep 17 00:00:00 2001 From: Aaron Son Date: Thu, 15 Aug 2019 11:57:01 -0700 Subject: [PATCH] Jenkinsfile: Update for fetching submodules. --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e107ed3525..f71119e000 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,6 +17,8 @@ pipeline { sh "go get golang.org/x/tools/cmd/goimports" } dir ("go") { + sh "git submodule update --init --recursive" + // Keep this in sync with //go/utils/prepr/prepr.sh. sh "go get -mod=readonly ./..." sh "./utils/repofmt/check_fmt.sh" @@ -42,6 +44,8 @@ pipeline { sh "npm i bats" } dir ("go") { + sh "git submodule update --init --recursive" + sh "go get -mod=readonly ./..." sh "go build -mod=readonly -o ../.ci_bin/dolt ./cmd/dolt/." sh "go build -mod=readonly -o ../.ci_bin/git-dolt ./cmd/git-dolt/." @@ -65,6 +69,8 @@ pipeline { } steps { dir ("go/") { + bat "git submodule update --init --recursive" + bat "go test ./..." bat "go build -mod=readonly -o ..\\.ci_bin\\dolt.exe ./cmd/dolt/." bat "copy /Y ..\\.ci_bin\\dolt.exe ..\\.ci_bin\\dolt"