13:32:41 Started by upstream project "Krel_trigger-jobs" build number 44114 13:32:41 originally caused by: 13:32:41 Started by timer 13:32:41 Building remotely on build client 1 (slave buildslave indigo_devel_default) in workspace /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source 13:32:41 [ssh-agent] Looking for ssh-agent implementation... 13:32:41 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 13:32:41 $ ssh-agent 13:32:41 SSH_AUTH_SOCK=/tmp/ssh-Hv47GHM1vbQ1/agent.17096 13:32:41 SSH_AGENT_PID=17097 13:32:41 [ssh-agent] Started. 13:32:41 $ ssh-add /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source@tmp/private_key_7746782070070486082.key 13:32:41 Identity added: /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source@tmp/private_key_7746782070070486082.key (/home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source@tmp/private_key_7746782070070486082.key) 13:32:41 [ssh-agent] Using credentials jenkins-slave
1. Check free disk space

Hide Details

13:32:41 # BEGIN SECTION: Check free disk space 13:32:41 Usable disk space = 56053800960 bytes 13:32:41 Free space threshold = 5368709120 bytes 13:32:41 # END SECTION
13:32:41 [Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source] $ /bin/sh -xe /tmp/hudson3257407712413239691.sh 13:32:41 + echo # BEGIN SECTION: docker version
2. docker version

Hide Details

13:32:41 # BEGIN SECTION: docker version 13:32:41 + docker version 13:32:41 Client: 13:32:41 Version: 1.9.1 13:32:41 API version: 1.21 13:32:41 Go version: go1.4.2 13:32:41 Git commit: a34a1d5 13:32:41 Built: Fri Nov 20 13:12:04 UTC 2015 13:32:41 OS/Arch: linux/amd64 13:32:41 13:32:41 Server: 13:32:41 Version: 1.9.1 13:32:41 API version: 1.21 13:32:41 Go version: go1.4.2 13:32:41 Git commit: a34a1d5 13:32:41 Built: Fri Nov 20 13:12:04 UTC 2015 13:32:41 OS/Arch: linux/amd64 13:32:41 + echo # END SECTION 13:32:41 # END SECTION
13:32:41 + echo # BEGIN SECTION: docker info
3. docker info

Hide Details

13:32:41 # BEGIN SECTION: docker info 13:32:41 + docker info 13:32:42 Containers: 331 13:32:42 Images: 2371 13:32:42 Server Version: 1.9.1 13:32:42 Storage Driver: aufs 13:32:42 Root Dir: /var/lib/docker/aufs 13:32:42 Backing Filesystem: extfs 13:32:42 Dirs: 3455 13:32:42 Dirperm1 Supported: false 13:32:42 Execution Driver: native-0.2 13:32:42 Logging Driver: json-file 13:32:42 Kernel Version: 3.13.0-29-generic 13:32:42 Operating System: Ubuntu 14.04 LTS 13:32:42 CPUs: 2 13:32:42 Total Memory: 3.861 GiB 13:32:42 Name: lcas-buildfarm-slave-2 13:32:42 ID: LZSS:PF7G:CREH:TEQW:FH57:3M6D:KCSS:ODQY:SPHA:ND7A:FHYG:PNDE 13:32:42 WARNING: No swap limit support 13:32:42 + echo # END SECTION 13:32:42 # END SECTION
13:32:42 [Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source] $ /bin/sh -xe /tmp/hudson5730560996075889841.sh 13:32:42 + echo # BEGIN SECTION: Check docker status
4. Check docker status

Hide Details

13:32:42 # BEGIN SECTION: Check docker status 13:32:42 + echo Testing trivial docker invocation... 13:32:42 Testing trivial docker invocation... 13:32:42 + docker run --rm ubuntu:xenial true 13:32:43 + echo 'docker run' returned 0 13:32:43 'docker run' returned 0 13:32:43 docker seems operational, continuing 13:32:43 [Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source] $ /bin/sh -xe /tmp/hudson2462790786535470097.sh 13:32:43 + echo # END SECTION 13:32:43 # END SECTION
13:32:43 [Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source] $ /bin/sh -xe /tmp/hudson6949164698444904939.sh 13:32:43 + echo # BEGIN SECTION: Embed wrapper scripts
5. Embed wrapper scripts

Hide Details

13:32:43 # BEGIN SECTION: Embed wrapper scripts 13:32:43 + rm -fr wrapper_scripts 13:32:43 + mkdir wrapper_scripts 13:32:43 + printf #!/usr/bin/env python3\n\n# Copyright 2016 Open Source Robotics Foundation, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the "License");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an "AS IS" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport subprocess\nimport sys\nfrom time import sleep\n\n\ndef main(argv=sys.argv[1:]):\n max_tries = 10\n known_error_strings = [\n 'Connection timed out',\n ]\n\n command = argv[0]\n if command == 'clone':\n rc, _, _ = call_git_repeatedly(\n argv, known_error_strings, max_tries)\n return rc\n else:\n assert "Command '%%s' not implemented" %% command\n\n\ndef call_git_repeatedly(argv, known_error_strings, max_tries):\n command = argv[0]\n for i in range(1, max_tries + 1):\n if i > 1:\n sleep_time = 5 + 2 * i\n print("Reinvoke 'git %%s' (%%d/%%d) after sleeping %%s seconds" %%\n (command, i, max_tries, sleep_time))\n sleep(sleep_time)\n rc, known_error_conditions = call_git(argv, known_error_strings)\n if rc == 0 or not known_error_conditions:\n break\n print('')\n print('Invocation failed due to the following known error conditions: '\n ', '.join(known_error_conditions))\n print('')\n # retry in case of failure with known error condition\n return rc, known_error_conditions, i\n\n\ndef call_git(argv, known_error_strings):\n known_error_conditions = []\n\n cmd = ['git'] + argv\n print("Invoking '%%s'" %% ' '.join(cmd))\n proc = subprocess.Popen(\n cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)\n while True:\n line = proc.stdout.readline()\n if not line:\n break\n line = line.decode()\n sys.stdout.write(line)\n for known_error_string in known_error_strings:\n if known_error_string in line:\n if known_error_string not in known_error_conditions:\n known_error_conditions.append(known_error_string)\n proc.wait()\n rc = proc.returncode\n return rc, known_error_conditions\n\n\nif __name__ == '__main__':\n sys.exit(main()) 13:32:43 + echo # END SECTION 13:32:43 # END SECTION
13:32:43 [Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source] $ /bin/sh -xe /tmp/hudson8906464531079641888.sh 13:32:43 + echo # BEGIN SECTION: Clone ros_buildfarm
6. Clone ros_buildfarm

Hide Details

13:32:43 # BEGIN SECTION: Clone ros_buildfarm 13:32:43 + rm -fr ros_buildfarm 13:32:43 + python3 -u wrapper_scripts/git.py clone --depth 1 -b master https://github.com/lcas/ros_buildfarm.git ros_buildfarm 13:32:43 Invoking 'git clone --depth 1 -b master https://github.com/lcas/ros_buildfarm.git ros_buildfarm' 13:32:43 Cloning into 'ros_buildfarm'... 13:32:44 + git -C ros_buildfarm --no-pager log -n 1 13:32:44 commit aca918fa40d6391d4894b39d8d3477d2e6e0a390 13:32:44 Author: Marc Hanheide <marc@hanheide.de> 13:32:44 Date: Thu Aug 2 12:13:42 2018 +0100 13:32:44 13:32:44 added cleanup 13:32:45 + rm -fr ros_buildfarm/.git 13:32:45 + rm -fr ros_buildfarm/doc 13:32:45 + echo # END SECTION 13:32:45 # END SECTION
13:32:45 [Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source] $ /bin/sh -xe /tmp/hudson1680097393125207641.sh 13:32:45 + echo # BEGIN SECTION: Write PGP repository keys
7. Write PGP repository keys

Hide Details

13:32:45 # BEGIN SECTION: Write PGP repository keys 13:32:45 + mkdir -p /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/keys 13:32:45 + rm -fr /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/keys/* 13:32:45 + echo -----BEGIN PGP PUBLIC KEY BLOCK----- 13:32:45 Version: GnuPG v1.4.11 (GNU/Linux) 13:32:45 13:32:45 mQENBFPzE4sBCAC9c8hzt+gqe6YqXAW9Yd10jx68M0q8IowAe182yVtIvYf5l+qn 13:32:45 MsXiDUz4l7c1TcRpdzZ1WwEQoNNjQKq51ip2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P42qB5yK7FRNv4JubMmqhK 13:32:45 7fkD88uu7JVGRYU+temWuJHH4WDxiCmvK8nXacFaZT1NGdTL9/2EukKLguTtZumb 13:32:45 oRWgFqV6WFcEnh/V/Ma51D2+K9QbCWa8Bb6c/wKOd9Ii1aDZABEBAAGJAR8EGAEC 13:32:45 AAkFAlPzE4sCGwwACgkQ3NdDGK7TmFT2rwf+MzLFPn4Rkko38nctysbXm6qmk34U 13:32:45 NTtqirOlxg3mWeUCp7VQGU2Rg2msdo764SxCK12OhJqlXGMd2efCoQhYbMOqG6C0 13:32:45 ikBZPkd5BVFuTKsAUiuVoiQd8bDaZSpO2QdE0RdHE/yYfO66pceEKkGlcjkTRFFU 13:32:45 M7nTm7IQj4BBZclMLPr4fX520ZOVUepxAARMHW5A6EcHXvhXmblZOJM36fOv3T5N 13:32:45 l9L5tWdt/wybaRE4xuwVSs0n7MyMlWmkQxz8Z6OQscbKmuI4tcYSbvvB5tzjLBwZ 13:32:45 Chb0eEZA5ePvnGofu+3JH48FmCIPveD+4kI9GhtGkCL3Q2PiPiLcSnWQWQ== 13:32:45 =nFcN 13:32:45 -----END PGP PUBLIC KEY BLOCK----- 13:32:45 13:32:45 + echo -----BEGIN PGP PUBLIC KEY BLOCK----- 13:32:45 Version: GnuPG v1 13:32:45 13:32:45 mQGiBEsy5KkRBADJbDSISoamRM5AA20bfAeBuhhaI+VaiCVcxw90sq9AI5lIc42F 13:32:45 WzM2acm8yplqWiehAqOLKd+iIrqNGZ+VavZEPTx7o06UZUMRoPBiTFaCwrQ5avKz 13:32:45 lt7ij8PRMVWNrJ7A2lDYXfFQVV1o3Xo06qVnv0KLLUmiur0LBu4H/oTH3wCgt+/I 13:32:45 D3LUKaMJsc77KwFBTjHB0EsD/26Z2Ud12f3urSNyN6VMWnP3rz6xsmtY4Qsmkbnr 13:32:45 JuduxCQBZv6bX1Cr2ulXkv0fFOr+s5OyUv7zyCPbxiJFh3Br7fJGb0b5/M208KPe 13:32:45 giITY9hMh/aU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BO2CjCknyhLrWxZHoy+i1GCZ9KvPF/Ef2dmLhCydT73ZlumsY8N5vm76Q 13:32:45 ul1G7f8LNbnMgXQafRkPffrAXSVhGY3Z2IiBwFNgxcKTq479l7yedYRGeU1A+SYI 13:32:45 YmRFWHXt3rTkMlQSpxCsB0fAYfrwEqqISQQYEQIACQUCSzLkrgIbDAAKCRBVI7ru 13:32:45 sB+hFpryAJ9qNz3h3ijt9TkAV0CHufsPT6Cl4gCglfg7tJn2lsSF3HTpoDDO1Fgg 13:32:45 x9o= 13:32:45 =AGYp 13:32:45 -----END PGP PUBLIC KEY BLOCK----- 13:32:45 13:32:45 + echo # END SECTION 13:32:45 # END SECTION
13:32:45 [Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source] $ /bin/sh -xe /tmp/hudson7679078128801589396.sh 13:32:45 + rm -fr /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/docker_sourcedeb 13:32:45 + mkdir -p /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/docker_sourcedeb 13:32:45 + sleep 1 13:32:45 + python3 -u /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/ros_buildfarm/scripts/subprocess_reaper.py 17307 --cid-file /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/docker_sourcedeb/docker.cid 13:32:46 + echo # BEGIN SECTION: Generate Dockerfile - sourcedeb task
8. Generate Dockerfile - sourcedeb task

Hide Details

13:32:46 # BEGIN SECTION: Generate Dockerfile - sourcedeb task 13:32:46 + export TZ=GMT+00 13:32:46 + export PYTHONPATH=/home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/ros_buildfarm: 13:32:46 + python3 -u /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/ros_buildfarm/scripts/release/run_sourcedeb_job.py --rosdistro-index-url https://raw.githubusercontent.com/LCAS/rosdistro/master/index.yaml kinetic spencer_diagnostics ubuntu xenial --distribution-repository-urls http://10.210.9.154/ubuntu/building http://packages.ros.org/ros/ubuntu --distribution-repository-key-files /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/keys/0.key /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/keys/1.key --source-dir /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/sourcedeb/source --dockerfile-dir /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/docker_sourcedeb 13:32:46 Using the following distribution repositories: 13:32:46 http://10.210.9.154/ubuntu/building (/home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/keys/0.key) 13:32:46 http://packages.ros.org/ros/ubuntu (/home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/keys/1.key) 13:32:46 Generating Dockerfile '/home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/docker_sourcedeb/Dockerfile': 13:32:46 # generated from release/sourcedeb_task.Dockerfile.em 13:32:46 13:32:46 FROM ubuntu:xenial 13:32:46 13:32:46 VOLUME ["/var/cache/apt/archives"] 13:32:46 13:32:46 ENV DEBIAN_FRONTEND noninteractive 13:32:46 13:32:46 RUN for i in 1 2 3; do apt-get update && apt-get install -q -y locales && apt-get clean && break || if [[ $i < 3 ]]; then sleep 5; else false; fi; done 13:32:46 RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen 13:32:46 RUN locale-gen en_US.UTF-8 13:32:46 ENV LANG en_US.UTF-8 13:32:46 ENV TZ GMT+00 13:32:46 13:32:46 RUN useradd -u 1002 -m buildfarm 13:32:46 13:32:46 13:32:46 RUN mkdir /tmp/keys 13:32:46 RUN echo "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.11 (GNU/Linux)\n\nmQENBFPzE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WB66/AXBYF8dpCP42qB5yK7FRNv4JubMmqhK\n7fkD88uu7JVGRYU+temWuJHH4WDxiCmvK8nXacFaZT1NGdTL9/2EukKLguTtZumb\noRWgFqV6WFcEnh/V/Ma51D2+K9QbCWa8Bb6c/wKOd9Ii1aDZABEBAAGJAR8EGAEC\nAAkFAlPzE4sCGwwACgkQ3NdDGK7TmFT2rwf+MzLFPn4Rkko38nctysbXm6qmk34U\nNTtqirOlxg3mWeUCp7VQGU2Rg2msdo764SxCK12OhJqlXGMd2efCoQhYbMOqG6C0\nikBZPkd5BVFuTKsAUiuVoiQd8bDaZSpO2QdE0RdHE/yYfO66pceEKkGlcjkTRFFU\nM7nTm7IQj4BBZclMLPr4fX520ZOVUepxAARMHW5A6EcHXvhXmblZOJM36fOv3T5N\nl9L5tWdt/wybaRE4xuwVSs0n7MyMlWmkQxz8Z6OQscbKmuI4tcYSbvvB5tzjLBwZ\nChb0eEZA5ePvnGofu+3JH48FmCIPveD+4kI9GhtGkCL3Q2PiPiLcSnWQWQ==\n=nFcN\n-----END PGP PUBLIC KEY BLOCK----- \n" > /tmp/keys/0.key && apt-key add /tmp/keys/0.key 13:32:46 RUN echo "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1\n\nmQGiBEsy5KkRBADJbDSISoamRM5AA20bfAeBuhhaI+VaiCVcxw90sq9AI5lIc42F\nWzM2acm8yplqWiehAqOLKd+iIrqNGZ+VavZEPTx7o06UZUMRoPBiTFaCwrQ5avKz\nlt7ij8PRMVWNrJ7A2lDYXfFQVV1o3Xo06qVnv0KLLUmiur0LBu4H/oTH3wCgt+/I\nD3LUKaMJsc77KwFBTjHB0EsD/26Z2Ud12f3urSNyN6VMWnP3rz6xsmtY4Qsmkbnr\nJuduxCQBZv6bX1Cr2ulXkv0fFOr+s5OyUv7zyCPbxiJFh3Br7fJGb0b5/M208KPe\ngiITY9hMh/aUbKjXCPoOXPxSL6SWOWV8taR6903EFyLBN0qno/kXIBKnVqBZobgn\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3rTkMlQSpxCsB0fAYfrwEqqISQQYEQIACQUCSzLkrgIbDAAKCRBVI7ru\nsB+hFpryAJ9qNz3h3ijt9TkAV0CHufsPT6Cl4gCglfg7tJn2lsSF3HTpoDDO1Fgg\nx9o=\n=AGYp\n-----END PGP PUBLIC KEY BLOCK-----\n" > /tmp/keys/1.key && apt-key add /tmp/keys/1.key 13:32:46 RUN echo deb http://10.210.9.154/ubuntu/building xenial main | tee -a /etc/apt/sources.list.d/buildfarm.list 13:32:46 RUN echo deb http://packages.ros.org/ros/ubuntu xenial main | tee -a /etc/apt/sources.list.d/buildfarm.list 13:32:46 13:32:46 RUN mkdir /tmp/wrapper_scripts 13:32:46 RUN echo "#!/usr/bin/env python3\n\n# Copyright 2014-2016 Open Source Robotics Foundation, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport subprocess\nimport sys\nfrom time import sleep\n\n\ndef main(argv=sys.argv[1:]):\n max_tries = 10\n known_error_strings = [\n 'Failed to fetch',\n 'Hash Sum mismatch',\n 'Unable to locate package',\n 'is not what the server reported',\n ]\n\n command = argv[0]\n if command in ['update', 'source']:\n rc, _, _ = call_apt_repeatedly(\n argv, known_error_strings, max_tries)\n return rc\n elif command == 'update-install-clean':\n return call_apt_update_install_clean(\n argv[1:], known_error_strings, max_tries)\n else:\n assert \"Command '%s' not implemented\" % command\n\n\ndef call_apt_update_install_clean(\n install_argv, known_error_strings, max_tries):\n tries = 0\n command = 'update'\n while tries < max_tries:\n if command == 'update':\n rc, _, tries = call_apt_repeatedly(\n [command], known_error_strings, max_tries - tries,\n offset=tries)\n if rc != 0:\n # abort if update was unsuccessful even after retries\n break\n # move on to the install command if update was successful\n command = 'install'\n\n if command == 'install':\n # any call is considered a try\n tries += 1\n known_error_strings_redo_update = [\n 'Size mismatch',\n 'maybe run apt update',\n 'The following packages cannot be authenticated!',\n 'Unable to locate package',\n ]\n rc, known_error_conditions = \\\\\n call_apt(\n [command] + install_argv,\n known_error_strings + known_error_strings_redo_update)\n if not known_error_conditions:\n if rc != 0:\n # abort if install was unsuccessful\n break\n # move on to the clean command if install was successful\n command = 'clean'\n continue\n\n # known errors are always interpreted as a non-zero rc\n if rc == 0:\n rc = 1\n # check if update needs to be rerun\n if (\n set(known_error_conditions) &\n set(known_error_strings_redo_update)\n ):\n command = 'update'\n print(\"'apt install' failed and likely requires \" +\n \"'apt update' to run again\")\n # retry with update command\n continue\n\n print('Invocation failed due to the following known error '\n 'conditions: ' + ', '.join(known_error_conditions))\n if tries < max_tries:\n sleep_time = 5\n print(\"Reinvoke 'apt install' after sleeping %s seconds\" %\n sleep_time)\n sleep(sleep_time)\n # retry install command\n\n if command == 'clean':\n rc, _ = call_apt([command], [])\n break\n\n return rc\n\n\ndef call_apt_repeatedly(argv, known_error_strings, max_tries, offset=0):\n command = argv[0]\n for i in range(1, max_tries + 1):\n if i > 1:\n sleep_time = 5 + 2 * (i + offset)\n print(\"Reinvoke 'apt %s' (%d/%d) after sleeping %s seconds\" %\n (command, i + offset, max_tries + offset, sleep_time))\n sleep(sleep_time)\n rc, known_error_conditions = call_apt(argv, known_error_strings)\n if not known_error_conditions:\n # break the loop and return the reported rc\n break\n # known errors are always interpreted as a non-zero rc\n if rc == 0:\n rc = 1\n print('')\n print('Invocation failed due to the following known error conditions: '\n ', '.join(known_error_conditions))\n print('')\n # retry in case of failure with known error condition\n return rc, known_error_conditions, i + offset\n\n\ndef call_apt(argv, known_error_strings):\n known_error_conditions = []\n\n # some of the used options are not supported in older distros\n # e.g. Ubuntu Wily, Debian Jessie\n cmd = ['apt-get'] + argv\n print(\"Invoking '%s'\" % ' '.join(cmd))\n proc = subprocess.Popen(\n cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)\n lines = []\n while True:\n line = proc.stdout.readline()\n if not line:\n break\n line = line.decode()\n lines.append(line)\n sys.stdout.write(line)\n for known_error_string in known_error_strings:\n if known_error_string in line:\n if known_error_string not in known_error_conditions:\n known_error_conditions.append(known_error_string)\n proc.wait()\n rc = proc.returncode\n if rc and not known_error_conditions:\n print('Invocation failed without any known error condition, '\n 'printing all lines to debug known error detection:')\n for index, line in enumerate(lines):\n print(' ', index + 1, \"'%s'\" % line.rstrip('\\\\n\\\\r'))\n print('None of the following known errors were detected:')\n for index, known_error_string in enumerate(known_error_strings):\n print(' ', index + 1, \"'%s'\" % known_error_string)\n return rc, known_error_conditions\n\n\nif __name__ == '__main__':\n sys.exit(main())" > /tmp/wrapper_scripts/apt.py 13:32:46 RUN echo "#!/usr/bin/env python3\n\n# Copyright 2016 Open Source Robotics Foundation, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport subprocess\nimport sys\nfrom time import sleep\n\n\ndef main(argv=sys.argv[1:]):\n max_tries = 10\n known_error_strings = [\n 'Connection timed out',\n ]\n\n command = argv[0]\n if command == 'clone':\n rc, _, _ = call_git_repeatedly(\n argv, known_error_strings, max_tries)\n return rc\n else:\n assert \"Command '%s' not implemented\" % command\n\n\ndef call_git_repeatedly(argv, known_error_strings, max_tries):\n command = argv[0]\n for i in range(1, max_tries + 1):\n if i > 1:\n sleep_time = 5 + 2 * i\n print(\"Reinvoke 'git %s' (%d/%d) after sleeping %s seconds\" %\n (command, i, max_tries, sleep_time))\n sleep(sleep_time)\n rc, known_error_conditions = call_git(argv, known_error_strings)\n if rc == 0 or not known_error_conditions:\n break\n print('')\n print('Invocation failed due to the following known error conditions: '\n ', '.join(known_error_conditions))\n print('')\n # retry in case of failure with known error condition\n return rc, known_error_conditions, i\n\n\ndef call_git(argv, known_error_strings):\n known_error_conditions = []\n\n cmd = ['git'] + argv\n print(\"Invoking '%s'\" % ' '.join(cmd))\n proc = subprocess.Popen(\n cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)\n while True:\n line = proc.stdout.readline()\n if not line:\n break\n line = line.decode()\n sys.stdout.write(line)\n for known_error_string in known_error_strings:\n if known_error_string in line:\n if known_error_string not in known_error_conditions:\n known_error_conditions.append(known_error_string)\n proc.wait()\n rc = proc.returncode\n return rc, known_error_conditions\n\n\nif __name__ == '__main__':\n sys.exit(main())" > /tmp/wrapper_scripts/git.py 13:32:46 13:32:46 # automatic invalidation once every day 13:32:46 RUN echo "2018-09-22 (+0000)" 13:32:46 13:32:46 RUN for i in 1 2 3; do apt-get update && apt-get install -q -y python3 && apt-get clean && break || if [[ $i < 3 ]]; then sleep 5; else false; fi; done 13:32:46 13:32:46 RUN python3 -u /tmp/wrapper_scripts/apt.py update-install-clean -q -y debhelper dpkg dpkg-dev git git-buildpackage python3-catkin-pkg-modules python3-rosdistro-modules python3-yaml 13:32:46 13:32:46 COPY .git-credentials /home/buildfarm/.git-credentials 13:32:46 RUN chmod 600 /home/buildfarm/.git-credentials 13:32:46 RUN chown buildfarm /home/buildfarm/.git-credentials 13:32:46 13:32:46 USER buildfarm 13:32:46 RUN git config --global credential.helper 'store' 13:32:46 RUN git config --global http.sslVerify false 13:32:46 13:32:46 ENTRYPOINT ["sh", "-c"] 13:32:46 CMD ["PYTHONPATH=/tmp/ros_buildfarm:$PYTHONPATH python3 -u /tmp/ros_buildfarm/scripts/release/get_sources.py --rosdistro-index-url https://raw.githubusercontent.com/LCAS/rosdistro/master/index.yaml kinetic spencer_diagnostics ubuntu xenial http://10.210.9.154/ubuntu/building http://packages.ros.org/ros/ubuntu --source-dir /tmp/sourcedeb/source && PYTHONPATH=/tmp/ros_buildfarm:$PYTHONPATH python3 -u /tmp/ros_buildfarm/scripts/release/build_sourcedeb.py ubuntu xenial --source-dir /tmp/sourcedeb/source"] 13:32:46 + echo # END SECTION 13:32:46 # END SECTION
13:32:46 + echo # BEGIN SECTION: Build Dockerfile - generate sourcedeb
9. Build Dockerfile - generate sourcedeb

Hide Details

13:32:46 # BEGIN SECTION: Build Dockerfile - generate sourcedeb 13:32:46 + cd /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/docker_sourcedeb 13:32:46 + cp -L **** /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/docker_sourcedeb/.git-credentials 13:32:46 + python3 -u /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/ros_buildfarm/scripts/misc/docker_pull_baseimage.py 13:32:46 Get base image name from Dockerfile 'Dockerfile': ubuntu:xenial 13:32:46 Check docker base image for updates: docker pull ubuntu:xenial 13:32:47 xenial: Pulling from library/ubuntu 13:32:47 Digest: sha256:f53ee6c26fed293a1faaad6cb83713ce9289e4a38a9ea7e0d78c156fa1022e75 13:32:47 Status: Image is up to date for ubuntu:xenial 13:32:47 + docker build --force-rm -t sourcedeb.kinetic_ubuntu_xenial_spencer_diagnostics . 13:32:47 Sending build context to Docker daemon 18.43 kB Sending build context to Docker daemon 18.43 kB 13:32:47 Step 1 : FROM ubuntu:xenial 13:32:47 ---> 2b9623518fa2 13:32:47 Step 2 : VOLUME /var/cache/apt/archives 13:32:48 ---> Using cache 13:32:48 ---> 74ba1b76bf6e 13:32:48 Step 3 : ENV DEBIAN_FRONTEND noninteractive 13:32:48 ---> Using cache 13:32:48 ---> 2493ca106c60 13:32:48 Step 4 : RUN for i in 1 2 3; do apt-get update && apt-get install -q -y locales && apt-get clean && break || if [[ $i < 3 ]]; then sleep 5; else false; fi; done 13:32:49 ---> Using cache 13:32:49 ---> 885388895e3f 13:32:49 Step 5 : RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen 13:32:49 ---> Using cache 13:32:49 ---> 40393b666211 13:32:49 Step 6 : RUN locale-gen en_US.UTF-8 13:32:50 ---> Using cache 13:32:50 ---> e52d5a0e19f6 13:32:50 Step 7 : ENV LANG en_US.UTF-8 13:32:52 ---> Using cache 13:32:52 ---> 2a9c5e2d8565 13:32:52 Step 8 : ENV TZ GMT+00 13:32:53 ---> Using cache 13:32:53 ---> be900094f1df 13:32:53 Step 9 : RUN useradd -u 1002 -m buildfarm 13:32:55 ---> Using cache 13:32:55 ---> 653b534e961f 13:32:55 Step 10 : RUN mkdir /tmp/keys 13:32:56 ---> Using cache 13:32:56 ---> e4ea2a03c969 13:32:56 Step 11 : RUN echo "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1.4.11 (GNU/Linux)\n\nmQENBFPzE4sBCAC9c8hzt+gqe6YqXAW9Yd10jx68M0q8IowAe182yVtIvYf5l+qn\nMsXiDUz4l7c1TcRpdzZ1WwEQoNNjQKq51ip2Ln3Uhri/GsPBk+psIJPt5AeXYrSf\nxcDs8k4FMWgJtYMlZLuNk1YPaS6Vf1+Ygbe0u+ssORWg3cWhgLWPDydXdlhinUgw\nkPd9ZYi8aaAxi94DMuOnAjItfPbuX52NHmPR2cXuh3fZklhA6cCGRYkSVqijKhEv\n/o8fTnjcTama8ml5jnaAhcZ/4UV3terLeXEQn3+WM+VbTsEr58zca5fOv8MjC+Uh\nEBgDgnHb8/n7OgSUvv9efQgYXBRQ1mD//JaZABEBAAG0LE1hcmMgSGFuaGVpZGUg\nKFJPU0J1aWxkKSA8bWFyY0BoYW5oZWlkZS5uZXQ+iQE4BBMBAgAiBQJT8xOLAhsD\nBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRDc10MYrtOYVB9cCACQwB9auPEX\nyQdVwliJMLwVihKz0AU0UCG6qra2pdXx9l5kgkQCuDV5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P PUBLIC KEY BLOCK----- \n" > /tmp/keys/0.key && apt-key add /tmp/keys/0.key 13:32:58 ---> Using cache 13:32:58 ---> d89322b323f7 13:32:58 Step 12 : RUN echo "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1\n\nmQGiBEsy5KkRBADJbDSISoamRM5AA20bfAeBuhhaI+VaiCVcxw90sq9AI5lIc42F\nWzM2acm8yplqWiehAqOLKd+iIrqNGZ+VavZEPTx7o06UZUMRoPBiTFaCwrQ5avKz\nlt7ij8PRMVWNrJ7A2lDYXfFQVV1o3Xo06qVnv0KLLUmiur0LBu4H/oTH3wCgt+/I\nD3LUKaMJsc77KwFBTjHB0EsD/26Z2Ud12f3urSNyN6VMWnP3rz6xsmtY4Qsmkbnr\nJuduxCQBZv6bX1Cr2ulXkv0fFOr+s5OyUv7zyCPbxiJFh3Br7fJGb0b5/M208KPe\ngiITY9hMh/aUbKjXCPoOXPxSL6SWOWV8taR6903EFyLBN0qno/kXIBKnVqBZobgn\njIEPA/0fTnxtZtE7EpirGQMF2caJfv7/LCgXmRs9xAhgbE0/caoa1tnc79uaHmLZ\nFtbGFoAO31YNYM/IUHtmabbGdvZ4oYUwDhjBevVvC7aI+XhuNGK5mU8qCLLSEUOl\nCUr6BJq/0iFmjwjmwk9idZEYhqSNy2OoYJbq45rbHfbdKLEVrbQeUk9TIEJ1aWxk\nZXIgPHJvc2J1aWxkQHJvcy5vcmc+iGAEExECACAFAksy5KkCGwMGCwkIBwMCBBUC\nCAMEFgIDAQIeAQIXgAAKCRBVI7rusB+hFmk7AJ0XsLp05KA8l3YzAumZfjSN04MZ\njQCfQHfp4aQUXdOCUtetVo0QZUX3IuO5Ag0ESzLkrhAIAOCuSC83VXYWf8gOMSzd\nxwpsH/uLV9Wze2LGnajsJLjEOhcsz2BHfxqNXhYaE9aQaodPCpbUAkPq8tLbpXy0\nSWRCx0F5RcplXx5vIWbP6TlfPbRpK70w7IWd6vsNrjwEHjlhOLcNcj42sp5pgx4b\ndceK06k5Ml2hYovPnD9o2TYgjOqg5FHZ2g1J0103n/66bN/hZnpLaZJYQiPWCyq6\nK0565i1k2Y7hgWB/OXqwaqCehqmLTvpyQGzE1UJvKLuYU+T+4hBnSPbT3KIi5fCz\nlIwvxijOMcfbkLhzYQXcU0Rd1VItcd5nmPL4z97jBxzuhkgxXpGR4WGKhvsA2Z9Y\nUtsAAwYH/3Bf44bTpD9bVADUdab3e7zm8iHfh9K/a83mIgDB7mHV6WuemQVTf/1d\neu4mI5WtpbOCoucybGfjGIIAcSxwIx6VfC7HSp4J51bOpHhbdDffUEk6QVsZjwoF\nyn3W9W3ZVeTI+ch/Qoo5a98SnmdjN8eXI/qCuiXOHc6rXDXc2R0iox/1EAS8xGVd\ncYZe7IWBO2CjCknyhLrWxZHoy+i1GCZ9KvPF/Ef2dmLhCydT73ZlumsY8N5vm76Q\nul1G7f8LNbnMgXQafRkPffrAXSVhGY3Z2IiBwFNgxcKTq479l7yedYRGeU1A+SYI\nYmRFWHXt3rTkMlQSpxCsB0fAYfrwEqqISQQYEQIACQUCSzLkrgIbDAAKCRBVI7ru\nsB+hFpryAJ9qNz3h3ijt9TkAV0CHufsPT6Cl4gCglfg7tJn2lsSF3HTpoDDO1Fgg\nx9o=\n=AGYp\n-----END PGP PUBLIC KEY BLOCK-----\n" > /tmp/keys/1.key && apt-key add /tmp/keys/1.key 13:32:59 ---> Using cache 13:32:59 ---> 0aca65174b48 13:32:59 Step 13 : RUN echo deb http://10.210.9.154/ubuntu/building xenial main | tee -a /etc/apt/sources.list.d/buildfarm.list 13:33:01 ---> Using cache 13:33:01 ---> 068fa303acf0 13:33:01 Step 14 : RUN echo deb http://packages.ros.org/ros/ubuntu xenial main | tee -a /etc/apt/sources.list.d/buildfarm.list 13:33:02 ---> Using cache 13:33:02 ---> 27bd819464fc 13:33:02 Step 15 : RUN mkdir /tmp/wrapper_scripts 13:33:03 ---> Using cache 13:33:03 ---> bcec6d3d7daa 13:33:03 Step 16 : RUN echo "#!/usr/bin/env python3\n\n# Copyright 2014-2016 Open Source Robotics Foundation, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport subprocess\nimport sys\nfrom time import sleep\n\n\ndef main(argv=sys.argv[1:]):\n max_tries = 10\n known_error_strings = [\n 'Failed to fetch',\n 'Hash Sum mismatch',\n 'Unable to locate package',\n 'is not what the server reported',\n ]\n\n command = argv[0]\n if command in ['update', 'source']:\n rc, _, _ = call_apt_repeatedly(\n argv, known_error_strings, max_tries)\n return rc\n elif command == 'update-install-clean':\n return call_apt_update_install_clean(\n argv[1:], known_error_strings, max_tries)\n else:\n assert \"Command '%s' not implemented\" % command\n\n\ndef call_apt_update_install_clean(\n install_argv, known_error_strings, max_tries):\n tries = 0\n command = 'update'\n while tries < max_tries:\n if command == 'update':\n rc, _, tries = call_apt_repeatedly(\n [command], known_error_strings, max_tries - tries,\n offset=tries)\n if rc != 0:\n # abort if update was unsuccessful even after retries\n break\n # move on to the install command if update was successful\n command = 'install'\n\n if command == 'install':\n # any call is considered a try\n tries += 1\n known_error_strings_redo_update = [\n 'Size mismatch',\n 'maybe run apt update',\n 'The following packages cannot be authenticated!',\n 'Unable to locate package',\n ]\n rc, known_error_conditions = \\\\\n call_apt(\n [command] + install_argv,\n known_error_strings + known_error_strings_redo_update)\n if not known_error_conditions:\n if rc != 0:\n # abort if install was unsuccessful\n break\n # move on to the clean command if install was successful\n command = 'clean'\n continue\n\n # known errors are always interpreted as a non-zero rc\n if rc == 0:\n rc = 1\n # check if update needs to be rerun\n if (\n set(known_error_conditions) &\n set(known_error_strings_redo_update)\n ):\n command = 'update'\n print(\"'apt install' failed and likely requires \" +\n \"'apt update' to run again\")\n # retry with update command\n continue\n\n print('Invocation failed due to the following known error '\n 'conditions: ' + ', '.join(known_error_conditions))\n if tries < max_tries:\n sleep_time = 5\n print(\"Reinvoke 'apt install' after sleeping %s seconds\" %\n sleep_time)\n sleep(sleep_time)\n # retry install command\n\n if command == 'clean':\n rc, _ = call_apt([command], [])\n break\n\n return rc\n\n\ndef call_apt_repeatedly(argv, known_error_strings, max_tries, offset=0):\n command = argv[0]\n for i in range(1, max_tries + 1):\n if i > 1:\n sleep_time = 5 + 2 * (i + offset)\n print(\"Reinvoke 'apt %s' (%d/%d) after sleeping %s seconds\" %\n (command, i + offset, max_tries + offset, sleep_time))\n sleep(sleep_time)\n rc, known_error_conditions = call_apt(argv, known_error_strings)\n if not known_error_conditions:\n # break the loop and return the reported rc\n break\n # known errors are always interpreted as a non-zero rc\n if rc == 0:\n rc = 1\n print('')\n print('Invocation failed due to the following known error conditions: '\n ', '.join(known_error_conditions))\n print('')\n # retry in case of failure with known error condition\n return rc, known_error_conditions, i + offset\n\n\ndef call_apt(argv, known_error_strings):\n known_error_conditions = []\n\n # some of the used options are not supported in older distros\n # e.g. Ubuntu Wily, Debian Jessie\n cmd = ['apt-get'] + argv\n print(\"Invoking '%s'\" % ' '.join(cmd))\n proc = subprocess.Popen(\n cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)\n lines = []\n while True:\n line = proc.stdout.readline()\n if not line:\n break\n line = line.decode()\n lines.append(line)\n sys.stdout.write(line)\n for known_error_string in known_error_strings:\n if known_error_string in line:\n if known_error_string not in known_error_conditions:\n known_error_conditions.append(known_error_string)\n proc.wait()\n rc = proc.returncode\n if rc and not known_error_conditions:\n print('Invocation failed without any known error condition, '\n 'printing all lines to debug known error detection:')\n for index, line in enumerate(lines):\n print(' ', index + 1, \"'%s'\" % line.rstrip('\\\\n\\\\r'))\n print('None of the following known errors were detected:')\n for index, known_error_string in enumerate(known_error_strings):\n print(' ', index + 1, \"'%s'\" % known_error_string)\n return rc, known_error_conditions\n\n\nif __name__ == '__main__':\n sys.exit(main())" > /tmp/wrapper_scripts/apt.py 13:33:05 ---> Using cache 13:33:05 ---> cf5bf8d684ba 13:33:05 Step 17 : RUN echo "#!/usr/bin/env python3\n\n# Copyright 2016 Open Source Robotics Foundation, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport subprocess\nimport sys\nfrom time import sleep\n\n\ndef main(argv=sys.argv[1:]):\n max_tries = 10\n known_error_strings = [\n 'Connection timed out',\n ]\n\n command = argv[0]\n if command == 'clone':\n rc, _, _ = call_git_repeatedly(\n argv, known_error_strings, max_tries)\n return rc\n else:\n assert \"Command '%s' not implemented\" % command\n\n\ndef call_git_repeatedly(argv, known_error_strings, max_tries):\n command = argv[0]\n for i in range(1, max_tries + 1):\n if i > 1:\n sleep_time = 5 + 2 * i\n print(\"Reinvoke 'git %s' (%d/%d) after sleeping %s seconds\" %\n (command, i, max_tries, sleep_time))\n sleep(sleep_time)\n rc, known_error_conditions = call_git(argv, known_error_strings)\n if rc == 0 or not known_error_conditions:\n break\n print('')\n print('Invocation failed due to the following known error conditions: '\n ', '.join(known_error_conditions))\n print('')\n # retry in case of failure with known error condition\n return rc, known_error_conditions, i\n\n\ndef call_git(argv, known_error_strings):\n known_error_conditions = []\n\n cmd = ['git'] + argv\n print(\"Invoking '%s'\" % ' '.join(cmd))\n proc = subprocess.Popen(\n cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)\n while True:\n line = proc.stdout.readline()\n if not line:\n break\n line = line.decode()\n sys.stdout.write(line)\n for known_error_string in known_error_strings:\n if known_error_string in line:\n if known_error_string not in known_error_conditions:\n known_error_conditions.append(known_error_string)\n proc.wait()\n rc = proc.returncode\n return rc, known_error_conditions\n\n\nif __name__ == '__main__':\n sys.exit(main())" > /tmp/wrapper_scripts/git.py 13:33:06 ---> Using cache 13:33:06 ---> e99de639c6be 13:33:06 Step 18 : RUN echo "2018-09-22 (+0000)" 13:33:07 ---> Using cache 13:33:07 ---> 6a16c56acaac 13:33:07 Step 19 : RUN for i in 1 2 3; do apt-get update && apt-get install -q -y python3 && apt-get clean && break || if [[ $i < 3 ]]; then sleep 5; else false; fi; done 13:33:08 ---> Using cache 13:33:08 ---> 0aef13d1de7b 13:33:08 Step 20 : RUN python3 -u /tmp/wrapper_scripts/apt.py update-install-clean -q -y debhelper dpkg dpkg-dev git git-buildpackage python3-catkin-pkg-modules python3-rosdistro-modules python3-yaml 13:33:10 ---> Using cache 13:33:10 ---> ad263b9da076 13:33:10 Step 21 : COPY .git-credentials /home/buildfarm/.git-credentials 13:33:11 ---> Using cache 13:33:11 ---> 418300a7a600 13:33:11 Step 22 : RUN chmod 600 /home/buildfarm/.git-credentials 13:33:12 ---> Using cache 13:33:12 ---> 95ddd57a9729 13:33:12 Step 23 : RUN chown buildfarm /home/buildfarm/.git-credentials 13:33:14 ---> Using cache 13:33:14 ---> 3c1b79d1b7ba 13:33:14 Step 24 : USER buildfarm 13:33:15 ---> Using cache 13:33:15 ---> bbb9c7ce4828 13:33:15 Step 25 : RUN git config --global credential.helper 'store' 13:33:16 ---> Using cache 13:33:16 ---> 0288f5bad5e3 13:33:16 Step 26 : RUN git config --global http.sslVerify false 13:33:18 ---> Using cache 13:33:18 ---> 90914b45c56e 13:33:18 Step 27 : ENTRYPOINT sh -c 13:33:19 ---> Using cache 13:33:19 ---> c78634016c4d 13:33:19 Step 28 : CMD PYTHONPATH=/tmp/ros_buildfarm:$PYTHONPATH python3 -u /tmp/ros_buildfarm/scripts/release/get_sources.py --rosdistro-index-url https://raw.githubusercontent.com/LCAS/rosdistro/master/index.yaml kinetic spencer_diagnostics ubuntu xenial http://10.210.9.154/ubuntu/building http://packages.ros.org/ros/ubuntu --source-dir /tmp/sourcedeb/source && PYTHONPATH=/tmp/ros_buildfarm:$PYTHONPATH python3 -u /tmp/ros_buildfarm/scripts/release/build_sourcedeb.py ubuntu xenial --source-dir /tmp/sourcedeb/source 13:33:20 ---> Running in ff75b0131277 13:33:21 ---> 13ce697f6bdb 13:33:21 Removing intermediate container ff75b0131277 13:33:21 Successfully built 13ce697f6bdb 13:33:21 + echo # END SECTION 13:33:21 # END SECTION
13:33:21 + echo # BEGIN SECTION: Run Dockerfile - generate sourcedeb
10. Run Dockerfile - generate sourcedeb

Hide Details

13:33:21 # BEGIN SECTION: Run Dockerfile - generate sourcedeb 13:33:21 + rm -fr /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/sourcedeb 13:33:21 + mkdir -p /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/sourcedeb/source 13:33:21 + docker run --rm --cidfile=/home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/docker_sourcedeb/docker.cid -e=TRAVIS= --net=host -v /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/ros_buildfarm:/tmp/ros_buildfarm:ro -v /home/jenkins-slave/workspace/Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source/sourcedeb:/tmp/sourcedeb sourcedeb.kinetic_ubuntu_xenial_spencer_diagnostics
10.1. get sources

Hide Details

13:33:22 # BEGIN SUBSECTION: get sources 13:33:29 Invoking 'git clone --branch debian/ros-kinetic-spencer-diagnostics_1.0.10-0_xenial --depth 1 --no-single-branch https://github.com/lcas-releases/spencer_people_tracking.git /tmp/sourcedeb/source' 13:33:29 Cloning into '/tmp/sourcedeb/source'... 13:33:32 Note: checking out 'b73ea78818ac5cdf1c675f8b33bc5fd57e989651'. 13:33:32 13:33:32 You are in 'detached HEAD' state. You can look around, make experimental 13:33:32 changes and commit them, and you can discard any commits you make in this 13:33:32 state without impacting any branches by performing another checkout. 13:33:32 13:33:32 If you want to create a new branch to retain commits you create, you may 13:33:32 do so (now or later) by using -b with the checkout command again. Example: 13:33:32 13:33:32 git checkout -b <new-branch-name> 13:33:32 13:33:32 No tarball found at 'http://10.210.9.154/ubuntu/building/pool/main/r/ros-kinetic-spencer-diagnostics/ros-kinetic-spencer-diagnostics_1.0.10.orig.tar.gz' 13:33:32 No tarball found at 'http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-spencer-diagnostics/ros-kinetic-spencer-diagnostics_1.0.10.orig.tar.gz' 13:33:32 Package 'spencer_diagnostics' version: 1.0.10-0xenial 13:33:32 Package maintainer emails: linder@informatik.uni-freiburg.de 13:33:32 # END SUBSECTION
10.2. build sourcedeb

Hide Details

13:33:33 # BEGIN SUBSECTION: build sourcedeb 13:33:33 Invoking 'gbp buildpackage --git-ignore-new --git-ignore-branch -S -us -uc --lintian-opts --suppress-tags newer-standards-version' in '/tmp/sourcedeb/source' 13:33:34 gbp:warning: Old style config section [git-buildpackage] found please rename to [buildpackage] 13:33:36 gbp:info: ros-kinetic-spencer-diagnostics_1.0.10.orig.tar.gz does not exist, creating from 'release/kinetic/spencer_diagnostics/1.0.10-0' 13:33:37 dpkg-buildpackage -rfakeroot -d -us -uc -i -I -S 13:33:37 dpkg-buildpackage: source package ros-kinetic-spencer-diagnostics 13:33:37 dpkg-buildpackage: source version 1.0.10-0xenial 13:33:37 dpkg-buildpackage: source distribution xenial 13:33:37 dpkg-buildpackage: source changed by Timm Linder <linder@informatik.uni-freiburg.de> 13:33:37 dpkg-source -i -I --before-build source 13:33:37 dpkg-source: info: using options from source/debian/source/options: --auto-commit 13:33:37 fakeroot debian/rules clean 13:33:37 dh clean -v --buildsystem=cmake 13:33:37 dh_testdir -O-v -O--buildsystem=cmake 13:33:37 dh_auto_clean -O-v -O--buildsystem=cmake 13:33:37 dh_clean -O-v -O--buildsystem=cmake 13:33:38 rm -f debian/debhelper-build-stamp 13:33:38 rm -f debian/ros-kinetic-spencer-diagnostics.substvars 13:33:38 rm -f debian/ros-kinetic-spencer-diagnostics.*.debhelper 13:33:38 rm -rf debian/ros-kinetic-spencer-diagnostics/ 13:33:38 rm -rf debian/.debhelper/ 13:33:38 rm -f debian/*.debhelper.log 13:33:38 rm -f debian/files 13:33:38 find . \( \( \ 13:33:38 \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS \) -prune -o -type f -a \ 13:33:38 \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ 13:33:38 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ 13:33:38 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ 13:33:38 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ 13:33:38 \) -exec rm -f {} + \) -o \ 13:33:38 \( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \) 13:33:38 rm -f *-stamp 13:33:38 dpkg-source -i -I -b source 13:33:38 dpkg-source: info: using options from source/debian/source/options: --auto-commit 13:33:38 dpkg-source: info: using source format '3.0 (quilt)' 13:33:38 dpkg-source: info: building ros-kinetic-spencer-diagnostics using existing ./ros-kinetic-spencer-diagnostics_1.0.10.orig.tar.gz 13:33:38 dpkg-source: info: building ros-kinetic-spencer-diagnostics in ros-kinetic-spencer-diagnostics_1.0.10-0xenial.debian.tar.xz 13:33:38 dpkg-source: info: building ros-kinetic-spencer-diagnostics in ros-kinetic-spencer-diagnostics_1.0.10-0xenial.dsc 13:33:38 dpkg-genchanges -S >../ros-kinetic-spencer-diagnostics_1.0.10-0xenial_source.changes 13:33:38 dpkg-genchanges: warning: debian/changelog(l13): found trailer where expected start of change data 13:33:38 LINE: -- Timm Linder <linder@informatik.uni-freiburg.de> Wed, 17 Jan 2018 00:00:00 -0000 13:33:38 dpkg-genchanges: including full source code in upload 13:33:38 dpkg-source -i -I --after-build source 13:33:38 dpkg-source: info: using options from source/debian/source/options: --auto-commit 13:33:38 dpkg-buildpackage: full upload (original source is included) 13:33:38 Now running lintian... 13:33:40 W: ros-kinetic-spencer-diagnostics source: pear-package-without-pkg-php-tools-builddep 13:33:40 W: ros-kinetic-spencer-diagnostics source: no-debian-copyright 13:33:40 W: ros-kinetic-spencer-diagnostics source: ancient-standards-version 3.9.2 (current is 3.9.7) 13:33:40 Finished running lintian. 13:33:40 # END SUBSECTION
13:33:41 + echo # END SECTION 13:33:41 # END SECTION
13:33:41 [Ksrc_uX__spencer_diagnostics__ubuntu_xenial__source] $ /bin/sh -xe /tmp/hudson4026772544399458329.sh 13:33:41 + [ false = false ] 13:33:41 + echo # BEGIN SECTION: Clean up to save disk space on slaves
11. Clean up to save disk space on slaves

Hide Details

13:33:41 # BEGIN SECTION: Clean up to save disk space on slaves 13:33:41 + rm -fr sourcedeb/source 13:33:41 + echo # END SECTION 13:33:41 # END SECTION
13:33:41 SSH: Connecting from host [lcas-buildfarm-slave-2] 13:33:41 SSH: Connecting with configuration [repo] ... 13:33:41 SSH: Disconnecting configuration [repo] ... 13:33:41 SSH: Transferred 4 file(s) 13:33:41 Build step 'Send files or execute commands over SSH' changed build result to SUCCESS 13:33:41 Waiting for the completion of Krel_import-package 13:33:43 Krel_import-package #3529 completed. Result was SUCCESS
12. Check if triggered build failed

Hide Details

13:33:43 # BEGIN SECTION: Check if triggered build failed 13:33:43 Pattern not found in build log, continuing... 13:33:43 # END SECTION
13:33:43 $ ssh-agent -k 13:33:43 unset SSH_AUTH_SOCK; 13:33:43 unset SSH_AGENT_PID; 13:33:43 echo Agent pid 17097 killed; 13:33:44 [ssh-agent] Stopped. 13:33:44 [description-setter] Description set: 1.0.10-0xenial 13:33:44 Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered 13:33:44 Triggering a new build of Kbin_uX64__spencer_diagnostics__ubuntu_xenial_amd64__binary 13:33:44 Finished: SUCCESS