Pull request #345 updated Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of MonicaisHer for edgexfoundry/device-modbus-go Loading trusted files from base branch main at 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea rather than 8fe31c03d27ece93ff91a989a0b9f6025d8f231e Obtained Jenkinsfile from 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea 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 [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh11485453751838758873.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # 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 [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh1810335437681171631.key > 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 61d3a14f5ee21304eadc9c25f102bcac80e1a589 The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-345/workspace@libs/edgex-global-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > 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 > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-345/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh3997574201676479896.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 61d3a14f5ee21304eadc9c25f102bcac80e1a589 # timeout=10 Commit message: "Merge pull request #384 from ernestojeda/add-go-1_17-lts" > 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 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 [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh10383853098793845060.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 The recommended git tool is: NONE using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-345/workspace@libs/lf-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > 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 > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-345/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh16366083470313693530.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > 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 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:false] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.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.17 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-modbus 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: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-47542 in /w/workspace/xfoundry_device-modbus-go_PR-345 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE 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-345 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' 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/main commit 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea into PR head commit 8fe31c03d27ece93ff91a989a0b9f6025d8f231e Merge succeeded, producing 8fe31c03d27ece93ff91a989a0b9f6025d8f231e Checking out Revision 8fe31c03d27ece93ff91a989a0b9f6025d8f231e (PR-345) > 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/345/head:refs/remotes/origin/PR-345 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 8fe31c03d27ece93ff91a989a0b9f6025d8f231e # 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 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 8fe31c03d27ece93ff91a989a0b9f6025d8f231e # timeout=10 Commit message: "build(deps): go 1.17 mod tidy" > git rev-list --no-walk 14ff68196de14f84e156ad11d70fc60c7e109548 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 12:09:17 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 12:09:17 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 12:09:17 ========================================================= 12:09:17 EdgeX Global Pipelines Version Info 12:09:17 ========================================================= [Pipeline] libraryResource [Pipeline] sh 12:09:17 ------------------- 12:09:17 stable info: 12:09:17 ------------------- 12:09:17 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 12:09:17 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 12:09:17 Message: update stable to v1.0.227 12:09:18 ------------------- 12:09:18 experimental info: 12:09:18 ------------------- 12:09:18 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 12:09:18 Commit SHA: 821e2ffd3fa43eddc5db18cf710cdace1a36094c 12:09:18 Message: update experimental to v1.0.229 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 12:09:18 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 12:09:19 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 12:09:19 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 12:09:19 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-345 [Pipeline] echo 12:09:19 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-345 [Pipeline] echo 12:09:19 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-345 [Pipeline] echo 12:09:19 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 8fe31c03d27ece93ff91a989a0b9f6025d8f231e [Pipeline] echo 12:09:19 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 8fe31c0 [Pipeline] echo 12:09:19 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:09:19 provisioning config files... 12:09:19 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config4298845485998632728tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:09:19 ---> docker-login.sh 12:09:19 nexus3.edgexfoundry.org:10001 12:09:19 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:09:19 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:09:19 Configure a credential helper to remove this warning. See 12:09:19 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:09:19 12:09:19 Login Succeeded 12:09:19 nexus3.edgexfoundry.org:10002 12:09:19 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:09:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:09:20 Configure a credential helper to remove this warning. See 12:09:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:09:20 12:09:20 Login Succeeded 12:09:20 nexus3.edgexfoundry.org:10003 12:09:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:09:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:09:20 Configure a credential helper to remove this warning. See 12:09:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:09:20 12:09:20 Login Succeeded 12:09:20 nexus3.edgexfoundry.org:10004 12:09:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:09:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:09:20 Configure a credential helper to remove this warning. See 12:09:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:09:20 12:09:20 Login Succeeded 12:09:20 docker.io 12:09:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:09:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:09:20 Configure a credential helper to remove this warning. See 12:09:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:09:20 12:09:20 Login Succeeded 12:09:20 ---> docker-login.sh ends [Pipeline] } 12:09:20 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 12:09:20 + git rev-list -1 --merges 8fe31c03d27ece93ff91a989a0b9f6025d8f231e~1..8fe31c03d27ece93ff91a989a0b9f6025d8f231e [Pipeline] echo 12:09:21 -----------> git rev-list -1 --merges 8fe31c03d27ece93ff91a989a0b9f6025d8f231e~1..8fe31c03d27ece93ff91a989a0b9f6025d8f231e 8fe31c03d27ece93ff91a989a0b9f6025d8f231e [false] [Pipeline] sh 12:09:21 + git log --format=format:%s -1 8fe31c03d27ece93ff91a989a0b9f6025d8f231e [Pipeline] echo 12:09:21 ========================================================= 12:09:21 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 12:09:21 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 12:09:21 + git log --format=format:%s -1 8fe31c03d27ece93ff91a989a0b9f6025d8f231e [Pipeline] echo 12:09:21 [semverPrep] GIT_COMMIT: 8fe31c03d27ece93ff91a989a0b9f6025d8f231e, Commit Message: build(deps): go 1.17 mod tidy [Pipeline] echo 12:09:21 [semverPrep] This is not a build commit. [Pipeline] sh 12:09:22 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 12:09:22 + grep -v github /etc/ssh/ssh_known_hosts 12:09:22 + [ -e /tmp/ssh_known_hosts ] 12:09:22 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 12:09:22 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 12:09:22 + sudo tee -a /etc/ssh/ssh_known_hosts 12:09:22 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 12:09:22 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 12:09:22 12:09:22 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 12:09:22 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 12:09:22 latest: Pulling from edgex-devops/py-git-semver 12:09:22 1fe172e4850f: Pulling fs layer 12:09:22 caf521ccaac6: Pulling fs layer 12:09:22 3ead6fa29328: Pulling fs layer 12:09:22 5c2a1cbceb83: Pulling fs layer 12:09:22 a8d5f1318db7: Pulling fs layer 12:09:22 c427282e49a2: Pulling fs layer 12:09:22 1827001aaf11: Pulling fs layer 12:09:22 0714d37db230: Pulling fs layer 12:09:22 ac28cf19c067: Pulling fs layer 12:09:22 ca983d60f3e2: Pulling fs layer 12:09:22 9f894cec8388: Pulling fs layer 12:09:22 0714d37db230: Waiting 12:09:22 9f894cec8388: Waiting 12:09:22 5c2a1cbceb83: Waiting 12:09:22 ca983d60f3e2: Waiting 12:09:22 ac28cf19c067: Waiting 12:09:22 c427282e49a2: Waiting 12:09:22 a8d5f1318db7: Waiting 12:09:22 1827001aaf11: Waiting 12:09:22 caf521ccaac6: Download complete 12:09:22 5c2a1cbceb83: Download complete 12:09:22 a8d5f1318db7: Verifying Checksum 12:09:22 a8d5f1318db7: Download complete 12:09:23 c427282e49a2: Download complete 12:09:23 3ead6fa29328: Verifying Checksum 12:09:23 3ead6fa29328: Download complete 12:09:23 0714d37db230: Download complete 12:09:23 ac28cf19c067: Download complete 12:09:23 ca983d60f3e2: Verifying Checksum 12:09:23 ca983d60f3e2: Download complete 12:09:23 9f894cec8388: Download complete 12:09:23 1fe172e4850f: Verifying Checksum 12:09:23 1fe172e4850f: Download complete 12:09:23 1827001aaf11: Verifying Checksum 12:09:23 1827001aaf11: Download complete 12:09:24 1fe172e4850f: Pull complete 12:09:24 caf521ccaac6: Pull complete 12:09:24 3ead6fa29328: Pull complete 12:09:25 5c2a1cbceb83: Pull complete 12:09:25 a8d5f1318db7: Pull complete 12:09:25 c427282e49a2: Pull complete 12:09:27 1827001aaf11: Pull complete 12:09:27 0714d37db230: Pull complete 12:09:27 ac28cf19c067: Pull complete 12:09:27 ca983d60f3e2: Pull complete 12:09:27 9f894cec8388: Pull complete 12:09:27 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 12:09:27 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 12:09:27 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 12:09:27 prd-ubuntu20.04-docker-8c-8g-47542 does not seem to be running inside a container 12:09:27 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-345 -v /w/workspace/xfoundry_device-modbus-go_PR-345:/w/workspace/xfoundry_device-modbus-go_PR-345:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-345@tmp:/w/workspace/xfoundry_device-modbus-go_PR-345@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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest cat 12:09:29 $ docker top ef17f108981d076ea62ad6f45b64e1fe3a3d551df4b7f089258120fd8248a0a1 -eo pid,comm 12:09:29 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 12:09:29 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 12:09:29 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 12:09:29 [ssh-agent] Looking for ssh-agent implementation... 12:09:29 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:09:29 $ docker exec ef17f108981d076ea62ad6f45b64e1fe3a3d551df4b7f089258120fd8248a0a1 ssh-agent 12:09:29 SSH_AUTH_SOCK=/tmp/ssh-RQFVCeL6lyAu/agent.33 12:09:29 SSH_AGENT_PID=39 12:09:29 Running ssh-add (command line suppressed) 12:09:29 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_24971367626239402.key (/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_24971367626239402.key) 12:09:29 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 12:09:30 + git tag --points-at HEAD [Pipeline] } 12:09:30 $ docker exec --env ******** --env ******** ef17f108981d076ea62ad6f45b64e1fe3a3d551df4b7f089258120fd8248a0a1 ssh-agent -k 12:09:30 unset SSH_AUTH_SOCK; 12:09:30 unset SSH_AGENT_PID; 12:09:30 echo Agent pid 39 killed; 12:09:30 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 12:09:30 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 12:09:30 [ssh-agent] Looking for ssh-agent implementation... 12:09:30 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:09:30 $ docker exec ef17f108981d076ea62ad6f45b64e1fe3a3d551df4b7f089258120fd8248a0a1 ssh-agent 12:09:30 SSH_AUTH_SOCK=/tmp/ssh-mgcAl8QLkfIk/agent.72 12:09:30 SSH_AGENT_PID=78 12:09:30 Running ssh-add (command line suppressed) 12:09:30 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_6588489444500057884.key (/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_6588489444500057884.key) 12:09:30 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 12:09:31 + git semver init 12:09:31 2022-05-10 12:09:31,214 [run_init] DEBUG init version:0.0.0 force:False 12:09:31 2022-05-10 12:09:31,214 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-345/.semver 12:09:31 2022-05-10 12:09:31,215 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-345/.semver 12:09:31 2022-05-10 12:09:31,215 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-345/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-345, universal_newlines=False, shell=None, istream=None) 12:09:32 2022-05-10 12:09:32,228 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-345/.git/info/exclude 12:09:32 2022-05-10 12:09:32,228 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-345/.semver/PR-345 with force:False 12:09:32 2022-05-10 12:09:32,228 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-345/.semver/PR-345 12:09:32 2022-05-10 12:09:32,233 [execute] INFO git cat-file --batch-check 12:09:32 2022-05-10 12:09:32,233 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-345/.semver, universal_newlines=False, shell=None, istream=) 12:09:32 2022-05-10 12:09:32,239 [execute] INFO git cat-file --batch 12:09:32 2022-05-10 12:09:32,239 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-345/.semver, universal_newlines=False, shell=None, istream=) 12:09:32 2022-05-10 12:09:32,246 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-345/.semver/PR-345 12:09:32 0.0.0 [Pipeline] } 12:09:32 $ docker exec --env ******** --env ******** ef17f108981d076ea62ad6f45b64e1fe3a3d551df4b7f089258120fd8248a0a1 ssh-agent -k 12:09:32 unset SSH_AUTH_SOCK; 12:09:32 unset SSH_AGENT_PID; 12:09:32 echo Agent pid 78 killed; 12:09:32 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 12:09:32 + git semver [Pipeline] } 12:09:33 $ docker stop --time=1 ef17f108981d076ea62ad6f45b64e1fe3a3d551df4b7f089258120fd8248a0a1 12:09:34 $ docker rm -f ef17f108981d076ea62ad6f45b64e1fe3a3d551df4b7f089258120fd8248a0a1 [Pipeline] // withDockerContainer [Pipeline] sh 12:09:34 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 12:09:35 Stashed 1 file(s) [Pipeline] echo 12:09:35 [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] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:09:35 provisioning config files... 12:09:35 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config36663929786142711tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:09:35 ---> docker-login.sh 12:09:35 nexus3.edgexfoundry.org:10001 12:09:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:09:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:09:35 Configure a credential helper to remove this warning. See 12:09:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:09:35 12:09:35 Login Succeeded 12:09:35 nexus3.edgexfoundry.org:10002 12:09:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:09:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:09:35 Configure a credential helper to remove this warning. See 12:09:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:09:35 12:09:35 Login Succeeded 12:09:35 nexus3.edgexfoundry.org:10003 12:09:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:09:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:09:35 Configure a credential helper to remove this warning. See 12:09:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:09:35 12:09:35 Login Succeeded 12:09:35 nexus3.edgexfoundry.org:10004 12:09:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:09:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:09:36 Configure a credential helper to remove this warning. See 12:09:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:09:36 12:09:36 Login Succeeded 12:09:36 docker.io 12:09:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:09:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:09:36 Configure a credential helper to remove this warning. See 12:09:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:09:36 12:09:36 Login Succeeded 12:09:36 ---> docker-login.sh ends [Pipeline] } 12:09:36 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:09:36 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:09:36 ========================================================= 12:09:36 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 12:09:36 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 12:09:36 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg MAKE=echo noop --target=builder . 12:09:36 Sending build context to Docker daemon 5.922MB 12:09:36 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 12:09:36 Step 2/10 : FROM ${BASE} AS builder 12:09:36 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 12:09:36 59bf1c3509f3: Pulling fs layer 12:09:36 666ba61612fd: Pulling fs layer 12:09:36 8ed8ca486205: Pulling fs layer 12:09:36 4fe6c5a15a65: Pulling fs layer 12:09:36 22a0e8bec74d: Pulling fs layer 12:09:36 ca2b28591e48: Pulling fs layer 12:09:36 4fe6c5a15a65: Waiting 12:09:36 22a0e8bec74d: Waiting 12:09:36 a51346096db8: Pulling fs layer 12:09:36 daebc70d1ce1: Pulling fs layer 12:09:36 0e18a0eac166: Pulling fs layer 12:09:36 ca2b28591e48: Waiting 12:09:36 daebc70d1ce1: Waiting 12:09:36 0e18a0eac166: Waiting 12:09:36 8ed8ca486205: Verifying Checksum 12:09:36 8ed8ca486205: Download complete 12:09:36 666ba61612fd: Verifying Checksum 12:09:36 666ba61612fd: Download complete 12:09:36 22a0e8bec74d: Verifying Checksum 12:09:36 22a0e8bec74d: Download complete 12:09:37 ca2b28591e48: Verifying Checksum 12:09:37 ca2b28591e48: Download complete 12:09:37 59bf1c3509f3: Verifying Checksum 12:09:37 59bf1c3509f3: Download complete 12:09:37 a51346096db8: Verifying Checksum 12:09:37 a51346096db8: Download complete 12:09:37 daebc70d1ce1: Verifying Checksum 12:09:37 daebc70d1ce1: Download complete 12:09:37 59bf1c3509f3: Pull complete 12:09:37 666ba61612fd: Pull complete 12:09:37 8ed8ca486205: Pull complete 12:09:37 0e18a0eac166: Verifying Checksum 12:09:37 0e18a0eac166: Download complete 12:09:37 4fe6c5a15a65: Verifying Checksum 12:09:37 4fe6c5a15a65: Download complete 12:09:42 4fe6c5a15a65: Pull complete 12:09:42 22a0e8bec74d: Pull complete 12:09:42 ca2b28591e48: Pull complete 12:09:42 a51346096db8: Pull complete 12:09:42 daebc70d1ce1: Pull complete 12:09:43 0e18a0eac166: Pull complete 12:09:43 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 12:09:43 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 12:09:43 ---> f018257e8ee9 12:09:43 Step 3/10 : ARG MAKE='make build' 12:09:45 ---> Running in 93d55cdf57ff 12:09:45 Removing intermediate container 93d55cdf57ff 12:09:45 ---> 6c55d8ada546 12:09:45 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:09:45 ---> Running in 5c70c8e76e0a 12:09:46 Removing intermediate container 5c70c8e76e0a 12:09:46 ---> afd67968ce03 12:09:46 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 12:09:46 ---> Running in e480bf20cb29 12:09:47 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 12:09:47 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 12:09:47 (1/8) Installing openssh-keygen (8.8_p1-r1) 12:09:48 (2/8) Installing libedit (20210910.3.1-r0) 12:09:48 (3/8) Installing openssh-client-common (8.8_p1-r1) 12:09:48 (4/8) Installing openssh-client-default (8.8_p1-r1) 12:09:48 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 12:09:48 (6/8) Installing openssh-server-common (8.8_p1-r1) 12:09:48 (7/8) Installing openssh-server (8.8_p1-r1) 12:09:48 (8/8) Installing openssh (8.8_p1-r1) 12:09:48 Executing busybox-1.34.1-r3.trigger 12:09:48 OK: 226 MiB in 60 packages 12:09:49 Removing intermediate container e480bf20cb29 12:09:49 ---> 1b7bab1b213b 12:09:49 Step 6/10 : WORKDIR /device-modbus-go 12:09:49 ---> Running in 9ff20f27ea44 12:09:49 Removing intermediate container 9ff20f27ea44 12:09:49 ---> 519e508a1b4d 12:09:49 Step 7/10 : COPY go.mod vendor* ./ 12:09:50 ---> 02dbe25ea82e 12:09:50 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:09:50 ---> Running in 8dbec38143db 12:09:50 Still waiting to schedule task 12:09:50 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 12:10:08 Removing intermediate container 8dbec38143db 12:10:08 ---> 750739f7ca49 12:10:08 Step 9/10 : COPY . . 12:10:08 ---> 6776348362b2 12:10:08 Step 10/10 : RUN ${MAKE} 12:10:08 ---> Running in d7841abaa652 12:10:08 noop 12:10:08 Removing intermediate container d7841abaa652 12:10:08 ---> 18c2d787282d 12:10:08 Successfully built 18c2d787282d 12:10:08 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 12:10:08 + docker inspect -f . ci-base-image-x86_64 12:10:08 . [Pipeline] withDockerContainer 12:10:08 prd-ubuntu20.04-docker-8c-8g-47542 does not seem to be running inside a container 12:10:08 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-345 -v /w/workspace/xfoundry_device-modbus-go_PR-345:/w/workspace/xfoundry_device-modbus-go_PR-345:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-345@tmp:/w/workspace/xfoundry_device-modbus-go_PR-345@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 ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 12:10:09 $ docker top ba82f7d7a2c7be81000ba4f10dc52d7cdd7ccb984689d2bade05feed5fc57adb -eo pid,comm [Pipeline] { [Pipeline] sh 12:10:09 + go version 12:10:09 go version go1.17.6 linux/amd64 [Pipeline] } 12:10:09 $ docker stop --time=1 ba82f7d7a2c7be81000ba4f10dc52d7cdd7ccb984689d2bade05feed5fc57adb 12:10:10 $ docker rm -f ba82f7d7a2c7be81000ba4f10dc52d7cdd7ccb984689d2bade05feed5fc57adb [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 12:10:11 + docker inspect -f . ci-base-image-x86_64 12:10:11 . [Pipeline] withDockerContainer 12:10:11 prd-ubuntu20.04-docker-8c-8g-47542 does not seem to be running inside a container 12:10:11 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-345 -v /w/workspace/xfoundry_device-modbus-go_PR-345:/w/workspace/xfoundry_device-modbus-go_PR-345:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-345@tmp:/w/workspace/xfoundry_device-modbus-go_PR-345@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 ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 12:10:11 $ docker top ee9fbbb34d249aff781b05e50a65f3cac481385c6bf8dbc968269cc7af360a87 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 12:10:12 + make test 12:10:12 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 12:10:12 ? github.com/edgexfoundry/device-modbus-go [no test files] 12:10:22 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 12:10:22 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.022s coverage: 46.4% of statements 12:10:28 CGO_ENABLED=1 GO111MODULE=on go vet ./... 12:10:33 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 12:10:33 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 12:10:33 ./bin/test-attribution-txt.sh [Pipeline] echo 12:10:33 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 12:10:33 $ docker stop --time=1 ee9fbbb34d249aff781b05e50a65f3cac481385c6bf8dbc968269cc7af360a87 12:10:35 $ docker rm -f ee9fbbb34d249aff781b05e50a65f3cac481385c6bf8dbc968269cc7af360a87 [Pipeline] // withDockerContainer [Pipeline] sh 12:10:35 + sudo chown -R jenkins:jenkins . [Pipeline] stash 12:10:35 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 12:10:36 + sudo chown -R jenkins:jenkins . [Pipeline] sh 12:10:36 + ls -al . 12:10:36 total 184 12:10:36 drwxrwxr-x 10 jenkins jenkins 4096 May 10 12:10 . 12:10:36 drwxrwxr-x 4 jenkins jenkins 4096 May 10 12:09 .. 12:10:36 -rw-rw-r-- 1 jenkins jenkins 140 May 10 12:09 .dockerignore 12:10:36 drwxrwxr-x 8 jenkins jenkins 4096 May 10 12:09 .git 12:10:36 drwxrwxr-x 3 jenkins jenkins 4096 May 10 12:09 .github 12:10:36 -rw-rw-r-- 1 jenkins jenkins 331 May 10 12:09 .gitignore 12:10:36 -rw-rw-r-- 1 jenkins jenkins 41 May 10 12:09 .golangci.yml 12:10:36 drwxr-xr-x 3 jenkins jenkins 4096 May 10 12:09 .semver 12:10:36 -rw-rw-r-- 1 jenkins jenkins 9377 May 10 12:09 Attribution.txt 12:10:36 -rw-rw-r-- 1 jenkins jenkins 10001 May 10 12:09 CHANGELOG.md 12:10:36 -rw-rw-r-- 1 jenkins jenkins 1546 May 10 12:09 Dockerfile 12:10:36 -rw-rw-r-- 1 jenkins jenkins 677 May 10 12:09 GOVERNANCE.md 12:10:36 -rw-rw-r-- 1 jenkins jenkins 680 May 10 12:09 Jenkinsfile 12:10:36 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 12:09 LICENSE 12:10:36 -rw-rw-r-- 1 jenkins jenkins 1905 May 10 12:09 Makefile 12:10:36 -rw-rw-r-- 1 jenkins jenkins 622 May 10 12:09 OWNERS.md 12:10:36 -rw-rw-r-- 1 jenkins jenkins 3397 May 10 12:09 README.md 12:10:36 -rw-rw-r-- 1 jenkins jenkins 5 May 10 12:09 VERSION 12:10:36 drwxrwxr-x 2 jenkins jenkins 4096 May 10 12:09 bin 12:10:36 drwxrwxr-x 3 jenkins jenkins 4096 May 10 12:09 cmd 12:10:36 -rw-r--r-- 1 jenkins jenkins 24065 May 10 12:10 coverage.out 12:10:36 -rw-rw-r-- 1 jenkins jenkins 3399 May 10 12:09 go.mod 12:10:36 -rw-rw-r-- 1 jenkins jenkins 35558 May 10 12:09 go.sum 12:10:36 drwxrwxr-x 3 jenkins jenkins 4096 May 10 12:09 internal 12:10:36 drwxrwxr-x 2 jenkins jenkins 4096 May 10 12:09 simulator 12:10:36 drwxrwxr-x 4 jenkins jenkins 4096 May 10 12:09 snap 12:10:36 -rw-rw-r-- 1 jenkins jenkins 229 May 10 12:09 version.go [Pipeline] isUnix [Pipeline] sh 12:10:36 + docker build -t device-modbus -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=8fe31c03d27ece93ff91a989a0b9f6025d8f231e --label arch=amd64 --label version=0.0.0 . 12:10:36 Sending build context to Docker daemon 5.947MB 12:10:36 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 12:10:36 Step 2/23 : FROM ${BASE} AS builder 12:10:36 ---> 18c2d787282d 12:10:36 Step 3/23 : ARG MAKE='make build' 12:10:37 ---> Running in 5bdd3bdf698b 12:10:37 Removing intermediate container 5bdd3bdf698b 12:10:37 ---> ad8333235582 12:10:37 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:10:37 ---> Running in 978463b1923f 12:10:38 Removing intermediate container 978463b1923f 12:10:38 ---> 98d89a0d7d0e 12:10:38 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 12:10:38 ---> Running in b51b61d36498 12:10:38 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 12:10:39 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 12:10:39 OK: 226 MiB in 60 packages 12:10:40 Removing intermediate container b51b61d36498 12:10:40 ---> 438058618abd 12:10:40 Step 6/23 : WORKDIR /device-modbus-go 12:10:40 ---> Running in 9cd768e76c57 12:10:40 Removing intermediate container 9cd768e76c57 12:10:40 ---> ab683f47b7c0 12:10:40 Step 7/23 : COPY go.mod vendor* ./ 12:10:40 ---> 72b1b95fa972 12:10:40 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:10:40 ---> Running in 3ab40bef3045 12:10:41 Removing intermediate container 3ab40bef3045 12:10:41 ---> a6411cbdd6f6 12:10:41 Step 9/23 : COPY . . 12:10:41 ---> 1a62e06e5392 12:10:41 Step 10/23 : RUN ${MAKE} 12:10:41 ---> Running in b79b87904efa 12:10:41 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-modbus ./cmd 12:11:03 Removing intermediate container b79b87904efa 12:11:03 ---> 44f275c503b4 12:11:03 Step 11/23 : FROM alpine:3.14 12:11:03 3.14: Pulling from library/alpine 12:11:03 8663204ce13b: Pulling fs layer 12:11:03 8663204ce13b: Verifying Checksum 12:11:03 8663204ce13b: Download complete 12:11:03 8663204ce13b: Pull complete 12:11:03 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 12:11:03 Status: Downloaded newer image for alpine:3.14 12:11:03 ---> e04c818066af 12:11:03 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 12:11:03 ---> Running in 0bc1ad18eaaa 12:11:03 Removing intermediate container 0bc1ad18eaaa 12:11:03 ---> 941b19d4b7e6 12:11:03 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:11:03 ---> Running in 28af5bca2a1e 12:11:03 Removing intermediate container 28af5bca2a1e 12:11:03 ---> 6a97850e50c0 12:11:03 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 12:11:03 ---> Running in 489b01556c46 12:11:04 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 12:11:05 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 12:11:05 (1/6) Installing dumb-init (1.2.5-r1) 12:11:05 (2/6) Installing libgcc (10.3.1_git20210424-r2) 12:11:05 (3/6) Installing libsodium (1.0.18-r0) 12:11:05 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 12:11:05 (5/6) Installing libzmq (4.3.4-r0) 12:11:05 (6/6) Installing zeromq (4.3.4-r0) 12:11:05 Executing busybox-1.33.1-r7.trigger 12:11:05 OK: 8 MiB in 20 packages 12:11:06 Removing intermediate container 489b01556c46 12:11:06 ---> 64aab3a5c714 12:11:06 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 12:11:06 ---> 304f799287ef 12:11:06 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 12:11:06 ---> 40798098e986 12:11:06 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 12:11:07 ---> 7e2c150ea3d7 12:11:07 Step 18/23 : EXPOSE 59901 12:11:07 ---> Running in 45c2b5a6df3e 12:11:07 Removing intermediate container 45c2b5a6df3e 12:11:07 ---> 5db3bdc59207 12:11:07 Step 19/23 : ENTRYPOINT ["/device-modbus"] 12:11:07 ---> Running in d55dc43b42cf 12:11:07 Removing intermediate container d55dc43b42cf 12:11:07 ---> 5d0af454aa45 12:11:07 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 12:11:07 ---> Running in 670e3bf1f9aa 12:11:07 Removing intermediate container 670e3bf1f9aa 12:11:07 ---> 8d1dffac9c1c 12:11:07 Step 21/23 : LABEL arch=amd64 12:11:07 ---> Running in 119fd5f37a6b 12:11:07 Removing intermediate container 119fd5f37a6b 12:11:07 ---> 473fe4240af7 12:11:07 Step 22/23 : LABEL git_sha=8fe31c03d27ece93ff91a989a0b9f6025d8f231e 12:11:07 ---> Running in e3f55f12626d 12:11:07 Removing intermediate container e3f55f12626d 12:11:07 ---> abfdf69993b3 12:11:07 Step 23/23 : LABEL version=0.0.0 12:11:07 ---> Running in d25e34ad419a 12:11:08 Removing intermediate container d25e34ad419a 12:11:08 ---> 1675258e7ea3 12:11:08 [Warning] One or more build-args [ARCH] were not consumed 12:11:08 Successfully built 1675258e7ea3 12:11:08 Successfully tagged device-modbus:latest [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 12:11:08 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:11:08 12:11:08 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 12:11:08 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:11:08 latest: Pulling from edgex-lftools-log-publisher 12:11:08 5eb5b503b376: Pulling fs layer 12:11:08 5c69ac0246d0: Pulling fs layer 12:11:08 ec43610c2a17: Pulling fs layer 12:11:08 3a2ae6a8a46f: Pulling fs layer 12:11:08 33b1e0a273af: Pulling fs layer 12:11:08 5d3b04190fa2: Pulling fs layer 12:11:08 2f39f015ded8: Pulling fs layer 12:11:08 33b1e0a273af: Waiting 12:11:08 5d3b04190fa2: Waiting 12:11:08 3a2ae6a8a46f: Waiting 12:11:08 2f39f015ded8: Waiting 12:11:08 5c69ac0246d0: Verifying Checksum 12:11:08 5c69ac0246d0: Download complete 12:11:08 3a2ae6a8a46f: Verifying Checksum 12:11:08 3a2ae6a8a46f: Download complete 12:11:08 33b1e0a273af: Verifying Checksum 12:11:08 33b1e0a273af: Download complete 12:11:08 5d3b04190fa2: Verifying Checksum 12:11:08 5d3b04190fa2: Download complete 12:11:09 ec43610c2a17: Verifying Checksum 12:11:09 ec43610c2a17: Download complete 12:11:09 5eb5b503b376: Verifying Checksum 12:11:09 5eb5b503b376: Download complete 12:11:09 2f39f015ded8: Download complete 12:11:10 5eb5b503b376: Pull complete 12:11:10 5c69ac0246d0: Pull complete 12:11:10 ec43610c2a17: Pull complete 12:11:11 3a2ae6a8a46f: Pull complete 12:11:11 33b1e0a273af: Pull complete 12:11:11 5d3b04190fa2: Pull complete 12:11:15 2f39f015ded8: Pull complete 12:11:15 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 12:11:15 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:11:15 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 12:11:15 prd-ubuntu20.04-docker-8c-8g-47542 does not seem to be running inside a container 12:11:15 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/xfoundry_device-modbus-go_PR-345 -v /w/workspace/xfoundry_device-modbus-go_PR-345:/w/workspace/xfoundry_device-modbus-go_PR-345:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-345@tmp:/w/workspace/xfoundry_device-modbus-go_PR-345@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 ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 12:11:17 $ docker top 88efed0acf1d3bfa11546becc34ffc9230a4866044fdbf4577e5ff5d436348a0 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:11:18 ---> job-cost.sh 12:11:18 lf-activate-venv: SKIPPING 12:11:18 INFO: No Stack... 12:11:18 INFO: Retrieving Pricing Info for: v3-standard-8 12:11:18 INFO: Archiving Costs [Pipeline] sh 12:11:19 + cat /w/workspace/xfoundry_device-modbus-go_PR-345/archives/cost.csv 12:11:19 + cut -d, -f6 [Pipeline] lock 12:11:19 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-345-3-stack-cost] 12:11:19 Resource [jenkins-edgexfoundry-device-modbus-go-PR-345-3-stack-cost] did not exist. Created. 12:11:19 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-345-3-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 12:11:19 + echo total: 0.2199999988079071 [Pipeline] stash 12:11:19 Stashed 1 file(s) [Pipeline] } 12:11:19 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-345-3-stack-cost] [Pipeline] // lock [Pipeline] } 12:11:19 $ docker stop --time=1 88efed0acf1d3bfa11546becc34ffc9230a4866044fdbf4577e5ff5d436348a0 12:11:20 $ docker rm -f 88efed0acf1d3bfa11546becc34ffc9230a4866044fdbf4577e5ff5d436348a0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 12:12:26 Running on prd-ubuntu20.04-docker-arm64-4c-16g-47546 in /w/workspace/xfoundry_device-modbus-go_PR-345 [Pipeline] { [Pipeline] ws 12:12:26 Running in /w/workspace/device-modbus-go/3 [Pipeline] { [Pipeline] checkout 12:12:26 Selected Git installation does not exist. Using Default 12:12:26 The recommended git tool is: NONE 12:12:33 using credential edgex-jenkins-ssh 12:12:33 Cloning the remote Git repository 12:12:33 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 12:12:33 > git init /w/workspace/device-modbus-go/3 # timeout=10 12:12:33 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 12:12:33 > git --version # timeout=10 12:12:33 > git --version # 'git version 2.25.1' 12:12:33 using GIT_SSH to set credentials SSH Credentials for GitHub 12:12:33 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 12:12:35 Merging remotes/origin/main commit 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea into PR head commit 8fe31c03d27ece93ff91a989a0b9f6025d8f231e 12:12:35 Merge succeeded, producing 8fe31c03d27ece93ff91a989a0b9f6025d8f231e 12:12:35 Checking out Revision 8fe31c03d27ece93ff91a989a0b9f6025d8f231e (PR-345) 12:12:34 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 12:12:34 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 12:12:34 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 12:12:34 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 12:12:34 using GIT_SSH to set credentials SSH Credentials for GitHub 12:12:34 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/345/head:refs/remotes/origin/PR-345 +refs/heads/main:refs/remotes/origin/main # timeout=10 12:12:35 > git config core.sparsecheckout # timeout=10 12:12:35 > git checkout -f 8fe31c03d27ece93ff91a989a0b9f6025d8f231e # timeout=10 12:12:35 > git remote # timeout=10 12:12:35 > git config --get remote.origin.url # timeout=10 12:12:35 using GIT_SSH to set credentials SSH Credentials for GitHub 12:12:35 > git merge 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea # timeout=10 12:12:35 > git rev-parse HEAD^{commit} # timeout=10 12:12:35 > git config core.sparsecheckout # timeout=10 12:12:35 > git checkout -f 8fe31c03d27ece93ff91a989a0b9f6025d8f231e # timeout=10 12:12:39 Commit message: "build(deps): go 1.17 mod tidy" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 12:12:40 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 12:12:40 % Total % Received % Xferd Average Speed Time Time Time Current 12:12:40 Dload Upload Total Spent Left Speed 12:12:40 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 218k 0 --:--:-- --:--:-- --:--:-- 222k [Pipeline] sh 12:12:41 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 12:12:41 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 12:12:41 + sudo tee /etc/docker/daemon.new 12:12:41 { 12:12:41 "registry-mirrors": [ 12:12:41 "https://nexus3.edgexfoundry.org:10001" 12:12:41 ], 12:12:41 "bip": "10.250.0.254/24", 12:12:41 "hosts": [ 12:12:41 "tcp://0.0.0.0:5555", 12:12:41 "unix:///var/run/docker.sock" 12:12:41 ], 12:12:41 "mtu": 1458, 12:12:41 "selinux-enabled": true, 12:12:41 "seccomp-profile": "/etc/docker/seccomp.json" 12:12:41 } [Pipeline] sh 12:12:42 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 12:12:42 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:13:00 provisioning config files... 12:13:00 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/3@tmp/config1279188566366134395tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:13:01 ---> docker-login.sh 12:13:01 nexus3.edgexfoundry.org:10001 12:13:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:01 Configure a credential helper to remove this warning. See 12:13:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:01 12:13:01 Login Succeeded 12:13:01 nexus3.edgexfoundry.org:10002 12:13:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:02 Configure a credential helper to remove this warning. See 12:13:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:02 12:13:02 Login Succeeded 12:13:02 nexus3.edgexfoundry.org:10003 12:13:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:02 Configure a credential helper to remove this warning. See 12:13:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:02 12:13:02 Login Succeeded 12:13:02 nexus3.edgexfoundry.org:10004 12:13:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:03 Configure a credential helper to remove this warning. See 12:13:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:03 12:13:03 Login Succeeded 12:13:03 docker.io 12:13:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:03 Configure a credential helper to remove this warning. See 12:13:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:03 12:13:03 Login Succeeded 12:13:03 ---> docker-login.sh ends [Pipeline] } 12:13:03 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:13:04 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:13:04 ========================================================= 12:13:04 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 12:13:04 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 12:13:04 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine --build-arg MAKE=echo noop --target=builder . 12:13:04 Sending build context to Docker daemon 3.104MB 12:13:04 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 12:13:04 Step 2/10 : FROM ${BASE} AS builder 12:13:05 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 12:13:05 9b3977197b4f: Pulling fs layer 12:13:05 1a89e8eeedd5: Pulling fs layer 12:13:05 94645a83ff95: Pulling fs layer 12:13:05 3f3a8bcf1eab: Pulling fs layer 12:13:05 0c92f367c5e7: Pulling fs layer 12:13:05 3096ccb668a1: Pulling fs layer 12:13:05 e8cf19c19ddd: Pulling fs layer 12:13:05 a4caa8a26152: Pulling fs layer 12:13:05 3f3a8bcf1eab: Waiting 12:13:05 0c92f367c5e7: Waiting 12:13:05 3096ccb668a1: Waiting 12:13:05 e8cf19c19ddd: Waiting 12:13:05 a4caa8a26152: Waiting 12:13:05 94645a83ff95: Verifying Checksum 12:13:05 94645a83ff95: Download complete 12:13:05 1a89e8eeedd5: Verifying Checksum 12:13:05 1a89e8eeedd5: Download complete 12:13:05 0c92f367c5e7: Verifying Checksum 12:13:05 0c92f367c5e7: Download complete 12:13:05 3096ccb668a1: Verifying Checksum 12:13:05 3096ccb668a1: Download complete 12:13:05 9b3977197b4f: Verifying Checksum 12:13:05 9b3977197b4f: Download complete 12:13:05 e8cf19c19ddd: Verifying Checksum 12:13:05 e8cf19c19ddd: Download complete 12:13:06 9b3977197b4f: Pull complete 12:13:06 1a89e8eeedd5: Pull complete 12:13:06 94645a83ff95: Pull complete 12:13:07 a4caa8a26152: Verifying Checksum 12:13:07 a4caa8a26152: Download complete 12:13:07 3f3a8bcf1eab: Verifying Checksum 12:13:07 3f3a8bcf1eab: Download complete 12:13:20 3f3a8bcf1eab: Pull complete 12:13:20 0c92f367c5e7: Pull complete 12:13:20 3096ccb668a1: Pull complete 12:13:20 e8cf19c19ddd: Pull complete 12:13:25 a4caa8a26152: Pull complete 12:13:25 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 12:13:25 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 12:13:25 ---> 725f1c02e7f9 12:13:25 Step 3/10 : ARG MAKE='make build' 12:13:26 ---> Running in 3bbc0cb6c736 12:13:27 Removing intermediate container 3bbc0cb6c736 12:13:27 ---> 91f237b4f2de 12:13:27 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:13:27 ---> Running in 27a1f457969f 12:13:29 Removing intermediate container 27a1f457969f 12:13:29 ---> 90bf7a949415 12:13:29 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 12:13:29 ---> Running in ba23333c3978 12:13:30 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 12:13:31 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 12:13:32 (1/8) Installing openssh-keygen (8.8_p1-r1) 12:13:32 (2/8) Installing libedit (20210910.3.1-r0) 12:13:32 (3/8) Installing openssh-client-common (8.8_p1-r1) 12:13:32 (4/8) Installing openssh-client-default (8.8_p1-r1) 12:13:32 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 12:13:32 (6/8) Installing openssh-server-common (8.8_p1-r1) 12:13:33 (7/8) Installing openssh-server (8.8_p1-r1) 12:13:33 (8/8) Installing openssh (8.8_p1-r1) 12:13:33 Executing busybox-1.34.1-r3.trigger 12:13:33 OK: 226 MiB in 60 packages 12:13:34 Removing intermediate container ba23333c3978 12:13:34 ---> fe53155a3143 12:13:34 Step 6/10 : WORKDIR /device-modbus-go 12:13:34 ---> Running in 5a41c7e76d7e 12:13:35 Removing intermediate container 5a41c7e76d7e 12:13:35 ---> a355849dfcba 12:13:35 Step 7/10 : COPY go.mod vendor* ./ 12:13:35 ---> f0cc3343b551 12:13:35 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:13:35 ---> Running in f785192bcacd 12:14:22 Removing intermediate container f785192bcacd 12:14:22 ---> dd0d1104c2a2 12:14:22 Step 9/10 : COPY . . 12:14:22 ---> ec4749da04c9 12:14:22 Step 10/10 : RUN ${MAKE} 12:14:23 ---> Running in 68c43f78a574 12:14:24 noop 12:14:24 Removing intermediate container 68c43f78a574 12:14:24 ---> 486068cc542d 12:14:24 Successfully built 486068cc542d 12:14:24 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 12:14:25 + docker inspect -f . ci-base-image-arm64 12:14:25 . [Pipeline] withDockerContainer 12:14:25 prd-ubuntu20.04-docker-arm64-4c-16g-47546 does not seem to be running inside a container 12:14:25 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/3 -v /w/workspace/device-modbus-go/3:/w/workspace/device-modbus-go/3:rw,z -v /w/workspace/device-modbus-go/3@tmp:/w/workspace/device-modbus-go/3@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 ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 12:14:26 $ docker top c4b8db422ca239eac869a98b7187b8500e5c894ad7715b00348b876669300cc2 -eo pid,comm [Pipeline] { [Pipeline] sh 12:14:27 + go version 12:14:27 go version go1.17.6 linux/arm64 [Pipeline] } 12:14:27 $ docker stop --time=1 c4b8db422ca239eac869a98b7187b8500e5c894ad7715b00348b876669300cc2 12:14:29 $ docker rm -f c4b8db422ca239eac869a98b7187b8500e5c894ad7715b00348b876669300cc2 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 12:14:30 + docker inspect -f . ci-base-image-arm64 12:14:30 . [Pipeline] withDockerContainer 12:14:30 prd-ubuntu20.04-docker-arm64-4c-16g-47546 does not seem to be running inside a container 12:14:30 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/3 -v /w/workspace/device-modbus-go/3:/w/workspace/device-modbus-go/3:rw,z -v /w/workspace/device-modbus-go/3@tmp:/w/workspace/device-modbus-go/3@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 ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 12:14:31 $ docker top fc34f78d97f6420c57893f18642e4bb4b6e56d2a11f74b878feffec0deed7677 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 12:14:32 + make test 12:14:32 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 12:14:34 ? github.com/edgexfoundry/device-modbus-go [no test files] 12:16:11 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 12:16:11 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.065s coverage: 46.4% of statements 12:16:11 WARNING: Linting skipped (not on x86_64 or linter not installed) 12:16:11 CGO_ENABLED=1 GO111MODULE=on go vet ./... 12:16:26 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 12:16:26 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 12:16:26 ./bin/test-attribution-txt.sh [Pipeline] echo 12:16:28 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 12:16:28 $ docker stop --time=1 fc34f78d97f6420c57893f18642e4bb4b6e56d2a11f74b878feffec0deed7677 12:16:30 $ docker rm -f fc34f78d97f6420c57893f18642e4bb4b6e56d2a11f74b878feffec0deed7677 [Pipeline] // withDockerContainer [Pipeline] sh 12:16:31 + sudo chown -R jenkins:jenkins . [Pipeline] stash 12:16:31 Warning: overwriting stash ‘coverage-report’ 12:16:32 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 12:16:32 + sudo chown -R jenkins:jenkins . [Pipeline] sh 12:16:32 + ls -al . 12:16:32 total 180 12:16:32 drwxrwxr-x 9 jenkins jenkins 4096 May 10 12:16 . 12:16:32 drwxrwxr-x 4 jenkins jenkins 4096 May 10 12:12 .. 12:16:32 -rw-rw-r-- 1 jenkins jenkins 140 May 10 12:12 .dockerignore 12:16:32 drwxrwxr-x 8 jenkins jenkins 4096 May 10 12:12 .git 12:16:32 drwxrwxr-x 3 jenkins jenkins 4096 May 10 12:12 .github 12:16:32 -rw-rw-r-- 1 jenkins jenkins 331 May 10 12:12 .gitignore 12:16:32 -rw-rw-r-- 1 jenkins jenkins 41 May 10 12:12 .golangci.yml 12:16:32 -rw-rw-r-- 1 jenkins jenkins 9377 May 10 12:12 Attribution.txt 12:16:32 -rw-rw-r-- 1 jenkins jenkins 10001 May 10 12:12 CHANGELOG.md 12:16:32 -rw-rw-r-- 1 jenkins jenkins 1546 May 10 12:12 Dockerfile 12:16:32 -rw-rw-r-- 1 jenkins jenkins 677 May 10 12:12 GOVERNANCE.md 12:16:32 -rw-rw-r-- 1 jenkins jenkins 680 May 10 12:12 Jenkinsfile 12:16:32 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 12:12 LICENSE 12:16:32 -rw-rw-r-- 1 jenkins jenkins 1905 May 10 12:12 Makefile 12:16:32 -rw-rw-r-- 1 jenkins jenkins 622 May 10 12:12 OWNERS.md 12:16:32 -rw-rw-r-- 1 jenkins jenkins 3397 May 10 12:12 README.md 12:16:32 -rw-rw-r-- 1 jenkins jenkins 5 May 10 12:09 VERSION 12:16:32 drwxrwxr-x 2 jenkins jenkins 4096 May 10 12:12 bin 12:16:32 drwxrwxr-x 3 jenkins jenkins 4096 May 10 12:12 cmd 12:16:32 -rw-r--r-- 1 jenkins jenkins 24065 May 10 12:15 coverage.out 12:16:32 -rw-rw-r-- 1 jenkins jenkins 3399 May 10 12:12 go.mod 12:16:32 -rw-rw-r-- 1 jenkins jenkins 35558 May 10 12:12 go.sum 12:16:32 drwxrwxr-x 3 jenkins jenkins 4096 May 10 12:12 internal 12:16:32 drwxrwxr-x 2 jenkins jenkins 4096 May 10 12:12 simulator 12:16:32 drwxrwxr-x 4 jenkins jenkins 4096 May 10 12:12 snap 12:16:32 -rw-rw-r-- 1 jenkins jenkins 229 May 10 12:12 version.go [Pipeline] isUnix [Pipeline] sh 12:16:33 + docker build -t device-modbus-arm64 -f Dockerfile --build-arg BASE=ci-base-image-arm64 --build-arg MAKE=make build --build-arg ARCH=arm64 --label git_sha=8fe31c03d27ece93ff91a989a0b9f6025d8f231e --label arch=arm64 --label version=0.0.0 . 12:16:33 Sending build context to Docker daemon 3.129MB 12:16:33 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 12:16:33 Step 2/23 : FROM ${BASE} AS builder 12:16:33 ---> 486068cc542d 12:16:33 Step 3/23 : ARG MAKE='make build' 12:16:33 ---> Running in c7310ee3f920 12:16:34 Removing intermediate container c7310ee3f920 12:16:34 ---> 0afe86eb3ca3 12:16:34 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:16:34 ---> Running in 7255a3a1add3 12:16:36 Removing intermediate container 7255a3a1add3 12:16:36 ---> 3ce239e0947c 12:16:36 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 12:16:36 ---> Running in 30d0eacd5c59 12:16:37 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 12:16:37 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 12:16:38 OK: 226 MiB in 60 packages 12:16:39 Removing intermediate container 30d0eacd5c59 12:16:39 ---> ec0e46707bb5 12:16:39 Step 6/23 : WORKDIR /device-modbus-go 12:16:39 ---> Running in 8532ad0501f3 12:16:39 Removing intermediate container 8532ad0501f3 12:16:39 ---> 7bb99976808c 12:16:39 Step 7/23 : COPY go.mod vendor* ./ 12:16:40 ---> b7533477c996 12:16:40 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:16:40 ---> Running in 6cd327f35893 12:16:42 Removing intermediate container 6cd327f35893 12:16:42 ---> b9559c61eeb9 12:16:42 Step 9/23 : COPY . . 12:16:43 ---> 749bc7e27eb9 12:16:43 Step 10/23 : RUN ${MAKE} 12:16:43 ---> Running in 9095ea43622e 12:16:44 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-modbus ./cmd 12:18:51 Removing intermediate container 9095ea43622e 12:18:51 ---> 0c0cc56eae30 12:18:51 Step 11/23 : FROM alpine:3.14 12:18:51 3.14: Pulling from library/alpine 12:18:51 455c02918c45: Pulling fs layer 12:18:51 455c02918c45: Verifying Checksum 12:18:51 455c02918c45: Download complete 12:18:51 455c02918c45: Pull complete 12:18:51 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 12:18:51 Status: Downloaded newer image for alpine:3.14 12:18:51 ---> ac73e934f311 12:18:51 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 12:18:51 ---> Running in 3049a24ecf37 12:18:51 Removing intermediate container 3049a24ecf37 12:18:51 ---> a2bc801fe511 12:18:51 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:18:51 ---> Running in f4bc6c5ecacf 12:18:52 Removing intermediate container f4bc6c5ecacf 12:18:52 ---> a53aa8446a34 12:18:52 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 12:18:52 ---> Running in 3e89dca52209 12:18:53 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 12:18:54 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 12:18:55 (1/6) Installing dumb-init (1.2.5-r1) 12:18:55 (2/6) Installing libgcc (10.3.1_git20210424-r2) 12:18:55 (3/6) Installing libsodium (1.0.18-r0) 12:18:55 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 12:18:56 (5/6) Installing libzmq (4.3.4-r0) 12:18:56 (6/6) Installing zeromq (4.3.4-r0) 12:18:56 Executing busybox-1.33.1-r7.trigger 12:18:56 OK: 8 MiB in 20 packages 12:18:57 Removing intermediate container 3e89dca52209 12:18:57 ---> df5b92a4af25 12:18:57 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 12:18:58 ---> da1c366474e4 12:18:58 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 12:18:59 ---> 1275ae2a2764 12:18:59 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 12:19:00 ---> 9bb734a9ea11 12:19:00 Step 18/23 : EXPOSE 59901 12:19:00 ---> Running in 2c696995dbc9 12:19:00 Removing intermediate container 2c696995dbc9 12:19:00 ---> 49c0c1ca3319 12:19:00 Step 19/23 : ENTRYPOINT ["/device-modbus"] 12:19:00 ---> Running in f97270ff703c 12:19:00 Removing intermediate container f97270ff703c 12:19:00 ---> 64f98f1f839a 12:19:00 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 12:19:00 ---> Running in 3e06929805a1 12:19:01 Removing intermediate container 3e06929805a1 12:19:01 ---> 0af2223368bf 12:19:01 Step 21/23 : LABEL arch=arm64 12:19:01 ---> Running in 04a3d10b91c9 12:19:01 Removing intermediate container 04a3d10b91c9 12:19:01 ---> f2636aca1977 12:19:01 Step 22/23 : LABEL git_sha=8fe31c03d27ece93ff91a989a0b9f6025d8f231e 12:19:01 ---> Running in 171334ac537e 12:19:02 Removing intermediate container 171334ac537e 12:19:02 ---> c04b038a9303 12:19:02 Step 23/23 : LABEL version=0.0.0 12:19:02 ---> Running in b5acbf624b1b 12:19:02 Removing intermediate container b5acbf624b1b 12:19:02 ---> 69b40bf6b8c6 12:19:02 [Warning] One or more build-args [ARCH] were not consumed 12:19:02 Successfully built 69b40bf6b8c6 12:19:02 Successfully tagged device-modbus-arm64:latest [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 12:19:02 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:19:02 12:19:02 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 12:19:03 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:19:03 arm64: Pulling from edgex-lftools-log-publisher 12:19:03 8998bd30e6a1: Pulling fs layer 12:19:03 04944245beec: Pulling fs layer 12:19:03 699f458cf7ca: Pulling fs layer 12:19:03 765212b225bb: Pulling fs layer 12:19:03 f23df028b6ca: Pulling fs layer 12:19:03 d65c8cfc05b1: Pulling fs layer 12:19:03 2437ff75d9bd: Pulling fs layer 12:19:03 f23df028b6ca: Waiting 12:19:03 d65c8cfc05b1: Waiting 12:19:03 765212b225bb: Waiting 12:19:03 2437ff75d9bd: Waiting 12:19:03 04944245beec: Verifying Checksum 12:19:03 04944245beec: Download complete 12:19:03 765212b225bb: Verifying Checksum 12:19:03 765212b225bb: Download complete 12:19:03 f23df028b6ca: Verifying Checksum 12:19:03 f23df028b6ca: Download complete 12:19:03 d65c8cfc05b1: Verifying Checksum 12:19:03 d65c8cfc05b1: Download complete 12:19:03 699f458cf7ca: Verifying Checksum 12:19:03 699f458cf7ca: Download complete 12:19:03 8998bd30e6a1: Download complete 12:19:06 2437ff75d9bd: Verifying Checksum 12:19:06 2437ff75d9bd: Download complete 12:19:08 8998bd30e6a1: Pull complete 12:19:08 04944245beec: Pull complete 12:19:10 699f458cf7ca: Pull complete 12:19:10 765212b225bb: Pull complete 12:19:11 f23df028b6ca: Pull complete 12:19:11 d65c8cfc05b1: Pull complete 12:19:26 2437ff75d9bd: Pull complete 12:19:26 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 12:19:26 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:19:26 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 12:19:27 prd-ubuntu20.04-docker-arm64-4c-16g-47546 does not seem to be running inside a container 12:19:27 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/3 -v /w/workspace/device-modbus-go/3:/w/workspace/device-modbus-go/3:rw,z -v /w/workspace/device-modbus-go/3@tmp:/w/workspace/device-modbus-go/3@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 ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 12:19:30 $ docker top b65aa4c9e587fd222e430374b476f21ee9163836bd772ac282d781cda93db35d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:19:31 ---> job-cost.sh 12:19:31 lf-activate-venv: SKIPPING 12:19:31 INFO: No Stack... 12:19:31 INFO: Retrieving Pricing Info for: v3-standard-4 12:19:32 INFO: Archiving Costs [Pipeline] sh 12:19:32 + cut -d, -f6 12:19:32 + cat /w/workspace/device-modbus-go/3/archives/cost.csv [Pipeline] lock 12:19:33 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-345-3-stack-cost] 12:19:33 Resource [jenkins-edgexfoundry-device-modbus-go-PR-345-3-stack-cost] did not exist. Created. 12:19:33 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-345-3-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 12:19:33 /w/workspace/device-modbus-go/3@tmp/durable-883d5048/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 12:19:34 + echo total: 0.10999999940395355 [Pipeline] stash 12:19:34 Warning: overwriting stash ‘stack-cost’ 12:19:34 Stashed 1 file(s) [Pipeline] } 12:19:34 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-345-3-stack-cost] [Pipeline] // lock [Pipeline] } 12:19:34 $ docker stop --time=1 b65aa4c9e587fd222e430374b476f21ee9163836bd772ac282d781cda93db35d 12:19:36 $ docker rm -f b65aa4c9e587fd222e430374b476f21ee9163836bd772ac282d781cda93db35d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [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) [Pipeline] unstash [Pipeline] configFileProvider 12:19:36 provisioning config files... 12:19:36 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config2711871365643704533tmp [Pipeline] { [Pipeline] sh 12:19:36 + set +x 12:19:36 + + curl -s https://codecov.io/bash 12:19:36 bash -s -- 12:19:36 12:19:36 _____ _ 12:19:36 / ____| | | 12:19:36 | | ___ __| | ___ ___ _____ __ 12:19:36 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 12:19:36 | |___| (_) | (_| | __/ (_| (_) \ V / 12:19:36 \_____\___/ \__,_|\___|\___\___/ \_/ 12:19:36 Bash-1.0.6 12:19:36 12:19:36 12:19:36 ==> git version 2.25.1 found 12:19:36 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 12:19:36 Release-Date: 2020-01-08 12:19:36 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 12:19:36 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 12:19:36 ==> Jenkins CI detected. 12:19:36 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-345 12:19:36 project root: . 12:19:36 --> token set from env 12:19:36 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 12:19:36 ==> Running gcov in . (disable via -X gcov) 12:19:36 ==> Python coveragepy not found 12:19:36 ==> Searching for coverage reports in: 12:19:36 + . 12:19:36 -> Found 1 reports 12:19:36 ==> Detecting git/mercurial file structure 12:19:36 ==> Reading reports 12:19:36 + ./coverage.out bytes=24065 12:19:36 ==> Appending adjustments 12:19:36 https://docs.codecov.io/docs/fixing-reports 12:19:37 + Found adjustments 12:19:37 ==> Gzipping contents 12:19:37 4.0K /tmp/codecov.Q9O0yh.gz 12:19:37 ==> Uploading reports 12:19:37 url: https://codecov.io 12:19:37 query: branch=PR-345&commit=8fe31c03d27ece93ff91a989a0b9f6025d8f231e&build=3&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-345%2F3%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=345&job=&cmd_args= 12:19:37 -> Pinging Codecov 12:19:37 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-345&commit=8fe31c03d27ece93ff91a989a0b9f6025d8f231e&build=3&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-345%2F3%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=345&job=&cmd_args= 12:19:37 -> Uploading to 12:19:37 https://storage.googleapis.com/codecov/v4/raw/2022-05-10/55DBCA73C666E3227836607328DD7E49/8fe31c03d27ece93ff91a989a0b9f6025d8f231e/0e57f954-6488-4109-b0dd-c81dbfa499d7.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220510%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220510T121937Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=d5cd99df89407e11dd097ed0570c519cb70ee26985b82a642561e59fad66d8a1 12:19:37 % Total % Received % Xferd Average Speed Time Time Time Current 12:19:37 Dload Upload Total Spent Left Speed 12:19:37 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4018 0 0 100 4018 0 18099 --:--:-- --:--:-- --:--:-- 18099 12:19:37 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-modbus-go/commit/8fe31c03d27ece93ff91a989a0b9f6025d8f231e [Pipeline] } 12:19:37 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 12:19:38 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-345/archives ] 12:19:38 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-345/archives 12:19:38 total 16 12:19:38 drwxr-xr-x 3 root root 4096 May 10 12:11 . 12:19:38 drwxrwxr-x 11 jenkins jenkins 4096 May 10 12:11 .. 12:19:38 drwxr-xr-x 2 root root 4096 May 10 12:11 cost 12:19:38 -rw-r--r-- 1 root root 87 May 10 12:11 cost.csv 12:19:38 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-345/archives 12:19:38 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-345/archives 12:19:38 total 16 12:19:38 drwxr-xr-x 3 jenkins jenkins 4096 May 10 12:11 . 12:19:38 drwxrwxr-x 11 jenkins jenkins 4096 May 10 12:11 .. 12:19:38 drwxr-xr-x 2 jenkins jenkins 4096 May 10 12:11 cost 12:19:38 -rw-r--r-- 1 jenkins jenkins 87 May 10 12:11 cost.csv [Pipeline] libraryResource [Pipeline] sh 12:19:38 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 12:19:39 ---> package-listing.sh 12:19:39 ++ facter osfamily 12:19:39 ++ tr '[:upper:]' '[:lower:]' 12:19:39 + OS_FAMILY=debian 12:19:39 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-345 12:19:39 + START_PACKAGES=/tmp/packages_start.txt 12:19:39 + END_PACKAGES=/tmp/packages_end.txt 12:19:39 + DIFF_PACKAGES=/tmp/packages_diff.txt 12:19:39 + PACKAGES=/tmp/packages_start.txt 12:19:39 + '[' /w/workspace/xfoundry_device-modbus-go_PR-345 ']' 12:19:39 + PACKAGES=/tmp/packages_end.txt 12:19:39 + case "${OS_FAMILY}" in 12:19:39 + dpkg -l 12:19:39 + grep '^ii' 12:19:39 + '[' -f /tmp/packages_start.txt ']' 12:19:39 + '[' -f /tmp/packages_end.txt ']' 12:19:39 + diff /tmp/packages_start.txt /tmp/packages_end.txt 12:19:39 + '[' /w/workspace/xfoundry_device-modbus-go_PR-345 ']' 12:19:39 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-345/archives/ 12:19:39 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-345/archives/ [Pipeline] echo 12:19:39 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/xfoundry_device-modbus-go_PR-345/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 12:19:40 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 12:19:40 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:19:40 . [Pipeline] withDockerContainer 12:19:40 prd-ubuntu20.04-docker-8c-8g-47542 does not seem to be running inside a container 12:19:40 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/xfoundry_device-modbus-go_PR-345/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-345 -v /w/workspace/xfoundry_device-modbus-go_PR-345:/w/workspace/xfoundry_device-modbus-go_PR-345:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-345@tmp:/w/workspace/xfoundry_device-modbus-go_PR-345@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 ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 12:19:40 $ docker top 5d1a0b7f92833b6b7b78246384c33ce95ac96b38c49a8df3ac8b195c1db62f43 -eo pid,comm [Pipeline] { [Pipeline] sh 12:19:41 + touch /tmp/pre-build-complete [Pipeline] sh 12:19:41 + mkdir -p /var/log/sysstat [Pipeline] sh 12:19:41 + ls /var/log/sa-host 12:19:41 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:19:41 provisioning config files... 12:19:41 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config5238314315862214310tmp [Pipeline] { [Pipeline] echo 12:19:42 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 12:19:42 ---> create-netrc.sh [Pipeline] } 12:19:42 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 12:19:42 ---> python-tools-install.sh [Pipeline] echo 12:19:42 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 12:19:43 ---> sudo-logs.sh 12:19:43 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 12:19:43 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 12:19:43 ---> job-cost.sh 12:19:43 lf-activate-venv: SKIPPING 12:19:43 DEBUG: total: 0.2199999988079071 12:19:43 INFO: Retrieving Stack Cost... 12:19:43 INFO: Retrieving Pricing Info for: v3-standard-8 12:19:44 INFO: Archiving Costs [Pipeline] echo 12:19:44 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 12:19:44 ---> logs-deploy.sh 12:19:44 lf-activate-venv: SKIPPING 12:19:44 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-345/3 12:19:44 INFO: archiving workspace using pattern(s): 12:19:45 Archives upload complete. 12:19:45 INFO: archiving logs to Nexus