Pull request #213 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 45443412991add32ba944d961954dcaa2e827a52+15ac84f23aa11eeb9442daa2d5db1053a10c3bad (4701f23fb940679ecc2498da0c05198bde648ab5) 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 50a9f8eef5e5735e1ae4d12f0d7d5100f67887fd 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 50a9f8eef5e5735e1ae4d12f0d7d5100f67887fd 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-213/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 50a9f8eef5e5735e1ae4d12f0d7d5100f67887fd (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 50a9f8eef5e5735e1ae4d12f0d7d5100f67887fd # timeout=10 Commit message: "Merge pull request #306 from ernestojeda/disable-snyk-scan" > 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. Loading library lf-pipelines@master Attempting to resolve master 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 -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b86a95d4aff1c43a521ca3be618780efd0ee2800 using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-213/workspace@libs/lf-pipelines # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-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 --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision b86a95d4aff1c43a521ca3be618780efd0ee2800 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b86a95d4aff1c43a521ca3be618780efd0ee2800 # timeout=10 Commit message: "Update global-jjb to latest" > 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' fatal: bad object 50a9f8eef5e5735e1ae4d12f0d7d5100f67887fd Excluding src/test/ from checkout of git git@github.com:lfit/releng-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 ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-modbus-go, 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.15 GOPROXY: https://nexus3.edgexfoundry.org/repository/go-proxy/ DOCKER_BASE_IMAGE: nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.15-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 BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: true PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true SECURITY_NOTIFY_LIST: security-issues@lists.edgexfoundry.org SNYK_DOCKER_SCAN: false [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘centos7-docker-4c-2g’ Running on prd-centos7-docker-4c-2g-19449 in /w/workspace/xfoundry_device-modbus-go_PR-213 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-modbus-go.git > git init /w/workspace/xfoundry_device-modbus-go_PR-213 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.24.3' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/master commit 15ac84f23aa11eeb9442daa2d5db1053a10c3bad into PR head commit 45443412991add32ba944d961954dcaa2e827a52 Merge succeeded, producing 45443412991add32ba944d961954dcaa2e827a52 Checking out Revision 45443412991add32ba944d961954dcaa2e827a52 (PR-213) > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # 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 --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/213/head:refs/remotes/origin/PR-213 +refs/heads/master:refs/remotes/origin/master # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 45443412991add32ba944d961954dcaa2e827a52 # 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 15ac84f23aa11eeb9442daa2d5db1053a10c3bad # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 45443412991add32ba944d961954dcaa2e827a52 # timeout=10 Commit message: "refactor: Upgrade sdk version to 1.4.0" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.24.3' fatal: bad object 50a9f8eef5e5735e1ae4d12f0d7d5100f67887fd [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 07:19:15 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 07:19:16 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 07:19:16 ========================================================= 07:19:16 EdgeX Global Pipelines Version Info 07:19:16 ========================================================= [Pipeline] libraryResource [Pipeline] sh 07:19:18 ------------------- 07:19:18 stable info: 07:19:18 ------------------- 07:19:18 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 07:19:18 Commit SHA: 50a9f8eef5e5735e1ae4d12f0d7d5100f67887fd 07:19:18 Message: update stable to v1.0.173 07:19:19 ------------------- 07:19:19 experimental info: 07:19:19 ------------------- 07:19:19 Commited By: **** collab-it+edgex@linuxfoundation.org 07:19:19 Commit SHA: 50a9f8eef5e5735e1ae4d12f0d7d5100f67887fd 07:19:19 Message: update experimental to v1.0.173 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 07:19:19 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 07:19:19 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 07:19:19 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 07:19:19 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 07:19:20 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 07:19:20 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.15 [Pipeline] echo 07:19:20 [edgeXSetupEnvironment]: set envvar GOPROXY = https://nexus3.edgexfoundry.org/repository/go-proxy/ [Pipeline] echo 07:19:20 [edgeXSetupEnvironment]: set envvar DOCKER_BASE_IMAGE = nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.15-alpine [Pipeline] echo 07:19:20 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 07:19:20 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 07:19:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 07:19:21 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = docker-device-modbus-go [Pipeline] echo 07:19:21 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 07:19:21 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 07:19:21 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 07:19:21 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 07:19:21 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 07:19:22 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 07:19:22 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 07:19:22 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = true [Pipeline] echo 07:19:22 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 07:19:22 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 07:19:22 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 07:19:22 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 07:19:22 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 07:19:23 [edgeXSetupEnvironment]: set envvar SECURITY_NOTIFY_LIST = security-issues@lists.edgexfoundry.org [Pipeline] echo 07:19:23 [edgeXSetupEnvironment]: set envvar SNYK_DOCKER_SCAN = false [Pipeline] echo 07:19:23 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-213 [Pipeline] echo 07:19:23 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-213 [Pipeline] echo 07:19:23 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-213 [Pipeline] echo 07:19:23 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 45443412991add32ba944d961954dcaa2e827a52 [Pipeline] echo 07:19:23 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 4544341 [Pipeline] echo 07:19:23 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] wrap 07:19:24 provisioning config files... 07:19:24 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-213@tmp/config1390308020555650963tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:19:24 ---> docker-login.sh 07:19:24 nexus3.edgexfoundry.org:10001 07:19:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:19:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:19:25 Configure a credential helper to remove this warning. See 07:19:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:19:25 07:19:25 Login Succeeded 07:19:25 nexus3.edgexfoundry.org:10002 07:19:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:19:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:19:25 Configure a credential helper to remove this warning. See 07:19:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:19:25 07:19:25 Login Succeeded 07:19:25 nexus3.edgexfoundry.org:10003 07:19:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:19:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:19:25 Configure a credential helper to remove this warning. See 07:19:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:19:25 07:19:25 Login Succeeded 07:19:25 nexus3.edgexfoundry.org:10004 07:19:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:19:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:19:25 Configure a credential helper to remove this warning. See 07:19:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:19:25 07:19:25 Login Succeeded 07:19:25 docker.io 07:19:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:19:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:19:26 Configure a credential helper to remove this warning. See 07:19:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:19:26 07:19:26 Login Succeeded 07:19:26 ---> docker-login.sh ends [Pipeline] } 07:19:26 Deleting 1 temporary files [Pipeline] // wrap [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 07:19:27 + git log --format=format:%s -1 45443412991add32ba944d961954dcaa2e827a52 [Pipeline] echo 07:19:27 GIT_COMMIT: 45443412991add32ba944d961954dcaa2e827a52, Commit Message: refactor: Upgrade sdk version to 1.4.0 [Pipeline] echo 07:19:27 This is not a build commit. [Pipeline] isUnix [Pipeline] sh 07:19:28 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 07:19:28 07:19:28 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 07:19:29 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 07:19:29 latest: Pulling from edgex-devops/git-semver 07:19:29 31603596830f: Pulling fs layer 07:19:29 2a8b12db71e7: Pulling fs layer 07:19:29 6ca5941a6612: Pulling fs layer 07:19:29 ecc8261a40a4: Pulling fs layer 07:19:29 ecc8261a40a4: Waiting 07:19:29 2a8b12db71e7: Verifying Checksum 07:19:29 2a8b12db71e7: Download complete 07:19:29 31603596830f: Download complete 07:19:29 ecc8261a40a4: Verifying Checksum 07:19:29 ecc8261a40a4: Download complete 07:19:29 6ca5941a6612: Verifying Checksum 07:19:29 6ca5941a6612: Download complete 07:19:29 31603596830f: Pull complete 07:19:29 2a8b12db71e7: Pull complete 07:19:30 6ca5941a6612: Pull complete 07:19:30 ecc8261a40a4: Pull complete 07:19:30 Digest: sha256:c336c3cb7d26c4f33e4bbf869d415e221d43967d83d6a5809e4cb0cc2a1e8fe7 07:19:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 07:19:30 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 07:19:30 prd-centos7-docker-4c-2g-19449 does not seem to be running inside a container 07:19:30 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-213 -v /w/workspace/xfoundry_device-modbus-go_PR-213:/w/workspace/xfoundry_device-modbus-go_PR-213:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-213@tmp:/w/workspace/xfoundry_device-modbus-go_PR-213@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 ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 07:19:32 $ docker top 2d0ac860f969eaaa102251e9a8f40ae599a8b89487cc6e17875ff50de7b36e41 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 07:19:33 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 07:19:33 [ssh-agent] Looking for ssh-agent implementation... 07:19:33 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 07:19:33 $ docker exec 2d0ac860f969eaaa102251e9a8f40ae599a8b89487cc6e17875ff50de7b36e41 ssh-agent 07:19:33 SSH_AUTH_SOCK=/tmp/ssh-T4Bmwc88LdRP/agent.11 07:19:33 SSH_AGENT_PID=17 07:19:33 Running ssh-add (command line suppressed) 07:19:34 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-213@tmp/private_key_1635906289964184011.key (/w/workspace/xfoundry_device-modbus-go_PR-213@tmp/private_key_1635906289964184011.key) 07:19:34 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 07:19:34 + git tag --points-at HEAD [Pipeline] } 07:19:34 $ docker exec --env ******** --env ******** 2d0ac860f969eaaa102251e9a8f40ae599a8b89487cc6e17875ff50de7b36e41 ssh-agent -k 07:19:34 unset SSH_AUTH_SOCK; 07:19:34 unset SSH_AGENT_PID; 07:19:34 echo Agent pid 17 killed; 07:19:34 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 07:19:34 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 07:19:34 [ssh-agent] Looking for ssh-agent implementation... 07:19:35 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 07:19:35 $ docker exec 2d0ac860f969eaaa102251e9a8f40ae599a8b89487cc6e17875ff50de7b36e41 ssh-agent 07:19:35 SSH_AUTH_SOCK=/tmp/ssh-Fvt945Yvhmbh/agent.46 07:19:35 SSH_AGENT_PID=52 07:19:35 Running ssh-add (command line suppressed) 07:19:35 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-213@tmp/private_key_6043451336693901310.key (/w/workspace/xfoundry_device-modbus-go_PR-213@tmp/private_key_6043451336693901310.key) 07:19:35 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 07:19:35 + git semver init 07:19:35 # -> Open(): unable to determine branch for HEAD 07:19:35 # $GIT_DIR = /w/workspace/xfoundry_device-modbus-go_PR-213/.git 07:19:35 # $GIT_WORK_TREE = /w/workspace/xfoundry_device-modbus-go_PR-213 07:19:35 # $SEMVER_REMOTE_NAME = origin 07:19:35 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 07:19:35 # $SEMVER_USER_NAME = edgex-jenkins 07:19:35 # $SEMVER_BRANCH = PR-213 07:19:35 # $SEMVER_TEMP = /tmp/semver-994637513 07:19:35 # git clone --branch semver git@github.com:edgexfoundry/device-modbus-go.git $SEMVER_TEMP 07:19:36 # '/tmp/semver-994637513' -> '/w/workspace/xfoundry_device-modbus-go_PR-213/.semver' 07:19:36 # -> Force: false 07:19:36 # $SEMVER_DIR = /w/workspace/xfoundry_device-modbus-go_PR-213/.semver [Pipeline] } 07:19:36 $ docker exec --env ******** --env ******** 2d0ac860f969eaaa102251e9a8f40ae599a8b89487cc6e17875ff50de7b36e41 ssh-agent -k 07:19:36 unset SSH_AUTH_SOCK; 07:19:36 unset SSH_AGENT_PID; 07:19:36 echo Agent pid 52 killed; 07:19:36 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 07:19:37 + git semver [Pipeline] } 07:19:37 $ docker stop --time=1 2d0ac860f969eaaa102251e9a8f40ae599a8b89487cc6e17875ff50de7b36e41 07:19:38 $ docker rm -f 2d0ac860f969eaaa102251e9a8f40ae599a8b89487cc6e17875ff50de7b36e41 [Pipeline] // withDockerContainer [Pipeline] sh 07:19:39 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 07:19:39 Stashed 1 file(s) [Pipeline] echo 07:19:39 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [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 07:19:55 Still waiting to schedule task 07:19:55 Waiting for next available executor on ‘centos7-docker-4c-2g’ 07:19:55 Still waiting to schedule task 07:19:55 Waiting for next available executor on ‘ubuntu18.04-docker-arm64-4c-16g’ 07:21:43 Running on prd-centos7-docker-4c-2g-19450 in /w/workspace/xfoundry_device-modbus-go_PR-213 [Pipeline] { [Pipeline] ws 07:21:43 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 07:21:46 using credential edgex-jenkins-ssh 07:21:46 Cloning the remote Git repository 07:21:45 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 07:21:45 > git init /w/workspace/device-modbus-go/1 # timeout=10 07:21:46 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 07:21:46 > git --version # timeout=10 07:21:46 > git --version # 'git version 2.24.3' 07:21:46 using GIT_SSH to set credentials SSH Credentials for GitHub 07:21:46 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 07:21:46 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 07:21:46 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 07:21:46 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 07:21:46 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 07:21:46 using GIT_SSH to set credentials SSH Credentials for GitHub 07:21:46 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/213/head:refs/remotes/origin/PR-213 +refs/heads/master:refs/remotes/origin/master # timeout=10 07:21:47 Merging remotes/origin/master commit 15ac84f23aa11eeb9442daa2d5db1053a10c3bad into PR head commit 45443412991add32ba944d961954dcaa2e827a52 07:21:47 Merge succeeded, producing 45443412991add32ba944d961954dcaa2e827a52 07:21:47 Checking out Revision 45443412991add32ba944d961954dcaa2e827a52 (PR-213) 07:21:47 > git config core.sparsecheckout # timeout=10 07:21:47 > git checkout -f 45443412991add32ba944d961954dcaa2e827a52 # timeout=10 07:21:47 > git remote # timeout=10 07:21:47 > git config --get remote.origin.url # timeout=10 07:21:47 using GIT_SSH to set credentials SSH Credentials for GitHub 07:21:47 > git merge 15ac84f23aa11eeb9442daa2d5db1053a10c3bad # timeout=10 07:21:47 > git rev-parse HEAD^{commit} # timeout=10 07:21:47 > git config core.sparsecheckout # timeout=10 07:21:47 > git checkout -f 45443412991add32ba944d961954dcaa2e827a52 # timeout=10 07:21:51 Commit message: "refactor: Upgrade sdk version to 1.4.0" 07:21:51 > git --version # timeout=10 07:21:51 > git --version # 'git version 2.24.3' 07:21:51 fatal: bad object 50a9f8eef5e5735e1ae4d12f0d7d5100f67887fd [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 07:21:52 + sudo jq '. + {"registry-mirrors": ["https://nexus3.edgexfoundry.org:10001"], debug: false}' /etc/docker/daemon.json [Pipeline] sh 07:21:53 + sudo mv /tmp/daemon.json /etc/docker/daemon.json [Pipeline] sh 07:21:53 + sudo service docker restart 07:21:53 + true 07:21:53 Redirecting to /bin/systemctl restart docker.service [Pipeline] withEnv [Pipeline] { [Pipeline] wrap 07:21:54 provisioning config files... 07:21:54 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config5018411210274338645tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:21:55 ---> docker-login.sh 07:21:55 nexus3.edgexfoundry.org:10001 07:21:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:21:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:21:55 Configure a credential helper to remove this warning. See 07:21:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:21:55 07:21:55 Login Succeeded 07:21:55 nexus3.edgexfoundry.org:10002 07:21:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:21:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:21:55 Configure a credential helper to remove this warning. See 07:21:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:21:55 07:21:55 Login Succeeded 07:21:55 nexus3.edgexfoundry.org:10003 07:21:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:21:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:21:55 Configure a credential helper to remove this warning. See 07:21:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:21:55 07:21:55 Login Succeeded 07:21:55 nexus3.edgexfoundry.org:10004 07:21:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:21:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:21:56 Configure a credential helper to remove this warning. See 07:21:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:21:56 07:21:56 Login Succeeded 07:21:56 docker.io 07:21:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:21:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:21:56 Configure a credential helper to remove this warning. See 07:21:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:21:56 07:21:56 Login Succeeded 07:21:56 ---> docker-login.sh ends [Pipeline] } 07:21:56 Deleting 1 temporary files [Pipeline] // wrap [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 07:21:57 ========================================================= 07:21:57 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.15-alpine] 07:21:57 ========================================================= [Pipeline] isUnix [Pipeline] sh 07:21:57 + docker build -t ci-base-image-x86_64 -f Dockerfile.build --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.15-alpine . 07:21:57 Sending build context to Docker daemon 551.9kB 07:21:57 Step 1/8 : ARG BASE=golang:1.15-alpine3.12 07:21:57 Step 2/8 : FROM ${BASE} 07:21:57 1.15-alpine: Pulling from edgex-devops/edgex-golang-base 07:21:57 188c0c94c7c5: Pulling fs layer 07:21:57 0ef7d3d256c8: Pulling fs layer 07:21:57 de9db76c5a1d: Pulling fs layer 07:21:57 bca2f99d35d6: Pulling fs layer 07:21:57 93359f2a8cfa: Pulling fs layer 07:21:57 7c6f9722023f: Pulling fs layer 07:21:57 a35cf1a2eb13: Pulling fs layer 07:21:57 bca2f99d35d6: Waiting 07:21:57 93359f2a8cfa: Waiting 07:21:57 7c6f9722023f: Waiting 07:21:57 a35cf1a2eb13: Waiting 07:21:57 de9db76c5a1d: Download complete 07:21:57 0ef7d3d256c8: Download complete 07:21:57 93359f2a8cfa: Download complete 07:21:57 7c6f9722023f: Verifying Checksum 07:21:57 7c6f9722023f: Download complete 07:21:57 188c0c94c7c5: Verifying Checksum 07:21:57 188c0c94c7c5: Download complete 07:21:58 188c0c94c7c5: Pull complete 07:21:58 0ef7d3d256c8: Pull complete 07:21:58 de9db76c5a1d: Pull complete 07:22:00 a35cf1a2eb13: Verifying Checksum 07:22:00 a35cf1a2eb13: Download complete 07:22:00 bca2f99d35d6: Verifying Checksum 07:22:00 bca2f99d35d6: Download complete 07:22:06 bca2f99d35d6: Pull complete 07:22:06 93359f2a8cfa: Pull complete 07:22:06 7c6f9722023f: Pull complete 07:22:10 a35cf1a2eb13: Pull complete 07:22:10 Digest: sha256:47e1832254f01ad1d18e03a79677f1a8325b9c763402aad95be204d7d7715f46 07:22:10 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.15-alpine 07:22:10 ---> a62c8e92a672 07:22:10 Step 3/8 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: IOTech' 07:22:10 ---> Running in ce2537f0193e 07:22:10 Removing intermediate container ce2537f0193e 07:22:10 ---> f4eba3c42759 07:22:10 Step 4/8 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 07:22:10 ---> Running in 5b45e4087c60 07:22:11 Removing intermediate container 5b45e4087c60 07:22:11 ---> c8e60a185785 07:22:11 Step 5/8 : RUN apk add --update --no-cache make git openssh build-base 07:22:11 ---> Running in e96e24cdbd80 07:22:12 fetch http://nl.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz 07:22:13 fetch http://nl.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz 07:22:13 (1/14) Installing libmagic (5.38-r0) 07:22:13 (2/14) Installing file (5.38-r0) 07:22:13 (3/14) Installing libc-dev (0.7.2-r3) 07:22:13 (4/14) Installing g++ (9.3.0-r2) 07:22:32 (5/14) Installing fortify-headers (1.1-r0) 07:22:32 (6/14) Installing patch (2.7.6-r6) 07:22:32 (7/14) Installing build-base (0.5-r2) 07:22:32 (8/14) Installing openssh-keygen (8.3_p1-r1) 07:22:32 (9/14) Installing libedit (20191231.3.1-r0) 07:22:32 (10/14) Installing openssh-client (8.3_p1-r1) 07:22:32 (11/14) Installing openssh-sftp-server (8.3_p1-r1) 07:22:32 (12/14) Installing openssh-server-common (8.3_p1-r1) 07:22:32 (13/14) Installing openssh-server (8.3_p1-r1) 07:22:32 (14/14) Installing openssh (8.3_p1-r1) 07:22:32 Executing busybox-1.31.1-r19.trigger 07:22:32 OK: 237 MiB in 53 packages 07:22:34 Removing intermediate container e96e24cdbd80 07:22:34 ---> ac2142bc156f 07:22:34 Step 6/8 : WORKDIR /device-modbus-go 07:22:34 ---> Running in 2692b378583a 07:22:34 Removing intermediate container 2692b378583a 07:22:34 ---> 22b13daa5df0 07:22:34 Step 7/8 : COPY . . 07:22:35 ---> 6dd66ccdf6ad 07:22:35 Step 8/8 : RUN go mod download 07:22:35 ---> Running in cdb72e0ffdaf 07:22:54 Removing intermediate container cdb72e0ffdaf 07:22:54 ---> abf26b427b30 07:22:54 Successfully built abf26b427b30 07:22:54 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 07:22:54 + docker inspect -f . ci-base-image-x86_64 07:22:54 . [Pipeline] withDockerContainer 07:22:54 prd-centos7-docker-4c-2g-19450 does not seem to be running inside a container 07:22:55 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@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 ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 07:22:55 $ docker top c457c45f92db63966ca2c46f76a4941bc47210739c402e244828031df51e157a -eo pid,comm [Pipeline] { [Pipeline] sh 07:22:56 + go version 07:22:56 go version go1.15.5 linux/amd64 [Pipeline] } 07:22:56 $ docker stop --time=1 c457c45f92db63966ca2c46f76a4941bc47210739c402e244828031df51e157a 07:22:57 $ docker rm -f c457c45f92db63966ca2c46f76a4941bc47210739c402e244828031df51e157a [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 07:22:58 + docker inspect -f . ci-base-image-x86_64 07:22:58 . [Pipeline] withDockerContainer 07:22:58 prd-centos7-docker-4c-2g-19450 does not seem to be running inside a container 07:22:59 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@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 ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 07:22:59 $ docker top df07301a51b8d0f7e8d85b50de1ff5fa8ea7003136dbc254f1e2a2c44811c1c1 -eo pid,comm [Pipeline] { [Pipeline] sh 07:23:00 + make test 07:23:00 CGO_ENABLED=0 GO111MODULE=on go test ./... -coverprofile=coverage.out 07:23:01 ? github.com/edgexfoundry/device-modbus-go [no test files] 07:23:13 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 07:23:13 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.266s coverage: 50.3% of statements 07:23:13 CGO_ENABLED=0 GO111MODULE=on go vet ./... 07:23:14 gofmt -l . 07:23:14 [ "`gofmt -l .`" = "" ] 07:23:15 ./bin/test-attribution-txt.sh 07:23:15 ./bin/test-go-mod-tidy.sh [Pipeline] } 07:23:16 $ docker stop --time=1 df07301a51b8d0f7e8d85b50de1ff5fa8ea7003136dbc254f1e2a2c44811c1c1 07:23:18 $ docker rm -f df07301a51b8d0f7e8d85b50de1ff5fa8ea7003136dbc254f1e2a2c44811c1c1 [Pipeline] // withDockerContainer [Pipeline] sh 07:23:19 + sudo chown -R jenkins:jenkins . [Pipeline] stash 07:23:19 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 07:23:22 + sudo chown -R jenkins:jenkins . [Pipeline] sh 07:23:22 + ls -al . 07:23:22 total 104 07:23:22 drwxrwxr-x. 9 jenkins jenkins 4096 Jan 11 07:23 . 07:23:22 drwxrwxr-x. 4 jenkins jenkins 28 Jan 11 07:21 .. 07:23:22 -rw-rw-r--. 1 jenkins jenkins 5589 Jan 11 07:21 Attribution.txt 07:23:22 drwxrwxr-x. 2 jenkins jenkins 87 Jan 11 07:21 bin 07:23:22 drwxrwxr-x. 3 jenkins jenkins 32 Jan 11 07:21 cmd 07:23:22 -rw-r--r--. 1 jenkins jenkins 22362 Jan 11 07:23 coverage.out 07:23:22 -rw-rw-r--. 1 jenkins jenkins 1434 Jan 11 07:21 Dockerfile 07:23:22 -rw-rw-r--. 1 jenkins jenkins 958 Jan 11 07:21 Dockerfile.build 07:23:22 -rw-rw-r--. 1 jenkins jenkins 140 Jan 11 07:21 .dockerignore 07:23:22 drwxrwxr-x. 8 jenkins jenkins 179 Jan 11 07:21 .git 07:23:22 drwxrwxr-x. 2 jenkins jenkins 60 Jan 11 07:21 .github 07:23:22 -rw-rw-r--. 1 jenkins jenkins 338 Jan 11 07:21 .gitignore 07:23:22 -rw-r--r--. 1 jenkins jenkins 517 Jan 11 07:23 go.mod 07:23:22 -rw-r--r--. 1 jenkins jenkins 14838 Jan 11 07:23 go.sum 07:23:22 drwxrwxr-x. 3 jenkins jenkins 20 Jan 11 07:21 internal 07:23:22 -rw-rw-r--. 1 jenkins jenkins 679 Jan 11 07:21 Jenkinsfile 07:23:22 -rw-rw-r--. 1 jenkins jenkins 11340 Jan 11 07:21 LICENSE 07:23:22 -rw-rw-r--. 1 jenkins jenkins 880 Jan 11 07:21 Makefile 07:23:22 -rw-rw-r--. 1 jenkins jenkins 591 Jan 11 07:21 README.md 07:23:22 drwxrwxr-x. 2 jenkins jenkins 52 Jan 11 07:21 simulator 07:23:22 drwxrwxr-x. 4 jenkins jenkins 71 Jan 11 07:21 snap 07:23:22 -rw-rw-r--. 1 jenkins jenkins 5 Jan 11 07:19 VERSION 07:23:22 -rw-rw-r--. 1 jenkins jenkins 229 Jan 11 07:21 version.go [Pipeline] isUnix [Pipeline] sh 07:23:22 + 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=45443412991add32ba944d961954dcaa2e827a52 --label arch=amd64 --label version=0.0.0 . 07:23:22 Sending build context to Docker daemon 583.2kB 07:23:23 Step 1/20 : ARG BASE=golang:1.15-alpine3.12 07:23:23 Step 2/20 : FROM ${BASE} AS builder 07:23:23 ---> abf26b427b30 07:23:23 Step 3/20 : ARG MAKE='make build' 07:23:23 ---> Running in 11f0a0ad1739 07:23:23 Removing intermediate container 11f0a0ad1739 07:23:23 ---> c7bf28bd4f11 07:23:23 Step 4/20 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 07:23:23 ---> Running in 585a0f8f185e 07:23:24 Removing intermediate container 585a0f8f185e 07:23:24 ---> 04498239dfa6 07:23:24 Step 5/20 : RUN apk add --update --no-cache make git openssh build-base 07:23:24 ---> Running in f8bb0872622f 07:23:24 Running on prd-ubuntu18.04-docker-arm64-4c-16g-19452 in /w/workspace/xfoundry_device-modbus-go_PR-213 [Pipeline] { [Pipeline] ws 07:23:24 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 07:23:25 fetch http://nl.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz 07:23:25 fetch http://nl.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz 07:23:26 OK: 237 MiB in 53 packages 07:23:27 Removing intermediate container f8bb0872622f 07:23:27 ---> 7d36098995ef 07:23:27 Step 6/20 : WORKDIR $GOPATH/src/github.com/edgexfoundry/device-modbus-go 07:23:27 ---> Running in 8d5fbf57f735 07:23:27 Removing intermediate container 8d5fbf57f735 07:23:27 ---> 091bfada3eea 07:23:27 Step 7/20 : COPY . . 07:23:27 ---> a40fb3c7277a 07:23:27 Step 8/20 : RUN ${MAKE} 07:23:28 ---> Running in d995deaea356 07:23:28 CGO_ENABLED=0 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -o cmd/device-modbus ./cmd 07:23:30 using credential edgex-jenkins-ssh 07:23:30 Cloning the remote Git repository 07:23:30 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 07:23:30 > git init /w/workspace/device-modbus-go/1 # timeout=10 07:23:30 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 07:23:30 > git --version # timeout=10 07:23:30 > git --version # 'git version 2.17.1' 07:23:30 using GIT_SSH to set credentials SSH Credentials for GitHub 07:23:30 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 07:23:32 Merging remotes/origin/master commit 15ac84f23aa11eeb9442daa2d5db1053a10c3bad into PR head commit 45443412991add32ba944d961954dcaa2e827a52 07:23:31 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 07:23:31 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 07:23:31 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 07:23:31 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 07:23:31 using GIT_SSH to set credentials SSH Credentials for GitHub 07:23:31 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/213/head:refs/remotes/origin/PR-213 +refs/heads/master:refs/remotes/origin/master # timeout=10 07:23:32 > git config core.sparsecheckout # timeout=10 07:23:32 Merge succeeded, producing 45443412991add32ba944d961954dcaa2e827a52 07:23:32 Checking out Revision 45443412991add32ba944d961954dcaa2e827a52 (PR-213) 07:23:32 > git checkout -f 45443412991add32ba944d961954dcaa2e827a52 # timeout=10 07:23:32 > git remote # timeout=10 07:23:32 > git config --get remote.origin.url # timeout=10 07:23:32 using GIT_SSH to set credentials SSH Credentials for GitHub 07:23:32 > git merge 15ac84f23aa11eeb9442daa2d5db1053a10c3bad # timeout=10 07:23:32 > git rev-parse HEAD^{commit} # timeout=10 07:23:32 > git config core.sparsecheckout # timeout=10 07:23:32 > git checkout -f 45443412991add32ba944d961954dcaa2e827a52 # timeout=10 07:23:37 Commit message: "refactor: Upgrade sdk version to 1.4.0" 07:23:37 > git --version # timeout=10 07:23:37 > git --version # 'git version 2.17.1' 07:23:37 fatal: bad object 50a9f8eef5e5735e1ae4d12f0d7d5100f67887fd [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 07:23:38 CGO_ENABLED=0 GO111MODULE=on go build ./... 07:23:38 + sudo jq . + {"registry-mirrors": ["https://nexus3.edgexfoundry.org:10001"], debug: false} /etc/docker/daemon.json [Pipeline] sh 07:23:39 + sudo mv /tmp/daemon.json /etc/docker/daemon.json [Pipeline] sh 07:23:39 + sudo service docker restart 07:23:39 + true 07:23:40 Removing intermediate container d995deaea356 07:23:40 ---> fe062eab7786 07:23:40 Step 9/20 : FROM scratch 07:23:40 ---> 07:23:40 Step 10/20 : ENV APP_PORT=49991 07:23:40 ---> Running in 93db163e298e 07:23:40 Removing intermediate container 93db163e298e 07:23:40 ---> 4d2175ca568b 07:23:40 Step 11/20 : EXPOSE $APP_PORT 07:23:40 ---> Running in e3f21bebe27f 07:23:41 Removing intermediate container e3f21bebe27f 07:23:41 ---> edc7a2d1dbd5 07:23:41 Step 12/20 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/cmd / 07:23:41 ---> 77ecf49129ee 07:23:41 Step 13/20 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/LICENSE / 07:23:41 ---> ecf3b740dae9 07:23:41 Step 14/20 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/Attribution.txt / 07:23:41 ---> 70986207fd15 07:23:41 Step 15/20 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2020: IoTech Ltd' 07:23:41 ---> Running in 7974a2574506 07:23:42 Removing intermediate container 7974a2574506 07:23:42 ---> 5d9a8aca7001 07:23:42 Step 16/20 : ENTRYPOINT ["/device-modbus"] 07:23:42 ---> Running in 2dbb3fc962e6 07:23:42 Removing intermediate container 2dbb3fc962e6 07:23:42 ---> a14e58ddc01a 07:23:42 Step 17/20 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 07:23:42 ---> Running in fe7d716f49a6 [Pipeline] withEnv [Pipeline] { [Pipeline] wrap 07:23:42 provisioning config files... 07:23:42 Removing intermediate container fe7d716f49a6 07:23:42 ---> 235caf0da47b 07:23:42 Step 18/20 : LABEL arch=amd64 07:23:42 ---> Running in 26b8ab35e35f 07:23:42 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config6005492233099765829tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:23:43 Removing intermediate container 26b8ab35e35f 07:23:43 ---> a585a6bf7aa3 07:23:43 Step 19/20 : LABEL git_sha=45443412991add32ba944d961954dcaa2e827a52 07:23:43 ---> Running in 366bcd00ab2f 07:23:43 ---> docker-login.sh 07:23:43 nexus3.edgexfoundry.org:10001 07:23:43 Removing intermediate container 366bcd00ab2f 07:23:43 ---> ad3a3b1179b5 07:23:43 Step 20/20 : LABEL version=0.0.0 07:23:43 ---> Running in bac7762da987 07:23:43 Removing intermediate container bac7762da987 07:23:43 ---> 0cd4e9a18260 07:23:43 [Warning] One or more build-args [ARCH] were not consumed 07:23:43 Successfully built 0cd4e9a18260 07:23:43 Successfully tagged docker-device-modbus-go:latest [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] node 07:23:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:23:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:23:44 Configure a credential helper to remove this warning. See 07:23:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:23:44 07:23:44 Login Succeeded 07:23:44 nexus3.edgexfoundry.org:10002 07:23:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:23:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:23:45 Configure a credential helper to remove this warning. See 07:23:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:23:45 07:23:45 Login Succeeded 07:23:45 nexus3.edgexfoundry.org:10003 07:23:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:23:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:23:45 Configure a credential helper to remove this warning. See 07:23:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:23:45 07:23:45 Login Succeeded 07:23:45 nexus3.edgexfoundry.org:10004 07:23:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:23:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:23:46 Configure a credential helper to remove this warning. See 07:23:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:23:46 07:23:46 Login Succeeded 07:23:46 docker.io 07:23:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:23:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:23:46 Configure a credential helper to remove this warning. See 07:23:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:23:46 07:23:46 Login Succeeded 07:23:46 ---> docker-login.sh ends [Pipeline] } 07:23:46 Deleting 1 temporary files [Pipeline] // wrap [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 07:23:47 ========================================================= 07:23:47 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.15-alpine] 07:23:47 ========================================================= [Pipeline] isUnix [Pipeline] sh 07:23:47 + docker build -t ci-base-image-arm64 -f Dockerfile.build --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.15-alpine . 07:23:48 Sending build context to Docker daemon 550.9kB 07:23:48 Step 1/8 : ARG BASE=golang:1.15-alpine3.12 07:23:48 Step 2/8 : FROM ${BASE} 07:23:48 1.15-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 07:23:48 5f621e34cdf4: Pulling fs layer 07:23:48 a4357932f1b6: Pulling fs layer 07:23:48 18c013af1878: Pulling fs layer 07:23:48 00ac8860ef70: Pulling fs layer 07:23:48 63d7cb157983: Pulling fs layer 07:23:48 b116817d02f9: Pulling fs layer 07:23:48 745a02a5169b: Pulling fs layer 07:23:48 63d7cb157983: Waiting 07:23:48 b116817d02f9: Waiting 07:23:48 745a02a5169b: Waiting 07:23:48 00ac8860ef70: Waiting 07:23:48 18c013af1878: Verifying Checksum 07:23:48 18c013af1878: Download complete 07:23:48 a4357932f1b6: Download complete 07:23:48 63d7cb157983: Download complete 07:23:48 b116817d02f9: Verifying Checksum 07:23:48 b116817d02f9: Download complete 07:23:48 5f621e34cdf4: Verifying Checksum 07:23:48 5f621e34cdf4: Download complete 07:23:49 5f621e34cdf4: Pull complete 07:23:50 a4357932f1b6: Pull complete 07:23:50 18c013af1878: Pull complete 07:23:51 745a02a5169b: Verifying Checksum 07:23:51 745a02a5169b: Download complete 07:23:52 00ac8860ef70: Verifying Checksum 07:23:52 00ac8860ef70: Download complete 07:23:59 Still waiting to schedule task 07:23:59 ‘prd-ubuntu18.04-docker-8c-8g-19448’ is offline 07:24:02 00ac8860ef70: Pull complete 07:24:02 63d7cb157983: Pull complete 07:24:02 b116817d02f9: Pull complete 07:24:06 745a02a5169b: Pull complete 07:24:06 Digest: sha256:df689100bc6b2f2091bc50e3ab30bcbb973ead998518226adecfd27d0a642918 07:24:06 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.15-alpine 07:24:06 ---> b7e6874047d6 07:24:06 Step 3/8 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: IOTech' 07:24:09 ---> Running in b3b146072ef6 07:24:09 Removing intermediate container b3b146072ef6 07:24:09 ---> 7970df0f93f6 07:24:09 Step 4/8 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 07:24:09 ---> Running in 2fe20f539e08 07:24:12 Removing intermediate container 2fe20f539e08 07:24:12 ---> 27e340cd1ff7 07:24:12 Step 5/8 : RUN apk add --update --no-cache make git openssh build-base 07:24:12 ---> Running in bc94e9f6f6ab 07:24:13 fetch http://nl.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz 07:24:13 fetch http://nl.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz 07:24:14 (1/14) Installing libmagic (5.38-r0) 07:24:14 (2/14) Installing file (5.38-r0) 07:24:15 (3/14) Installing libc-dev (0.7.2-r3) 07:24:15 (4/14) Installing g++ (9.3.0-r2) 07:24:18 (5/14) Installing fortify-headers (1.1-r0) 07:24:18 (6/14) Installing patch (2.7.6-r6) 07:24:18 (7/14) Installing build-base (0.5-r2) 07:24:18 (8/14) Installing openssh-keygen (8.3_p1-r1) 07:24:18 (9/14) Installing libedit (20191231.3.1-r0) 07:24:18 (10/14) Installing openssh-client (8.3_p1-r1) 07:24:19 (11/14) Installing openssh-sftp-server (8.3_p1-r1) 07:24:19 (12/14) Installing openssh-server-common (8.3_p1-r1) 07:24:19 (13/14) Installing openssh-server (8.3_p1-r1) 07:24:19 (14/14) Installing openssh (8.3_p1-r1) 07:24:19 Executing busybox-1.31.1-r19.trigger 07:24:19 OK: 221 MiB in 53 packages 07:24:24 Removing intermediate container bc94e9f6f6ab 07:24:24 ---> 88dbc7faba60 07:24:24 Step 6/8 : WORKDIR /device-modbus-go 07:24:24 ---> Running in 9d5f5092020e 07:24:24 Removing intermediate container 9d5f5092020e 07:24:24 ---> b71f2784aff4 07:24:24 Step 7/8 : COPY . . 07:24:25 ---> a74be0f80e91 07:24:25 Step 8/8 : RUN go mod download 07:24:25 ---> Running in 851bd5d644f8 07:24:44 Running on prd-ubuntu18.04-docker-8c-8g-19453 in /w/workspace/xfoundry_device-modbus-go_PR-213 [Pipeline] { [Pipeline] ws 07:24:45 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 07:24:47 using credential edgex-jenkins-ssh 07:24:47 Cloning the remote Git repository 07:24:47 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 07:24:47 > git init /w/workspace/device-modbus-go/1 # timeout=10 07:24:47 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 07:24:47 > git --version # timeout=10 07:24:47 > git --version # 'git version 2.17.1' 07:24:47 using GIT_SSH to set credentials SSH Credentials for GitHub 07:24:47 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 07:24:47 Removing intermediate container 851bd5d644f8 07:24:47 ---> 0ea9b3ad2bae 07:24:47 Successfully built 0ea9b3ad2bae 07:24:47 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 07:24:48 + docker inspect -f . ci-base-image-arm64 07:24:48 . [Pipeline] withDockerContainer 07:24:48 prd-ubuntu18.04-docker-arm64-4c-16g-19452 does not seem to be running inside a container 07:24:48 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@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 ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 07:24:48 Merging remotes/origin/master commit 15ac84f23aa11eeb9442daa2d5db1053a10c3bad into PR head commit 45443412991add32ba944d961954dcaa2e827a52 07:24:47 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 07:24:47 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 07:24:47 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 07:24:47 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 07:24:47 using GIT_SSH to set credentials SSH Credentials for GitHub 07:24:47 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/213/head:refs/remotes/origin/PR-213 +refs/heads/master:refs/remotes/origin/master # timeout=10 07:24:48 > git config core.sparsecheckout # timeout=10 07:24:48 > git checkout -f 45443412991add32ba944d961954dcaa2e827a52 # timeout=10 07:24:50 $ docker top 76724778b8232c54a4400471933177d7c7f44b7a28daaa527af28adb10a2e2ed -eo pid,comm [Pipeline] { [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] sh [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } 07:24:51 + go version 07:24:51 go version go1.15.5 linux/arm64 [Pipeline] // withEnv [Pipeline] } [Pipeline] } 07:24:51 $ docker stop --time=1 76724778b8232c54a4400471933177d7c7f44b7a28daaa527af28adb10a2e2ed 07:24:53 $ docker rm -f 76724778b8232c54a4400471933177d7c7f44b7a28daaa527af28adb10a2e2ed [Pipeline] // ws [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] } [Pipeline] // node [Pipeline] // script [Pipeline] } [Pipeline] } [Pipeline] // stage [Pipeline] // stage [Pipeline] } 07:24:54 Failed in branch amd64 [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 07:24:55 + docker inspect -f . ci-base-image-arm64 07:24:55 . [Pipeline] withDockerContainer 07:24:55 prd-ubuntu18.04-docker-arm64-4c-16g-19452 does not seem to be running inside a container 07:24:55 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@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 ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 07:24:56 $ docker top 4a038e5d37866f5ae513271b461bbae78e1cc4b4189a4c4cf54fd58ce348cf6c -eo pid,comm [Pipeline] { [Pipeline] sh 07:24:57 + make test 07:24:57 CGO_ENABLED=0 GO111MODULE=on go test ./... -coverprofile=coverage.out 07:24:58 ? github.com/edgexfoundry/device-modbus-go [no test files] 07:25:31 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 07:25:31 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.355s coverage: 50.3% of statements 07:25:31 CGO_ENABLED=0 GO111MODULE=on go vet ./... 07:25:38 gofmt -l . 07:25:38 [ "`gofmt -l .`" = "" ] 07:25:38 ./bin/test-attribution-txt.sh 07:25:39 ./bin/test-go-mod-tidy.sh [Pipeline] } 07:25:39 $ docker stop --time=1 4a038e5d37866f5ae513271b461bbae78e1cc4b4189a4c4cf54fd58ce348cf6c 07:25:41 $ docker rm -f 4a038e5d37866f5ae513271b461bbae78e1cc4b4189a4c4cf54fd58ce348cf6c [Pipeline] // withDockerContainer [Pipeline] sh 07:25:42 + sudo chown -R jenkins:jenkins . [Pipeline] stash 07:25:42 Warning: overwriting stash ‘coverage-report’ 07:25:43 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 07:25:44 + sudo chown -R jenkins:jenkins . [Pipeline] sh 07:25:44 + ls -al . 07:25:44 total 136 07:25:44 drwxrwxr-x 9 jenkins jenkins 4096 Jan 11 07:25 . 07:25:44 drwxrwxr-x 4 jenkins jenkins 4096 Jan 11 07:23 .. 07:25:44 -rw-rw-r-- 1 jenkins jenkins 140 Jan 11 07:23 .dockerignore 07:25:44 drwxrwxr-x 8 jenkins jenkins 4096 Jan 11 07:23 .git 07:25:44 drwxrwxr-x 2 jenkins jenkins 4096 Jan 11 07:23 .github 07:25:44 -rw-rw-r-- 1 jenkins jenkins 338 Jan 11 07:23 .gitignore 07:25:44 -rw-rw-r-- 1 jenkins jenkins 5589 Jan 11 07:23 Attribution.txt 07:25:44 -rw-rw-r-- 1 jenkins jenkins 1434 Jan 11 07:23 Dockerfile 07:25:44 -rw-rw-r-- 1 jenkins jenkins 958 Jan 11 07:23 Dockerfile.build 07:25:44 -rw-rw-r-- 1 jenkins jenkins 679 Jan 11 07:23 Jenkinsfile 07:25:44 -rw-rw-r-- 1 jenkins jenkins 11340 Jan 11 07:23 LICENSE 07:25:44 -rw-rw-r-- 1 jenkins jenkins 880 Jan 11 07:23 Makefile 07:25:44 -rw-rw-r-- 1 jenkins jenkins 591 Jan 11 07:23 README.md 07:25:44 -rw-rw-r-- 1 jenkins jenkins 5 Jan 11 07:19 VERSION 07:25:44 drwxrwxr-x 2 jenkins jenkins 4096 Jan 11 07:23 bin 07:25:44 drwxrwxr-x 3 jenkins jenkins 4096 Jan 11 07:23 cmd 07:25:44 -rw-r--r-- 1 jenkins jenkins 22362 Jan 11 07:25 coverage.out 07:25:44 -rw-r--r-- 1 jenkins jenkins 517 Jan 11 07:25 go.mod 07:25:44 -rw-r--r-- 1 jenkins jenkins 14838 Jan 11 07:25 go.sum 07:25:44 drwxrwxr-x 3 jenkins jenkins 4096 Jan 11 07:23 internal 07:25:44 drwxrwxr-x 2 jenkins jenkins 4096 Jan 11 07:23 simulator 07:25:44 drwxrwxr-x 4 jenkins jenkins 4096 Jan 11 07:23 snap 07:25:44 -rw-rw-r-- 1 jenkins jenkins 229 Jan 11 07:23 version.go [Pipeline] isUnix [Pipeline] sh 07:25:45 + 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=45443412991add32ba944d961954dcaa2e827a52 --label arch=arm64 --label version=0.0.0 . 07:25:45 Sending build context to Docker daemon 582.1kB 07:25:45 Step 1/20 : ARG BASE=golang:1.15-alpine3.12 07:25:45 Step 2/20 : FROM ${BASE} AS builder 07:25:45 ---> 0ea9b3ad2bae 07:25:45 Step 3/20 : ARG MAKE='make build' 07:25:45 ---> Running in 9ac8a59ab457 07:25:46 Removing intermediate container 9ac8a59ab457 07:25:46 ---> 5c651c371521 07:25:46 Step 4/20 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 07:25:46 ---> Running in f620dd56220b 07:25:48 Removing intermediate container f620dd56220b 07:25:48 ---> 0d60c03d1f56 07:25:48 Step 5/20 : RUN apk add --update --no-cache make git openssh build-base 07:25:48 ---> Running in 38f18abbbbce 07:25:49 fetch http://nl.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz 07:25:50 fetch http://nl.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz 07:25:51 OK: 221 MiB in 53 packages 07:25:52 Removing intermediate container 38f18abbbbce 07:25:52 ---> bfcf8bd14779 07:25:52 Step 6/20 : WORKDIR $GOPATH/src/github.com/edgexfoundry/device-modbus-go 07:25:52 ---> Running in cfa7c630a195 07:25:53 Removing intermediate container cfa7c630a195 07:25:53 ---> e46c0a1fce97 07:25:53 Step 7/20 : COPY . . 07:25:54 ---> aab308f49ef3 07:25:54 Step 8/20 : RUN ${MAKE} 07:25:54 ---> Running in a1c0a369d1ab 07:25:55 CGO_ENABLED=0 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -o cmd/device-modbus ./cmd 07:26:22 CGO_ENABLED=0 GO111MODULE=on go build ./... 07:26:25 Removing intermediate container a1c0a369d1ab 07:26:25 ---> cffa7932e2be 07:26:25 Step 9/20 : FROM scratch 07:26:25 ---> 07:26:25 Step 10/20 : ENV APP_PORT=49991 07:26:25 ---> Running in 97e6a59b0c2d 07:26:26 Removing intermediate container 97e6a59b0c2d 07:26:26 ---> ca3c40c14b29 07:26:26 Step 11/20 : EXPOSE $APP_PORT 07:26:26 ---> Running in 60d43fd6a8e7 07:26:26 Removing intermediate container 60d43fd6a8e7 07:26:26 ---> 05258977c1d2 07:26:26 Step 12/20 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/cmd / 07:26:28 ---> 9564bbe27ab5 07:26:28 Step 13/20 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/LICENSE / 07:26:28 ---> e2c514a61ecf 07:26:28 Step 14/20 : COPY --from=builder /go/src/github.com/edgexfoundry/device-modbus-go/Attribution.txt / 07:26:29 ---> 7cc31ea1fee1 07:26:29 Step 15/20 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2020: IoTech Ltd' 07:26:29 ---> Running in 2345d90e1052 07:26:29 Removing intermediate container 2345d90e1052 07:26:29 ---> ef1868157681 07:26:29 Step 16/20 : ENTRYPOINT ["/device-modbus"] 07:26:30 ---> Running in e9a86e2b4107 07:26:30 Removing intermediate container e9a86e2b4107 07:26:30 ---> 8a004e760706 07:26:30 Step 17/20 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 07:26:30 ---> Running in 6cc4fdde96fa 07:26:31 Removing intermediate container 6cc4fdde96fa 07:26:31 ---> a28d8d58704c 07:26:31 Step 18/20 : LABEL arch=arm64 07:26:31 ---> Running in 033e40b19adb 07:26:31 Removing intermediate container 033e40b19adb 07:26:31 ---> b64bd9c540a6 07:26:31 Step 19/20 : LABEL git_sha=45443412991add32ba944d961954dcaa2e827a52 07:26:31 ---> Running in 793809035c03 07:26:32 Removing intermediate container 793809035c03 07:26:32 ---> 26c9a755a9e5 07:26:32 Step 20/20 : LABEL version=0.0.0 07:26:32 ---> Running in 0cf14e0d6671 07:26:32 Removing intermediate container 0cf14e0d6671 07:26:32 ---> a5e0bb1fb51b 07:26:32 [Warning] One or more build-args [ARCH] were not consumed 07:26:32 Successfully built a5e0bb1fb51b 07:26:33 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] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) Stage "CodeCov" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Docker Image Scan) Stage "Snyk Docker Image Scan" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" 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] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) 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 07:26:38 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 07:26:39 ---> package-listing.sh 07:26:39 ++ facter osfamily 07:26:39 ++ tr '[:upper:]' '[:lower:]' 07:26:39 + OS_FAMILY=redhat 07:26:39 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-213 07:26:39 + START_PACKAGES=/tmp/packages_start.txt 07:26:39 + END_PACKAGES=/tmp/packages_end.txt 07:26:39 + DIFF_PACKAGES=/tmp/packages_diff.txt 07:26:39 + PACKAGES=/tmp/packages_start.txt 07:26:39 + '[' /w/workspace/xfoundry_device-modbus-go_PR-213 ']' 07:26:39 + PACKAGES=/tmp/packages_end.txt 07:26:39 + case "${OS_FAMILY}" in 07:26:39 + rpm -qa 07:26:39 + sort 07:26:44 + '[' -f /tmp/packages_start.txt ']' 07:26:44 + '[' -f /tmp/packages_end.txt ']' 07:26:44 + diff /tmp/packages_start.txt /tmp/packages_end.txt 07:26:44 + '[' /w/workspace/xfoundry_device-modbus-go_PR-213 ']' 07:26:44 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-213/archives/ 07:26:44 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-213/archives/ [Pipeline] echo 07:26:44 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sa:/var/log/sa-host -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/xfoundry_device-modbus-go_PR-213/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 07:26:45 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 07:26:45 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 07:26:45 07:26:45 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] isUnix [Pipeline] sh 07:26:46 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 07:26:46 alpine: Pulling from edgex-lftools-log-publisher 07:26:46 df20fa9351a1: Pulling fs layer 07:26:46 36b3adc4ff6f: Pulling fs layer 07:26:46 8ad3a11d3b57: Pulling fs layer 07:26:46 46f8f816bc3b: Pulling fs layer 07:26:46 93b61091891f: Pulling fs layer 07:26:46 93b9cdb0e59b: Pulling fs layer 07:26:46 5e14af77c1be: Pulling fs layer 07:26:46 01666e4c0597: Pulling fs layer 07:26:46 aa168da1d23b: Pulling fs layer 07:26:46 46f8f816bc3b: Waiting 07:26:46 93b61091891f: Waiting 07:26:46 93b9cdb0e59b: Waiting 07:26:46 5e14af77c1be: Waiting 07:26:46 01666e4c0597: Waiting 07:26:46 aa168da1d23b: Waiting 07:26:46 36b3adc4ff6f: Verifying Checksum 07:26:46 36b3adc4ff6f: Download complete 07:26:46 46f8f816bc3b: Download complete 07:26:46 df20fa9351a1: Verifying Checksum 07:26:46 df20fa9351a1: Download complete 07:26:46 93b9cdb0e59b: Verifying Checksum 07:26:46 93b9cdb0e59b: Download complete 07:26:46 5e14af77c1be: Verifying Checksum 07:26:46 5e14af77c1be: Download complete 07:26:46 93b61091891f: Verifying Checksum 07:26:46 93b61091891f: Download complete 07:26:46 01666e4c0597: Verifying Checksum 07:26:46 01666e4c0597: Download complete 07:26:46 8ad3a11d3b57: Verifying Checksum 07:26:46 8ad3a11d3b57: Download complete 07:26:46 df20fa9351a1: Pull complete 07:26:46 36b3adc4ff6f: Pull complete 07:26:48 8ad3a11d3b57: Pull complete 07:26:48 46f8f816bc3b: Pull complete 07:26:48 aa168da1d23b: Verifying Checksum 07:26:48 aa168da1d23b: Download complete 07:26:48 93b61091891f: Pull complete 07:26:48 93b9cdb0e59b: Pull complete 07:26:48 5e14af77c1be: Pull complete 07:26:49 01666e4c0597: Pull complete 07:26:55 aa168da1d23b: Pull complete 07:26:55 Digest: sha256:ac41798234670a79351fc13b8232b4dbeccc6fb1f122f5db5169d11b1762ca7c 07:26:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 07:26:55 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] withDockerContainer 07:26:56 prd-centos7-docker-4c-2g-19449 does not seem to be running inside a container 07:26:56 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sa:/var/log/sa-host -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/xfoundry_device-modbus-go_PR-213/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/xfoundry_device-modbus-go_PR-213 -v /w/workspace/xfoundry_device-modbus-go_PR-213:/w/workspace/xfoundry_device-modbus-go_PR-213:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-213@tmp:/w/workspace/xfoundry_device-modbus-go_PR-213@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 ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine cat 07:27:01 $ docker top 9d49a880240b77a78faf69ae33a0c0dadf17da59f1da4e46685d453daa945b9b -eo pid,comm [Pipeline] { [Pipeline] sh 07:27:02 + touch /tmp/pre-build-complete [Pipeline] sh 07:27:02 + mkdir -p /var/log/sa [Pipeline] sh 07:27:02 + ls /var/log/sa-host 07:27:02 + sadf -c /var/log/sa-host/sa11 07:27:02 file_magic: OK 07:27:02 HZ: Using current value: 100 07:27:02 file_header: OK 07:27:02 file_activity: A_CPU A_PCSW A_SWAP A_PAGE A_IO A_MEMORY A_HUGE A_KTABLES A_QUEUE A_SERIAL A_DISK A_NET_DEV A_NET_EDEV A_NET_NFS A_NET_NFSD A_NET_SOCK OK 07:27:02 Statistics: 07:27:02 HRHnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu... 07:27:02 File successfully converted to sysstat format version 12.2.1 07:27:02 + sadf -c /var/log/sa-host/sa23 07:27:02 file_magic: OK 07:27:02 HZ: Using current value: 100 07:27:02 file_header: OK 07:27:02 file_activity: A_CPU A_PCSW A_SWAP A_PAGE A_IO A_MEMORY A_HUGE A_KTABLES A_QUEUE A_SERIAL A_DISK A_NET_DEV A_NET_EDEV A_NET_NFS A_NET_NFSD A_NET_SOCK OK 07:27:02 Statistics: 07:27:02 Hnuu...uuuununununu... 07:27:02 File successfully converted to sysstat format version 12.2.1 [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:27:03 provisioning config files... 07:27:03 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-213@tmp/config1199490405955551370tmp [Pipeline] { [Pipeline] echo 07:27:03 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 07:27:04 ---> create-netrc.sh [Pipeline] } 07:27:04 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] echo 07:27:04 Running shell/python-tools-install.sh [Pipeline] libraryResource [Pipeline] sh 07:27:04 ---> python-tools-install.sh [Pipeline] echo 07:27:04 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 07:27:04 ---> sudo-logs.sh 07:27:04 Archiving 'sudo' log.. [Pipeline] echo 07:27:04 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 07:27:05 ---> job-cost.sh 07:27:05 lf-activate-venv: SKIPPING 07:27:05 INFO: No Stack... 07:27:06 INFO: Retrieving Pricing Info for: v1-standard-2 07:27:06 INFO: Archiving Costs [Pipeline] echo 07:27:06 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 07:27:06 ---> logs-deploy.sh 07:27:06 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-213/1 07:27:06 INFO: archiving workspace using pattern(s): 07:27:08 Archives upload complete. 07:27:08 INFO: archiving logs to Nexus