Branch indexing Connecting to https://api.github.com using docker-jenkins/****** (docker-jenkins GitHub credentials) Obtained Jenkinsfile from 9313406bb75ff2bd827c5c660fe8826307d9ac47+f2163dd6a7da19754d81e13665b95e38dd5abc69 (b65ccc556ac9c66681e297876fffba9b8c803aac) 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/cli_PR-1085@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] node Still waiting to schedule task Waiting for next available executor on ‘linux&&x86_64’ Running on ubuntu-1804-overlay2 (i-05aa069266971d88b) in /home/ubuntu/workspace/cli_PR-1085 [Pipeline] { [Pipeline] withDockerRegistry $ docker login -u dockerbuildbot -p ******** https://index.docker.io/v1/ WARNING! Using --password via the CLI is insecure. Use --password-stdin. WARNING! Your password will be stored unencrypted in /home/ubuntu/workspace/cli_PR-1085@tmp/6f336e06-baff-4f6b-a75a-6f6c9de1e162/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded [Pipeline] { [Pipeline] wrap [Pipeline] { [Pipeline] wrap [Pipeline] { [Pipeline] echo cleanWorkspace: Ensuring workspace is owned by ubuntu [Pipeline] echo chowning workspace [Pipeline] sh + uname -m [Pipeline] sh + pwd + id -u + id -g + docker run --rm -v /home/ubuntu/workspace/cli_PR-1085:/workspace busybox chown -R 1000:1000 /workspace [Pipeline] echo Removing all docker containers [Pipeline] sh + docker container ls -aq [Pipeline] echo Docker containers have been removed [Pipeline] echo cleanWorkspace: Removing existing workspace [Pipeline] deleteDir [Pipeline] echo cleanWorkspace: Workspace is clean. [Pipeline] timeout Timeout set to expire in 1 hr 0 min [Pipeline] { [Pipeline] stage Using the ‘stage’ step without a block argument is deprecated Entering stage Git Checkout Proceeding [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/cli.git > git init /home/ubuntu/workspace/cli_PR-1085 # timeout=10 Fetching upstream changes from https://github.com/docker/cli.git > git --version # timeout=10 using GIT_ASKPASS to set credentials docker-jenkins GitHub credentials > git fetch --no-tags --progress https://github.com/docker/cli.git +refs/pull/1085/head:refs/remotes/origin/PR-1085 +refs/heads/master:refs/remotes/origin/master Fetching without tags Merging remotes/origin/master commit f2163dd6a7da19754d81e13665b95e38dd5abc69 into PR head commit 9313406bb75ff2bd827c5c660fe8826307d9ac47 > git config remote.origin.url https://github.com/docker/cli.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/1085/head:refs/remotes/origin/PR-1085 # 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/cli.git # timeout=10 Fetching upstream changes from https://github.com/docker/cli.git using GIT_ASKPASS to set credentials docker-jenkins GitHub credentials > git fetch --no-tags --progress https://github.com/docker/cli.git +refs/pull/1085/head:refs/remotes/origin/PR-1085 +refs/heads/master:refs/remotes/origin/master > git config core.sparsecheckout # timeout=10 > git checkout -f 9313406bb75ff2bd827c5c660fe8826307d9ac47 > git merge f2163dd6a7da19754d81e13665b95e38dd5abc69 # timeout=10 Merge succeeded, producing b7dcda4eb5fb033c9802572d79b0a1e290538840 Checking out Revision b7dcda4eb5fb033c9802572d79b0a1e290538840 (PR-1085) > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b7dcda4eb5fb033c9802572d79b0a1e290538840 Commit message: "Merge commit 'f2163dd6a7da19754d81e13665b95e38dd5abc69' into HEAD" First time build. Skipping changelog. [Pipeline] stage Using the ‘stage’ step without a block argument is deprecated Entering stage Run end-to-end test suite Proceeding [Pipeline] sh + docker version Client: Docker Engine - Community Version: 19.03.1 API version: 1.40 Go version: go1.12.5 Git commit: 74b1e89 Built: Thu Jul 25 21:21:05 2019 OS/Arch: linux/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 19.03.1 API version: 1.40 (minimum version 1.12) Go version: go1.12.5 Git commit: 74b1e89 Built: Thu Jul 25 21:19:41 2019 OS/Arch: linux/amd64 Experimental: true containerd: Version: 1.2.6 GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb runc: Version: 1.0.0-rc8 GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f docker-init: Version: 0.18.0 GitCommit: fec3683 [Pipeline] sh fatal: bad object ead69454b4062f17d1f8389642089a002b037213 + docker info Client: Debug Mode: false Server: Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 11 Server Version: 19.03.1 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f init version: fec3683 Security Options: apparmor seccomp Profile: default Kernel Version: 4.15.0-1045-aws Operating System: Ubuntu 18.04.3 LTS OSType: linux Architecture: x86_64 CPUs: 2 Total Memory: 7.501GiB Name: ip-10-100-54-23 ID: Q5BR:4XSA:4VGI:HCQ4:NCXQ:W6V2:NU5B:4PS4:IJFG:GRAK:RFRC:V5LS Docker Root Dir: /var/lib/docker Debug Mode: false Username: dockerbuildbot Registry: https://index.docker.io/v1/ Labels: Experimental: true Insecure Registries: 127.0.0.0/8 Live Restore Enabled: true WARNING: No swap limit support [Pipeline] sh + E2E_UNIQUE_ID=clie2e1 IMAGE_TAG=clie2e1 DOCKER_BUILDKIT=1 make -f docker.Makefile test-e2e docker build -t docker-cli-e2eclie2e1 --build-arg=GO_VERSION --build-arg VERSION=19.09.0-dev --build-arg GITCOMMIT= -f ./dockerfiles/Dockerfile.e2e . #2 [internal] load .dockerignore #2 transferring context: 100B done #2 DONE 0.0s #1 [internal] load build definition from Dockerfile.e2e #1 transferring dockerfile: 1.58kB done #1 DONE 0.0s #3 [internal] load metadata for docker.io/library/golang:1.12.8 #3 DONE 0.1s #4 [1/11] FROM docker.io/library/golang:1.12.8@sha256:2a5dc837ac980ba4576dc... #4 DONE 0.0s #10 [internal] load build context #10 transferring context: 42.27MB 1.0s done #10 DONE 1.0s #7 [4/11] RUN curl -Ls https://github.com/theupdateframework/notary/release... #7 CACHED #8 [5/11] RUN curl -Ls https://github.com/gotestyourself/gotestsum/releases... #8 CACHED #5 [2/11] RUN apt-get update && apt-get install -y build-essential ... #5 CACHED #6 [3/11] RUN curl -L https://github.com/docker/compose/releases/download/1... #6 CACHED #9 [6/11] WORKDIR /go/src/github.com/docker/cli #9 CACHED #11 [7/11] COPY e2e/testdata/notary/root-ca.cert /usr/share/ca-certificates/... #11 CACHED #12 [8/11] RUN echo 'notary.cert' >> /etc/ca-certificates.conf && update-ca-... #12 CACHED #13 [9/11] COPY . . #13 DONE 2.1s #14 [10/11] RUN ./scripts/build/binary #14 0.776 Building statically linked build/docker-linux-amd64 #14 63.72 # github.com/docker/cli/cli/command/stack/kubernetes #14 63.72 cli/command/stack/kubernetes/services.go:34:4: undefined: sort #14 ERROR: executor failed running [/bin/sh -c ./scripts/build/binary]: exit code: 2 ------ > [10/11] RUN ./scripts/build/binary: ------ executor failed running [/bin/sh -c ./scripts/build/binary]: exit code: 2 docker.Makefile:55: recipe for target 'build_e2e_image' failed make: *** [build_e2e_image] Error 1 [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // wrap [Pipeline] } [Pipeline] // wrap [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline GitHub has been notified of this commit’s build result ERROR: script returned exit code 2 Finished: FAILURE