Pull request #139 updated 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 ernestojeda for edgexfoundry/device-modbus-go Obtained Jenkinsfile from 88922e524d3e723c95d0ec1103890aab7875bad0+cc6d90c40154bca37e23385c8e48fb0109b6b0d5 (cd47711f3407a2e44fb30bc6b699bba58911c6f5) Running in Durability level: PERFORMANCE_OPTIMIZED Loading library edgex-global-pipelines@stable Examining edgexfoundry/edgex-global-pipelines Attempting to resolve stable as a branch Attempting to resolve stable as a tag Resolved stable as tag stable at revision 1a1118807cf18c4156ba213bd5188f6dbbcdb2c1 using credential edgex-jenkins-access-pat > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from https://github.com/edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 using GIT_ASKPASS to set credentials edgex-jenkins github PAT for ssh > git fetch --tags --progress -- https://github.com/edgexfoundry/edgex-global-pipelines.git +refs/tags/stable:refs/tags/stable # timeout=10 Checking out Revision 1a1118807cf18c4156ba213bd5188f6dbbcdb2c1 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 1a1118807cf18c4156ba213bd5188f6dbbcdb2c1 # timeout=10 Commit message: "Merge pull request #157 from ernestojeda/clean-snap-name" > 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 [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-modbus-go, goVersion:1.13, buildSnap:true] ========================================================= [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 ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-modbus-go-settings PROJECT: device-modbus-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.13 DOCKER_BASE_IMAGE: nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-alpine DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_IMAGE_NAME: docker-device-modbus-go DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true SEMVER_BUMP_LEVEL: pre GOPROXY: https://nexus3.edgexfoundry.org/repository/go-proxy/ SNAP_CHANNEL: latest/edge BUILD_SNAP: true [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘centos7-docker-4c-2g’ Running on prd-centos7-docker-4c-2g-5394 in /w/workspace/xfoundry_device-modbus-go_PR-139 [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-139 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 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/139/head:refs/remotes/origin/PR-139 +refs/heads/master:refs/remotes/origin/master # timeout=10 Fetching without tags Merging remotes/origin/master commit cc6d90c40154bca37e23385c8e48fb0109b6b0d5 into PR head commit 88922e524d3e723c95d0ec1103890aab7875bad0 Merge succeeded, producing 88922e524d3e723c95d0ec1103890aab7875bad0 Checking out Revision 88922e524d3e723c95d0ec1103890aab7875bad0 (PR-139) > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/139/head:refs/remotes/origin/PR-139 # timeout=10 > git config --add remote.origin.fetch +refs/heads/master:refs/remotes/origin/master # 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/139/head:refs/remotes/origin/PR-139 +refs/heads/master:refs/remotes/origin/master # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 88922e524d3e723c95d0ec1103890aab7875bad0 # 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 cc6d90c40154bca37e23385c8e48fb0109b6b0d5 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 88922e524d3e723c95d0ec1103890aab7875bad0 # timeout=10 Commit message: "add changes to integrate with new Snap stage" First time build. Skipping changelog. > git rev-list --no-walk 9b724a95ad1ea83924f356e73a6a8126edcbd1e5 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 19:55:01 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 19:55:01 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 19:55:01 ========================================================= 19:55:01 EdgeX Global Pipelines Version Info 19:55:01 ========================================================= [Pipeline] libraryResource [Pipeline] sh 19:55:02 ------------------- 19:55:02 stable info: 19:55:02 ------------------- 19:55:02 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 19:55:02 Commit SHA: 824d4d37602b19f8c5aab127669a8744686ab6c4 19:55:02 Message: update stable to v1.0.73 19:55:03 ------------------- 19:55:03 experimental info: 19:55:03 ------------------- 19:55:03 Commited By: **** collab-it+edgex@linuxfoundation.org 19:55:03 Commit SHA: 824d4d37602b19f8c5aab127669a8744686ab6c4 19:55:03 Message: update experimental to v1.0.73 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] isUnix [Pipeline] sh 19:55:05 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 19:55:05 19:55:05 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 19:55:05 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 19:55:05 latest: Pulling from edgex-devops/git-semver 19:55:05 9123ac7c32f7: Pulling fs layer 19:55:05 b8cc5d1170e3: Pulling fs layer 19:55:05 2924cbbf6a41: Pulling fs layer 19:55:05 93b08a4f1073: Pulling fs layer 19:55:05 b8cc5d1170e3: Verifying Checksum 19:55:05 b8cc5d1170e3: Download complete 19:55:05 9123ac7c32f7: Verifying Checksum 19:55:05 9123ac7c32f7: Download complete 19:55:06 2924cbbf6a41: Verifying Checksum 19:55:06 2924cbbf6a41: Download complete 19:55:06 93b08a4f1073: Download complete 19:55:06 9123ac7c32f7: Pull complete 19:55:06 b8cc5d1170e3: Pull complete 19:55:06 2924cbbf6a41: Pull complete 19:55:07 93b08a4f1073: Pull complete 19:55:07 Digest: sha256:4625bffe18d7e57a26110a192204e9d2df26dcfa88161a59d694ed3c08739905 19:55:07 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 19:55:07 prd-centos7-docker-4c-2g-5394 does not seem to be running inside a container 19:55:07 $ docker run -t -d -u 1001:1001 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-139 -v /w/workspace/xfoundry_device-modbus-go_PR-139:/w/workspace/xfoundry_device-modbus-go_PR-139:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-139@tmp:/w/workspace/xfoundry_device-modbus-go_PR-139@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 ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 19:55:07 $ docker top 57dea9e26bd28f6c0fc3c370e02704b4691d712c5963c9a9fe5b8c80dd91e709 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 19:55:08 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 19:55:08 [ssh-agent] Looking for ssh-agent implementation... 19:55:08 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 19:55:08 $ docker exec 57dea9e26bd28f6c0fc3c370e02704b4691d712c5963c9a9fe5b8c80dd91e709 ssh-agent 19:55:08 SSH_AUTH_SOCK=/tmp/ssh-o1CakOfQguSG/agent.14 19:55:08 SSH_AGENT_PID=21 19:55:08 Running ssh-add (command line suppressed) 19:55:08 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-139@tmp/private_key_3893704878441593365.key (/w/workspace/xfoundry_device-modbus-go_PR-139@tmp/private_key_3893704878441593365.key) 19:55:08 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 19:55:09 + git describe --exact-match --tags HEAD 19:55:09 fatal: No names found, cannot describe anything. [Pipeline] } 19:55:09 $ docker exec --env ******** --env ******** 57dea9e26bd28f6c0fc3c370e02704b4691d712c5963c9a9fe5b8c80dd91e709 ssh-agent -k 19:55:09 unset SSH_AUTH_SOCK; 19:55:09 unset SSH_AGENT_PID; 19:55:09 echo Agent pid 21 killed; 19:55:09 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] echo 19:55:09 [WARNING]: exception occurred checking if HEAD is tagged: hudson.AbortException: script returned exit code 128 19:55:09 This usually means this commit has not been tagged. [Pipeline] sshagent 19:55:09 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 19:55:09 [ssh-agent] Looking for ssh-agent implementation... 19:55:09 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 19:55:09 $ docker exec 57dea9e26bd28f6c0fc3c370e02704b4691d712c5963c9a9fe5b8c80dd91e709 ssh-agent 19:55:09 SSH_AUTH_SOCK=/tmp/ssh-GweuNSfA5RbP/agent.56 19:55:09 SSH_AGENT_PID=63 19:55:09 Running ssh-add (command line suppressed) 19:55:09 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-139@tmp/private_key_304862839892341039.key (/w/workspace/xfoundry_device-modbus-go_PR-139@tmp/private_key_304862839892341039.key) 19:55:09 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 19:55:10 + git semver init 19:55:10 # -> Open(): unable to determine branch for HEAD 19:55:10 # $GIT_DIR = /w/workspace/xfoundry_device-modbus-go_PR-139/.git 19:55:10 # $GIT_WORK_TREE = /w/workspace/xfoundry_device-modbus-go_PR-139 19:55:10 # $SEMVER_REMOTE_NAME = origin 19:55:10 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 19:55:10 # $SEMVER_USER_NAME = edgex-jenkins 19:55:10 # $SEMVER_BRANCH = PR-139 19:55:10 # $SEMVER_TEMP = /tmp/semver-675442551 19:55:10 # git clone --branch semver git@github.com:edgexfoundry/device-modbus-go.git $SEMVER_TEMP 19:55:10 # '/tmp/semver-675442551' -> '/w/workspace/xfoundry_device-modbus-go_PR-139/.semver' 19:55:10 # -> Force: false 19:55:10 # $SEMVER_DIR = /w/workspace/xfoundry_device-modbus-go_PR-139/.semver [Pipeline] } 19:55:10 $ docker exec --env ******** --env ******** 57dea9e26bd28f6c0fc3c370e02704b4691d712c5963c9a9fe5b8c80dd91e709 ssh-agent -k 19:55:10 unset SSH_AUTH_SOCK; 19:55:10 unset SSH_AGENT_PID; 19:55:10 echo Agent pid 63 killed; 19:55:10 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 19:55:11 + git semver [Pipeline] } 19:55:11 $ docker stop --time=1 57dea9e26bd28f6c0fc3c370e02704b4691d712c5963c9a9fe5b8c80dd91e709 19:55:12 $ docker rm -f 57dea9e26bd28f6c0fc3c370e02704b4691d712c5963c9a9fe5b8c80dd91e709 [Pipeline] // withDockerContainer [Pipeline] writeFile [Pipeline] stash 19:55:13 Stashed 24 file(s) [Pipeline] echo 19:55:13 [edgeXSemver] initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] node [Pipeline] node 19:55:28 Still waiting to schedule task 19:55:28 Waiting for next available executor on ‘centos7-docker-4c-2g’ 19:55:28 Still waiting to schedule task 19:55:28 All nodes of label ‘ubuntu18.04-docker-arm64-4c-16g’ are offline 19:57:13 Running on prd-centos7-docker-4c-2g-5396 in /w/workspace/xfoundry_device-modbus-go_PR-139 [Pipeline] { [Pipeline] ws 19:57:13 Running in /w/workspace/device-modbus-go/10 [Pipeline] { [Pipeline] checkout 19:57:15 Running on prd-ubuntu18.04-docker-arm64-4c-16g-5395 in /w/workspace/xfoundry_device-modbus-go_PR-139 [Pipeline] { [Pipeline] ws 19:57:15 Running in /w/workspace/device-modbus-go/10 [Pipeline] { [Pipeline] checkout 19:57:15 using credential edgex-jenkins-ssh 19:57:16 Cloning the remote Git repository 19:57:16 Cloning with configured refspecs honoured and without tags 19:57:16 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 19:57:16 > git init /w/workspace/device-modbus-go/10 # timeout=10 19:57:16 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 19:57:16 > git --version # timeout=10 19:57:16 using GIT_SSH to set credentials SSH Credentials for GitHub 19:57:16 > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/139/head:refs/remotes/origin/PR-139 +refs/heads/master:refs/remotes/origin/master # timeout=10 19:57:16 Fetching without tags 19:57:17 Merging remotes/origin/master commit cc6d90c40154bca37e23385c8e48fb0109b6b0d5 into PR head commit 88922e524d3e723c95d0ec1103890aab7875bad0 19:57:17 Merge succeeded, producing 88922e524d3e723c95d0ec1103890aab7875bad0 19:57:17 Checking out Revision 88922e524d3e723c95d0ec1103890aab7875bad0 (PR-139) 19:57:16 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 19:57:16 > git config --add remote.origin.fetch +refs/pull/139/head:refs/remotes/origin/PR-139 # timeout=10 19:57:16 > git config --add remote.origin.fetch +refs/heads/master:refs/remotes/origin/master # timeout=10 19:57:16 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 19:57:16 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 19:57:16 using GIT_SSH to set credentials SSH Credentials for GitHub 19:57:16 > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/139/head:refs/remotes/origin/PR-139 +refs/heads/master:refs/remotes/origin/master # timeout=10 19:57:17 > git config core.sparsecheckout # timeout=10 19:57:17 > git checkout -f 88922e524d3e723c95d0ec1103890aab7875bad0 # timeout=10 19:57:17 > git remote # timeout=10 19:57:17 > git config --get remote.origin.url # timeout=10 19:57:17 using GIT_SSH to set credentials SSH Credentials for GitHub 19:57:17 > git merge cc6d90c40154bca37e23385c8e48fb0109b6b0d5 # timeout=10 19:57:17 > git rev-parse HEAD^{commit} # timeout=10 19:57:17 > git config core.sparsecheckout # timeout=10 19:57:17 > git checkout -f 88922e524d3e723c95d0ec1103890aab7875bad0 # timeout=10 19:57:21 Commit message: "add changes to integrate with new Snap stage" 19:57:21 using credential edgex-jenkins-ssh 19:57:21 Cloning the remote Git repository 19:57:21 Cloning with configured refspecs honoured and without tags [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] unstash 19:57:21 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 19:57:21 > git init /w/workspace/device-modbus-go/10 # timeout=10 19:57:21 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 19:57:21 > git --version # timeout=10 19:57:21 using GIT_SSH to set credentials SSH Credentials for GitHub [Pipeline] echo 19:57:21 ========================================================= 19:57:21 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-alpine] 19:57:21 ========================================================= [Pipeline] isUnix [Pipeline] sh 19:57:22 + docker build -t ci-base-image-x86_64 -f Dockerfile.build --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-alpine . 19:57:22 Fetching without tags 19:57:22 Sending build context to Docker daemon 582.7kB 19:57:22 Step 1/8 : ARG BASE=golang:1.13-alpine 19:57:22 Step 2/8 : FROM ${BASE} 19:57:22 1.13-alpine: Pulling from edgex-devops/edgex-golang-base 19:57:22 e6b0cf9c0882: Pulling fs layer 19:57:22 2848faf0eed1: Pulling fs layer 19:57:22 0f37312ad70f: Pulling fs layer 19:57:22 5788d62ee057: Pulling fs layer 19:57:22 0e6b1d234666: Pulling fs layer 19:57:22 bf5d7aec512f: Pulling fs layer 19:57:22 34c802a77dc8: Pulling fs layer 19:57:22 9eb99e56ec68: Pulling fs layer 19:57:22 27c7a5d97fbd: Pulling fs layer 19:57:22 5c102a31e300: Pulling fs layer 19:57:22 dcfb455df0a1: Pulling fs layer 19:57:22 34c802a77dc8: Waiting 19:57:22 5c102a31e300: Waiting 19:57:22 9eb99e56ec68: Waiting 19:57:22 27c7a5d97fbd: Waiting 19:57:22 dcfb455df0a1: Waiting 19:57:22 5788d62ee057: Waiting 19:57:22 0e6b1d234666: Waiting 19:57:22 bf5d7aec512f: Waiting 19:57:22 0f37312ad70f: Verifying Checksum 19:57:22 0f37312ad70f: Download complete 19:57:22 2848faf0eed1: Verifying Checksum 19:57:22 2848faf0eed1: Download complete 19:57:22 0e6b1d234666: Verifying Checksum 19:57:22 0e6b1d234666: Download complete 19:57:22 bf5d7aec512f: Download complete 19:57:22 e6b0cf9c0882: Verifying Checksum 19:57:22 e6b0cf9c0882: Download complete 19:57:21 > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/139/head:refs/remotes/origin/PR-139 +refs/heads/master:refs/remotes/origin/master # timeout=10 19:57:22 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 19:57:22 > git config --add remote.origin.fetch +refs/pull/139/head:refs/remotes/origin/PR-139 # timeout=10 19:57:22 > git config --add remote.origin.fetch +refs/heads/master:refs/remotes/origin/master # timeout=10 19:57:22 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 19:57:22 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 19:57:22 using GIT_SSH to set credentials SSH Credentials for GitHub 19:57:22 > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/139/head:refs/remotes/origin/PR-139 +refs/heads/master:refs/remotes/origin/master # timeout=10 19:57:23 Merging remotes/origin/master commit cc6d90c40154bca37e23385c8e48fb0109b6b0d5 into PR head commit 88922e524d3e723c95d0ec1103890aab7875bad0 19:57:23 e6b0cf9c0882: Pull complete 19:57:23 Merge succeeded, producing 88922e524d3e723c95d0ec1103890aab7875bad0 19:57:23 Checking out Revision 88922e524d3e723c95d0ec1103890aab7875bad0 (PR-139) 19:57:24 34c802a77dc8: Verifying Checksum 19:57:24 34c802a77dc8: Download complete 19:57:24 27c7a5d97fbd: Verifying Checksum 19:57:24 27c7a5d97fbd: Download complete 19:57:23 > git config core.sparsecheckout # timeout=10 19:57:23 > git checkout -f 88922e524d3e723c95d0ec1103890aab7875bad0 # timeout=10 19:57:23 > git remote # timeout=10 19:57:23 > git config --get remote.origin.url # timeout=10 19:57:23 using GIT_SSH to set credentials SSH Credentials for GitHub 19:57:23 > git merge cc6d90c40154bca37e23385c8e48fb0109b6b0d5 # timeout=10 19:57:23 > git rev-parse HEAD^{commit} # timeout=10 19:57:23 > git config core.sparsecheckout # timeout=10 19:57:23 > git checkout -f 88922e524d3e723c95d0ec1103890aab7875bad0 # timeout=10 19:57:24 5c102a31e300: Verifying Checksum 19:57:24 5c102a31e300: Download complete 19:57:24 dcfb455df0a1: Verifying Checksum 19:57:24 dcfb455df0a1: Download complete 19:57:24 9eb99e56ec68: Verifying Checksum 19:57:24 9eb99e56ec68: Download complete 19:57:24 5788d62ee057: Download complete 19:57:25 2848faf0eed1: Pull complete 19:57:25 0f37312ad70f: Pull complete 19:57:28 Commit message: "add changes to integrate with new Snap stage" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] unstash [Pipeline] echo 19:57:29 ========================================================= 19:57:29 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.13-alpine] 19:57:29 ========================================================= [Pipeline] isUnix [Pipeline] sh 19:57:30 + docker build -t ci-base-image-arm64 -f Dockerfile.build --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.13-alpine . 19:57:30 Sending build context to Docker daemon 582.7kB 19:57:30 Step 1/8 : ARG BASE=golang:1.13-alpine 19:57:30 Step 2/8 : FROM ${BASE} 19:57:31 1.13-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 19:57:31 cde5963f3b93: Pulling fs layer 19:57:31 2a23fa8c16f7: Pulling fs layer 19:57:31 777b28850792: Pulling fs layer 19:57:31 8a11ddd9e578: Pulling fs layer 19:57:31 4cf88f913ddb: Pulling fs layer 19:57:31 1df406cf5192: Pulling fs layer 19:57:31 cd6300453558: Pulling fs layer 19:57:31 b9c365052c96: Pulling fs layer 19:57:31 a2d8cc88f415: Pulling fs layer 19:57:31 ea1d1ca13537: Pulling fs layer 19:57:31 3750a50a1c5e: Pulling fs layer 19:57:31 8a11ddd9e578: Waiting 19:57:31 4cf88f913ddb: Waiting 19:57:31 1df406cf5192: Waiting 19:57:31 cd6300453558: Waiting 19:57:31 b9c365052c96: Waiting 19:57:31 a2d8cc88f415: Waiting 19:57:31 ea1d1ca13537: Waiting 19:57:31 3750a50a1c5e: Waiting 19:57:31 777b28850792: Verifying Checksum 19:57:31 777b28850792: Download complete 19:57:31 2a23fa8c16f7: Verifying Checksum 19:57:31 2a23fa8c16f7: Download complete 19:57:31 4cf88f913ddb: Verifying Checksum 19:57:31 4cf88f913ddb: Download complete 19:57:31 1df406cf5192: Verifying Checksum 19:57:31 1df406cf5192: Download complete 19:57:31 cde5963f3b93: Verifying Checksum 19:57:31 cde5963f3b93: Download complete 19:57:32 5788d62ee057: Pull complete 19:57:32 0e6b1d234666: Pull complete 19:57:32 bf5d7aec512f: Pull complete 19:57:32 cde5963f3b93: Pull complete 19:57:32 2a23fa8c16f7: Pull complete 19:57:33 777b28850792: Pull complete 19:57:35 cd6300453558: Verifying Checksum 19:57:35 cd6300453558: Download complete 19:57:35 a2d8cc88f415: Verifying Checksum 19:57:35 a2d8cc88f415: Download complete 19:57:36 34c802a77dc8: Pull complete 19:57:38 ea1d1ca13537: Verifying Checksum 19:57:38 ea1d1ca13537: Download complete 19:57:38 3750a50a1c5e: Verifying Checksum 19:57:38 3750a50a1c5e: Download complete 19:57:40 b9c365052c96: Verifying Checksum 19:57:40 b9c365052c96: Download complete 19:57:40 9eb99e56ec68: Pull complete 19:57:40 27c7a5d97fbd: Pull complete 19:57:41 5c102a31e300: Pull complete 19:57:41 dcfb455df0a1: Pull complete 19:57:41 Digest: sha256:bf9b800d7ab6b241e21016b558127766659829ad41453f889f6c4db283117473 19:57:41 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-alpine 19:57:41 ---> 7c70fe431013 19:57:41 Step 3/8 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: IOTech' 19:57:41 ---> Running in 85e1549e56df 19:57:41 Removing intermediate container 85e1549e56df 19:57:41 ---> f6c23e78e9ef 19:57:41 Step 4/8 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 19:57:41 ---> Running in 02f9df400a93 19:57:42 8a11ddd9e578: Verifying Checksum 19:57:42 8a11ddd9e578: Download complete 19:57:43 Removing intermediate container 02f9df400a93 19:57:43 ---> 306c97b84f5b 19:57:43 Step 5/8 : RUN apk add --update --no-cache make git openssh build-base 19:57:43 ---> Running in 8dab20698f3d 19:57:43 fetch http://nl.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz 19:57:44 fetch http://nl.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz 19:57:44 (1/17) Upgrading libstdc++ (9.2.0-r3 -> 9.2.0-r4) 19:57:44 (2/17) Installing libmagic (5.37-r1) 19:57:44 (3/17) Installing file (5.37-r1) 19:57:44 (4/17) Upgrading libgomp (9.2.0-r3 -> 9.2.0-r4) 19:57:44 (5/17) Upgrading libatomic (9.2.0-r3 -> 9.2.0-r4) 19:57:44 (6/17) Upgrading gcc (9.2.0-r3 -> 9.2.0-r4) 19:57:49 (7/17) Installing libc-dev (0.7.2-r0) 19:57:49 (8/17) Installing g++ (9.2.0-r4) 19:57:50 (9/17) Installing fortify-headers (1.1-r0) 19:57:50 (10/17) Installing build-base (0.5-r1) 19:57:50 (11/17) Installing openssh-keygen (8.1_p1-r0) 19:57:50 (12/17) Installing libedit (20191211.3.1-r0) 19:57:50 (13/17) Installing openssh-client (8.1_p1-r0) 19:57:50 (14/17) Installing openssh-sftp-server (8.1_p1-r0) 19:57:50 (15/17) Installing openssh-server-common (8.1_p1-r0) 19:57:51 (16/17) Installing openssh-server (8.1_p1-r0) 19:57:51 (17/17) Installing openssh (8.1_p1-r0) 19:57:51 Executing busybox-1.31.1-r8.trigger 19:57:51 OK: 214 MiB in 52 packages 19:57:54 8a11ddd9e578: Pull complete 19:57:54 4cf88f913ddb: Pull complete 19:57:54 1df406cf5192: Pull complete 19:57:55 Removing intermediate container 8dab20698f3d 19:57:55 ---> 46a3c7f78a69 19:57:55 Step 6/8 : WORKDIR /device-modbus-go 19:57:55 ---> Running in 1dd224617075 19:57:55 Removing intermediate container 1dd224617075 19:57:55 ---> 9fd5ddf22d88 19:57:55 Step 7/8 : COPY . . 19:57:56 ---> 59f2aa175592 19:57:56 Step 8/8 : RUN go mod download 19:57:56 ---> Running in d02280f9852a 19:57:58 go: finding github.com/BurntSushi/toml v0.3.1 19:57:58 go: finding github.com/OneOfOne/xxhash v1.2.6 19:57:58 go: finding github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e 19:57:58 go: finding github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da 19:57:58 go: finding github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 19:57:58 go: finding github.com/bgentry/speakeasy v0.1.0 19:57:58 go: finding github.com/cenkalti/backoff v2.2.1+incompatible 19:57:58 go: finding github.com/davecgh/go-spew v1.1.1 19:57:58 go: finding github.com/edgexfoundry/device-sdk-go v1.2.0-dev.27 19:57:58 go: finding github.com/edgexfoundry/go-mod-bootstrap v0.0.29 19:57:58 go: finding github.com/edgexfoundry/go-mod-configuration v0.0.3 19:57:59 go: finding github.com/edgexfoundry/go-mod-core-contracts v0.1.54 19:57:59 go: finding github.com/edgexfoundry/go-mod-registry v0.1.17 19:57:59 go: finding github.com/edgexfoundry/go-mod-secrets v0.0.17 19:57:59 go: finding github.com/fatih/color v1.7.0 19:57:59 go: finding github.com/fxamacker/cbor/v2 v2.2.0 19:57:59 go: finding github.com/go-kit/kit v0.8.0 19:57:59 go: finding github.com/go-logfmt/logfmt v0.4.0 19:57:59 go: finding github.com/go-stack/stack v1.8.0 19:57:59 go: finding github.com/goburrow/modbus v0.1.0 19:57:59 go: finding github.com/goburrow/serial v0.1.0 19:57:59 go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c 19:57:59 go: finding github.com/google/uuid v1.1.1 19:57:59 go: finding github.com/gorilla/mux v1.7.1 19:57:59 go: finding github.com/hashicorp/consul/api v1.1.0 19:57:59 go: finding github.com/hashicorp/consul/sdk v0.1.1 19:57:59 go: finding github.com/hashicorp/errwrap v1.0.0 19:57:59 go: finding github.com/hashicorp/go-cleanhttp v0.5.1 19:57:59 go: finding github.com/hashicorp/go-immutable-radix v1.0.0 19:57:59 go: finding github.com/hashicorp/go-msgpack v0.5.3 19:57:59 go: finding github.com/hashicorp/go-multierror v1.0.0 19:57:59 go: finding github.com/hashicorp/go-rootcerts v1.0.0 19:57:59 go: finding github.com/hashicorp/go-sockaddr v1.0.1 19:57:59 go: finding github.com/hashicorp/go-syslog v1.0.0 19:57:59 go: finding github.com/hashicorp/go-uuid v1.0.1 19:57:59 go: finding github.com/hashicorp/go.net v0.0.1 19:57:59 go: finding github.com/hashicorp/golang-lru v0.5.1 19:57:59 go: finding github.com/hashicorp/logutils v1.0.0 19:57:59 go: finding github.com/hashicorp/mdns v1.0.0 19:57:59 go: finding github.com/hashicorp/memberlist v0.1.3 19:58:00 go: finding github.com/hashicorp/serf v0.8.2 19:58:00 go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 19:58:00 go: finding github.com/mattn/go-colorable v0.0.9 19:58:00 go: finding github.com/mattn/go-isatty v0.0.3 19:58:00 go: finding github.com/miekg/dns v1.1.4 19:58:00 go: finding github.com/mitchellh/cli v1.0.0 19:58:00 go: finding github.com/mitchellh/consulstructure v0.0.0-20190329231841-56fdc4d2da54 19:58:00 cd6300453558: Pull complete 19:58:00 go: finding github.com/mitchellh/copystructure v1.0.0 19:58:00 go: finding github.com/mitchellh/go-homedir v1.1.0 19:58:00 go: finding github.com/mitchellh/go-testing-interface v1.0.0 19:58:00 go: finding github.com/mitchellh/go-wordwrap v1.0.0 19:58:00 go: finding github.com/mitchellh/gox v0.4.0 19:58:00 go: finding github.com/mitchellh/iochan v1.0.0 19:58:00 go: finding github.com/mitchellh/mapstructure v1.1.2 19:58:00 go: finding github.com/mitchellh/reflectwalk v1.0.0 19:58:00 go: finding github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c 19:58:00 go: finding github.com/pelletier/go-toml v1.2.0 19:58:00 go: finding github.com/pkg/errors v0.8.1 19:58:00 go: finding github.com/pmezard/go-difflib v1.0.0 19:58:00 go: finding github.com/posener/complete v1.1.1 19:58:00 go: finding github.com/ryanuber/columnize v2.1.0+incompatible 19:58:00 go: finding github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 19:58:00 go: finding github.com/stretchr/objx v0.1.0 19:58:00 go: finding github.com/stretchr/testify v1.5.1 19:58:00 go: finding github.com/ugorji/go v1.1.4 19:58:00 go: finding github.com/x448/float16 v0.8.4 19:58:00 go: finding golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3 19:58:00 go: finding golang.org/x/net v0.0.0-20190228165749-92fc7df08ae7 19:58:00 go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 19:58:00 go: finding golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5 19:58:01 go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 19:58:01 go: finding gopkg.in/yaml.v2 v2.2.8 19:58:04 Removing intermediate container d02280f9852a 19:58:04 ---> b59e5953bdc4 19:58:04 Successfully built b59e5953bdc4 19:58:04 Successfully tagged ci-base-image-x86_64:latest 19:58:04 b9c365052c96: Pull complete 19:58:04 a2d8cc88f415: Pull complete [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 19:58:05 + docker inspect -f . ci-base-image-x86_64 19:58:05 . [Pipeline] withDockerContainer 19:58:05 prd-centos7-docker-4c-2g-5396 does not seem to be running inside a container 19:58:05 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/10 -v /w/workspace/device-modbus-go/10:/w/workspace/device-modbus-go/10:rw,z -v /w/workspace/device-modbus-go/10@tmp:/w/workspace/device-modbus-go/10@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 ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 19:58:06 $ docker top 3adf284d6baa538f2e17be0a12eeb39fcef09a2c057e09cafbc2618f098262e6 -eo pid,comm [Pipeline] { [Pipeline] sh 19:58:06 + go version 19:58:06 go version go1.13.5 linux/amd64 [Pipeline] sh 19:58:06 + make test 19:58:06 CGO_ENABLED=0 GO111MODULE=on go test ./... -coverprofile=coverage.out 19:58:07 ea1d1ca13537: Pull complete 19:58:07 3750a50a1c5e: Pull complete 19:58:07 Digest: sha256:a3e491bd7756271d1e8fe1bff15cdb93064c35086ae9a2f64bafd3a981b9f581 19:58:07 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.13-alpine 19:58:07 ---> 78745c68409d 19:58:07 Step 3/8 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: IOTech' 19:58:07 ? github.com/edgexfoundry/device-modbus-go [no test files] 19:58:11 ---> Running in f75f65513fe2 19:58:12 Removing intermediate container f75f65513fe2 19:58:12 ---> 5a614ac804ff 19:58:12 Step 4/8 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 19:58:12 ---> Running in c1046957d918 19:58:15 Removing intermediate container c1046957d918 19:58:15 ---> b59236b65d3c 19:58:15 Step 5/8 : RUN apk add --update --no-cache make git openssh build-base 19:58:15 ---> Running in a33c8ef8221e 19:58:16 fetch http://nl.alpinelinux.org/alpine/v3.11/main/aarch64/APKINDEX.tar.gz 19:58:16 fetch http://nl.alpinelinux.org/alpine/v3.11/community/aarch64/APKINDEX.tar.gz 19:58:17 (1/18) Upgrading libgcc (9.2.0-r3 -> 9.2.0-r4) 19:58:17 (2/18) Upgrading libstdc++ (9.2.0-r3 -> 9.2.0-r4) 19:58:17 (3/18) Installing libmagic (5.37-r1) 19:58:17 (4/18) Installing file (5.37-r1) 19:58:17 (5/18) Upgrading libgomp (9.2.0-r3 -> 9.2.0-r4) 19:58:17 (6/18) Upgrading libatomic (9.2.0-r3 -> 9.2.0-r4) 19:58:17 (7/18) Upgrading gcc (9.2.0-r3 -> 9.2.0-r4) 19:58:20 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 19:58:20 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.178s coverage: 50.3% of statements 19:58:20 CGO_ENABLED=0 GO111MODULE=on go vet ./... 19:58:20 (8/18) Installing libc-dev (0.7.2-r0) 19:58:20 (9/18) Installing g++ (9.2.0-r4) 19:58:20 gofmt -l . 19:58:20 [ "`gofmt -l .`" = "" ] 19:58:20 ./bin/test-attribution-txt.sh 19:58:21 ./bin/test-go-mod-tidy.sh [Pipeline] stash 19:58:21 Stashed 1 file(s) [Pipeline] } 19:58:21 $ docker stop --time=1 3adf284d6baa538f2e17be0a12eeb39fcef09a2c057e09cafbc2618f098262e6 19:58:22 (10/18) Installing fortify-headers (1.1-r0) 19:58:22 (11/18) Installing build-base (0.5-r1) 19:58:22 (12/18) Installing openssh-keygen (8.1_p1-r0) 19:58:22 (13/18) Installing libedit (20191211.3.1-r0) 19:58:22 (14/18) Installing openssh-client (8.1_p1-r0) 19:58:23 (15/18) Installing openssh-sftp-server (8.1_p1-r0) 19:58:23 (16/18) Installing openssh-server-common (8.1_p1-r0) 19:58:23 (17/18) Installing openssh-server (8.1_p1-r0) 19:58:23 (18/18) Installing openssh (8.1_p1-r0) 19:58:23 Executing busybox-1.31.1-r8.trigger 19:58:23 OK: 203 MiB in 52 packages 19:58:23 $ docker rm -f 3adf284d6baa538f2e17be0a12eeb39fcef09a2c057e09cafbc2618f098262e6 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 19:58:24 + sudo chown -R jenkins:jenkins . [Pipeline] sh 19:58:25 + ls -al . 19:58:25 total 108 19:58:25 drwxrwxr-x. 9 jenkins jenkins 4096 Apr 21 19:58 . 19:58:25 drwxrwxr-x. 4 jenkins jenkins 30 Apr 21 19:57 .. 19:58:25 -rw-rw-r--. 1 jenkins jenkins 5146 Apr 21 19:57 Attribution.txt 19:58:25 drwxrwxr-x. 2 jenkins jenkins 87 Apr 21 19:57 bin 19:58:25 drwxrwxr-x. 3 jenkins jenkins 32 Apr 21 19:57 cmd 19:58:25 -rw-r--r--. 1 jenkins jenkins 22123 Apr 21 19:58 coverage.out 19:58:25 -rw-rw-r--. 1 jenkins jenkins 1422 Apr 21 19:57 Dockerfile 19:58:25 -rw-rw-r--. 1 jenkins jenkins 954 Apr 21 19:57 Dockerfile.build 19:58:25 -rw-rw-r--. 1 jenkins jenkins 140 Apr 21 19:57 .dockerignore 19:58:25 drwxrwxr-x. 8 jenkins jenkins 179 Apr 21 19:57 .git 19:58:25 -rw-rw-r--. 1 jenkins jenkins 338 Apr 21 19:57 .gitignore 19:58:25 -rw-r--r--. 1 jenkins jenkins 566 Apr 21 19:58 go.mod 19:58:25 -rw-r--r--. 1 jenkins jenkins 13382 Apr 21 19:58 go.sum 19:58:25 drwxrwxr-x. 3 jenkins jenkins 20 Apr 21 19:57 internal 19:58:25 -rw-rw-r--. 1 jenkins jenkins 702 Apr 21 19:57 Jenkinsfile 19:58:25 -rw-rw-r--. 1 jenkins jenkins 11340 Apr 21 19:57 LICENSE 19:58:25 -rw-rw-r--. 1 jenkins jenkins 880 Apr 21 19:57 Makefile 19:58:25 -rw-rw-r--. 1 jenkins jenkins 591 Apr 21 19:57 README.md 19:58:25 drwxrwxr-x. 3 jenkins jenkins 58 Apr 21 19:57 .semver 19:58:25 drwxrwxr-x. 2 jenkins jenkins 35 Apr 21 19:57 simulator 19:58:25 drwxrwxr-x. 4 jenkins jenkins 54 Apr 21 19:57 snap 19:58:25 -rw-rw-r--. 1 jenkins jenkins 3226 Apr 21 19:57 snapcraft.yaml 19:58:25 -rw-rw-r--. 1 jenkins jenkins 5 Apr 21 19:55 VERSION 19:58:25 -rw-rw-r--. 1 jenkins jenkins 229 Apr 21 19:57 version.go [Pipeline] isUnix [Pipeline] sh 19:58:25 + docker build -t docker-device-modbus-go -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg 'MAKE=make build' --build-arg ARCH=amd64 --label git_sha=88922e524d3e723c95d0ec1103890aab7875bad0 --label arch=amd64 --label version=0.0.0 . 19:58:25 Sending build context to Docker daemon 611.3kB 19:58:25 Step 1/19 : ARG BASE=golang:1.13-alpine 19:58:25 Step 2/19 : FROM ${BASE} AS builder 19:58:25 ---> b59e5953bdc4 19:58:25 Step 3/19 : ARG MAKE='make build' 19:58:25 ---> Running in 937514e70820 19:58:25 Removing intermediate container 937514e70820 19:58:25 ---> a1cc16b7176a 19:58:25 Step 4/19 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 19:58:25 ---> Running in 5e03e3d2158e 19:58:26 Removing intermediate container 5e03e3d2158e 19:58:26 ---> f4ba4a545024 19:58:26 Step 5/19 : RUN apk add --update --no-cache make git openssh build-base 19:58:26 ---> Running in 8cbddcafed54 19:58:27 fetch http://nl.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz 19:58:27 fetch http://nl.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz 19:58:27 OK: 214 MiB in 52 packages 19:58:28 Removing intermediate container 8cbddcafed54 19:58:28 ---> 42eb7cb2f995 19:58:28 Step 6/19 : WORKDIR $GOPATH/src/github.com/edgexfoundry/device-modbus-go 19:58:28 ---> Running in 1c5c9a1571d1 19:58:28 Removing intermediate container 1c5c9a1571d1 19:58:28 ---> 73ceffeb5306 19:58:28 Step 7/19 : COPY . . 19:58:29 ---> e622ea15524f 19:58:29 Step 8/19 : RUN ${MAKE} 19:58:29 ---> Running in a8d0c4b2b0de 19:58:29 CGO_ENABLED=0 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -o cmd/device-modbus ./cmd 19:58:30 Removing intermediate container a33c8ef8221e 19:58:30 ---> e0cb28f78b74 19:58:30 Step 6/8 : WORKDIR /device-modbus-go 19:58:30 ---> Running in abfdf0f4c8bd 19:58:30 Removing intermediate container abfdf0f4c8bd 19:58:30 ---> 5e474d9ee727 19:58:30 Step 7/8 : COPY . . 19:58:31 ---> 88e82b3b1201 19:58:31 Step 8/8 : RUN go mod download 19:58:31 ---> Running in 24e368fc7b9d 19:58:33 go: finding github.com/BurntSushi/toml v0.3.1 19:58:33 go: finding github.com/OneOfOne/xxhash v1.2.6 19:58:33 go: finding github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e 19:58:33 go: finding github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da 19:58:33 go: finding github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 19:58:33 go: finding github.com/bgentry/speakeasy v0.1.0 19:58:33 go: finding github.com/cenkalti/backoff v2.2.1+incompatible 19:58:33 go: finding github.com/davecgh/go-spew v1.1.1 19:58:33 go: finding github.com/edgexfoundry/device-sdk-go v1.2.0-dev.27 19:58:33 go: finding github.com/edgexfoundry/go-mod-bootstrap v0.0.29 19:58:33 go: finding github.com/edgexfoundry/go-mod-configuration v0.0.3 19:58:33 go: finding github.com/edgexfoundry/go-mod-core-contracts v0.1.54 19:58:33 go: finding github.com/edgexfoundry/go-mod-registry v0.1.17 19:58:33 go: finding github.com/edgexfoundry/go-mod-secrets v0.0.17 19:58:33 go: finding github.com/fatih/color v1.7.0 19:58:33 go: finding github.com/fxamacker/cbor/v2 v2.2.0 19:58:33 go: finding github.com/go-kit/kit v0.8.0 19:58:33 go: finding github.com/go-logfmt/logfmt v0.4.0 19:58:33 go: finding github.com/go-stack/stack v1.8.0 19:58:33 go: finding github.com/goburrow/modbus v0.1.0 19:58:33 go: finding github.com/goburrow/serial v0.1.0 19:58:33 go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c 19:58:33 go: finding github.com/google/uuid v1.1.1 19:58:33 go: finding github.com/gorilla/mux v1.7.1 19:58:33 go: finding github.com/hashicorp/consul/api v1.1.0 19:58:33 go: finding github.com/hashicorp/consul/sdk v0.1.1 19:58:33 go: finding github.com/hashicorp/errwrap v1.0.0 19:58:33 go: finding github.com/hashicorp/go-cleanhttp v0.5.1 19:58:33 go: finding github.com/hashicorp/go-immutable-radix v1.0.0 19:58:33 go: finding github.com/hashicorp/go-msgpack v0.5.3 19:58:33 go: finding github.com/hashicorp/go-multierror v1.0.0 19:58:33 go: finding github.com/hashicorp/go-rootcerts v1.0.0 19:58:33 go: finding github.com/hashicorp/go-sockaddr v1.0.1 19:58:33 go: finding github.com/hashicorp/go-syslog v1.0.0 19:58:33 go: finding github.com/hashicorp/go-uuid v1.0.1 19:58:33 go: finding github.com/hashicorp/go.net v0.0.1 19:58:33 go: finding github.com/hashicorp/golang-lru v0.5.1 19:58:33 go: finding github.com/hashicorp/logutils v1.0.0 19:58:33 go: finding github.com/hashicorp/mdns v1.0.0 19:58:33 go: finding github.com/hashicorp/memberlist v0.1.3 19:58:33 go: finding github.com/hashicorp/serf v0.8.2 19:58:33 go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 19:58:33 go: finding github.com/mattn/go-colorable v0.0.9 19:58:34 go: finding github.com/mattn/go-isatty v0.0.3 19:58:34 go: finding github.com/miekg/dns v1.1.4 19:58:34 go: finding github.com/mitchellh/cli v1.0.0 19:58:34 go: finding github.com/mitchellh/consulstructure v0.0.0-20190329231841-56fdc4d2da54 19:58:34 go: finding github.com/mitchellh/copystructure v1.0.0 19:58:34 go: finding github.com/mitchellh/go-homedir v1.1.0 19:58:34 go: finding github.com/mitchellh/go-testing-interface v1.0.0 19:58:34 go: finding github.com/mitchellh/go-wordwrap v1.0.0 19:58:34 go: finding github.com/mitchellh/gox v0.4.0 19:58:34 go: finding github.com/mitchellh/iochan v1.0.0 19:58:34 go: finding github.com/mitchellh/mapstructure v1.1.2 19:58:34 go: finding github.com/mitchellh/reflectwalk v1.0.0 19:58:34 go: finding github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c 19:58:34 go: finding github.com/pelletier/go-toml v1.2.0 19:58:34 go: finding github.com/pkg/errors v0.8.1 19:58:34 go: finding github.com/pmezard/go-difflib v1.0.0 19:58:34 go: finding github.com/posener/complete v1.1.1 19:58:34 go: finding github.com/ryanuber/columnize v2.1.0+incompatible 19:58:34 go: finding github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 19:58:34 go: finding github.com/stretchr/objx v0.1.0 19:58:34 go: finding github.com/stretchr/testify v1.5.1 19:58:34 go: finding github.com/ugorji/go v1.1.4 19:58:34 go: finding github.com/x448/float16 v0.8.4 19:58:34 go: finding golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3 19:58:34 go: finding golang.org/x/net v0.0.0-20190228165749-92fc7df08ae7 19:58:34 go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 19:58:34 go: finding golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5 19:58:34 go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 19:58:34 go: finding gopkg.in/yaml.v2 v2.2.8 19:58:39 CGO_ENABLED=0 GO111MODULE=on go build ./... 19:58:41 Removing intermediate container a8d0c4b2b0de 19:58:41 ---> 85b45a4cea58 19:58:41 Step 9/19 : FROM scratch 19:58:41 ---> 19:58:41 Step 10/19 : ENV APP_PORT=49991 19:58:41 ---> Running in 38ed1e72d783 19:58:41 Removing intermediate container 38ed1e72d783 19:58:41 ---> e6ecee60af59 19:58:41 Step 11/19 : EXPOSE $APP_PORT 19:58:41 ---> Running in 81c941b13b5d 19:58:41 Removing intermediate container 81c941b13b5d 19:58:41 ---> 993f5de562e2 19:58:41 Step 12/19 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/cmd / 19:58:42 ---> 7160d3a31a22 19:58:42 Step 13/19 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/LICENSE / 19:58:42 ---> a5857e0110af 19:58:42 Step 14/19 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/Attribution.txt / 19:58:42 ---> a732ff8aced5 19:58:42 Step 15/19 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2020: IoTech Ltd' 19:58:42 ---> Running in b191f0827e6d 19:58:42 Removing intermediate container b191f0827e6d 19:58:42 ---> 9439fb936365 19:58:42 Step 16/19 : ENTRYPOINT ["/device-modbus","--cp=consul://edgex-core-consul:8500","--registry","--confdir=/res"] 19:58:42 ---> Running in 8585c58756c7 19:58:42 Removing intermediate container 8585c58756c7 19:58:42 ---> eb5f82bf8881 19:58:42 Step 17/19 : LABEL arch=amd64 19:58:42 ---> Running in e7ba27aae9ef 19:58:42 Removing intermediate container e7ba27aae9ef 19:58:42 ---> 8b14b5634c70 19:58:42 Step 18/19 : LABEL git_sha=88922e524d3e723c95d0ec1103890aab7875bad0 19:58:42 ---> Running in 2d4ed249e604 19:58:43 Removing intermediate container 2d4ed249e604 19:58:43 ---> 8d4ba31f6b2d 19:58:43 Step 19/19 : LABEL version=0.0.0 19:58:43 ---> Running in 12c01147c386 19:58:43 Removing intermediate container 12c01147c386 19:58:43 ---> bb43b1095b61 19:58:43 [Warning] One or more build-args [ARCH] were not consumed 19:58:43 Successfully built bb43b1095b61 19:58:43 Successfully tagged docker-device-modbus-go: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] { (Snap) [Pipeline] findFiles [Pipeline] script [Pipeline] { [Pipeline] sh 19:58:44 ++ find /w/workspace/device-modbus-go/10 19:58:44 ++ grep snapcraft.yaml 19:58:44 + grep -Po '^name: \K(.*)' /w/workspace/device-modbus-go/10/snap/snapcraft.yaml /w/workspace/device-modbus-go/10/snapcraft.yaml [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 19:58:44 provisioning config files... 19:58:44 copy managed file [EdgeX] to file:/w/workspace/device-modbus-go/10@tmp/config1626089648968100799tmp [Pipeline] { 19:58:44 Removing intermediate container 24e368fc7b9d 19:58:44 ---> 6f8ed01e3a86 19:58:44 Successfully built 6f8ed01e3a86 19:58:44 Successfully tagged ci-base-image-arm64:latest [Pipeline] sh [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) 19:58:44 + cp /w/workspace/device-modbus-go/10@tmp/config1626089648968100799tmp /w/workspace/device-modbus-go/10/edgex-snap-store-login [Pipeline] sh [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 19:58:45 + docker run --rm -u 0:0 --privileged -v /w/workspace/device-modbus-go/10:/build -w /build -e JOB_TYPE -e SNAP_REVISION -e SNAP_CHANNEL -e SNAP_NAME nexus3.edgexfoundry.org:10003/edgex-devops/edgex-snap-builder:latest 19:58:45 Unable to find image 'nexus3.edgexfoundry.org:10003/edgex-devops/edgex-snap-builder:latest' locally 19:58:45 latest: Pulling from edgex-devops/edgex-snap-builder 19:58:45 5bed26d33875: Pulling fs layer 19:58:45 f11b29a9c730: Pulling fs layer 19:58:45 930bda195c84: Pulling fs layer 19:58:45 78bf9a5ad49e: Pulling fs layer 19:58:45 e5fbee5a4b0d: Pulling fs layer 19:58:45 f452fca78f88: Pulling fs layer 19:58:45 7417ef92027a: Pulling fs layer 19:58:45 2af5c49d270b: Pulling fs layer 19:58:45 e5fbee5a4b0d: Waiting 19:58:45 f452fca78f88: Waiting 19:58:45 78bf9a5ad49e: Waiting 19:58:45 7417ef92027a: Waiting 19:58:45 df9c3bdbc40a: Pulling fs layer 19:58:45 2af5c49d270b: Waiting 19:58:45 df9c3bdbc40a: Waiting 19:58:45 930bda195c84: Verifying Checksum 19:58:45 930bda195c84: Download complete 19:58:45 f11b29a9c730: Download complete 19:58:45 78bf9a5ad49e: Verifying Checksum 19:58:45 78bf9a5ad49e: Download complete 19:58:45 f452fca78f88: Verifying Checksum 19:58:45 f452fca78f88: Download complete 19:58:45 7417ef92027a: Verifying Checksum 19:58:45 7417ef92027a: Download complete 19:58:45 2af5c49d270b: Verifying Checksum 19:58:45 2af5c49d270b: Download complete 19:58:45 + docker inspect -f . ci-base-image-arm64 19:58:45 df9c3bdbc40a: Verifying Checksum 19:58:45 df9c3bdbc40a: Download complete 19:58:45 . [Pipeline] withDockerContainer 19:58:45 5bed26d33875: Verifying Checksum 19:58:45 5bed26d33875: Download complete 19:58:45 prd-ubuntu18.04-docker-arm64-4c-16g-5395 does not seem to be running inside a container 19:58:45 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/10 -v /w/workspace/device-modbus-go/10:/w/workspace/device-modbus-go/10:rw,z -v /w/workspace/device-modbus-go/10@tmp:/w/workspace/device-modbus-go/10@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 ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 19:58:47 $ docker top a90c47f653801ee63eafb03d7a92b5eab675a97d223f70abd0c21cb19c88bbed -eo pid,comm [Pipeline] { [Pipeline] sh 19:58:48 + go version 19:58:48 go version go1.13.5 linux/arm64 [Pipeline] sh 19:58:48 + make test 19:58:48 CGO_ENABLED=0 GO111MODULE=on go test ./... -coverprofile=coverage.out 19:58:49 e5fbee5a4b0d: Verifying Checksum 19:58:49 e5fbee5a4b0d: Download complete 19:58:49 ? github.com/edgexfoundry/device-modbus-go [no test files] 19:58:50 5bed26d33875: Pull complete 19:58:50 f11b29a9c730: Pull complete 19:58:50 930bda195c84: Pull complete 19:58:51 78bf9a5ad49e: Pull complete 19:59:16 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 19:59:17 e5fbee5a4b0d: Pull complete 19:59:17 f452fca78f88: Pull complete 19:59:17 7417ef92027a: Pull complete 19:59:17 2af5c49d270b: Pull complete 19:59:17 df9c3bdbc40a: Pull complete 19:59:17 Digest: sha256:329b7ca3c147263d7a6122d30aca7e6f18adc9017ce870f1638d2965d7494739 19:59:17 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-snap-builder:latest 19:59:17 Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] 19:59:17 Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease 19:59:17 Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] 19:59:17 Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] 19:59:17 Get:5 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [889 kB] 19:59:17 Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1185 kB] 19:59:17 Get:7 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [839 kB] 19:59:17 Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1372 kB] 19:59:17 Get:9 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [7674 B] 19:59:17 Get:10 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [8286 B] 19:59:17 Fetched 4553 kB in 2s (3004 kB/s) 19:59:18 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.202s coverage: 50.3% of statements 19:59:18 CGO_ENABLED=0 GO111MODULE=on go vet ./... 19:59:18 Reading package lists... 19:59:19 Found a 'snap/snapcraft.yaml' and a 'snapcraft.yaml'. 19:59:19 Please remove one and try again. [Pipeline] } 19:59:19 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } 19:59:20 Failed in branch amd64 19:59:25 gofmt -l . 19:59:25 [ "`gofmt -l .`" = "" ] 19:59:25 ./bin/test-attribution-txt.sh 19:59:25 ./bin/test-go-mod-tidy.sh [Pipeline] stash 19:59:25 Warning: overwriting stash ‘coverage-report’ 19:59:26 Stashed 1 file(s) [Pipeline] } 19:59:26 $ docker stop --time=1 a90c47f653801ee63eafb03d7a92b5eab675a97d223f70abd0c21cb19c88bbed 19:59:28 $ docker rm -f a90c47f653801ee63eafb03d7a92b5eab675a97d223f70abd0c21cb19c88bbed [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 19:59:29 + sudo chown -R jenkins:jenkins . [Pipeline] sh 19:59:29 + ls -al . 19:59:29 total 140 19:59:29 drwxrwxr-x 9 jenkins jenkins 4096 Apr 21 19:59 . 19:59:29 drwxrwxr-x 4 jenkins jenkins 4096 Apr 21 19:57 .. 19:59:29 -rw-rw-r-- 1 jenkins jenkins 140 Apr 21 19:57 .dockerignore 19:59:29 drwxrwxr-x 8 jenkins jenkins 4096 Apr 21 19:57 .git 19:59:29 -rw-rw-r-- 1 jenkins jenkins 338 Apr 21 19:57 .gitignore 19:59:29 drwxrwxr-x 3 jenkins jenkins 4096 Apr 21 19:57 .semver 19:59:29 -rw-rw-r-- 1 jenkins jenkins 5146 Apr 21 19:57 Attribution.txt 19:59:29 -rw-rw-r-- 1 jenkins jenkins 1422 Apr 21 19:57 Dockerfile 19:59:29 -rw-rw-r-- 1 jenkins jenkins 954 Apr 21 19:57 Dockerfile.build 19:59:29 -rw-rw-r-- 1 jenkins jenkins 702 Apr 21 19:57 Jenkinsfile 19:59:29 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 21 19:57 LICENSE 19:59:29 -rw-rw-r-- 1 jenkins jenkins 880 Apr 21 19:57 Makefile 19:59:29 -rw-rw-r-- 1 jenkins jenkins 591 Apr 21 19:57 README.md 19:59:29 -rw-rw-r-- 1 jenkins jenkins 5 Apr 21 19:55 VERSION 19:59:29 drwxrwxr-x 2 jenkins jenkins 4096 Apr 21 19:57 bin 19:59:29 drwxrwxr-x 3 jenkins jenkins 4096 Apr 21 19:57 cmd 19:59:29 -rw-r--r-- 1 jenkins jenkins 22123 Apr 21 19:59 coverage.out 19:59:29 -rw-r--r-- 1 jenkins jenkins 566 Apr 21 19:59 go.mod 19:59:29 -rw-r--r-- 1 jenkins jenkins 13382 Apr 21 19:59 go.sum 19:59:29 drwxrwxr-x 3 jenkins jenkins 4096 Apr 21 19:57 internal 19:59:29 drwxrwxr-x 2 jenkins jenkins 4096 Apr 21 19:57 simulator 19:59:29 drwxrwxr-x 4 jenkins jenkins 4096 Apr 21 19:57 snap 19:59:29 -rw-rw-r-- 1 jenkins jenkins 3226 Apr 21 19:57 snapcraft.yaml 19:59:29 -rw-rw-r-- 1 jenkins jenkins 229 Apr 21 19:57 version.go [Pipeline] isUnix [Pipeline] sh 19:59:30 + docker build -t docker-device-modbus-go-arm64 -f Dockerfile --build-arg BASE=ci-base-image-arm64 --build-arg MAKE=make build --build-arg ARCH=arm64 --label git_sha=88922e524d3e723c95d0ec1103890aab7875bad0 --label arch=arm64 --label version=0.0.0 . 19:59:30 Sending build context to Docker daemon 611.3kB 19:59:30 Step 1/19 : ARG BASE=golang:1.13-alpine 19:59:30 Step 2/19 : FROM ${BASE} AS builder 19:59:30 ---> 6f8ed01e3a86 19:59:30 Step 3/19 : ARG MAKE='make build' 19:59:30 ---> Running in 54ed5d7479ff 19:59:31 Removing intermediate container 54ed5d7479ff 19:59:31 ---> a07af332ae45 19:59:31 Step 4/19 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 19:59:31 ---> Running in a3baaf937aa1 19:59:33 Removing intermediate container a3baaf937aa1 19:59:33 ---> 15764e9bef31 19:59:33 Step 5/19 : RUN apk add --update --no-cache make git openssh build-base 19:59:33 ---> Running in efa6e719a0aa 19:59:34 fetch http://nl.alpinelinux.org/alpine/v3.11/main/aarch64/APKINDEX.tar.gz 19:59:34 fetch http://nl.alpinelinux.org/alpine/v3.11/community/aarch64/APKINDEX.tar.gz 19:59:35 OK: 203 MiB in 52 packages 19:59:36 Removing intermediate container efa6e719a0aa 19:59:36 ---> 8094d538e640 19:59:36 Step 6/19 : WORKDIR $GOPATH/src/github.com/edgexfoundry/device-modbus-go 19:59:36 ---> Running in 635daa95560a 19:59:36 Removing intermediate container 635daa95560a 19:59:36 ---> 0081b918987e 19:59:36 Step 7/19 : COPY . . 19:59:37 ---> 1616c36a9d1f 19:59:37 Step 8/19 : RUN ${MAKE} 19:59:37 ---> Running in 78574229a0f2 19:59:38 CGO_ENABLED=0 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -o cmd/device-modbus ./cmd 20:00:00 CGO_ENABLED=0 GO111MODULE=on go build ./... 20:00:08 Removing intermediate container 78574229a0f2 20:00:08 ---> db559540b558 20:00:08 Step 9/19 : FROM scratch 20:00:08 ---> 20:00:08 Step 10/19 : ENV APP_PORT=49991 20:00:08 ---> Running in 5e823fba5887 20:00:08 Removing intermediate container 5e823fba5887 20:00:08 ---> c6e4a1b402f1 20:00:08 Step 11/19 : EXPOSE $APP_PORT 20:00:08 ---> Running in b17d6340eb01 20:00:08 Removing intermediate container b17d6340eb01 20:00:08 ---> 44b7ca754014 20:00:08 Step 12/19 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/cmd / 20:00:09 ---> ff30141daf37 20:00:09 Step 13/19 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/LICENSE / 20:00:10 ---> 43306b59b107 20:00:10 Step 14/19 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/Attribution.txt / 20:00:10 ---> 1713708905ca 20:00:10 Step 15/19 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2020: IoTech Ltd' 20:00:10 ---> Running in e953b604ea96 20:00:10 Removing intermediate container e953b604ea96 20:00:10 ---> 158e6975115b 20:00:10 Step 16/19 : ENTRYPOINT ["/device-modbus","--cp=consul://edgex-core-consul:8500","--registry","--confdir=/res"] 20:00:11 ---> Running in 8d677063e731 20:00:11 Removing intermediate container 8d677063e731 20:00:11 ---> efafb723e6b9 20:00:11 Step 17/19 : LABEL arch=arm64 20:00:11 ---> Running in 25c0f3aebdf3 20:00:11 Removing intermediate container 25c0f3aebdf3 20:00:11 ---> 63eec69d5b27 20:00:11 Step 18/19 : LABEL git_sha=88922e524d3e723c95d0ec1103890aab7875bad0 20:00:11 ---> Running in ca3ab463b4db 20:00:12 Removing intermediate container ca3ab463b4db 20:00:12 ---> bef950535c2a 20:00:12 Step 19/19 : LABEL version=0.0.0 20:00:12 ---> Running in f58d98e501d5 20:00:12 Removing intermediate container f58d98e501d5 20:00:12 ---> e2274dfb9dfa 20:00:12 [Warning] One or more build-args [ARCH] were not consumed 20:00:12 Successfully built e2274dfb9dfa 20:00:12 Successfully tagged docker-device-modbus-go-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] { (Snap) [Pipeline] findFiles [Pipeline] script [Pipeline] { [Pipeline] sh 20:00:13 + find /w/workspace/device-modbus-go/10 20:00:13 + grep snapcraft.yaml 20:00:13 + grep -Po ^name: \K(.*) /w/workspace/device-modbus-go/10/snap/snapcraft.yaml /w/workspace/device-modbus-go/10/snapcraft.yaml [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:00:13 provisioning config files... 20:00:13 copy managed file [EdgeX] to file:/w/workspace/device-modbus-go/10@tmp/config5139763671472317458tmp [Pipeline] { [Pipeline] sh 20:00:14 + cp /w/workspace/device-modbus-go/10@tmp/config5139763671472317458tmp /w/workspace/device-modbus-go/10/edgex-snap-store-login [Pipeline] sh 20:00:14 + docker run --rm -u 0:0 --privileged -v /w/workspace/device-modbus-go/10:/build -w /build -e JOB_TYPE -e SNAP_REVISION -e SNAP_CHANNEL -e SNAP_NAME nexus3.edgexfoundry.org:10003/edgex-devops/edgex-snap-builder-arm64:latest 20:00:14 Unable to find image 'nexus3.edgexfoundry.org:10003/edgex-devops/edgex-snap-builder-arm64:latest' locally 20:00:14 latest: Pulling from edgex-devops/edgex-snap-builder-arm64 20:00:14 b2f61026a351: Pulling fs layer 20:00:14 5538fb30c42c: Pulling fs layer 20:00:14 f0b05810781a: Pulling fs layer 20:00:14 0180a33352d6: Pulling fs layer 20:00:14 e7604b0c0f53: Pulling fs layer 20:00:14 db689cb83ae0: Pulling fs layer 20:00:14 6138af208834: Pulling fs layer 20:00:14 007c8e8c5d63: Pulling fs layer 20:00:14 4f7a387c642f: Pulling fs layer 20:00:14 0180a33352d6: Waiting 20:00:14 e7604b0c0f53: Waiting 20:00:14 db689cb83ae0: Waiting 20:00:14 007c8e8c5d63: Waiting 20:00:14 6138af208834: Waiting 20:00:14 f0b05810781a: Download complete 20:00:14 5538fb30c42c: Verifying Checksum 20:00:14 5538fb30c42c: Download complete 20:00:14 0180a33352d6: Verifying Checksum 20:00:14 0180a33352d6: Download complete 20:00:14 db689cb83ae0: Verifying Checksum 20:00:14 db689cb83ae0: Download complete 20:00:14 6138af208834: Verifying Checksum 20:00:14 6138af208834: Download complete 20:00:14 007c8e8c5d63: Verifying Checksum 20:00:14 007c8e8c5d63: Download complete 20:00:14 4f7a387c642f: Verifying Checksum 20:00:14 4f7a387c642f: Download complete 20:00:16 b2f61026a351: Verifying Checksum 20:00:16 b2f61026a351: Download complete 20:00:20 b2f61026a351: Pull complete 20:00:20 5538fb30c42c: Pull complete 20:00:20 f0b05810781a: Pull complete 20:00:20 0180a33352d6: Pull complete 20:00:42 e7604b0c0f53: Download complete 20:01:14 e7604b0c0f53: Pull complete 20:01:14 db689cb83ae0: Pull complete 20:01:14 6138af208834: Pull complete 20:01:14 007c8e8c5d63: Pull complete 20:01:14 4f7a387c642f: Pull complete 20:01:14 Digest: sha256:95de001a4645667c7ff44d03fa3a86afcf7622caf7559cdf0345329f515671b4 20:01:14 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-snap-builder-arm64:latest 20:01:16 Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease 20:01:17 Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB] 20:01:17 Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [74.6 kB] 20:01:17 Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB] 20:01:17 Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 Packages [1222 kB] 20:01:18 Get:6 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 Packages [846 kB] 20:01:18 Get:7 http://ports.ubuntu.com/ubuntu-ports bionic-backports/main arm64 Packages [8260 B] 20:01:18 Get:8 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe arm64 Packages [7336 B] 20:01:18 Get:9 http://ports.ubuntu.com/ubuntu-ports bionic-security/main arm64 Packages [572 kB] 20:01:18 Get:10 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe arm64 Packages [743 kB] 20:01:19 Fetched 3650 kB in 3s (1433 kB/s) 20:01:23 Reading package lists... 20:01:26 Found a 'snap/snapcraft.yaml' and a 'snapcraft.yaml'. 20:01:26 Please remove one and try again. [Pipeline] } 20:01:27 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } 20:01:28 Failed in branch arm64 [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) Stage "CodeCov" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Scan) Stage "Snyk Scan" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Clair Scan) Stage "Clair Scan" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to earlier failure(s) [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] libraryResource [Pipeline] sh 20:01:29 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:01:29 ---> package-listing.sh 20:01:29 ++ facter osfamily 20:01:29 ++ tr '[:upper:]' '[:lower:]' 20:01:29 + OS_FAMILY=redhat 20:01:29 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-139 20:01:29 + START_PACKAGES=/tmp/packages_start.txt 20:01:29 + END_PACKAGES=/tmp/packages_end.txt 20:01:29 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:01:29 + PACKAGES=/tmp/packages_start.txt 20:01:29 + '[' /w/workspace/xfoundry_device-modbus-go_PR-139 ']' 20:01:29 + PACKAGES=/tmp/packages_end.txt 20:01:29 + case "${OS_FAMILY}" in 20:01:29 + rpm -qa 20:01:29 + sort 20:01:33 + '[' -f /tmp/packages_start.txt ']' 20:01:33 + '[' -f /tmp/packages_end.txt ']' 20:01:33 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:01:33 + '[' /w/workspace/xfoundry_device-modbus-go_PR-139 ']' 20:01:33 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-139/archives/ 20:01:33 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-139/archives/ [Pipeline] isUnix [Pipeline] sh 20:01:34 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 20:01:34 20:01:34 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] isUnix [Pipeline] sh 20:01:34 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 20:01:34 alpine: Pulling from edgex-lftools-log-publisher 20:01:34 c9b1b535fdd9: Pulling fs layer 20:01:34 2cc5ad85d9ab: Pulling fs layer 20:01:34 756a868c4378: Pulling fs layer 20:01:34 444b2fc9a129: Pulling fs layer 20:01:34 ea15f1150254: Pulling fs layer 20:01:34 41b27a9f41bf: Pulling fs layer 20:01:34 28c525ee5125: Pulling fs layer 20:01:34 094b1ea09ed8: Pulling fs layer 20:01:34 138eaada9080: Pulling fs layer 20:01:34 0622d0fa9048: Pulling fs layer 20:01:34 444b2fc9a129: Waiting 20:01:34 ea15f1150254: Waiting 20:01:34 41b27a9f41bf: Waiting 20:01:34 28c525ee5125: Waiting 20:01:34 094b1ea09ed8: Waiting 20:01:34 138eaada9080: Waiting 20:01:34 0622d0fa9048: Waiting 20:01:34 2cc5ad85d9ab: Verifying Checksum 20:01:34 2cc5ad85d9ab: Download complete 20:01:34 444b2fc9a129: Verifying Checksum 20:01:34 444b2fc9a129: Download complete 20:01:34 c9b1b535fdd9: Verifying Checksum 20:01:34 c9b1b535fdd9: Download complete 20:01:34 ea15f1150254: Verifying Checksum 20:01:34 ea15f1150254: Download complete 20:01:34 28c525ee5125: Verifying Checksum 20:01:34 28c525ee5125: Download complete 20:01:35 c9b1b535fdd9: Pull complete 20:01:35 756a868c4378: Verifying Checksum 20:01:35 756a868c4378: Download complete 20:01:35 094b1ea09ed8: Verifying Checksum 20:01:35 094b1ea09ed8: Download complete 20:01:35 0622d0fa9048: Verifying Checksum 20:01:35 0622d0fa9048: Download complete 20:01:35 138eaada9080: Verifying Checksum 20:01:35 138eaada9080: Download complete 20:01:35 2cc5ad85d9ab: Pull complete 20:01:35 41b27a9f41bf: Verifying Checksum 20:01:35 41b27a9f41bf: Download complete 20:01:36 756a868c4378: Pull complete 20:01:36 444b2fc9a129: Pull complete 20:01:37 ea15f1150254: Pull complete 20:01:40 41b27a9f41bf: Pull complete 20:01:40 28c525ee5125: Pull complete 20:01:42 094b1ea09ed8: Pull complete 20:01:42 138eaada9080: Pull complete 20:01:42 0622d0fa9048: Pull complete 20:01:42 Digest: sha256:54a23bc06fc820608cb72d4fa7cadb8dbe2280fb013cbe6a9fa5bc42756446e1 20:01:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] withDockerContainer 20:01:42 prd-centos7-docker-4c-2g-5394 does not seem to be running inside a container 20:01:42 $ 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-139 -v /w/workspace/xfoundry_device-modbus-go_PR-139:/w/workspace/xfoundry_device-modbus-go_PR-139:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-139@tmp:/w/workspace/xfoundry_device-modbus-go_PR-139@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 ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine cat 20:01:43 $ docker top fe477273bb60bea703da264e9c0cceafe05bafabb1b43c05ab1118014ea2d10a -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:01:43 provisioning config files... 20:01:43 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-139@tmp/config907918861207181622tmp [Pipeline] { [Pipeline] echo 20:01:43 Running global-jjb/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:01:44 ---> create-netrc.sh [Pipeline] echo 20:01:44 Running global-jjb/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:01:44 ---> logs-deploy.sh 20:01:44 + ARCHIVE_ARTIFACTS= 20:01:44 + LOGS_SERVER=https://logs.edgexfoundry.org 20:01:44 + '[' https://logs.edgexfoundry.org == None ']' 20:01:44 + NEXUS_URL=https://nexus.edgexfoundry.org 20:01:44 + NEXUS_PATH=production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-139/10 20:01:44 + BUILD_URL=https://jenkins.edgexfoundry.org/job/edgexfoundry/job/device-modbus-go/job/PR-139/10/ 20:01:44 + lftools deploy archives -p '' https://nexus.edgexfoundry.org production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-139/10 /w/workspace/xfoundry_device-modbus-go_PR-139 20:01:45 Archives upload complete. 20:01:45 + lftools deploy logs https://nexus.edgexfoundry.org production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-139/10 https://jenkins.edgexfoundry.org/job/edgexfoundry/job/device-modbus-go/job/PR-139/10/