Pull request #2526 updated Connecting to https://api.github.com using docker-jenkins/****** (docker-jenkins GitHub credentials) Obtained Jenkinsfile from 35df132bbc2428680db5834ed5ed87c60afd6dc4+03716c0a07a215a53df4228a99ac00ded440b415 (b4a7c1528b95490c674c61573c973f2207e5b307) 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 ad1b00369dd78a15c273e17e363f91bced3f6e18 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 --force --progress -- https://github.com/docker/jps.git +refs/heads/master:refs/remotes/origin/master # timeout=10 Checking out Revision ad1b00369dd78a15c273e17e363f91bced3f6e18 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f ad1b00369dd78a15c273e17e363f91bced3f6e18 # timeout=10 Commit message: "Merge pull request #22 from docker/add-getOnlineNodeNamesByPrefix" > git rev-list --no-walk ad1b00369dd78a15c273e17e363f91bced3f6e18 # timeout=10 Excluding src/test/ from checkout of git https://github.com/docker/jps.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] node Running on EC2 (managed-agents) - ubuntu-1804-overlay2 (i-08c07ac64f7cf0458) in /home/ubuntu/workspace/cli_PR-2526 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [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-2526 # 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/2526/head:refs/remotes/origin/PR-2526 +refs/heads/master:refs/remotes/origin/master # timeout=10 Fetching without tags Merging remotes/origin/master commit 03716c0a07a215a53df4228a99ac00ded440b415 into PR head commit 35df132bbc2428680db5834ed5ed87c60afd6dc4 Merge succeeded, producing 35df132bbc2428680db5834ed5ed87c60afd6dc4 Checking out Revision 35df132bbc2428680db5834ed5ed87c60afd6dc4 (PR-2526) Commit message: "config: print deprecation warning when falling back to ~/.dockercfg" First time build. Skipping changelog. > git config remote.origin.url https://github.com/docker/cli.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/2526/head:refs/remotes/origin/PR-2526 # 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/2526/head:refs/remotes/origin/PR-2526 +refs/heads/master:refs/remotes/origin/master # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 35df132bbc2428680db5834ed5ed87c60afd6dc4 # timeout=10 > git merge 03716c0a07a215a53df4228a99ac00ded440b415 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 35df132bbc2428680db5834ed5ed87c60afd6dc4 # timeout=10 > git rev-list --no-walk 069f04eeb812fff9cf161132677945bc55767383 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timeout Timeout set to expire in 1 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Docker info) [Pipeline] sh + docker version Client: Docker Engine - Community Version: 19.03.12 API version: 1.40 Go version: go1.13.10 Git commit: 48a66213fe Built: Mon Jun 22 15:45:36 2020 OS/Arch: linux/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 19.03.12 API version: 1.40 (minimum version 1.12) Go version: go1.13.10 Git commit: 48a66213fe Built: Mon Jun 22 15:44:07 2020 OS/Arch: linux/amd64 Experimental: true containerd: Version: 1.2.13 GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc: Version: 1.0.0-rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd 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: 18 Server Version: 19.03.12 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: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd init version: fec3683 Security Options: apparmor seccomp Profile: default Kernel Version: 5.3.0-1030-aws Operating System: Ubuntu 18.04.4 LTS OSType: linux Architecture: x86_64 CPUs: 2 Total Memory: 7.569GiB Name: ip-10-100-51-206 ID: TFWN:GZLY:T5PB:COH3:REM2:HVJX:YXUV:UT7N:56FA:ZQAG:WP4M:HEIO Docker Root Dir: /var/lib/docker Debug Mode: false 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] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (e2e (non-experimental) - stable engine) [Pipeline] sh + E2E_UNIQUE_ID=clie2e14 IMAGE_TAG=clie2e14 DOCKER_BUILDKIT=1 make -f docker.Makefile test-e2e-non-experimental docker build -t docker-cli-e2eclie2e14 --build-arg=GO_VERSION --build-arg VERSION=20.03.0-dev --build-arg GITCOMMIT= -f ./dockerfiles/Dockerfile.e2e . #1 [internal] load .dockerignore #1 transferring context: 110B done #1 DONE 0.0s #2 [internal] load build definition from Dockerfile.e2e #2 transferring dockerfile: 1.65kB done #2 DONE 0.0s #3 [internal] load metadata for docker.io/library/golang:1.13.12-buster #3 DONE 0.1s #4 [1/11] FROM docker.io/library/golang:1.13.12-buster@sha256:0a96caa793984... #4 DONE 0.0s #10 [internal] load build context #10 transferring context: 41.10MB 1.0s done #10 DONE 1.1s #8 [5/11] RUN curl -fsSL https://github.com/gotestyourself/gotestsum/releas... #8 CACHED #11 [7/11] COPY e2e/testdata/notary/root-ca.cert /usr/share/ca-certificates/... #11 CACHED #6 [3/11] RUN curl -fsSL https://github.com/docker/compose/releases/downloa... #6 CACHED #9 [6/11] WORKDIR /go/src/github.com/docker/cli #9 CACHED #5 [2/11] RUN apt-get update && apt-get install -y build-essential ... #5 CACHED #7 [4/11] RUN curl -fsSL https://github.com/theupdateframework/notary/relea... #7 CACHED #12 [8/11] RUN echo 'notary.cert' >> /etc/ca-certificates.conf && update-ca-... #12 CACHED #13 [9/11] COPY . . #13 DONE 0.8s #14 [10/11] RUN ./scripts/build/binary #14 0.543 Building statically linked build/docker-linux-amd64 #14 DONE 70.1s #15 [11/11] RUN ./scripts/build/plugins e2e/cli-plugins/plugins/* #15 0.578 Building statically linked build/plugins-linux-amd64/docker-helloworld #15 1.764 Building statically linked build/plugins-linux-amd64/docker-badmeta #15 2.792 Building statically linked build/plugins-linux-amd64/docker-nopersistentprerun #15 DONE 4.0s #16 exporting to image #16 exporting layers #16 exporting layers 2.0s done #16 writing image sha256:4134ee6f90888b2fb052e53031f36611aa2330ceaada3fb431f4be7396f867d0 done #16 naming to docker.io/library/docker-cli-e2eclie2e14 done #16 DONE 2.0s docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -e VERSION=20.03.0-dev -e GITCOMMIT -e PLATFORM -e TESTFLAGS -e TESTDIRS -e GOOS -e GOARCH -e GOARM -e TEST_ENGINE_VERSION= -e TEST_ENGINE_VERSION= docker-cli-e2eclie2e14 Native build is an experimental feature and could change at any time Creating network "cliendtoendsuite_default" with the default driver Building notary-server WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release #1 [internal] load build definition from Dockerfile.notary-server #1 transferring dockerfile: 140B done #1 DONE 0.0s #2 [internal] load .dockerignore #2 transferring context: 2B done #2 DONE 0.0s #3 [internal] load metadata for docker.io/library/notary:server-0.5.0 #3 DONE 0.0s #4 [1/2] FROM docker.io/library/notary:server-0.5.0 #4 DONE 0.0s #5 [internal] load build context #5 transferring context: 5.70kB done #5 DONE 0.0s #6 [2/2] COPY ./notary/ /fixtures/ #6 CACHED #7 exporting to image #7 exporting layers done #7 writing image sha256:c8fb31b2bffc84d7a943791d399cc827d368b0d1ab969d62511fa4a2a2095e69 done #7 naming to docker.io/library/cliendtoendsuite_notary-server done #7 DONE 0.0s Successfully built c8fb31b2bffc84d7a943791d399cc827d368b0d1ab969d62511fa4a2a2095e69 Building evil-notary-server WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release #2 [internal] load .dockerignore #2 DONE 0.0s #1 [internal] load build definition from Dockerfile.evil-notary-server #1 transferring dockerfile: 150B done #1 DONE 0.0s #2 [internal] load .dockerignore #2 transferring context: 2B done #2 DONE 0.0s #3 [internal] load metadata for docker.io/library/notary:server-0.5.0 #3 DONE 0.0s #4 [1/2] FROM docker.io/library/notary:server-0.5.0 #4 DONE 0.0s #5 [internal] load build context #5 transferring context: 5.73kB done #5 DONE 0.0s #6 [2/2] COPY ./notary-evil/ /fixtures/ #6 CACHED #7 exporting to image #7 exporting layers done #7 writing image sha256:bec5a9706191d54503820e7a8cb59b7780a3c588874a094751e7e9ced1dc5b58 done #7 naming to docker.io/library/cliendtoendsuite_evil-notary-server done #7 DONE 0.0s Successfully built bec5a9706191d54503820e7a8cb59b7780a3c588874a094751e7e9ced1dc5b58 Creating cliendtoendsuite_notary-server_1 ... Creating cliendtoendsuite_evil-notary-server_1 ... Creating cliendtoendsuite_engine_1 ... Creating cliendtoendsuite_registry_1 ...  Creating cliendtoendsuite_engine_1 ... done  Creating cliendtoendsuite_notary-server_1 ... done  Creating cliendtoendsuite_registry_1 ... done  Creating cliendtoendsuite_evil-notary-server_1 ... done WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release Waiting for docker daemon to become available at tcp://172.30.0.4:2375 WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release Client: Version: 20.03.0-dev API version: 1.40 Go version: go1.13.12 Git commit: Built: Thu Jul 16 10:02:26 2020 OS/Arch: linux/amd64 Context: default Experimental: false Server: Docker Engine - Community Engine: Version: 19.03.12 API version: 1.40 (minimum version 1.12) Go version: go1.13.10 Git commit: 48a66213fe Built: Mon Jun 22 15:49:35 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: v1.2.13 GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429 runc: Version: 1.0.0-rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd docker-init: Version: 0.18.0 GitCommit: fec3683 WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release sha256:f006ecbb824d87947d0b51ab8488634bf69fe4094959d935c0c103f4820a417d: Pulling from library/alpine 88286f41530e: Pulling fs layer 88286f41530e: Verifying Checksum 88286f41530e: Download complete 88286f41530e: Pull complete Digest: sha256:f006ecbb824d87947d0b51ab8488634bf69fe4094959d935c0c103f4820a417d Status: Downloaded newer image for alpine@sha256:f006ecbb824d87947d0b51ab8488634bf69fe4094959d935c0c103f4820a417d docker.io/library/alpine@sha256:f006ecbb824d87947d0b51ab8488634bf69fe4094959d935c0c103f4820a417d WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release The push refers to repository [registry:5000/alpine] 5bef08742407: Preparing 5bef08742407: Pushed 3.6: digest: sha256:641b95ddb2ea9dc2af1a0113b6b348ebc20872ba615204fbe12148e98fd6f23d size: 528 WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release sha256:3e8fa85ddfef1af9ca85a5cfb714148956984e02f00bec3f7f49d3925a91e0e7: Pulling from library/busybox 03b1be98f3f9: Pulling fs layer 03b1be98f3f9: Verifying Checksum 03b1be98f3f9: Download complete 03b1be98f3f9: Pull complete Digest: sha256:3e8fa85ddfef1af9ca85a5cfb714148956984e02f00bec3f7f49d3925a91e0e7 Status: Downloaded newer image for busybox@sha256:3e8fa85ddfef1af9ca85a5cfb714148956984e02f00bec3f7f49d3925a91e0e7 docker.io/library/busybox@sha256:3e8fa85ddfef1af9ca85a5cfb714148956984e02f00bec3f7f49d3925a91e0e7 WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release The push refers to repository [registry:5000/busybox] 6a749002dd6a: Preparing 6a749002dd6a: Pushed 1.27.2: digest: sha256:030fcb92e1487b18c974784dcc110a93147c9fc402188370fbfd17efabffc6af size: 527 WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release Swarm initialized: current node (i1xra5b0xg0etjk3ik79ynnjd) is now a manager. To add a worker to this swarm, run the following command: docker swarm join --token SWMTKN-1-2nhzzin3q4c3bk5rzbv6h8p36sftb5umor8p3reqnwegq1l4a0-6ry57v7spirx9gpb5ei015luf 172.30.0.4:2377 To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions. ✓ e2e/cli-plugins (2.739s) ∅ e2e/cli-plugins/plugins/badmeta ∅ e2e/cli-plugins/plugins/nopersistentprerun ✓ e2e/context (49ms) ✓ e2e/global (90ms) ✖ e2e/container (9.052s) ✓ e2e/plugin (3.594s) ✖ e2e/stack (578ms) ✓ e2e/system (66ms) ✖ e2e/image (11.64s) ∅ e2e/internal/fixtures ∅ e2e/plugin/basic ✓ e2e/trust (2.125s) === Skipped === SKIP: e2e/cli-plugins TestCLIPluginDialStdio (0.00s) dial_test.go:16: skipping plugin dial-stdio test since DOCKER_CLI_PLUGIN_USE_DIAL_STDIO is not set === SKIP: e2e/stack TestDeployWithNamedResources/Kubernetes (0.00s) --- SKIP: TestDeployWithNamedResources/Kubernetes (0.00s) deploy_test.go:22: FIXME(chris-crone): currently does not work with compose for kubernetes. === SKIP: e2e/stack TestRemove/Kubernetes (0.00s) --- SKIP: TestRemove/Kubernetes (0.00s) remove_test.go:22: !environment.KubernetesEnabled() === Failed === FAIL: e2e/container TestRunAttachedFromRemoteImageAndRemove (0.80s) run_test.go:28: assertion failed: --- expected +++ actual @@ -1,2 +1,3 @@ +WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release Unable to find image 'registry:5000/alpine:test-run-pulls' locally test-run-pulls: Pulling from alpine You can run 'go test . -test.update-golden' to automatically update testdata/run-attached-from-remote-and-remove.golden to the new expected value.' === FAIL: e2e/container TestRunWithCgroupNamespace (0.06s) run_test.go:140: assertion failed: Command: docker info --format {{.OSType}} ExitCode: 0 Stdout: linux Stderr: WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release Failures: Expected stderr to contain "[NOTHING]" === FAIL: e2e/image TestBuildFromContextDirectoryWithTag (1.16s) build_test.go:37: assertion failed: Command: docker build -t myimage . ExitCode: 0 Stdout: Sending build context to Docker daemon 4.608kB Step 1/4 : FROM registry:5000/alpine:3.6 ---> 76da55c8019d Step 2/4 : COPY run /usr/bin/run ---> 5940ef563bff Step 3/4 : RUN run ---> Running in a94e9a22acef running Removing intermediate container a94e9a22acef ---> 752f5e50d53c Step 4/4 : COPY data /data ---> 6bad2c500e8e Successfully built 6bad2c500e8e Successfully tagged myimage:latest Stderr: WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release Failures: Expected stderr to contain "[NOTHING]" === FAIL: e2e/image TestBuildIidFileSquash (0.05s) build_test.go:112: assertion failed: Command: docker info --format {{.ExperimentalBuild}} ExitCode: 0 Stdout: false Stderr: WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release Failures: Expected stderr to contain "[NOTHING]" === FAIL: e2e/image TestPullQuiet (0.05s) pull_test.go:41: assertion failed: --- ← +++ → @@ -1,2 +1 @@ -WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release === FAIL: e2e/image TestPushAllTags (0.48s) push_test.go:40: assertion failed: --- expected +++ actual @@ -1 +1,2 @@ +WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release You can run 'go test . -test.update-golden' to automatically update testdata/push-with-content-trust-err.golden to the new expected value.' === FAIL: e2e/stack TestRemove/Swarm (0.30s) --- FAIL: TestRemove/Swarm (0.30s) remove_test.go:34: assertion failed: Command: docker stack rm test-stack-remove-swarm --orchestrator swarm ExitCode: 0 Stdout: Removing service test-stack-remove-swarm_one Removing service test-stack-remove-swarm_two Removing network test-stack-remove-swarm_default Stderr: WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release Failures: Expected stderr to contain "[NOTHING]" === FAIL: e2e/stack TestRemove (0.30s) DONE 94 tests, 3 skipped, 8 failures in 32.858s WARNING: The legacy ~/.dockercfg configuration file is deprecated and will be removed in an upcoming release Stopping cliendtoendsuite_registry_1 ... Stopping cliendtoendsuite_engine_1 ... Stopping cliendtoendsuite_evil-notary-server_1 ... Stopping cliendtoendsuite_notary-server_1 ...  Stopping cliendtoendsuite_registry_1 ... done  Stopping cliendtoendsuite_notary-server_1 ... done  Stopping cliendtoendsuite_evil-notary-server_1 ... done  Stopping cliendtoendsuite_engine_1 ... done Removing cliendtoendsuite_registry_1 ... Removing cliendtoendsuite_engine_1 ... Removing cliendtoendsuite_evil-notary-server_1 ... Removing cliendtoendsuite_notary-server_1 ...  Removing cliendtoendsuite_evil-notary-server_1 ... done  Removing cliendtoendsuite_notary-server_1 ... done  Removing cliendtoendsuite_registry_1 ... done  Removing cliendtoendsuite_engine_1 ... done Removing network cliendtoendsuite_default Removing image cliendtoendsuite_notary-server Removing image cliendtoendsuite_evil-notary-server docker.Makefile:153: recipe for target 'test-e2e-non-experimental' failed make: *** [test-e2e-non-experimental] Error 1 [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (e2e (non-experimental) - 18.09 engine) Stage "e2e (non-experimental) - 18.09 engine" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (e2e (experimental)) Stage "e2e (experimental)" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (e2e (ssh connhelper)) Stage "e2e (ssh connhelper)" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // withEnv [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