Pull request #170 opened Connecting to https://api.github.com using edgex-jenkins/****** (edgex-jenkins github personal access token) Connecting to https://api.github.com to check permissions of obtain list of weichou1229 for edgexfoundry/device-modbus-go Obtained Jenkinsfile from 9051bcf6a7179016a2d14a7e9f1fc9f775609d98+1f4a14d73ed1828c8d91d9dcce7f8e7483f6fba7 (9fb2bee1067649cd09b87f3deb0e333622580961) Running in Durability level: MAX_SURVIVABILITY Loading library edgex-global-pipelines@stable Attempting to resolve stable from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision d07cd02ecb4437160b67c3e2c8b9f8516fc20714 Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --is-inside-work-tree # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision d07cd02ecb4437160b67c3e2c8b9f8516fc20714 using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-170/workspace@libs/edgex-global-pipelines # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision d07cd02ecb4437160b67c3e2c8b9f8516fc20714 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f d07cd02ecb4437160b67c3e2c8b9f8516fc20714 # timeout=10 Commit message: "Merge pull request #233 from ernestojeda/fix-snap-workspace-issue" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.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] echo ========================================================= [edgeXBuildDocker] RAW Config: [project:edgex-modbus-simulator, mavenSettings:device-modbus-go-settings, dockerImageName:edgex-modbus-simulator, dockerNamespace:edgex-devops, dockerNexusRepo:snapshots, dockerTags:[0.0.1], releaseBranchOverride:edgex-modbus-simulator] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[centos7-docker-4c-2g, ubuntu18.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildDocker] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-modbus-go-settings PROJECT: edgex-modbus-simulator USE_SEMVER: false DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_CONTEXT: . DOCKER_IMAGE_NAME: edgex-modbus-simulator DOCKER_REGISTRY_NAMESPACE: edgex-devops DOCKER_NEXUS_REPO: snapshots DOCKER_PUSH_LATEST: true PUSH_DOCKER_IMAGE: true ARCHIVE_IMAGE: false ARCHIVE_NAME: edgex-modbus-simulator-archive.tar.gz SEMVER_BUMP_LEVEL: pre RELEASE_BRANCH_OVERRIDE: edgex-modbus-simulator DOCKER_CUSTOM_TAGS: 0.0.1 [Pipeline] node Still waiting to schedule task ‘prd-centos7-docker-4c-2g-213’ is offline Running on prd-centos7-docker-4c-2g-1162 in /w/workspace/xfoundry_device-modbus-go_PR-170 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:edgexfoundry/device-modbus-go.git > git init /w/workspace/xfoundry_device-modbus-go_PR-170 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.16.5' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/170/head:refs/remotes/origin/PR-170 +refs/heads/edgex-modbus-simulator:refs/remotes/origin/edgex-modbus-simulator # timeout=10 Fetching without tags > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/170/head:refs/remotes/origin/PR-170 # timeout=10 > git config --add remote.origin.fetch +refs/heads/edgex-modbus-simulator:refs/remotes/origin/edgex-modbus-simulator # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/170/head:refs/remotes/origin/PR-170 +refs/heads/edgex-modbus-simulator:refs/remotes/origin/edgex-modbus-simulator # timeout=10 Merging remotes/origin/edgex-modbus-simulator commit 1f4a14d73ed1828c8d91d9dcce7f8e7483f6fba7 into PR head commit 9051bcf6a7179016a2d14a7e9f1fc9f775609d98 Merge succeeded, producing 9051bcf6a7179016a2d14a7e9f1fc9f775609d98 Checking out Revision 9051bcf6a7179016a2d14a7e9f1fc9f775609d98 (PR-170) > git config core.sparsecheckout # timeout=10 > git checkout -f 9051bcf6a7179016a2d14a7e9f1fc9f775609d98 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 1f4a14d73ed1828c8d91d9dcce7f8e7483f6fba7 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 9051bcf6a7179016a2d14a7e9f1fc9f775609d98 # timeout=10 Commit message: "docs: Update the README.md" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.16.5' fatal: bad object d07cd02ecb4437160b67c3e2c8b9f8516fc20714 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 08:49:46 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 08:49:46 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 08:49:46 ========================================================= 08:49:46 EdgeX Global Pipelines Version Info 08:49:46 ========================================================= [Pipeline] libraryResource [Pipeline] sh 08:49:48 ------------------- 08:49:48 stable info: 08:49:48 ------------------- 08:49:48 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 08:49:48 Commit SHA: d07cd02ecb4437160b67c3e2c8b9f8516fc20714 08:49:48 Message: update stable to v1.0.115 08:49:49 ------------------- 08:49:49 experimental info: 08:49:49 ------------------- 08:49:49 Commited By: **** collab-it+edgex@linuxfoundation.org 08:49:49 Commit SHA: d07cd02ecb4437160b67c3e2c8b9f8516fc20714 08:49:49 Message: update experimental to v1.0.115 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] } [Pipeline] // script [Pipeline] echo 08:49:49 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 08:49:49 [edgeXSetupEnvironment]: set envvar PROJECT = edgex-modbus-simulator [Pipeline] echo 08:49:49 [edgeXSetupEnvironment]: set envvar USE_SEMVER = false [Pipeline] echo 08:49:49 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 08:49:50 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 08:49:50 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = edgex-modbus-simulator [Pipeline] echo 08:49:50 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = edgex-devops [Pipeline] echo 08:49:50 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = snapshots [Pipeline] echo 08:49:50 [edgeXSetupEnvironment]: set envvar DOCKER_PUSH_LATEST = true [Pipeline] echo 08:49:50 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 08:49:50 [edgeXSetupEnvironment]: set envvar ARCHIVE_IMAGE = false [Pipeline] echo 08:49:51 [edgeXSetupEnvironment]: set envvar ARCHIVE_NAME = edgex-modbus-simulator-archive.tar.gz [Pipeline] echo 08:49:51 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 08:49:51 [edgeXSetupEnvironment]: set envvar RELEASE_BRANCH_OVERRIDE = edgex-modbus-simulator [Pipeline] echo 08:49:51 [edgeXSetupEnvironment]: set envvar DOCKER_CUSTOM_TAGS = 0.0.1 [Pipeline] echo 08:49:51 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-170 [Pipeline] echo 08:49:51 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-170 [Pipeline] echo 08:49:51 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-170 [Pipeline] echo 08:49:51 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 9051bcf6a7179016a2d14a7e9f1fc9f775609d98 [Pipeline] echo 08:49:51 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 9051bcf [Pipeline] echo 08:49:52 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver Prep) Stage "Semver Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Docker Image) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] node [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Build) [Pipeline] script [Pipeline] { [Pipeline] sh 08:49:56 + sudo chown -R jenkins:jenkins . [Pipeline] sh 08:49:56 + ls -al . 08:49:56 total 12 08:49:56 drwxrwxr-x. 3 jenkins jenkins 72 Sep 2 08:49 . 08:49:56 drwxrwxr-x. 4 jenkins jenkins 112 Sep 2 08:49 .. 08:49:56 -rw-rw-r--. 1 jenkins jenkins 1256 Sep 2 08:49 Dockerfile 08:49:56 drwxrwxr-x. 8 jenkins jenkins 179 Sep 2 08:49 .git 08:49:56 -rw-rw-r--. 1 jenkins jenkins 912 Sep 2 08:49 Jenkinsfile 08:49:56 -rw-rw-r--. 1 jenkins jenkins 239 Sep 2 08:49 README.md [Pipeline] isUnix [Pipeline] sh 08:49:57 + docker build -t edgex-devops/edgex-modbus-simulator -f Dockerfile --build-arg ARCH=amd64 --label git_sha=9051bcf6a7179016a2d14a7e9f1fc9f775609d98 --label arch=amd64 . 08:49:57 Sending build context to Docker daemon 219.1kB 08:49:57 Step 1/15 : FROM golang:1.13-alpine AS builder 08:49:58 1.13-alpine: Pulling from library/golang 08:49:58 df20fa9351a1: Pulling fs layer 08:49:58 ed8968b2872e: Pulling fs layer 08:49:58 a92cc7c5fd73: Pulling fs layer 08:49:58 dd0b68742591: Pulling fs layer 08:49:58 fb4ae7ba1102: Pulling fs layer 08:49:58 dd0b68742591: Waiting 08:49:58 fb4ae7ba1102: Waiting 08:49:58 a92cc7c5fd73: Verifying Checksum 08:49:58 a92cc7c5fd73: Download complete 08:49:58 ed8968b2872e: Download complete 08:49:58 df20fa9351a1: Verifying Checksum 08:49:58 df20fa9351a1: Download complete 08:49:58 fb4ae7ba1102: Verifying Checksum 08:49:58 fb4ae7ba1102: Download complete 08:49:58 df20fa9351a1: Pull complete 08:49:58 ed8968b2872e: Pull complete 08:49:59 a92cc7c5fd73: Pull complete 08:50:00 dd0b68742591: Download complete 08:50:05 dd0b68742591: Pull complete 08:50:05 fb4ae7ba1102: Pull complete 08:50:05 Digest: sha256:e74b83b94d499cb34c7edf55fbdff9d3cfabd238a35f9cb1b59d0e74f50b1ddd 08:50:05 Status: Downloaded newer image for golang:1.13-alpine 08:50:05 ---> 5863598a981a 08:50:05 Step 2/15 : WORKDIR /go/src/github.com/edgexfoundry/device-modbus-go/simulator 08:50:07 Still waiting to schedule task 08:50:07 All nodes of label ‘ubuntu18.04-docker-arm64-4c-16g’ are offline 08:50:09 ---> Running in 2e70e009cfc1 08:50:09 Removing intermediate container 2e70e009cfc1 08:50:09 ---> b41033d12be5 08:50:09 Step 3/15 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 08:50:09 ---> Running in 4d7861164b9a 08:50:10 Removing intermediate container 4d7861164b9a 08:50:10 ---> 4f96eed61a40 08:50:10 Step 4/15 : RUN apk update && apk add libsodium-dev pkgconfig build-base git 08:50:10 ---> Running in 0a3de0b463d6 08:50:11 fetch http://nl.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz 08:50:11 fetch http://nl.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz 08:50:12 v3.12.0-283-g612cd12ab6 [http://nl.alpinelinux.org/alpine/v3.12/main] 08:50:12 v3.12.0-276-gbdd3966958 [http://nl.alpinelinux.org/alpine/v3.12/community] 08:50:12 OK: 12746 distinct packages available 08:50:12 (1/28) Installing libgcc (9.3.0-r2) 08:50:13 (2/28) Installing libstdc++ (9.3.0-r2) 08:50:13 (3/28) Installing binutils (2.34-r1) 08:50:14 (4/28) Installing libmagic (5.38-r0) 08:50:14 (5/28) Installing file (5.38-r0) 08:50:14 (6/28) Installing gmp (6.2.0-r0) 08:50:15 (7/28) Installing isl (0.18-r0) 08:50:15 (8/28) Installing libgomp (9.3.0-r2) 08:50:15 (9/28) Installing libatomic (9.3.0-r2) 08:50:15 (10/28) Installing libgphobos (9.3.0-r2) 08:50:15 (11/28) Installing mpfr4 (4.0.2-r4) 08:50:15 (12/28) Installing mpc1 (1.1.0-r1) 08:50:16 (13/28) Installing gcc (9.3.0-r2) 08:50:26 (14/28) Installing musl-dev (1.1.24-r9) 08:50:26 (15/28) Installing libc-dev (0.7.2-r3) 08:50:26 (16/28) Installing g++ (9.3.0-r2) 08:50:30 (17/28) Installing make (4.3-r0) 08:50:30 (18/28) Installing fortify-headers (1.1-r0) 08:50:30 (19/28) Installing patch (2.7.6-r6) 08:50:30 (20/28) Installing build-base (0.5-r2) 08:50:30 (21/28) Installing nghttp2-libs (1.41.0-r0) 08:50:30 (22/28) Installing libcurl (7.69.1-r0) 08:50:30 (23/28) Installing expat (2.2.9-r1) 08:50:30 (24/28) Installing pcre2 (10.35-r0) 08:50:30 (25/28) Installing git (2.26.2-r0) 08:50:32 (26/28) Installing libsodium (1.0.18-r0) 08:50:32 (27/28) Installing pkgconf (1.7.2-r0) 08:50:32 (28/28) Installing libsodium-dev (1.0.18-r0) 08:50:32 Executing busybox-1.31.1-r16.trigger 08:50:32 OK: 223 MiB in 43 packages 08:50:38 Removing intermediate container 0a3de0b463d6 08:50:38 ---> c4183e3bed84 08:50:38 Step 5/15 : RUN git clone https://github.com/edgexfoundry/device-modbus-go.git 08:50:38 ---> Running in 072361195c02 08:50:38 Cloning into 'device-modbus-go'... 08:50:38 Removing intermediate container 072361195c02 08:50:38 ---> 1da4e55f30a0 08:50:38 Step 6/15 : RUN mv ./device-modbus-go/simulator/* . 08:50:38 ---> Running in dc4e82db1cb4 08:50:39 Removing intermediate container dc4e82db1cb4 08:50:39 ---> ac43ca61780e 08:50:39 Step 7/15 : RUN CGO_ENABLED=0 GO111MODULE=on go build 08:50:39 ---> Running in 8fea9fc05334 08:50:41 go: downloading github.com/goburrow/serial v0.1.0 08:50:41 go: downloading github.com/tbrandon/mbserver v0.0.0-20170611213546-993e1772cc62 08:50:41 go: extracting github.com/goburrow/serial v0.1.0 08:50:41 go: extracting github.com/tbrandon/mbserver v0.0.0-20170611213546-993e1772cc62 08:50:41 go: finding github.com/goburrow/serial v0.1.0 08:50:41 go: finding github.com/tbrandon/mbserver v0.0.0-20170611213546-993e1772cc62 08:50:42 Removing intermediate container 8fea9fc05334 08:50:42 ---> 22fd7173089d 08:50:42 Step 8/15 : FROM scratch 08:50:42 ---> 08:50:42 Step 9/15 : ENV APP_PORT=1502 08:50:42 ---> Running in 7748309f5058 08:50:43 Removing intermediate container 7748309f5058 08:50:43 ---> 688e49fe47e0 08:50:43 Step 10/15 : EXPOSE $APP_PORT 08:50:43 ---> Running in c120cd04ebdb 08:50:43 Removing intermediate container c120cd04ebdb 08:50:43 ---> e36f68bd8e30 08:50:43 Step 11/15 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/simulator / 08:50:43 ---> 3811ae35f7f8 08:50:43 Step 12/15 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: IoTech Ltd' 08:50:43 ---> Running in 5fa20efc4ef8 08:50:43 Removing intermediate container 5fa20efc4ef8 08:50:43 ---> 0919fdc09a26 08:50:43 Step 13/15 : ENTRYPOINT ["/simulator"] 08:50:44 ---> Running in d78d8d47e3c5 08:50:44 Removing intermediate container d78d8d47e3c5 08:50:44 ---> 67ddcfe60322 08:50:44 Step 14/15 : LABEL arch=amd64 08:50:44 ---> Running in d5a7f152cd71 08:50:44 Removing intermediate container d5a7f152cd71 08:50:44 ---> aee6ccbc96f4 08:50:44 Step 15/15 : LABEL git_sha=9051bcf6a7179016a2d14a7e9f1fc9f775609d98 08:50:44 ---> Running in bff850e07161 08:50:44 Removing intermediate container bff850e07161 08:50:44 ---> cb3253d87eed 08:50:44 [Warning] One or more build-args [ARCH] were not consumed 08:50:44 Successfully built cb3253d87eed 08:50:44 Successfully tagged edgex-devops/edgex-modbus-simulator:latest [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Image) Stage "Archive Image" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 08:51:58 Running on prd-ubuntu18.04-docker-arm64-4c-16g-1163 in /w/workspace/xfoundry_device-modbus-go_PR-170 [Pipeline] { [Pipeline] checkout 08:52:03 using credential edgex-jenkins-ssh 08:52:03 Cloning the remote Git repository 08:52:03 Cloning with configured refspecs honoured and without tags 08:52:03 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 08:52:03 > git init /w/workspace/xfoundry_device-modbus-go_PR-170 # timeout=10 08:52:04 Fetching without tags 08:52:03 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 08:52:03 > git --version # timeout=10 08:52:03 > git --version # 'git version 2.17.1' 08:52:03 using GIT_SSH to set credentials SSH Credentials for GitHub 08:52:03 > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/170/head:refs/remotes/origin/PR-170 +refs/heads/edgex-modbus-simulator:refs/remotes/origin/edgex-modbus-simulator # timeout=10 08:52:04 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 08:52:04 > git config --add remote.origin.fetch +refs/pull/170/head:refs/remotes/origin/PR-170 # timeout=10 08:52:04 > git config --add remote.origin.fetch +refs/heads/edgex-modbus-simulator:refs/remotes/origin/edgex-modbus-simulator # timeout=10 08:52:04 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 08:52:04 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 08:52:04 using GIT_SSH to set credentials SSH Credentials for GitHub 08:52:04 > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/170/head:refs/remotes/origin/PR-170 +refs/heads/edgex-modbus-simulator:refs/remotes/origin/edgex-modbus-simulator # timeout=10 08:52:05 Merging remotes/origin/edgex-modbus-simulator commit 1f4a14d73ed1828c8d91d9dcce7f8e7483f6fba7 into PR head commit 9051bcf6a7179016a2d14a7e9f1fc9f775609d98 08:52:05 Merge succeeded, producing 9051bcf6a7179016a2d14a7e9f1fc9f775609d98 08:52:05 Checking out Revision 9051bcf6a7179016a2d14a7e9f1fc9f775609d98 (PR-170) 08:52:05 > git config core.sparsecheckout # timeout=10 08:52:05 > git checkout -f 9051bcf6a7179016a2d14a7e9f1fc9f775609d98 # timeout=10 08:52:05 > git remote # timeout=10 08:52:05 > git config --get remote.origin.url # timeout=10 08:52:05 using GIT_SSH to set credentials SSH Credentials for GitHub 08:52:05 > git merge 1f4a14d73ed1828c8d91d9dcce7f8e7483f6fba7 # timeout=10 08:52:05 > git rev-parse HEAD^{commit} # timeout=10 08:52:05 > git config core.sparsecheckout # timeout=10 08:52:05 > git checkout -f 9051bcf6a7179016a2d14a7e9f1fc9f775609d98 # timeout=10 08:52:09 Commit message: "docs: Update the README.md" 08:52:09 > git --version # timeout=10 08:52:09 > git --version # 'git version 2.17.1' 08:52:09 fatal: bad object d07cd02ecb4437160b67c3e2c8b9f8516fc20714 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Build) [Pipeline] script [Pipeline] { [Pipeline] sh 08:52:12 + sudo chown -R jenkins:jenkins . [Pipeline] sh 08:52:12 + ls -al . 08:52:12 total 24 08:52:12 drwxrwxr-x 3 jenkins jenkins 4096 Sep 2 08:52 . 08:52:12 drwxrwxr-x 4 jenkins jenkins 4096 Sep 2 08:52 .. 08:52:12 drwxrwxr-x 8 jenkins jenkins 4096 Sep 2 08:52 .git 08:52:12 -rw-rw-r-- 1 jenkins jenkins 1256 Sep 2 08:52 Dockerfile 08:52:12 -rw-rw-r-- 1 jenkins jenkins 912 Sep 2 08:52 Jenkinsfile 08:52:12 -rw-rw-r-- 1 jenkins jenkins 239 Sep 2 08:52 README.md [Pipeline] isUnix [Pipeline] sh 08:52:12 + docker build -t edgex-devops/edgex-modbus-simulator-arm64 -f Dockerfile --build-arg ARCH=arm64 --label git_sha=9051bcf6a7179016a2d14a7e9f1fc9f775609d98 --label arch=arm64 . 08:52:13 Sending build context to Docker daemon 219.1kB 08:52:13 Step 1/15 : FROM golang:1.13-alpine AS builder 08:52:14 1.13-alpine: Pulling from library/golang 08:52:14 b538f80385f9: Pulling fs layer 08:52:14 74f711af9a0d: Pulling fs layer 08:52:14 99f96fe45779: Pulling fs layer 08:52:14 098003ea900c: Pulling fs layer 08:52:14 03943c3330d5: Pulling fs layer 08:52:14 098003ea900c: Waiting 08:52:14 03943c3330d5: Waiting 08:52:14 b538f80385f9: Verifying Checksum 08:52:14 b538f80385f9: Download complete 08:52:14 74f711af9a0d: Verifying Checksum 08:52:14 74f711af9a0d: Download complete 08:52:14 99f96fe45779: Verifying Checksum 08:52:14 99f96fe45779: Download complete 08:52:14 03943c3330d5: Verifying Checksum 08:52:14 03943c3330d5: Download complete 08:52:15 b538f80385f9: Pull complete 08:52:15 74f711af9a0d: Pull complete 08:52:16 99f96fe45779: Pull complete 08:52:19 098003ea900c: Verifying Checksum 08:52:19 098003ea900c: Download complete 08:52:30 098003ea900c: Pull complete 08:52:30 03943c3330d5: Pull complete 08:52:30 Digest: sha256:e74b83b94d499cb34c7edf55fbdff9d3cfabd238a35f9cb1b59d0e74f50b1ddd 08:52:30 Status: Downloaded newer image for golang:1.13-alpine 08:52:30 ---> 13ecd043bf2d 08:52:30 Step 2/15 : WORKDIR /go/src/github.com/edgexfoundry/device-modbus-go/simulator 08:52:32 ---> Running in 11f830dcce38 08:52:33 Removing intermediate container 11f830dcce38 08:52:33 ---> e68411d825e5 08:52:33 Step 3/15 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 08:52:33 ---> Running in f7625f7781cd 08:52:36 Removing intermediate container f7625f7781cd 08:52:36 ---> 51fc0fb2d3b7 08:52:36 Step 4/15 : RUN apk update && apk add libsodium-dev pkgconfig build-base git 08:52:36 ---> Running in a0d42c1aeccb 08:52:37 fetch http://nl.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz 08:52:38 fetch http://nl.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz 08:52:39 v3.12.0-283-g612cd12ab6 [http://nl.alpinelinux.org/alpine/v3.12/main] 08:52:39 v3.12.0-276-gbdd3966958 [http://nl.alpinelinux.org/alpine/v3.12/community] 08:52:39 OK: 12617 distinct packages available 08:52:39 (1/28) Installing libgcc (9.3.0-r2) 08:52:39 (2/28) Installing libstdc++ (9.3.0-r2) 08:52:40 (3/28) Installing binutils (2.34-r1) 08:52:41 (4/28) Installing libmagic (5.38-r0) 08:52:41 (5/28) Installing file (5.38-r0) 08:52:41 (6/28) Installing gmp (6.2.0-r0) 08:52:41 (7/28) Installing isl (0.18-r0) 08:52:41 (8/28) Installing libgomp (9.3.0-r2) 08:52:41 (9/28) Installing libatomic (9.3.0-r2) 08:52:41 (10/28) Installing libgphobos (9.3.0-r2) 08:52:42 (11/28) Installing mpfr4 (4.0.2-r4) 08:52:42 (12/28) Installing mpc1 (1.1.0-r1) 08:52:42 (13/28) Installing gcc (9.3.0-r2) 08:52:52 (14/28) Installing musl-dev (1.1.24-r9) 08:52:52 (15/28) Installing libc-dev (0.7.2-r3) 08:52:52 (16/28) Installing g++ (9.3.0-r2) 08:52:55 (17/28) Installing make (4.3-r0) 08:52:56 (18/28) Installing fortify-headers (1.1-r0) 08:52:56 (19/28) Installing patch (2.7.6-r6) 08:52:56 (20/28) Installing build-base (0.5-r2) 08:52:56 (21/28) Installing nghttp2-libs (1.41.0-r0) 08:52:56 (22/28) Installing libcurl (7.69.1-r0) 08:52:56 (23/28) Installing expat (2.2.9-r1) 08:52:56 (24/28) Installing pcre2 (10.35-r0) 08:52:56 (25/28) Installing git (2.26.2-r0) 08:52:58 (26/28) Installing libsodium (1.0.18-r0) 08:52:58 (27/28) Installing pkgconf (1.7.2-r0) 08:52:58 (28/28) Installing libsodium-dev (1.0.18-r0) 08:52:58 Executing busybox-1.31.1-r16.trigger 08:52:58 OK: 207 MiB in 43 packages 08:53:06 Removing intermediate container a0d42c1aeccb 08:53:06 ---> ba112e884598 08:53:06 Step 5/15 : RUN git clone https://github.com/edgexfoundry/device-modbus-go.git 08:53:06 ---> Running in 0eb22070b147 08:53:08 Cloning into 'device-modbus-go'... 08:53:09 Removing intermediate container 0eb22070b147 08:53:09 ---> 6e97cd7c2d3c 08:53:09 Step 6/15 : RUN mv ./device-modbus-go/simulator/* . 08:53:09 ---> Running in ad74c999920b 08:53:12 Removing intermediate container ad74c999920b 08:53:12 ---> dc365f48f249 08:53:12 Step 7/15 : RUN CGO_ENABLED=0 GO111MODULE=on go build 08:53:12 ---> Running in b5670e90f001 08:53:14 go: downloading github.com/goburrow/serial v0.1.0 08:53:14 go: downloading github.com/tbrandon/mbserver v0.0.0-20170611213546-993e1772cc62 08:53:14 go: extracting github.com/tbrandon/mbserver v0.0.0-20170611213546-993e1772cc62 08:53:14 go: extracting github.com/goburrow/serial v0.1.0 08:53:14 go: finding github.com/tbrandon/mbserver v0.0.0-20170611213546-993e1772cc62 08:53:14 go: finding github.com/goburrow/serial v0.1.0 08:53:19 Removing intermediate container b5670e90f001 08:53:19 ---> ac8712137b45 08:53:19 Step 8/15 : FROM scratch 08:53:19 ---> 08:53:19 Step 9/15 : ENV APP_PORT=1502 08:53:19 ---> Running in c70f23c13cbb 08:53:20 Removing intermediate container c70f23c13cbb 08:53:20 ---> 3bf32b13664c 08:53:20 Step 10/15 : EXPOSE $APP_PORT 08:53:20 ---> Running in 6d857ca8d990 08:53:20 Removing intermediate container 6d857ca8d990 08:53:20 ---> b9c11a457df7 08:53:20 Step 11/15 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/simulator / 08:53:21 ---> 33934797c735 08:53:21 Step 12/15 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: IoTech Ltd' 08:53:21 ---> Running in 6a1ade5e2504 08:53:22 Removing intermediate container 6a1ade5e2504 08:53:22 ---> 0aead1ecca41 08:53:22 Step 13/15 : ENTRYPOINT ["/simulator"] 08:53:22 ---> Running in b1f9424f3cba 08:53:23 Removing intermediate container b1f9424f3cba 08:53:23 ---> 029407cce3ae 08:53:23 Step 14/15 : LABEL arch=arm64 08:53:23 ---> Running in 83e5fe0d8dda 08:53:23 Removing intermediate container 83e5fe0d8dda 08:53:23 ---> b222ac47d931 08:53:23 Step 15/15 : LABEL git_sha=9051bcf6a7179016a2d14a7e9f1fc9f775609d98 08:53:23 ---> Running in c1b2ae6bafb6 08:53:23 Removing intermediate container c1b2ae6bafb6 08:53:23 ---> bc38620e0b58 08:53:23 [Warning] One or more build-args [ARCH] were not consumed 08:53:23 Successfully built bc38620e0b58 08:53:23 Successfully tagged edgex-devops/edgex-modbus-simulator-arm64:latest [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Image) Stage "Archive Image" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Clair Scan) Stage "Clair Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] libraryResource [Pipeline] sh 08:53:27 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 08:53:27 ---> package-listing.sh 08:53:27 ++ facter osfamily 08:53:27 ++ tr '[:upper:]' '[:lower:]' 08:53:27 + OS_FAMILY=redhat 08:53:27 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-170 08:53:27 + START_PACKAGES=/tmp/packages_start.txt 08:53:27 + END_PACKAGES=/tmp/packages_end.txt 08:53:27 + DIFF_PACKAGES=/tmp/packages_diff.txt 08:53:27 + PACKAGES=/tmp/packages_start.txt 08:53:27 + '[' /w/workspace/xfoundry_device-modbus-go_PR-170 ']' 08:53:27 + PACKAGES=/tmp/packages_end.txt 08:53:27 + case "${OS_FAMILY}" in 08:53:27 + rpm -qa 08:53:27 + sort 08:53:31 + '[' -f /tmp/packages_start.txt ']' 08:53:31 + '[' -f /tmp/packages_end.txt ']' 08:53:31 + diff /tmp/packages_start.txt /tmp/packages_end.txt 08:53:31 + '[' /w/workspace/xfoundry_device-modbus-go_PR-170 ']' 08:53:31 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-170/archives/ 08:53:31 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-170/archives/ [Pipeline] isUnix [Pipeline] sh 08:53:32 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 08:53:32 08:53:32 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] isUnix [Pipeline] sh 08:53:33 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 08:53:33 alpine: Pulling from edgex-lftools-log-publisher 08:53:33 c9b1b535fdd9: Pulling fs layer 08:53:33 2cc5ad85d9ab: Pulling fs layer 08:53:33 756a868c4378: Pulling fs layer 08:53:33 444b2fc9a129: Pulling fs layer 08:53:33 ea15f1150254: Pulling fs layer 08:53:33 41b27a9f41bf: Pulling fs layer 08:53:33 28c525ee5125: Pulling fs layer 08:53:33 094b1ea09ed8: Pulling fs layer 08:53:33 138eaada9080: Pulling fs layer 08:53:33 0622d0fa9048: Pulling fs layer 08:53:33 41b27a9f41bf: Waiting 08:53:33 28c525ee5125: Waiting 08:53:33 444b2fc9a129: Waiting 08:53:33 ea15f1150254: Waiting 08:53:33 094b1ea09ed8: Waiting 08:53:33 138eaada9080: Waiting 08:53:33 0622d0fa9048: Waiting 08:53:33 2cc5ad85d9ab: Download complete 08:53:33 444b2fc9a129: Verifying Checksum 08:53:33 444b2fc9a129: Download complete 08:53:33 c9b1b535fdd9: Download complete 08:53:33 ea15f1150254: Verifying Checksum 08:53:33 ea15f1150254: Download complete 08:53:33 28c525ee5125: Verifying Checksum 08:53:33 28c525ee5125: Download complete 08:53:33 756a868c4378: Verifying Checksum 08:53:33 756a868c4378: Download complete 08:53:33 c9b1b535fdd9: Pull complete 08:53:33 138eaada9080: Verifying Checksum 08:53:33 138eaada9080: Download complete 08:53:33 0622d0fa9048: Verifying Checksum 08:53:33 0622d0fa9048: Download complete 08:53:34 094b1ea09ed8: Verifying Checksum 08:53:34 094b1ea09ed8: Download complete 08:53:34 41b27a9f41bf: Verifying Checksum 08:53:34 41b27a9f41bf: Download complete 08:53:35 2cc5ad85d9ab: Pull complete 08:53:36 756a868c4378: Pull complete 08:53:36 444b2fc9a129: Pull complete 08:53:36 ea15f1150254: Pull complete 08:53:41 41b27a9f41bf: Pull complete 08:53:41 28c525ee5125: Pull complete 08:53:42 094b1ea09ed8: Pull complete 08:53:43 138eaada9080: Pull complete 08:53:44 0622d0fa9048: Pull complete 08:53:44 Digest: sha256:54a23bc06fc820608cb72d4fa7cadb8dbe2280fb013cbe6a9fa5bc42756446e1 08:53:44 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 08:53:44 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] withDockerContainer 08:53:44 prd-centos7-docker-4c-2g-1162 does not seem to be running inside a container 08:53:44 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 -v /var/log/sa:/var/log/sa -w /w/workspace/xfoundry_device-modbus-go_PR-170 -v /w/workspace/xfoundry_device-modbus-go_PR-170:/w/workspace/xfoundry_device-modbus-go_PR-170:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-170@tmp:/w/workspace/xfoundry_device-modbus-go_PR-170@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine cat 08:53:47 $ docker top 97b055d6f5d3c2f22fd8bdd00fdc2ce80cfd81e2262c7026549cfa7a5674011b -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 08:53:48 provisioning config files... 08:53:48 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-170@tmp/config5021613377387394573tmp [Pipeline] { [Pipeline] echo 08:53:48 Running global-jjb/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 08:53:48 ---> create-netrc.sh [Pipeline] echo 08:53:48 Running global-jjb/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 08:53:49 ---> logs-deploy.sh 08:53:49 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-170/1 08:53:49 INFO: archiving workspace using pattern(s): 08:53:50 Archives upload complete. 08:53:50 INFO: archiving logs to Nexus