Pull request #635 opened Connecting to https://api.github.com using docker-jenkins/****** (docker-jenkins GitHub credentials) Obtained Jenkinsfile from 39c3a429f653d4c3fe5feafd878fc82fca374ed7 Running in Durability level: PERFORMANCE_OPTIMIZED Loading library jps@master Examining docker/jps Attempting to resolve master as a branch Resolved master as branch master at revision ead69454b4062f17d1f8389642089a002b037213 using credential jps-reader Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository https://github.com/docker/jps.git > git init /var/cloudbees-jenkins-distribution/workspace/app_PR-635@libs/jps # timeout=10 Fetching upstream changes from https://github.com/docker/jps.git > git --version # timeout=10 using GIT_ASKPASS to set credentials GitHub credentials for docker/jps > git fetch --no-tags --progress https://github.com/docker/jps.git +refs/heads/master:refs/remotes/origin/master > git config remote.origin.url https://github.com/docker/jps.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/master:refs/remotes/origin/master # timeout=10 > git config remote.origin.url https://github.com/docker/jps.git # timeout=10 Fetching without tags Fetching upstream changes from https://github.com/docker/jps.git using GIT_ASKPASS to set credentials GitHub credentials for docker/jps > git fetch --no-tags --progress https://github.com/docker/jps.git +refs/heads/master:refs/remotes/origin/master Checking out Revision ead69454b4062f17d1f8389642089a002b037213 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f ead69454b4062f17d1f8389642089a002b037213 Commit message: "Merge pull request #10 from russellcardullo/sonar-scan" First time build. Skipping changelog. [Pipeline] Start of Pipeline [Pipeline] withEnv [Pipeline] { [Pipeline] timeout Timeout set to expire in 1 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: Validate) [Pipeline] { (Branch: Binaries) [Pipeline] { (Branch: Build Invocation image) [Pipeline] stage [Pipeline] { (Validate) [Pipeline] stage [Pipeline] { (Binaries) [Pipeline] stage [Pipeline] { (Build Invocation image) [Pipeline] node [Pipeline] node [Pipeline] node Running on ubuntu-1804-overlay2 (i-0f533b4e388a7eb4a) in /home/ubuntu/workspace/app_PR-635 [Pipeline] { Running on ubuntu-1804-overlay2 (i-039242d17ae2c4ab7) in /home/ubuntu/workspace/app_PR-635 [Pipeline] { [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-635/src/github.com/docker/app [Pipeline] { [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-635/src/github.com/docker/app [Pipeline] { Running on ubuntu-1804-overlay2 (i-015666032734c5315) in /home/ubuntu/workspace/app_PR-635 [Pipeline] script [Pipeline] { [Pipeline] checkout [Pipeline] checkout [Pipeline] { using credential docker-jenkins-github-credentials Cloning the remote Git repository Cloning with configured refspecs honoured and without tags [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-635/src/github.com/docker/app [Pipeline] { using credential docker-jenkins-github-credentials [Pipeline] checkout Cloning the remote Git repository Cloning with configured refspecs honoured and without tags using credential docker-jenkins-github-credentials Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository https://github.com/docker/app.git > git init /home/ubuntu/workspace/app_PR-635/src/github.com/docker/app # timeout=10 Fetching upstream changes from https://github.com/docker/app.git > git --version # timeout=10 using GIT_ASKPASS to set credentials docker-jenkins GitHub credentials > git fetch --no-tags --progress https://github.com/docker/app.git +refs/pull/635/head:refs/remotes/origin/PR-635 Cloning repository https://github.com/docker/app.git > git init /home/ubuntu/workspace/app_PR-635/src/github.com/docker/app # timeout=10 Fetching upstream changes from https://github.com/docker/app.git > git --version # timeout=10 using GIT_ASKPASS to set credentials docker-jenkins GitHub credentials > git fetch --no-tags --progress https://github.com/docker/app.git +refs/pull/635/head:refs/remotes/origin/PR-635 Cloning repository https://github.com/docker/app.git > git init /home/ubuntu/workspace/app_PR-635/src/github.com/docker/app # timeout=10 Fetching upstream changes from https://github.com/docker/app.git > git --version # timeout=10 using GIT_ASKPASS to set credentials docker-jenkins GitHub credentials > git fetch --no-tags --progress https://github.com/docker/app.git +refs/pull/635/head:refs/remotes/origin/PR-635 Fetching without tags Fetching without tags Checking out Revision 39c3a429f653d4c3fe5feafd878fc82fca374ed7 (PR-635) Fetching without tags Checking out Revision 39c3a429f653d4c3fe5feafd878fc82fca374ed7 (PR-635) > git config remote.origin.url https://github.com/docker/app.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/635/head:refs/remotes/origin/PR-635 # timeout=10 > git config remote.origin.url https://github.com/docker/app.git # timeout=10 Fetching upstream changes from https://github.com/docker/app.git using GIT_ASKPASS to set credentials docker-jenkins GitHub credentials > git fetch --no-tags --progress https://github.com/docker/app.git +refs/pull/635/head:refs/remotes/origin/PR-635 > git config core.sparsecheckout # timeout=10 Checking out Revision 39c3a429f653d4c3fe5feafd878fc82fca374ed7 (PR-635) > git config remote.origin.url https://github.com/docker/app.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/635/head:refs/remotes/origin/PR-635 # timeout=10 > git config remote.origin.url https://github.com/docker/app.git # timeout=10 Fetching upstream changes from https://github.com/docker/app.git using GIT_ASKPASS to set credentials docker-jenkins GitHub credentials > git fetch --no-tags --progress https://github.com/docker/app.git +refs/pull/635/head:refs/remotes/origin/PR-635 > git config core.sparsecheckout # timeout=10 > git checkout -f 39c3a429f653d4c3fe5feafd878fc82fca374ed7 > git config remote.origin.url https://github.com/docker/app.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/635/head:refs/remotes/origin/PR-635 # timeout=10 > git config remote.origin.url https://github.com/docker/app.git # timeout=10 Fetching upstream changes from https://github.com/docker/app.git using GIT_ASKPASS to set credentials docker-jenkins GitHub credentials > git fetch --no-tags --progress https://github.com/docker/app.git +refs/pull/635/head:refs/remotes/origin/PR-635 > git config core.sparsecheckout # timeout=10 > git checkout -f 39c3a429f653d4c3fe5feafd878fc82fca374ed7 > git checkout -f 39c3a429f653d4c3fe5feafd878fc82fca374ed7 Commit message: "Return exit code 1 & usage message when an unknown command is passed to the CLI" First time build. Skipping changelog. fatal: bad object ead69454b4062f17d1f8389642089a002b037213 Commit message: "Return exit code 1 & usage message when an unknown command is passed to the CLI" Commit message: "Return exit code 1 & usage message when an unknown command is passed to the CLI" fatal: bad object ead69454b4062f17d1f8389642089a002b037213 fatal: bad object ead69454b4062f17d1f8389642089a002b037213 [Pipeline] ansiColor [Pipeline] { [Pipeline] sh [Pipeline] ansiColor [Pipeline] { [Pipeline] sh [Pipeline] ansiColor [Pipeline] { [Pipeline] sh + make -f docker.Makefile cli-cross cross e2e-cross tars docker build --build-arg=EXPERIMENTAL --build-arg=TAG --build-arg=COMMIT --build-arg=ALPINE_VERSION --build-arg=GOPROXY --target=build -t docker-app-cli:jenkins-app-PR-635-1 . + make -f docker.Makefile save-invocation-image docker build -f Dockerfile.invocation-image --build-arg=EXPERIMENTAL --build-arg=TAG --build-arg=COMMIT --build-arg=ALPINE_VERSION --build-arg=GOPROXY --target=invocation -t docker/cnab-app-base:jenkins-app-PR-635-1 . + make -f docker.Makefile lint Linting... docker build -t docker-app-lint:jenkins-app-PR-635-1 -f Dockerfile.lint . Sending build context to Docker daemon 72.85MB Step 1/8 : FROM dockercore/golang-cross:1.12.9@sha256:3ea9dcef4dd2c46d80445c0b22d6177817f4cfce22c523cc12a5a1091cb37705 AS build ---> 518d5e4626aa Step 2/8 : ENV DISABLE_WARN_OUTSIDE_CONTAINER=1 ---> Using cache ---> ee8ddb770266 Step 3/8 : RUN apt-get install -y -q --no-install-recommends coreutils util-linux uuid-runtime ---> Using cache ---> d552467bbd9f Step 4/8 : WORKDIR /go/src/github.com/docker/cli ---> Using cache ---> 1c86cc08bfb9 Step 5/8 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb ---> Using cache ---> fbf5715cd8dc Step 6/8 : ARG GOPROXY ---> Using cache ---> 0a9cad7f829a Step 7/8 : RUN make binary-osx binary-windows binary && cp build/docker-linux-amd64 /usr/bin/docker ---> Using cache ---> 7727ee40237d Step 8/8 : WORKDIR /go/src/github.com/docker/app/ ---> Using cache ---> 00112b76a4ba [Warning] One or more build-args [ALPINE_VERSION COMMIT EXPERIMENTAL TAG] were not consumed Successfully built 00112b76a4ba Successfully tagged docker-app-cli:jenkins-app-PR-635-1 docker create --name docker-app-cli-jenkins-app-PR-635-1 docker-app-cli:jenkins-app-PR-635-1 noop Sending build context to Docker daemon 72.85MB Step 1/14 : ARG ALPINE_VERSION=3.10.1 Step 2/14 : FROM golang:1.13.0 AS build ---> c4d6fdf2260a Step 3/14 : RUN apt-get update -qq && apt-get install -y -q --no-install-recommends coreutils util-linux uuid-runtime ---> Using cache ---> ff29819f59d9 Step 4/14 : WORKDIR /go/src/github.com/docker/app/ ---> Using cache ---> 271e621ca6bb Step 5/14 : COPY . . Sending build context to Docker daemon 72.85MB Step 1/8 : ARG ALPINE_VERSION=3.10 Step 2/8 : ARG GO_VERSION=1.12.9 Step 3/8 : FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} ---> e0d646523991 Step 4/8 : RUN apk add --no-cache curl git make coreutils ---> Using cache ---> a4eb29938f4f Step 5/8 : RUN GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.16.0 && rm -rf /go/src/* /go/pkg/* ---> Using cache ---> 533616922158 Step 6/8 : WORKDIR /go/src/github.com/docker/app ---> Using cache ---> 76399f1e598e Step 7/8 : ENV CGO_ENABLED=0 ---> Using cache ---> 4c0754306843 Step 8/8 : COPY . . a736f15c4631b0a3944760329191fa6743af225b589b8f493751368ba1533160 docker cp docker-app-cli-jenkins-app-PR-635-1:/go/src/github.com/docker/cli/build/docker-linux-amd64 bin/docker-linux docker cp docker-app-cli-jenkins-app-PR-635-1:/go/src/github.com/docker/cli/build/docker-darwin-amd64 bin/docker-darwin docker cp docker-app-cli-jenkins-app-PR-635-1:/go/src/github.com/docker/cli/build/docker-windows-amd64 bin/docker-windows.exe docker rm docker-app-cli-jenkins-app-PR-635-1 docker-app-cli-jenkins-app-PR-635-1 docker build --build-arg=EXPERIMENTAL --build-arg=TAG --build-arg=COMMIT --build-arg=ALPINE_VERSION --build-arg=GOPROXY --target=cross -t docker-app-cross:jenkins-app-PR-635-1 . ---> 9d6119e1799d Step 6/14 : ARG EXPERIMENTAL="off" ---> Running in 3d0169e7650b Removing intermediate container 3d0169e7650b ---> 818729372a2e Step 7/14 : ARG TAG="unknown" ---> Running in 3b6bcc2cbb71 Removing intermediate container 3b6bcc2cbb71 ---> 8c211fcb8cef Step 8/14 : RUN make EXPERIMENTAL=${EXPERIMENTAL} BUILD_TAG=${BUILD_TAG} TAG=${TAG} bin/cnab-run ---> Running in 1febd49f89a2 Sending build context to Docker daemon 72.85MB Step 1/22 : FROM dockercore/golang-cross:1.12.9@sha256:3ea9dcef4dd2c46d80445c0b22d6177817f4cfce22c523cc12a5a1091cb37705 AS build ---> 518d5e4626aa Step 2/22 : ENV DISABLE_WARN_OUTSIDE_CONTAINER=1 ---> Using cache ---> ee8ddb770266 Step 3/22 : RUN apt-get install -y -q --no-install-recommends coreutils util-linux uuid-runtime ---> Using cache ---> d552467bbd9f Step 4/22 : WORKDIR /go/src/github.com/docker/cli ---> Using cache ---> 1c86cc08bfb9 Step 5/22 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb ---> Using cache ---> fbf5715cd8dc Step 6/22 : ARG GOPROXY ---> Using cache ---> 0a9cad7f829a Step 7/22 : RUN make binary-osx binary-windows binary && cp build/docker-linux-amd64 /usr/bin/docker ---> Using cache ---> 7727ee40237d Step 8/22 : WORKDIR /go/src/github.com/docker/app/ ---> Using cache ---> 00112b76a4ba Step 9/22 : FROM build AS dev ---> 00112b76a4ba Step 10/22 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/ ---> Using cache ---> 60b26597fc1f Step 11/22 : ARG DEP_VERSION=v0.5.1 ---> Using cache ---> 976a0bf82608 Step 12/22 : RUN curl -o /usr/bin/dep -L https://github.com/golang/dep/releases/download/${DEP_VERSION}/dep-linux-amd64 && chmod +x /usr/bin/dep ---> Using cache ---> 1ca5fc5ad22c Step 13/22 : ARG GOTESTSUM_VERSION=v0.3.4 ---> Using cache ---> 8d3da24dad1a Step 14/22 : ARG GOPROXY ---> Using cache ---> 870d50fb96ed Step 15/22 : RUN mkdir $GOPATH/src/gotest.tools && git clone -q https://github.com/gotestyourself/gotestsum $GOPATH/src/gotest.tools/gotestsum && cd $GOPATH/src/gotest.tools/gotestsum && git -C $GOPATH/src/gotest.tools/gotestsum checkout -q $GOTESTSUM_VERSION && GO111MODULE=on GOOS=linux go build -o /usr/local/bin/gotestsum-linux gotest.tools/gotestsum && GO111MODULE=on GOOS=darwin go build -o /usr/local/bin/gotestsum-darwin gotest.tools/gotestsum && GO111MODULE=on GOOS=windows go build -o /usr/local/bin/gotestsum-windows.exe gotest.tools/gotestsum && ln -s gotestsum-linux /usr/local/bin/gotestsum ---> Using cache ---> 9b291f35b7f5 Step 16/22 : RUN GOOS=linux go build -o /usr/local/bin/test2json-linux cmd/test2json && GOOS=darwin go build -o /usr/local/bin/test2json-darwin cmd/test2json && GOOS=windows go build -o /usr/local/bin/test2json-windows.exe cmd/test2json ---> Using cache ---> 6bab7f6debfe Step 17/22 : RUN go get -d gopkg.in/mjibson/esc.v0 && cd /go/src/github.com/mjibson/esc && go build -v -o /usr/bin/esc . && rm -rf /go/src/* /go/pkg/* /go/bin/* ---> Using cache ---> fdcbec90ccdc Step 18/22 : COPY . . ---> 1e63c6fe86ba Successfully built 1e63c6fe86ba Successfully tagged docker-app-lint:jenkins-app-PR-635-1 docker run --rm docker-app-lint:jenkins-app-PR-635-1 make lint CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:56:33Z" -o bin/cnab-run ./cmd/cnab-run Linting... ---> 66e4560b6a05 Step 19/22 : FROM dev AS cross ---> 66e4560b6a05 Step 20/22 : ARG EXPERIMENTAL="off" ---> Running in 6a930a8c80bd Removing intermediate container 6a930a8c80bd ---> e4db1abedde0 Step 21/22 : ARG TAG="unknown" ---> Running in a3189c1f9830 Removing intermediate container a3189c1f9830 ---> 1d6be284afb2 Step 22/22 : RUN make EXPERIMENTAL=${EXPERIMENTAL} TAG=${TAG} cross ---> Running in c0d34853a14b GOOS=linux CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:56:38Z" -o bin/docker-app-linux ./cmd/docker-app internal/commands/root.go:46: File is not `goimports`-ed (goimports) return fmt.Errorf("unknown command: %s", strings.Join(args," ")) make: *** [Makefile:81: lint] Error 1 docker.Makefile:116: recipe for target 'lint' failed make: *** [lint] Error 2 [Pipeline] } [Pipeline] // ansiColor [Pipeline] } [Pipeline] // dir Post stage [Pipeline] deleteDir [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } Failed in branch Validate GOOS=darwin CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:56:38Z" -o bin/docker-app-darwin ./cmd/docker-app Removing intermediate container 1febd49f89a2 ---> 10d2d6006fcc Step 9/14 : FROM alpine:${ALPINE_VERSION} as invocation ---> b7b28af77ffe Step 10/14 : RUN apk add --no-cache ca-certificates && adduser -S cnab ---> Running in 9136bbe3caef fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz (1/1) Installing ca-certificates (20190108-r0) Executing busybox-1.30.1-r2.trigger Executing ca-certificates-20190108-r0.trigger OK: 6 MiB in 15 packages Removing intermediate container 9136bbe3caef ---> 82fb0d536181 Step 11/14 : USER cnab ---> Running in bea8ae486ba5 Removing intermediate container bea8ae486ba5 ---> a32a461b7e8f Step 12/14 : COPY --from=build /go/src/github.com/docker/app/bin/cnab-run /cnab/app/run ---> 344ae5048b62 Step 13/14 : WORKDIR /cnab/app ---> Running in 198492e38079 Removing intermediate container 198492e38079 ---> c9d8cb25a8ef Step 14/14 : CMD /cnab/app/run ---> Running in d9bf924c195a Removing intermediate container d9bf924c195a ---> cd474d2f9ce6 [Warning] One or more build-args [GOPROXY COMMIT] were not consumed Successfully built cd474d2f9ce6 Successfully tagged docker/cnab-app-base:jenkins-app-PR-635-1 docker save docker/cnab-app-base:jenkins-app-PR-635-1 -o _build/invocation-image.tar [Pipeline] sh + make -f docker.Makefile INVOCATION_IMAGE_TAG=jenkins-app-PR-635-1-coverage OUTPUT=coverage-invocation-image.tar save-invocation-image-tag docker tag docker/cnab-app-base:jenkins-app-PR-635-1 docker/cnab-app-base:jenkins-app-PR-635-1-coverage docker save docker/cnab-app-base:jenkins-app-PR-635-1-coverage -o _build/coverage-invocation-image.tar [Pipeline] sh + make -f docker.Makefile INVOCATION_IMAGE_TAG=jenkins-app-PR-635-1-coverage-experimental OUTPUT=coverage-experimental-invocation-image.tar save-invocation-image-tag docker tag docker/cnab-app-base:jenkins-app-PR-635-1 docker/cnab-app-base:jenkins-app-PR-635-1-coverage-experimental docker save docker/cnab-app-base:jenkins-app-PR-635-1-coverage-experimental -o _build/coverage-experimental-invocation-image.tar [Pipeline] } [Pipeline] // ansiColor [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-635/src/github.com/docker/app/_build [Pipeline] { [Pipeline] stash Stashed 1 file(s) to https://corp-us-east-1-jenkins-k8s-maste-jenkinsartifacts-1lzm7adht5e1j.s3.amazonaws.com/public/app/PR-635/1/stashes/invocation-image.tgz [Pipeline] stash Stashed 1 file(s) to https://corp-us-east-1-jenkins-k8s-maste-jenkinsartifacts-1lzm7adht5e1j.s3.amazonaws.com/public/app/PR-635/1/stashes/coverage-invocation-image.tgz [Pipeline] stash Stashed 1 file(s) to https://corp-us-east-1-jenkins-k8s-maste-jenkinsartifacts-1lzm7adht5e1j.s3.amazonaws.com/public/app/PR-635/1/stashes/coverage-experimental-invocation-image.tgz [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // dir Post stage [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-635/src/github.com/docker/app [Pipeline] { [Pipeline] sh + docker rmi docker/cnab-app-base:jenkins-app-PR-635-1 Untagged: docker/cnab-app-base:jenkins-app-PR-635-1 [Pipeline] sh + docker rmi docker/cnab-app-base:jenkins-app-PR-635-1-coverage Untagged: docker/cnab-app-base:jenkins-app-PR-635-1-coverage [Pipeline] sh + docker rmi docker/cnab-app-base:jenkins-app-PR-635-1-coverage-experimental Untagged: docker/cnab-app-base:jenkins-app-PR-635-1-coverage-experimental Deleted: sha256:cd474d2f9ce60112cdf31372489f09de7911bcb8b93d425e524b7a3ec7f2d6bc Deleted: sha256:c9d8cb25a8efa9d39d672eb57e54a2d1ad1c4d4d8d4c750af65056ca83bb0dbb Deleted: sha256:344ae5048b62d983b77ec5c9ad3c25684ae2fe55c5d2fe60ac5ed27e0d48d446 Deleted: sha256:53877ec14066e37f63ae361b94d7dbad522dbcb32854c582067d593cd833e597 Deleted: sha256:a32a461b7e8fcdc3d2ff339685aff0ba937bf82878a10ccc1010cce7f0d6b3ff Deleted: sha256:82fb0d53618132bfb5d130a63925f80584a3ca1afebf1d0eaf1e22ceae729e2a Deleted: sha256:013e6a6a98d7b5aef73845789ae6da9bcaea282697345f8c171a1bd3bc80f17f [Pipeline] } [Pipeline] // dir [Pipeline] deleteDir [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } GOOS=windows CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:56:38Z" -o bin/docker-app-windows.exe ./cmd/docker-app GOOS=linux CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:56:38Z" -o bin/docker-app-standalone-linux ./cmd/docker-app-standalone GOOS=darwin CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:56:38Z" -o bin/docker-app-standalone-darwin ./cmd/docker-app-standalone GOOS=windows CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:56:38Z" -o bin/docker-app-standalone-windows.exe ./cmd/docker-app-standalone Removing intermediate container c0d34853a14b ---> 184dfed7410d [Warning] One or more build-args [ALPINE_VERSION COMMIT] were not consumed Successfully built 184dfed7410d Successfully tagged docker-app-cross:jenkins-app-PR-635-1 docker create --name docker-app-cross-jenkins-app-PR-635-1 docker-app-cross:jenkins-app-PR-635-1 noop 0eebc90317bc5fbf061f583251a3b5a932ca5721dba3cdf1db00a3ba01a36317 docker cp docker-app-cross-jenkins-app-PR-635-1:/go/src/github.com/docker/app/bin/docker-app-linux bin/docker-app-linux docker cp docker-app-cross-jenkins-app-PR-635-1:/go/src/github.com/docker/app/bin/docker-app-darwin bin/docker-app-darwin docker cp docker-app-cross-jenkins-app-PR-635-1:/go/src/github.com/docker/app/bin/docker-app-windows.exe bin/docker-app-windows.exe docker cp docker-app-cross-jenkins-app-PR-635-1:/go/src/github.com/docker/app/bin/docker-app-standalone-linux bin/docker-app-standalone-linux docker cp docker-app-cross-jenkins-app-PR-635-1:/go/src/github.com/docker/app/bin/docker-app-standalone-darwin bin/docker-app-standalone-darwin docker cp docker-app-cross-jenkins-app-PR-635-1:/go/src/github.com/docker/app/bin/docker-app-standalone-windows.exe bin/docker-app-standalone-windows.exe docker rm docker-app-cross-jenkins-app-PR-635-1 docker-app-cross-jenkins-app-PR-635-1 docker build --build-arg=EXPERIMENTAL --build-arg=TAG --build-arg=COMMIT --build-arg=ALPINE_VERSION --build-arg=GOPROXY --target=e2e-cross -t docker-app-e2e-cross:jenkins-app-PR-635-1 . Sending build context to Docker daemon 72.85MB Step 1/26 : FROM dockercore/golang-cross:1.12.9@sha256:3ea9dcef4dd2c46d80445c0b22d6177817f4cfce22c523cc12a5a1091cb37705 AS build ---> 518d5e4626aa Step 2/26 : ENV DISABLE_WARN_OUTSIDE_CONTAINER=1 ---> Using cache ---> ee8ddb770266 Step 3/26 : RUN apt-get install -y -q --no-install-recommends coreutils util-linux uuid-runtime ---> Using cache ---> d552467bbd9f Step 4/26 : WORKDIR /go/src/github.com/docker/cli ---> Using cache ---> 1c86cc08bfb9 Step 5/26 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb ---> Using cache ---> fbf5715cd8dc Step 6/26 : ARG GOPROXY ---> Using cache ---> 0a9cad7f829a Step 7/26 : RUN make binary-osx binary-windows binary && cp build/docker-linux-amd64 /usr/bin/docker ---> Using cache ---> 7727ee40237d Step 8/26 : WORKDIR /go/src/github.com/docker/app/ ---> Using cache ---> 00112b76a4ba Step 9/26 : FROM build AS dev ---> 00112b76a4ba Step 10/26 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/ ---> Using cache ---> 60b26597fc1f Step 11/26 : ARG DEP_VERSION=v0.5.1 ---> Using cache ---> 976a0bf82608 Step 12/26 : RUN curl -o /usr/bin/dep -L https://github.com/golang/dep/releases/download/${DEP_VERSION}/dep-linux-amd64 && chmod +x /usr/bin/dep ---> Using cache ---> 1ca5fc5ad22c Step 13/26 : ARG GOTESTSUM_VERSION=v0.3.4 ---> Using cache ---> 8d3da24dad1a Step 14/26 : ARG GOPROXY ---> Using cache ---> 870d50fb96ed Step 15/26 : RUN mkdir $GOPATH/src/gotest.tools && git clone -q https://github.com/gotestyourself/gotestsum $GOPATH/src/gotest.tools/gotestsum && cd $GOPATH/src/gotest.tools/gotestsum && git -C $GOPATH/src/gotest.tools/gotestsum checkout -q $GOTESTSUM_VERSION && GO111MODULE=on GOOS=linux go build -o /usr/local/bin/gotestsum-linux gotest.tools/gotestsum && GO111MODULE=on GOOS=darwin go build -o /usr/local/bin/gotestsum-darwin gotest.tools/gotestsum && GO111MODULE=on GOOS=windows go build -o /usr/local/bin/gotestsum-windows.exe gotest.tools/gotestsum && ln -s gotestsum-linux /usr/local/bin/gotestsum ---> Using cache ---> 9b291f35b7f5 Step 16/26 : RUN GOOS=linux go build -o /usr/local/bin/test2json-linux cmd/test2json && GOOS=darwin go build -o /usr/local/bin/test2json-darwin cmd/test2json && GOOS=windows go build -o /usr/local/bin/test2json-windows.exe cmd/test2json ---> Using cache ---> 6bab7f6debfe Step 17/26 : RUN go get -d gopkg.in/mjibson/esc.v0 && cd /go/src/github.com/mjibson/esc && go build -v -o /usr/bin/esc . && rm -rf /go/src/* /go/pkg/* /go/bin/* ---> Using cache ---> fdcbec90ccdc Step 18/26 : COPY . . ---> Using cache ---> 66e4560b6a05 Step 19/26 : FROM dev AS cross ---> 66e4560b6a05 Step 20/26 : ARG EXPERIMENTAL="off" ---> Using cache ---> e4db1abedde0 Step 21/26 : ARG TAG="unknown" ---> Using cache ---> 1d6be284afb2 Step 22/26 : RUN make EXPERIMENTAL=${EXPERIMENTAL} TAG=${TAG} cross ---> Using cache ---> 184dfed7410d Step 23/26 : FROM cross AS e2e-cross ---> 184dfed7410d Step 24/26 : ARG EXPERIMENTAL="off" ---> Running in b926f457fc6e Removing intermediate container b926f457fc6e ---> c2a7f695d160 Step 25/26 : ARG TAG="unknown" ---> Running in c469e2b09250 Removing intermediate container c469e2b09250 ---> ae1b653f0fb5 Step 26/26 : RUN make EXPERIMENTAL=${EXPERIMENTAL} TAG=${TAG} e2e-cross ---> Running in c39621583f6f GOOS=linux CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:59:27Z" -o bin/docker-app-linux ./cmd/docker-app GOOS=linux CGO_ENABLED=0 go test -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:59:27Z" -c -o bin/docker-app-e2e-linux ./e2e/ GOOS=darwin CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:59:27Z" -o bin/docker-app-darwin ./cmd/docker-app GOOS=darwin CGO_ENABLED=0 go test -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:59:27Z" -c -o bin/docker-app-e2e-darwin ./e2e/ GOOS=windows CGO_ENABLED=0 go test -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=39c3a429 -X github.com/docker/app/internal.Version=jenkins-app-PR-635-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-09-24T13:59:27Z" -c -o bin/docker-app-e2e-windows.exe ./e2e/ Removing intermediate container c39621583f6f ---> 7a25c780a282 [Warning] One or more build-args [COMMIT ALPINE_VERSION] were not consumed Successfully built 7a25c780a282 Successfully tagged docker-app-e2e-cross:jenkins-app-PR-635-1 docker create --name docker-app-e2e-cross-jenkins-app-PR-635-1 docker-app-e2e-cross:jenkins-app-PR-635-1 noop bdb2fa00ffd11c2ee62a2d3894148f4f84f1154fd1a009963712bc2a86a47e8b docker cp docker-app-e2e-cross-jenkins-app-PR-635-1:/go/src/github.com/docker/app/bin/docker-app-e2e-linux bin/docker-app-e2e-linux docker cp docker-app-e2e-cross-jenkins-app-PR-635-1:/go/src/github.com/docker/app/bin/docker-app-e2e-darwin bin/docker-app-e2e-darwin docker cp docker-app-e2e-cross-jenkins-app-PR-635-1:/go/src/github.com/docker/app/bin/docker-app-e2e-windows.exe bin/docker-app-e2e-windows.exe docker cp docker-app-e2e-cross-jenkins-app-PR-635-1:/usr/local/bin/gotestsum-linux bin/gotestsum-linux docker cp docker-app-e2e-cross-jenkins-app-PR-635-1:/usr/local/bin/gotestsum-darwin bin/gotestsum-darwin docker cp docker-app-e2e-cross-jenkins-app-PR-635-1:/usr/local/bin/gotestsum-windows.exe bin/gotestsum-windows.exe docker cp docker-app-e2e-cross-jenkins-app-PR-635-1:/usr/local/bin/test2json-linux bin/test2json-linux docker cp docker-app-e2e-cross-jenkins-app-PR-635-1:/usr/local/bin/test2json-darwin bin/test2json-darwin docker cp docker-app-e2e-cross-jenkins-app-PR-635-1:/usr/local/bin/test2json-windows.exe bin/test2json-windows.exe docker rm docker-app-e2e-cross-jenkins-app-PR-635-1 docker-app-e2e-cross-jenkins-app-PR-635-1 tar --transform='flags=r;s|docker-app-linux|docker-app-plugin-linux|' -czf bin/docker-app-linux.tar.gz -C bin docker-app-linux docker-app-standalone-linux tar czf bin/docker-app-e2e-linux.tar.gz -C bin docker-app-e2e-linux tar --transform='flags=r;s|docker-app-darwin|docker-app-plugin-darwin|' -czf bin/docker-app-darwin.tar.gz -C bin docker-app-darwin docker-app-standalone-darwin tar czf bin/docker-app-e2e-darwin.tar.gz -C bin docker-app-e2e-darwin tar --transform='flags=r;s|docker-app-windows|docker-app-plugin-windows|' -czf bin/docker-app-windows.tar.gz -C bin docker-app-windows.exe docker-app-standalone-windows.exe tar czf bin/docker-app-e2e-windows.tar.gz -C bin docker-app-e2e-windows.exe [Pipeline] } [Pipeline] // ansiColor [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-635/src/github.com/docker/app/bin [Pipeline] { [Pipeline] stash Stashed 24 file(s) to https://corp-us-east-1-jenkins-k8s-maste-jenkinsartifacts-1lzm7adht5e1j.s3.amazonaws.com/public/app/PR-635/1/stashes/binaries.tgz [Pipeline] } [Pipeline] // dir [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-635/src/github.com/docker/app/e2e [Pipeline] { [Pipeline] stash Stashed 60 file(s) to https://corp-us-east-1-jenkins-k8s-maste-jenkinsartifacts-1lzm7adht5e1j.s3.amazonaws.com/public/app/PR-635/1/stashes/e2e.tgz [Pipeline] } [Pipeline] // dir [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-635/src/github.com/docker/app/examples [Pipeline] { [Pipeline] stash Stashed 29 file(s) to https://corp-us-east-1-jenkins-k8s-maste-jenkinsartifacts-1lzm7adht5e1j.s3.amazonaws.com/public/app/PR-635/1/stashes/examples.tgz [Pipeline] } [Pipeline] // dir [Pipeline] sh + xargs docker image rm -f + docker image ls --format={{.Repository}}:{{.Tag}} *jenkins-app-PR-635-1* Untagged: docker-app-e2e-cross:jenkins-app-PR-635-1 Deleted: sha256:7a25c780a2829e29c50b3c498b8d64603c408e7400e79799d70e1c69c6c3094c Deleted: sha256:f3be35f06771d3cff94670d6745d051894a627f6e64e50d209723d3653e4d919 Deleted: sha256:ae1b653f0fb5b09e97e6196c3e0764b6a3ed90fd09acc10321a457375c2c0445 Deleted: sha256:c2a7f695d160c7cb5b67286fce7ccfb16edfe0a5e896a73ed549a537f9250f25 Untagged: docker-app-cross:jenkins-app-PR-635-1 Deleted: sha256:184dfed7410d0d5dfef998c4c9d2b65a136d2fdedb4fb4eda3b4dd8cf28df720 Deleted: sha256:47af04d5459f8e9e8ed6780c47bd7af84617e20721fe1f6f46299e2ec9e83da3 Deleted: sha256:1d6be284afb21fc5733e5050f3f9ba52db1e5c3b7a716a66bcb72220eb9b6774 Deleted: sha256:e4db1abedde0300828af2c65951dc0e9b32b05e4957e6b90fc9f8ca86b981d01 Deleted: sha256:66e4560b6a053a01fc8e8c040ca5ba169b688d1708bd491a68b66728e79b13de Deleted: sha256:82171bd557c23350cf0bf11ef04545679a0a8cf234e6f85d423f4ca1d2657c44 Untagged: docker-app-cli:jenkins-app-PR-635-1 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // dir Post stage [Pipeline] deleteDir [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) Stage "Test" skipped due to earlier failure(s) [Pipeline] parallel [Pipeline] { (Branch: Coverage) [Pipeline] { (Branch: Coverage (experimental)) [Pipeline] { (Branch: Test Linux) [Pipeline] stage [Pipeline] { (Coverage) [Pipeline] stage [Pipeline] { (Coverage (experimental)) [Pipeline] stage [Pipeline] { (Test Linux) Stage "Coverage" skipped due to earlier failure(s) [Pipeline] } Stage "Coverage (experimental)" skipped due to earlier failure(s) [Pipeline] } Stage "Test Linux" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] // stage [Pipeline] // stage [Pipeline] } Failed in branch Coverage [Pipeline] } Failed in branch Coverage (experimental) [Pipeline] } Failed in branch Test Linux [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // withEnv [Pipeline] End of Pipeline GitHub has been notified of this commit’s build result ERROR: script returned exit code 2 Finished: FAILURE