Pull request #2131 updated Connecting to https://api.github.com using docker-jenkins/****** (docker-jenkins GitHub credentials) Obtained Jenkinsfile from ab837de71c125bfa7147f2cddbcacdb3f2ac60f4+b14a42a5a5d4d912ef9bd1a23b8253cac319984e (d2ab2e70e1fb095e18bea61c8d06a6cc233ea040) 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 > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > 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 > 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 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)" > git rev-list --no-walk 26028d2ce48352c9b2c3f496e963b79a4944a426 # timeout=10 [Pipeline] Start of Pipeline [Pipeline] node Running on ubuntu-1804-overlay2 (i-092f19dc89dd3b3a6) in /home/ubuntu/workspace/cli_PR-2131 [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-2131@tmp/1e28ce0a-4903-49ec-9afd-21d6f7529c3d/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-2131:/workspace busybox chown -R 1000:1000 /workspace Unable to find image 'busybox:latest' locally latest: Pulling from library/busybox 7c9d20b9b6cd: Pulling fs layer 7c9d20b9b6cd: Download complete 7c9d20b9b6cd: Pull complete Digest: sha256:fe301db49df08c384001ed752dff6d52b4305a73a7f608f21528048e8a08b51e Status: Downloaded newer image for busybox:latest [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-2131 # 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/2131/head:refs/remotes/origin/PR-2131 +refs/heads/master:refs/remotes/origin/master Fetching without tags Merging remotes/origin/master commit b14a42a5a5d4d912ef9bd1a23b8253cac319984e into PR head commit ab837de71c125bfa7147f2cddbcacdb3f2ac60f4 > git config remote.origin.url https://github.com/docker/cli.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/2131/head:refs/remotes/origin/PR-2131 # 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/2131/head:refs/remotes/origin/PR-2131 +refs/heads/master:refs/remotes/origin/master > git config core.sparsecheckout # timeout=10 > git checkout -f ab837de71c125bfa7147f2cddbcacdb3f2ac60f4 Merge succeeded, producing ab837de71c125bfa7147f2cddbcacdb3f2ac60f4 Checking out Revision ab837de71c125bfa7147f2cddbcacdb3f2ac60f4 (PR-2131) Commit message: "Refactor the `stack services` command to be uniform" First time build. Skipping changelog. > git merge b14a42a5a5d4d912ef9bd1a23b8253cac319984e # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f ab837de71c125bfa7147f2cddbcacdb3f2ac60f4 > git rev-list --no-walk f7b6ff33c1a8113a00a90c75b2207412f83d1efe # timeout=10 [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.2 API version: 1.40 Go version: go1.12.8 Git commit: 6a30dfc Built: Thu Aug 29 05:29:11 2019 OS/Arch: linux/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 19.03.2 API version: 1.40 (minimum version 1.12) Go version: go1.12.8 Git commit: 6a30dfc Built: Thu Aug 29 05:27:45 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 + docker info Client: Debug Mode: false Server: Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 9 Server Version: 19.03.2 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-1048-aws Operating System: Ubuntu 18.04.3 LTS OSType: linux Architecture: x86_64 CPUs: 2 Total Memory: 7.501GiB Name: ip-10-100-41-232 ID: O7UF:J7PM:BBOA:MCJH:BMAQ:O5XU:4D4U:YHPF:2JNI:LSPI:7LJ3:3UMG 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=clie2e3 IMAGE_TAG=clie2e3 DOCKER_BUILDKIT=1 make -f docker.Makefile test-e2e docker build -t docker-cli-e2eclie2e3 --build-arg=GO_VERSION --build-arg VERSION=19.09.0-dev --build-arg GITCOMMIT= -f ./dockerfiles/Dockerfile.e2e . #1 [internal] load build definition from Dockerfile.e2e #1 transferring dockerfile: 1.58kB done #1 DONE 0.0s #2 [internal] load .dockerignore #2 transferring context: 100B done #2 DONE 0.0s #3 [internal] load metadata for docker.io/library/golang:1.12.10 #3 DONE 0.5s #4 [1/11] FROM docker.io/library/golang:1.12.10@sha256:085cf568ca7daf05b444... #4 resolve docker.io/library/golang:1.12.10@sha256:085cf568ca7daf05b444dacb76b52fce078d3ebef8042b6a24dcc0fa6cd39c25 done #4 sha256:aa30e10913dbe58ba0cd45afce4dc735d91bb8bc3bdc5d794f91ab3b378892dd 0B / 125B 0.1s #4 sha256:f945ea07f224dc92201c943215f00e7a75df6e090b6874d49176259e973e035a 5.46kB / 5.46kB done #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 0B / 127.96MB 0.1s #4 sha256:085cf568ca7daf05b444dacb76b52fce078d3ebef8042b6a24dcc0fa6cd39c25 2.16kB / 2.16kB done #4 sha256:e699a540de350a0993ce3a3f8238161e5c26bbf728bffe1dc1f75952a987ea30 1.79kB / 1.79kB done #4 sha256:aa30e10913dbe58ba0cd45afce4dc735d91bb8bc3bdc5d794f91ab3b378892dd 125B / 125B 0.1s done #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 9.30MB / 127.96MB 0.3s #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 17.51MB / 127.96MB 0.4s #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 24.06MB / 127.96MB 0.5s #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 41.74MB / 127.96MB 0.7s #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 50.46MB / 127.96MB 0.8s #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 62.94MB / 127.96MB 0.9s #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 77.84MB / 127.96MB 1.1s #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 86.14MB / 127.96MB 1.2s #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 93.89MB / 127.96MB 1.3s #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 113.31MB / 127.96MB 1.5s #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 120.65MB / 127.96MB 1.6s #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 127.96MB / 127.96MB 1.7s #4 ... #10 [internal] load build context #10 transferring context: 42.42MB 1.8s done #10 DONE 2.0s #4 [1/11] FROM docker.io/library/golang:1.12.10@sha256:085cf568ca7daf05b444... #4 sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 127.96MB / 127.96MB 2.0s done #4 extracting sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 #4 extracting sha256:33b8ad332cc67897d366a0a3866b708551b9cfb66ff0637664579cbf2e865b75 4.0s done #4 extracting sha256:aa30e10913dbe58ba0cd45afce4dc735d91bb8bc3bdc5d794f91ab3b378892dd done #4 DONE 6.5s #5 [2/11] RUN apt-get update && apt-get install -y build-essential ... #5 0.885 Get:1 http://deb.debian.org/debian buster InRelease [122 kB] #5 0.885 Get:2 http://security.debian.org/debian-security buster/updates InRelease [39.1 kB] #5 0.896 Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB] #5 0.987 Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [99.2 kB] #5 1.085 Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7899 kB] #5 1.220 Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [5792 B] #5 2.341 Fetched 8214 kB in 2s (4823 kB/s) #5 2.341 Reading package lists... #5 2.907 Reading package lists... #5 3.478 Building dependency tree... #5 3.577 Reading state information... #5 3.671 curl is already the newest version (7.64.0-4). #5 3.671 The following additional packages will be installed: #5 3.671 bzip2 dpkg-dev fakeroot libalgorithm-diff-perl libalgorithm-diff-xs-perl #5 3.672 libalgorithm-merge-perl libfakeroot patch xz-utils #5 3.672 Suggested packages: #5 3.672 bzip2-doc debian-keyring keychain libpam-ssh monkeysphere ssh-askpass ed #5 3.672 diffutils-doc #5 3.672 Recommended packages: #5 3.672 xauth #5 3.741 The following NEW packages will be installed: #5 3.742 build-essential bzip2 dpkg-dev fakeroot libalgorithm-diff-perl #5 3.743 libalgorithm-diff-xs-perl libalgorithm-merge-perl libfakeroot patch xz-utils #5 3.743 The following packages will be upgraded: #5 3.744 openssh-client openssl #5 4.014 2 upgraded, 10 newly installed, 0 to remove and 8 not upgraded. #5 4.014 Need to get 3968 kB of archives. #5 4.014 After this operation, 3602 kB of additional disk space will be used. #5 4.014 Get:1 http://deb.debian.org/debian buster/main amd64 bzip2 amd64 1.0.6-9.2~deb10u1 [48.4 kB] #5 4.014 Get:2 http://security.debian.org/debian-security buster/updates/main amd64 openssh-client amd64 1:7.9p1-10+deb10u1 [782 kB] #5 4.017 Get:3 http://deb.debian.org/debian buster/main amd64 xz-utils amd64 5.2.4-1 [183 kB] #5 4.020 Get:4 http://deb.debian.org/debian buster/main amd64 patch amd64 2.7.6-3+deb10u1 [126 kB] #5 4.023 Get:5 http://deb.debian.org/debian buster/main amd64 dpkg-dev all 1.19.7 [1773 kB] #5 4.036 Get:6 http://security.debian.org/debian-security buster/updates/main amd64 openssl amd64 1.1.1d-0+deb10u2 [843 kB] #5 4.047 Get:7 http://deb.debian.org/debian buster/main amd64 build-essential amd64 12.6 [7576 B] #5 4.048 Get:8 http://deb.debian.org/debian buster/main amd64 libfakeroot amd64 1.23-1 [45.9 kB] #5 4.051 Get:9 http://deb.debian.org/debian buster/main amd64 fakeroot amd64 1.23-1 [85.8 kB] #5 4.052 Get:10 http://deb.debian.org/debian buster/main amd64 libalgorithm-diff-perl all 1.19.03-2 [47.9 kB] #5 4.053 Get:11 http://deb.debian.org/debian buster/main amd64 libalgorithm-diff-xs-perl amd64 0.04-5+b1 [11.8 kB] #5 4.053 Get:12 http://deb.debian.org/debian buster/main amd64 libalgorithm-merge-perl all 0.08-3 [12.7 kB] #5 4.158 debconf: delaying package configuration, since apt-utils is not installed #5 4.183 Fetched 3968 kB in 0s (13.5 MB/s) #5 4.201 Selecting previously unselected package bzip2. #5 4.201 (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 15394 files and directories currently installed.) #5 4.210 Preparing to unpack .../00-bzip2_1.0.6-9.2~deb10u1_amd64.deb ... #5 4.217 Unpacking bzip2 (1.0.6-9.2~deb10u1) ... #5 4.279 Preparing to unpack .../01-openssh-client_1%3a7.9p1-10+deb10u1_amd64.deb ... #5 4.304 Unpacking openssh-client (1:7.9p1-10+deb10u1) over (1:7.9p1-10) ... #5 4.541 Selecting previously unselected package xz-utils. #5 4.543 Preparing to unpack .../02-xz-utils_5.2.4-1_amd64.deb ... #5 4.547 Unpacking xz-utils (5.2.4-1) ... #5 4.638 Selecting previously unselected package patch. #5 4.640 Preparing to unpack .../03-patch_2.7.6-3+deb10u1_amd64.deb ... #5 4.644 Unpacking patch (2.7.6-3+deb10u1) ... #5 4.682 Selecting previously unselected package dpkg-dev. #5 4.682 Preparing to unpack .../04-dpkg-dev_1.19.7_all.deb ... #5 4.686 Unpacking dpkg-dev (1.19.7) ... #5 4.870 Selecting previously unselected package build-essential. #5 4.870 Preparing to unpack .../05-build-essential_12.6_amd64.deb ... #5 4.873 Unpacking build-essential (12.6) ... #5 4.906 Selecting previously unselected package libfakeroot:amd64. #5 4.906 Preparing to unpack .../06-libfakeroot_1.23-1_amd64.deb ... #5 4.915 Unpacking libfakeroot:amd64 (1.23-1) ... #5 4.953 Selecting previously unselected package fakeroot. #5 4.955 Preparing to unpack .../07-fakeroot_1.23-1_amd64.deb ... #5 4.959 Unpacking fakeroot (1.23-1) ... #5 5.010 Selecting previously unselected package libalgorithm-diff-perl. #5 5.010 Preparing to unpack .../08-libalgorithm-diff-perl_1.19.03-2_all.deb ... #5 5.014 Unpacking libalgorithm-diff-perl (1.19.03-2) ... #5 5.047 Selecting previously unselected package libalgorithm-diff-xs-perl. #5 5.048 Preparing to unpack .../09-libalgorithm-diff-xs-perl_0.04-5+b1_amd64.deb ... #5 5.052 Unpacking libalgorithm-diff-xs-perl (0.04-5+b1) ... #5 5.082 Selecting previously unselected package libalgorithm-merge-perl. #5 5.082 Preparing to unpack .../10-libalgorithm-merge-perl_0.08-3_all.deb ... #5 5.085 Unpacking libalgorithm-merge-perl (0.08-3) ... #5 5.127 Preparing to unpack .../11-openssl_1.1.1d-0+deb10u2_amd64.deb ... #5 5.140 Unpacking openssl (1.1.1d-0+deb10u2) over (1.1.1c-1) ... #5 5.443 Setting up libalgorithm-diff-perl (1.19.03-2) ... #5 5.455 Setting up openssh-client (1:7.9p1-10+deb10u1) ... #5 5.488 Setting up bzip2 (1.0.6-9.2~deb10u1) ... #5 5.499 Setting up libfakeroot:amd64 (1.23-1) ... #5 5.515 Setting up fakeroot (1.23-1) ... #5 5.533 update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode #5 5.544 Setting up xz-utils (5.2.4-1) ... #5 5.553 update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode #5 5.561 Setting up patch (2.7.6-3+deb10u1) ... #5 5.572 Setting up openssl (1.1.1d-0+deb10u2) ... #5 5.588 Setting up libalgorithm-diff-xs-perl (0.04-5+b1) ... #5 5.599 Setting up libalgorithm-merge-perl (0.08-3) ... #5 5.610 Setting up dpkg-dev (1.19.7) ... #5 5.636 Setting up build-essential (12.6) ... #5 5.648 Processing triggers for libc-bin (2.28-10) ... #5 DONE 7.8s #6 [3/11] RUN curl -L https://github.com/docker/compose/releases/download/1... #6 0.655 % Total % Received % Xferd Average Speed Time Time Time Current #6 0.656 Dload Upload Total Spent Left Speed #6 0.657 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 617 0 617 0 0 3545 0 --:--:-- --:--:-- --:--:-- 3545 #6 0.946 100 10.3M 100 10.3M 0 0 35.5M 0 --:--:-- --:--:-- --:--:-- 35.5M #6 DONE 1.1s #7 [4/11] RUN curl -Ls https://github.com/theupdateframework/notary/release... #7 DONE 1.1s #8 [5/11] RUN curl -Ls https://github.com/gotestyourself/gotestsum/releases... #8 DONE 1.0s #9 [6/11] WORKDIR /go/src/github.com/docker/cli #9 DONE 0.0s #11 [7/11] COPY e2e/testdata/notary/root-ca.cert /usr/share/ca-certificates/... #11 DONE 0.1s #12 [8/11] RUN echo 'notary.cert' >> /etc/ca-certificates.conf && update-ca-... #12 0.657 Updating certificates in /etc/ssl/certs... #12 1.142 1 added, 0 removed; done. #12 1.142 Running hooks in /etc/ca-certificates/update.d... #12 1.143 done. #12 DONE 1.2s #13 [9/11] COPY . . #13 DONE 0.8s #14 [10/11] RUN ./scripts/build/binary #14 0.611 Building statically linked build/docker-linux-amd64 #14 64.63 # github.com/docker/cli/cli/command/stack #14 64.63 cli/command/stack/services.go:52:130: undefined: "github.com/docker/cli/cli/command/stack/swarm".Service #14 ERROR: executor failed running [/bin/sh -c ./scripts/build/binary]: exit code: 2 ------ > [10/11] RUN ./scripts/build/binary: ------ failed to solve with frontend dockerfile.v0: failed to build LLB: 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