add client build to jenkins job
MODIFY
Jenkinsfile
Jenkinsfile
@@ -186,7 +186,6 @@ pipeline {
./e2e-tests/build
docker logout
"
- sudo rm -rf ./build
'''
}
stash includes: 'results/docker/TAG', name: 'IMAGE'
@@ -222,7 +221,7 @@ pipeline {
-v $WORKSPACE/src/github.com/percona/percona-xtradb-cluster-operator:/go/src/github.com/percona/percona-xtradb-cluster-operator \
-w /go/src/github.com/percona/percona-xtradb-cluster-operator \
-e GO111MODULE=on \
- golang:1.14 sh -c 'go build -v -mod=vendor -o percona-xtradb-cluster-operator github.com/percona/percona-xtradb-cluster-operator/cmd/manager'
+ golang:1.14 sh -c 'cd /go/src/github.com/percona/percona-xtradb-cluster-operator && build/build-proto.sh && cd - && go build -v -mod=vendor -o percona-xtradb-cluster-operator github.com/percona/percona-xtradb-cluster-operator/cmd/manager'
"
'''

MODIFY
build/build-proto.sh
build/build-proto.sh
-#!/bin/bash
+#!/bin/sh
set -o errexit
set -o xtrace

add client build to jenkins job