Skip to content

Commit

Permalink
update Jenkinsfile to work with go1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
defbin committed Dec 8, 2021
1 parent 8c8e4da commit 0544afc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,8 @@ pipeline {
--rm \
-v $WORKSPACE/src/github.com/percona/percona-server-mongodb-operator:/go/src/github.com/percona/percona-server-mongodb-operator \
-w /go/src/github.com/percona/percona-server-mongodb-operator \
-e GO111MODULE=on \
golang:1.17 sh -c '
go get github.com/google/go-licenses;
go install github.com/google/go-licenses@latest;
/go/bin/go-licenses csv github.com/percona/percona-server-mongodb-operator/cmd/manager \
| cut -d , -f 3 \
| sort -u \
Expand All @@ -244,7 +243,6 @@ pipeline {
--rm \
-v $WORKSPACE/src/github.com/percona/percona-server-mongodb-operator:/go/src/github.com/percona/percona-server-mongodb-operator \
-w /go/src/github.com/percona/percona-server-mongodb-operator \
-e GO111MODULE=on \
golang:1.17 sh -c 'go build -v -mod=vendor -o percona-server-mongodb-operator github.com/percona/percona-server-mongodb-operator/cmd/manager'
"
'''
Expand Down

0 comments on commit 0544afc

Please sign in to comment.