Pull request #687 opened Connecting to https://api.github.com using docker-jenkins/****** (docker-jenkins GitHub credentials) Obtained Jenkinsfile from f66eabf0717f21a9e5d500c705b8a380cfaaa7ac 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 26028d2ce48352c9b2c3f496e963b79a4944a426 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-687@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 26028d2ce48352c9b2c3f496e963b79a4944a426 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 26028d2ce48352c9b2c3f496e963b79a4944a426 Commit message: "[TAR-1227] Run the sonar container as the current user (#17)" 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-0aa893bbe2c24cd0b) in /home/ubuntu/workspace/app_PR-687 [Pipeline] { [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-687/src/github.com/docker/app [Pipeline] { [Pipeline] checkout 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-687/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/687/head:refs/remotes/origin/PR-687 Fetching without tags Checking out Revision f66eabf0717f21a9e5d500c705b8a380cfaaa7ac (PR-687) > git config remote.origin.url https://github.com/docker/app.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/687/head:refs/remotes/origin/PR-687 # 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/687/head:refs/remotes/origin/PR-687 > git config core.sparsecheckout # timeout=10 > git checkout -f f66eabf0717f21a9e5d500c705b8a380cfaaa7ac Commit message: "add a message in install cmd when trying to pull from registry" First time build. Skipping changelog. fatal: bad object 26028d2ce48352c9b2c3f496e963b79a4944a426 [Pipeline] ansiColor [Pipeline] { [Pipeline] sh + make -f docker.Makefile lint Linting... docker build -t docker-app-lint:jenkins-app-PR-687-1 -f Dockerfile.lint . Sending build context to Docker daemon 75.59MB 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 ---> 27cc5ae694ee 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 ---> d7078811d153 Step 6/8 : WORKDIR /go/src/github.com/docker/app ---> Using cache ---> 15838a00aacc Step 7/8 : ENV CGO_ENABLED=0 ---> Using cache ---> f351c6758027 Step 8/8 : COPY . . ---> 38ee3a9d1689 Successfully built 38ee3a9d1689 Successfully tagged docker-app-lint:jenkins-app-PR-687-1 docker run --rm docker-app-lint:jenkins-app-PR-687-1 make lint Linting... Still waiting to schedule task Waiting for next available executor on ‘ubuntu-1804&&x86_64&&overlay2’ Still waiting to schedule task Waiting for next available executor on ‘ubuntu-1804&&x86_64&&overlay2’ internal/commands/cnab.go:296: File is not `goimports`-ed (goimports) fmt.Fprintf(dockerCli.Out(),"Pulling from registry…\n") make: *** [Makefile:77: lint] Error 1 docker.Makefile:110: 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 Running on ubuntu-1804-overlay2 (i-0aa893bbe2c24cd0b) in /home/ubuntu/workspace/app_PR-687 [Pipeline] { [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-687/src/github.com/docker/app [Pipeline] { [Pipeline] script [Pipeline] { [Pipeline] checkout 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-687/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/687/head:refs/remotes/origin/PR-687 Fetching without tags Checking out Revision f66eabf0717f21a9e5d500c705b8a380cfaaa7ac (PR-687) > git config remote.origin.url https://github.com/docker/app.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/687/head:refs/remotes/origin/PR-687 # 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/687/head:refs/remotes/origin/PR-687 > git config core.sparsecheckout # timeout=10 > git checkout -f f66eabf0717f21a9e5d500c705b8a380cfaaa7ac Commit message: "add a message in install cmd when trying to pull from registry" fatal: bad object 26028d2ce48352c9b2c3f496e963b79a4944a426 [Pipeline] ansiColor [Pipeline] { [Pipeline] sh + make -f docker.Makefile cli-cross cross e2e-cross tars docker build --build-arg EXPERIMENTAL=off --build-arg TAG=jenkins-app-PR-687-1 --build-arg COMMIT=f66eabf0 --build-arg ALPINE_VERSION=3.10.1 --build-arg GOPROXY=direct --target=build -t docker-app-cli:jenkins-app-PR-687-1 . Sending build context to Docker daemon 75.59MB 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 ---> 9b248f110806 Step 3/8 : RUN apt-get install -y -q --no-install-recommends coreutils util-linux uuid-runtime ---> Using cache ---> f9652a317731 Step 4/8 : WORKDIR /go/src/github.com/docker/cli ---> Using cache ---> c0d17b74d68d Step 5/8 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb ---> Using cache ---> 8cd2ce2a8ef6 Step 6/8 : ARG GOPROXY ---> Using cache ---> acd626318b59 Step 7/8 : RUN make binary-osx binary-windows binary && cp build/docker-linux-amd64 /usr/bin/docker ---> Using cache ---> 1e0d8972b1fc Step 8/8 : WORKDIR /go/src/github.com/docker/app/ ---> Using cache ---> e941f65e4b95 [Warning] One or more build-args [ALPINE_VERSION COMMIT EXPERIMENTAL TAG] were not consumed Successfully built e941f65e4b95 Successfully tagged docker-app-cli:jenkins-app-PR-687-1 docker create --name docker-app-cli-jenkins-app-PR-687-1 docker-app-cli:jenkins-app-PR-687-1 noop 54d10149781f87509b117250f3f818fb1c047fcb2675171a723e351b2fa2b6ff docker cp docker-app-cli-jenkins-app-PR-687-1:/go/src/github.com/docker/cli/build/docker-linux-amd64 bin/docker-linux docker cp docker-app-cli-jenkins-app-PR-687-1:/go/src/github.com/docker/cli/build/docker-darwin-amd64 bin/docker-darwin docker cp docker-app-cli-jenkins-app-PR-687-1:/go/src/github.com/docker/cli/build/docker-windows-amd64 bin/docker-windows.exe docker rm docker-app-cli-jenkins-app-PR-687-1 docker-app-cli-jenkins-app-PR-687-1 docker build --build-arg EXPERIMENTAL=off --build-arg TAG=jenkins-app-PR-687-1 --build-arg COMMIT=f66eabf0 --build-arg ALPINE_VERSION=3.10.1 --build-arg GOPROXY=direct --target=cross -t docker-app-cross:jenkins-app-PR-687-1 . Sending build context to Docker daemon 75.59MB 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 ---> 9b248f110806 Step 3/22 : RUN apt-get install -y -q --no-install-recommends coreutils util-linux uuid-runtime ---> Using cache ---> f9652a317731 Step 4/22 : WORKDIR /go/src/github.com/docker/cli ---> Using cache ---> c0d17b74d68d Step 5/22 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb ---> Using cache ---> 8cd2ce2a8ef6 Step 6/22 : ARG GOPROXY ---> Using cache ---> acd626318b59 Step 7/22 : RUN make binary-osx binary-windows binary && cp build/docker-linux-amd64 /usr/bin/docker ---> Using cache ---> 1e0d8972b1fc Step 8/22 : WORKDIR /go/src/github.com/docker/app/ ---> Using cache ---> e941f65e4b95 Step 9/22 : FROM build AS dev ---> e941f65e4b95 Step 10/22 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/ ---> Using cache ---> 51f11a264179 Step 11/22 : ARG DEP_VERSION=v0.5.4 ---> Using cache ---> 87b49617c882 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 ---> d523ca020159 Step 13/22 : ARG GOTESTSUM_VERSION=v0.3.4 ---> Using cache ---> 77288f8d6f7c Step 14/22 : ARG GOPROXY ---> Using cache ---> 971dbae4f6bc 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 ---> 3e06c3e64a93 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 ---> 64f37b6c7304 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 ---> 05d17e193c35 Step 18/22 : COPY . . Running on ubuntu-1804-overlay2 (i-02b209a9262124880) in /home/ubuntu/workspace/app_PR-687 [Pipeline] { [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-687/src/github.com/docker/app [Pipeline] { [Pipeline] checkout 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-687/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/687/head:refs/remotes/origin/PR-687 ---> 917e0ef5a560 Step 19/22 : FROM dev AS cross ---> 917e0ef5a560 Step 20/22 : ARG EXPERIMENTAL="off" ---> Running in d7f19f8b9e03 Removing intermediate container d7f19f8b9e03 ---> 56373e13fb80 Step 21/22 : ARG TAG="unknown" ---> Running in e45c1849c104 > git config remote.origin.url https://github.com/docker/app.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/687/head:refs/remotes/origin/PR-687 # timeout=10 Fetching without tags Checking out Revision f66eabf0717f21a9e5d500c705b8a380cfaaa7ac (PR-687) Removing intermediate container e45c1849c104 ---> 7f2e33cc9fb3 Step 22/22 : RUN make EXPERIMENTAL=${EXPERIMENTAL} TAG=${TAG} cross ---> Running in 52d65ca3c81a Commit message: "add a message in install cmd when trying to pull from registry" fatal: bad object 26028d2ce48352c9b2c3f496e963b79a4944a426 [Pipeline] ansiColor [Pipeline] { [Pipeline] sh > 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/687/head:refs/remotes/origin/PR-687 > git config core.sparsecheckout # timeout=10 > git checkout -f f66eabf0717f21a9e5d500c705b8a380cfaaa7ac + make -f docker.Makefile save-invocation-image docker build -f Dockerfile.invocation-image --build-arg EXPERIMENTAL=off --build-arg TAG=jenkins-app-PR-687-1 --build-arg COMMIT=f66eabf0 --build-arg ALPINE_VERSION=3.10.1 --build-arg GOPROXY=direct --target=invocation -t docker/cnab-app-base:jenkins-app-PR-687-1 . GOOS=linux CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=f66eabf0 -X github.com/docker/app/internal.Version=jenkins-app-PR-687-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-11T14:11:37Z" -o bin/docker-app-linux ./cmd/docker-app Sending build context to Docker daemon 75.59MB 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 ---> d9a4006c1a22 Step 4/14 : WORKDIR /go/src/github.com/docker/app/ ---> Using cache ---> 0ed920fe2d42 Step 5/14 : COPY . . ---> 751836fc7196 Step 6/14 : ARG EXPERIMENTAL="off" ---> Running in 502134916a60 Removing intermediate container 502134916a60 ---> 2ac7d66851b5 Step 7/14 : ARG TAG="unknown" ---> Running in 66e314586fbe Removing intermediate container 66e314586fbe ---> f7c002cb9eaf Step 8/14 : RUN make EXPERIMENTAL=${EXPERIMENTAL} BUILD_TAG=${BUILD_TAG} TAG=${TAG} bin/cnab-run ---> Running in aa8f8d846f95 CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=f66eabf0 -X github.com/docker/app/internal.Version=jenkins-app-PR-687-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-11T14:11:43Z" -o bin/cnab-run ./cmd/cnab-run GOOS=darwin CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=f66eabf0 -X github.com/docker/app/internal.Version=jenkins-app-PR-687-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-11T14:11:37Z" -o bin/docker-app-darwin ./cmd/docker-app Removing intermediate container aa8f8d846f95 ---> c197486116d7 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 6f54341b9089 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 6f54341b9089 ---> 146b5dc1c512 Step 11/14 : USER cnab ---> Running in 5bda5f50c7fc Removing intermediate container 5bda5f50c7fc ---> 60145d8091c4 Step 12/14 : COPY --from=build /go/src/github.com/docker/app/bin/cnab-run /cnab/app/run ---> 9dae2cee6675 Step 13/14 : WORKDIR /cnab/app ---> Running in b7f5aebfbc1b Removing intermediate container b7f5aebfbc1b ---> a131ca5f92e4 Step 14/14 : CMD /cnab/app/run ---> Running in f7b5b72c5b0f Removing intermediate container f7b5b72c5b0f ---> cb2b52c7a856 [Warning] One or more build-args [COMMIT GOPROXY] were not consumed Successfully built cb2b52c7a856 Successfully tagged docker/cnab-app-base:jenkins-app-PR-687-1 docker save docker/cnab-app-base:jenkins-app-PR-687-1 -o _build/invocation-image.tar [Pipeline] sh + make -f docker.Makefile INVOCATION_IMAGE_TAG=jenkins-app-PR-687-1-coverage OUTPUT=coverage-invocation-image.tar save-invocation-image-tag docker tag docker/cnab-app-base:jenkins-app-PR-687-1 docker/cnab-app-base:jenkins-app-PR-687-1-coverage docker save docker/cnab-app-base:jenkins-app-PR-687-1-coverage -o _build/coverage-invocation-image.tar [Pipeline] sh + make -f docker.Makefile INVOCATION_IMAGE_TAG=jenkins-app-PR-687-1-coverage-experimental OUTPUT=coverage-experimental-invocation-image.tar save-invocation-image-tag docker tag docker/cnab-app-base:jenkins-app-PR-687-1 docker/cnab-app-base:jenkins-app-PR-687-1-coverage-experimental docker save docker/cnab-app-base:jenkins-app-PR-687-1-coverage-experimental -o _build/coverage-experimental-invocation-image.tar [Pipeline] } [Pipeline] // ansiColor [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-687/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-687/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-687/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-687/1/stashes/coverage-experimental-invocation-image.tgz [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // dir Post stage [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-687/src/github.com/docker/app [Pipeline] { [Pipeline] sh + docker rmi docker/cnab-app-base:jenkins-app-PR-687-1 Untagged: docker/cnab-app-base:jenkins-app-PR-687-1 [Pipeline] sh + docker rmi docker/cnab-app-base:jenkins-app-PR-687-1-coverage Untagged: docker/cnab-app-base:jenkins-app-PR-687-1-coverage [Pipeline] sh + docker rmi docker/cnab-app-base:jenkins-app-PR-687-1-coverage-experimental Untagged: docker/cnab-app-base:jenkins-app-PR-687-1-coverage-experimental Deleted: sha256:cb2b52c7a85631e54d9d7b8a2e9be384fbbcca8fef361346e20d0e0aa7d3bdd5 Deleted: sha256:a131ca5f92e4bb078d8d3042f52387b5bbf20258cdcbea6989a0cc9f26409627 Deleted: sha256:9dae2cee6675dfa4d770f571132946b63d01bc79005c43458444b2388b352018 Deleted: sha256:cd9e54365bc52e598d911f35d4cf2fe9cf7ddb2abb4c362a849b49134209da9b Deleted: sha256:60145d8091c42eae303abf091aecccf46074692f02a954586e9ab2958b65b95f Deleted: sha256:146b5dc1c5121635ab4c9616f87877a6b0d4ed30a06d775d1bd07f9cd84f91cb Deleted: sha256:92936b9ce3fedb0a5e4a3195935745f7532c00834c3962d5eb2c6dffb8eb73a2 [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=f66eabf0 -X github.com/docker/app/internal.Version=jenkins-app-PR-687-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-11T14:11:37Z" -o bin/docker-app-windows.exe ./cmd/docker-app Removing intermediate container 52d65ca3c81a ---> 7abc2a651ac5 [Warning] One or more build-args [COMMIT ALPINE_VERSION] were not consumed Successfully built 7abc2a651ac5 Successfully tagged docker-app-cross:jenkins-app-PR-687-1 docker create --name docker-app-cross-jenkins-app-PR-687-1 docker-app-cross:jenkins-app-PR-687-1 noop 3953eb70ccc0d93c213a8346a6f97735953663986cf7b19de1fa6448055879dd docker cp docker-app-cross-jenkins-app-PR-687-1:/go/src/github.com/docker/app/bin/docker-app-linux bin/docker-app-linux docker cp docker-app-cross-jenkins-app-PR-687-1:/go/src/github.com/docker/app/bin/docker-app-darwin bin/docker-app-darwin docker cp docker-app-cross-jenkins-app-PR-687-1:/go/src/github.com/docker/app/bin/docker-app-windows.exe bin/docker-app-windows.exe docker rm docker-app-cross-jenkins-app-PR-687-1 docker-app-cross-jenkins-app-PR-687-1 docker build --build-arg EXPERIMENTAL=off --build-arg TAG=jenkins-app-PR-687-1 --build-arg COMMIT=f66eabf0 --build-arg ALPINE_VERSION=3.10.1 --build-arg GOPROXY=direct --target=e2e-cross -t docker-app-e2e-cross:jenkins-app-PR-687-1 . Sending build context to Docker daemon 75.59MB 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 ---> 9b248f110806 Step 3/26 : RUN apt-get install -y -q --no-install-recommends coreutils util-linux uuid-runtime ---> Using cache ---> f9652a317731 Step 4/26 : WORKDIR /go/src/github.com/docker/cli ---> Using cache ---> c0d17b74d68d Step 5/26 : RUN git clone https://github.com/docker/cli . && git checkout a1b83ffd2cbeefc0752e5aa7a543d49c1ddfd2cb ---> Using cache ---> 8cd2ce2a8ef6 Step 6/26 : ARG GOPROXY ---> Using cache ---> acd626318b59 Step 7/26 : RUN make binary-osx binary-windows binary && cp build/docker-linux-amd64 /usr/bin/docker ---> Using cache ---> 1e0d8972b1fc Step 8/26 : WORKDIR /go/src/github.com/docker/app/ ---> Using cache ---> e941f65e4b95 Step 9/26 : FROM build AS dev ---> e941f65e4b95 Step 10/26 : ENV PATH=${PATH}:/go/src/github.com/docker/app/bin/ ---> Using cache ---> 51f11a264179 Step 11/26 : ARG DEP_VERSION=v0.5.4 ---> Using cache ---> 87b49617c882 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 ---> d523ca020159 Step 13/26 : ARG GOTESTSUM_VERSION=v0.3.4 ---> Using cache ---> 77288f8d6f7c Step 14/26 : ARG GOPROXY ---> Using cache ---> 971dbae4f6bc 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 ---> 3e06c3e64a93 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 ---> 64f37b6c7304 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 ---> 05d17e193c35 Step 18/26 : COPY . . ---> Using cache ---> 917e0ef5a560 Step 19/26 : FROM dev AS cross ---> 917e0ef5a560 Step 20/26 : ARG EXPERIMENTAL="off" ---> Using cache ---> 56373e13fb80 Step 21/26 : ARG TAG="unknown" ---> Using cache ---> 7f2e33cc9fb3 Step 22/26 : RUN make EXPERIMENTAL=${EXPERIMENTAL} TAG=${TAG} cross ---> Using cache ---> 7abc2a651ac5 Step 23/26 : FROM cross AS e2e-cross ---> 7abc2a651ac5 Step 24/26 : ARG EXPERIMENTAL="off" ---> Running in 6a457a57de30 Removing intermediate container 6a457a57de30 ---> 10631a2f5fd2 Step 25/26 : ARG TAG="unknown" ---> Running in 37f1fbdafc74 Removing intermediate container 37f1fbdafc74 ---> 06c94bcfab72 Step 26/26 : RUN make EXPERIMENTAL=${EXPERIMENTAL} TAG=${TAG} e2e-cross ---> Running in fb31cbbb4a5d GOOS=linux CGO_ENABLED=0 go build -tags="" -ldflags="-s -w -X github.com/docker/app/internal.GitCommit=f66eabf0 -X github.com/docker/app/internal.Version=jenkins-app-PR-687-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-11T14:14:29Z" -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=f66eabf0 -X github.com/docker/app/internal.Version=jenkins-app-PR-687-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-11T14:14:29Z" -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=f66eabf0 -X github.com/docker/app/internal.Version=jenkins-app-PR-687-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-11T14:14:29Z" -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=f66eabf0 -X github.com/docker/app/internal.Version=jenkins-app-PR-687-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-11T14:14:29Z" -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=f66eabf0 -X github.com/docker/app/internal.Version=jenkins-app-PR-687-1 -X github.com/docker/app/internal.Experimental=off -X github.com/docker/app/internal.BuildTime=2019-10-11T14:14:29Z" -c -o bin/docker-app-e2e-windows.exe ./e2e/ Removing intermediate container fb31cbbb4a5d ---> 6c1b3d182bb9 [Warning] One or more build-args [ALPINE_VERSION COMMIT] were not consumed Successfully built 6c1b3d182bb9 Successfully tagged docker-app-e2e-cross:jenkins-app-PR-687-1 docker create --name docker-app-e2e-cross-jenkins-app-PR-687-1 docker-app-e2e-cross:jenkins-app-PR-687-1 noop bc452e75b5d06866d88dafa3b324a079e520c54ea6e204df2bc02a7d2521fcb1 docker cp docker-app-e2e-cross-jenkins-app-PR-687-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-687-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-687-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-687-1:/usr/local/bin/gotestsum-linux bin/gotestsum-linux docker cp docker-app-e2e-cross-jenkins-app-PR-687-1:/usr/local/bin/gotestsum-darwin bin/gotestsum-darwin docker cp docker-app-e2e-cross-jenkins-app-PR-687-1:/usr/local/bin/gotestsum-windows.exe bin/gotestsum-windows.exe docker cp docker-app-e2e-cross-jenkins-app-PR-687-1:/usr/local/bin/test2json-linux bin/test2json-linux docker cp docker-app-e2e-cross-jenkins-app-PR-687-1:/usr/local/bin/test2json-darwin bin/test2json-darwin docker cp docker-app-e2e-cross-jenkins-app-PR-687-1:/usr/local/bin/test2json-windows.exe bin/test2json-windows.exe docker rm docker-app-e2e-cross-jenkins-app-PR-687-1 docker-app-e2e-cross-jenkins-app-PR-687-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 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 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 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-687/src/github.com/docker/app/bin [Pipeline] { [Pipeline] stash Stashed 21 file(s) to https://corp-us-east-1-jenkins-k8s-maste-jenkinsartifacts-1lzm7adht5e1j.s3.amazonaws.com/public/app/PR-687/1/stashes/binaries.tgz [Pipeline] } [Pipeline] // dir [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-687/src/github.com/docker/app/e2e [Pipeline] { [Pipeline] stash Stashed 66 file(s) to https://corp-us-east-1-jenkins-k8s-maste-jenkinsartifacts-1lzm7adht5e1j.s3.amazonaws.com/public/app/PR-687/1/stashes/e2e.tgz [Pipeline] } [Pipeline] // dir [Pipeline] dir Running in /home/ubuntu/workspace/app_PR-687/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-687/1/stashes/examples.tgz [Pipeline] } [Pipeline] // dir [Pipeline] sh + docker image ls --format={{.Repository}}:{{.Tag}} *jenkins-app-PR-687-1* + xargs docker image rm -f Untagged: docker-app-e2e-cross:jenkins-app-PR-687-1 Deleted: sha256:6c1b3d182bb91454d8dc94123bcaefc8d6ccd6397c6855ff5b12ab288f4361a3 Deleted: sha256:76598c1b1ff5c417e553fd1126f9c215cd8f3023fdc895bbc98a10f70d873f41 Deleted: sha256:06c94bcfab728c9ce71387355dbdeaabfd2fd54cfcf8f231361cbf1abc605276 Deleted: sha256:10631a2f5fd2cc783cc8b2bcb63eff8af6771fb553ff603ec02c1b21b28153f8 Untagged: docker-app-cross:jenkins-app-PR-687-1 Deleted: sha256:7abc2a651ac5050313a95463fafbc843d395e9278bdcf0113aabf41f9e16aa15 Deleted: sha256:a74c141e0a0118cf4d7c4fe699c5c73a9b96a4a492e6001b56cc450fa7c769c9 Deleted: sha256:7f2e33cc9fb3d7537b5ccc1f61f861d000124086eb6b983833a167dd6c4d7930 Deleted: sha256:56373e13fb803d5a87bfc614b39bff18aa4ea4ed2b10b6495378526d62d06dcb Deleted: sha256:917e0ef5a560efc39676f05240c361cd47af8d740b1a4040661fa6a4fabacbf7 Deleted: sha256:2e230d1518285f60daf8c957fad571dc4eba0bf27a5eb319b6a3e6b6243f2f71 Untagged: docker-app-lint:jenkins-app-PR-687-1 Deleted: sha256:38ee3a9d16892b3c61fbc6c39ce67fc5842dc26d263719b3624d5dd36323dcb2 Deleted: sha256:8695ea7e4902325f63e8500b99ac3df60ef68329b779e4bc7cd06fad35e8b08e Untagged: docker-app-cli:jenkins-app-PR-687-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