diff --git a/build-sidecar-injector.jenkinsfile b/build-sidecar-injector.jenkins similarity index 90% rename from build-sidecar-injector.jenkinsfile rename to build-sidecar-injector.jenkins index 7d972ae..b0f8fe1 100644 --- a/build-sidecar-injector.jenkinsfile +++ b/build-sidecar-injector.jenkins @@ -18,14 +18,14 @@ RUN apk add --no-cache git upx && \\ addgroup -S -g 1000 app && \\ adduser --disabled-password -G app --gecos "application account" --home "/home/app" --shell "/sbin/nologin" --no-create-home --uid 1000 app && \\ go mod download && \\ - GIT_HASH=\$(git rev-parse --short HEAD) && GIT_TAG=\$(git tag | tail -1) && \\ - CGO_ENABLED=0 && \\ - GOOS=linux && \\ - GOARCH=amd64 && \\ + GIT_HASH="$$(git rev-parse --short HEAD) && GIT_TAG=$$(git tag | tail -1)"" && \\ + CGO_ENABLED="0" && \\ + GOOS="linux" && \\ + GOARCH="amd64" && \\ go build \\ -v \\ -tags timetzdata \\ - -ldflags="-s -w -X 'github.com/salesforce/generic-sidecar-injector/pkg/metrics.gitHash=\${GIT_HASH}' -X 'github.com/salesforce/generic-sidecar-injector/pkg/metrics.gitTag=\${GIT_TAG}'" \\ + -ldflags="-s -w -X 'github.com/salesforce/generic-sidecar-injector/pkg/metrics.gitHash=$${GIT_HASH}' -X 'github.com/salesforce/generic-sidecar-injector/pkg/metrics.gitTag=$${GIT_TAG}'" \\ -installsuffix cgo \\ -o sidecarinjector \\ ./cmd/sidecarinjector && \\