Started by user Anca Iordache Replayed #2 14:31:02 Connecting to https://api.github.com using docker-jenkins/****** (docker-jenkins GitHub credentials) Loading trusted files from base branch master at d065daf522195d9bc9d6da56a67a026f5ebe2c17 rather than b869f4dc14daad3d7035544d62acb2865fc3fe7a Obtained Jenkinsfile from d065daf522195d9bc9d6da56a67a026f5ebe2c17 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 5d8b74fd03a1c7cc00e1c1f32d100ed97a17f4f0 The recommended git tool is: NONE 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 > git --version # 'git version 2.20.1' 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 5d8b74fd03a1c7cc00e1c1f32d100ed97a17f4f0 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 5d8b74fd03a1c7cc00e1c1f32d100ed97a17f4f0 # timeout=10 Commit message: "Merge pull request #25 from ingshtrom/in-2733-load-from-file" > git rev-list --no-walk 5d8b74fd03a1c7cc00e1c1f32d100ed97a17f4f0 # 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-0c286a9b4e964fe9a) in /home/ubuntu/workspace/docker-py_PR-2709 [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/docker-py_PR-2709@tmp/91a3f437-5c14-43f0-be4d-bcf57039b5ba/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 14:31:05 cleanWorkspace: Ensuring workspace is owned by ubuntu [Pipeline] echo 14:31:05 chowning workspace [Pipeline] sh 14:31:06 + pwd 14:31:06 + id -u 14:31:06 + id -g 14:31:06 + docker run --rm -v /home/ubuntu/workspace/docker-py_PR-2709:/workspace busybox chown -R 1000:1000 /workspace [Pipeline] echo 14:31:06 Removing all docker containers [Pipeline] sh 14:31:07 + docker container ls -aq [Pipeline] echo 14:31:07 Docker containers have been removed [Pipeline] echo 14:31:07 cleanWorkspace: Removing existing workspace [Pipeline] deleteDir [Pipeline] echo 14:31:07 cleanWorkspace: Workspace is clean. [Pipeline] stage [Pipeline] { (build image) [Pipeline] checkout 14:31:07 The recommended git tool is: git 14:31:07 using credential docker-jenkins-github-credentials 14:31:07 Cloning the remote Git repository 14:31:07 Cloning with configured refspecs honoured and without tags 14:31:07 Fetching without tags Cloning repository https://github.com/docker/docker-py.git > git init /home/ubuntu/workspace/docker-py_PR-2709 # timeout=10 Fetching upstream changes from https://github.com/docker/docker-py.git > git --version # timeout=10 > git --version # 'git version 2.17.1' using GIT_ASKPASS to set credentials docker-jenkins GitHub credentials > git fetch --no-tags --progress -- https://github.com/docker/docker-py.git +refs/pull/2709/head:refs/remotes/origin/PR-2709 +refs/heads/master:refs/remotes/origin/master # timeout=10 > git config remote.origin.url https://github.com/docker/docker-py.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/2709/head:refs/remotes/origin/PR-2709 # 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/docker-py.git # timeout=10 Fetching upstream changes from https://github.com/docker/docker-py.git using GIT_ASKPASS to set credentials docker-jenkins GitHub credentials > git fetch --no-tags --progress -- https://github.com/docker/docker-py.git +refs/pull/2709/head:refs/remotes/origin/PR-2709 +refs/heads/master:refs/remotes/origin/master # timeout=10 14:31:08 Merging remotes/origin/master commit 432819766014ce396e7507c52246ff5c8a11cdbc into PR head commit b869f4dc14daad3d7035544d62acb2865fc3fe7a 14:31:08 Merge succeeded, producing b869f4dc14daad3d7035544d62acb2865fc3fe7a 14:31:08 Checking out Revision b869f4dc14daad3d7035544d62acb2865fc3fe7a (PR-2709) 14:31:08 Commit message: "Add optional parameters for pruning build cache." 14:31:08 First time build. Skipping changelog. [Pipeline] sh 14:31:08 + git rev-parse HEAD [Pipeline] withDockerRegistry [Pipeline] { > git config core.sparsecheckout # timeout=10 > git checkout -f b869f4dc14daad3d7035544d62acb2865fc3fe7a # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_ASKPASS to set credentials docker-jenkins GitHub credentials > git merge 432819766014ce396e7507c52246ff5c8a11cdbc # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b869f4dc14daad3d7035544d62acb2865fc3fe7a # timeout=10 > git rev-list --no-walk cd1b761214ad852b2ac810d43cbc5ceed61ad80e # timeout=10 [Pipeline] isUnix [Pipeline] sh 14:31:09 + docker pull dockerbuildbot/docker-py:sshdind-b869f4dc14daad3d7035544d62acb2865fc3fe7a 14:31:09 Error response from daemon: pull access denied for dockerbuildbot/docker-py, repository does not exist or may require 'docker login': denied: requested access to the resource is denied [Pipeline] isUnix [Pipeline] sh 14:31:09 + docker build -t dockerbuildbot/docker-py:sshdind-b869f4dc14daad3d7035544d62acb2865fc3fe7a -f tests/Dockerfile-ssh-dind . 14:31:09 Sending build context to Docker daemon 1.369MB 14:31:09 Step 1/11 : ARG API_VERSION=1.39 14:31:09 Step 2/11 : ARG ENGINE_VERSION=19.03.12 14:31:09 Step 3/11 : FROM docker:${ENGINE_VERSION}-dind $ 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/docker-py_PR-2709@tmp/03cb1434-9253-4968-b072-0ff093f117c2/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded 14:31:10 19.03.12-dind: Pulling from library/docker 14:31:10 df20fa9351a1: Pulling fs layer 14:31:10 25ad7478873d: Pulling fs layer 14:31:10 4684f6177b5d: Pulling fs layer 14:31:10 46e300cec669: Pulling fs layer 14:31:10 63038576ad94: Pulling fs layer 14:31:10 0fdb76c4706c: Pulling fs layer 14:31:10 cb7edeffdfd5: Pulling fs layer 14:31:10 cc28bd76800f: Pulling fs layer 14:31:10 54196fe38f7e: Pulling fs layer 14:31:10 ea71acc29633: Pulling fs layer 14:31:10 657cc4c15165: Pulling fs layer 14:31:10 cb7edeffdfd5: Waiting 14:31:10 cc28bd76800f: Waiting 14:31:10 54196fe38f7e: Waiting 14:31:10 ea71acc29633: Waiting 14:31:10 657cc4c15165: Waiting 14:31:10 46e300cec669: Waiting 14:31:10 63038576ad94: Waiting 14:31:10 0fdb76c4706c: Waiting 14:31:10 4684f6177b5d: Verifying Checksum 14:31:10 4684f6177b5d: Download complete 14:31:10 25ad7478873d: Verifying Checksum 14:31:10 25ad7478873d: Download complete 14:31:10 63038576ad94: Verifying Checksum 14:31:10 63038576ad94: Download complete 14:31:10 0fdb76c4706c: Verifying Checksum 14:31:10 0fdb76c4706c: Download complete 14:31:10 cb7edeffdfd5: Verifying Checksum 14:31:10 cb7edeffdfd5: Download complete 14:31:11 df20fa9351a1: Verifying Checksum 14:31:11 df20fa9351a1: Download complete 14:31:11 54196fe38f7e: Verifying Checksum 14:31:11 54196fe38f7e: Download complete 14:31:11 ea71acc29633: Verifying Checksum 14:31:11 ea71acc29633: Download complete 14:31:11 657cc4c15165: Verifying Checksum 14:31:11 657cc4c15165: Download complete 14:31:11 cc28bd76800f: Verifying Checksum 14:31:11 cc28bd76800f: Download complete 14:31:11 df20fa9351a1: Pull complete 14:31:11 25ad7478873d: Pull complete 14:31:11 4684f6177b5d: Pull complete 14:31:16 46e300cec669: Verifying Checksum 14:31:16 46e300cec669: Download complete 14:31:17 46e300cec669: Pull complete 14:31:18 63038576ad94: Pull complete 14:31:18 0fdb76c4706c: Pull complete 14:31:18 cb7edeffdfd5: Pull complete 14:31:18 cc28bd76800f: Pull complete 14:31:18 54196fe38f7e: Pull complete 14:31:18 ea71acc29633: Pull complete 14:31:18 657cc4c15165: Pull complete 14:31:18 Digest: sha256:674f1f40ff7c8ac14f5d8b6b28d8fb1f182647ff75304d018003f1e21a0d8771 14:31:18 Status: Downloaded newer image for docker:19.03.12-dind 14:31:18 ---> 66dc2d45749a 14:31:18 Step 4/11 : RUN apk add --no-cache openssh 14:31:19 ---> Running in 7d3e20938bab 14:31:19 fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz 14:31:20 fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz 14:31:20 (1/4) Installing openssh-sftp-server (8.3_p1-r1) 14:31:20 (2/4) Installing openssh-server-common (8.3_p1-r1) 14:31:20 (3/4) Installing openssh-server (8.3_p1-r1) 14:31:20 (4/4) Installing openssh (8.3_p1-r1) 14:31:20 Executing busybox-1.31.1-r16.trigger 14:31:20 OK: 28 MiB in 51 packages 14:31:21 Removing intermediate container 7d3e20938bab 14:31:21 ---> 6cf1cb93754e 14:31:21 Step 5/11 : RUN ssh-keygen -A 14:31:21 ---> Running in 38e79d7bb14c 14:31:22 ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 14:31:22 Removing intermediate container 38e79d7bb14c 14:31:22 ---> 485819386a90 14:31:22 Step 6/11 : RUN echo "IgnoreUserKnownHosts yes" > /etc/ssh/sshd_config && echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config && echo "PermitRootLogin yes" >> /etc/ssh/sshd_config 14:31:22 ---> Running in eab26c6c1866 14:31:23 Removing intermediate container eab26c6c1866 14:31:23 ---> afbba35ea86d 14:31:23 Step 7/11 : COPY tests/ssh-keys/authorized_keys /root/.ssh/authorized_keys 14:31:23 ---> c043050c18f0 14:31:23 Step 8/11 : RUN chmod 600 /root/.ssh/authorized_keys 14:31:23 ---> Running in 4f12772d9d33 14:31:24 Removing intermediate container 4f12772d9d33 14:31:24 ---> fa8b6eaf290c 14:31:24 Step 9/11 : RUN echo "root:root" | chpasswd 14:31:24 ---> Running in a3dc397b2d53 14:31:24 chpasswd: password for 'root' changed 14:31:24 Removing intermediate container a3dc397b2d53 14:31:24 ---> 64b531080d56 14:31:24 Step 10/11 : RUN ln -s /usr/local/bin/docker /usr/bin/docker 14:31:24 ---> Running in 0b23220fadb1 14:31:25 Removing intermediate container 0b23220fadb1 14:31:25 ---> b23b0c07c6ca 14:31:25 Step 11/11 : EXPOSE 22 14:31:25 ---> Running in 913244bc5e39 14:31:25 Removing intermediate container 913244bc5e39 14:31:25 ---> 3a6efd63ba1e 14:31:25 Successfully built 3a6efd63ba1e 14:31:25 Successfully tagged dockerbuildbot/docker-py:sshdind-b869f4dc14daad3d7035544d62acb2865fc3fe7a [Pipeline] isUnix [Pipeline] sh 14:31:26 + docker tag dockerbuildbot/docker-py:sshdind-b869f4dc14daad3d7035544d62acb2865fc3fe7a dockerbuildbot/docker-py:sshdind-b869f4dc14daad3d7035544d62acb2865fc3fe7a [Pipeline] isUnix [Pipeline] sh 14:31:26 + docker push dockerbuildbot/docker-py:sshdind-b869f4dc14daad3d7035544d62acb2865fc3fe7a 14:31:26 The push refers to repository [docker.io/dockerbuildbot/docker-py] 14:31:26 67e47a0877b1: Preparing 14:31:26 5daf5f461954: Preparing 14:31:26 a881cfed86d4: Preparing 14:31:26 6f73b48f61f4: Preparing 14:31:26 85fdd4b9245a: Preparing 14:31:26 49e113fa1773: Preparing 14:31:26 225166caf8b3: Preparing 14:31:26 1149e736aa92: Preparing 14:31:26 39e79983ac8b: Preparing 14:31:26 da8c28465f82: Preparing 14:31:26 d1292e236c36: Preparing 14:31:26 8890c171a12b: Preparing 14:31:26 4ae5bd84d450: Preparing 14:31:26 723a561964c8: Preparing 14:31:26 78764725b56c: Preparing 14:31:26 51d6d3d09136: Preparing 14:31:26 1507bc794612: Preparing 14:31:26 50644c29ef5a: Preparing 14:31:26 49e113fa1773: Waiting 14:31:26 225166caf8b3: Waiting 14:31:26 1149e736aa92: Waiting 14:31:26 39e79983ac8b: Waiting 14:31:26 da8c28465f82: Waiting 14:31:26 d1292e236c36: Waiting 14:31:26 8890c171a12b: Waiting 14:31:26 4ae5bd84d450: Waiting 14:31:26 723a561964c8: Waiting 14:31:26 78764725b56c: Waiting 14:31:26 51d6d3d09136: Waiting 14:31:26 1507bc794612: Waiting 14:31:26 50644c29ef5a: Waiting 14:31:26 denied: requested access to the resource is denied [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // stage [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 1 Finished: FAILURE