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 14ff68196de14f84e156ad11d70fc60c7e109548 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-ssh15527110036744108503.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-ssh8937555898045208609.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-ssh16371231488116114394.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-ssh15538850817262083575.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-ssh559221735677614256.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 ‘prd-ubuntu20.04-docker-8c-8g-47527’ Running on prd-ubuntu20.04-docker-8c-8g-47529 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 14ff68196de14f84e156ad11d70fc60c7e109548 Merge succeeded, producing 14ff68196de14f84e156ad11d70fc60c7e109548 Checking out Revision 14ff68196de14f84e156ad11d70fc60c7e109548 (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 14ff68196de14f84e156ad11d70fc60c7e109548 # 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 14ff68196de14f84e156ad11d70fc60c7e109548 # timeout=10 Commit message: "build(deps): go mod tidy" > git rev-list --no-walk 3ea26778437bdff40bced88224eec1767570a456 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 11:45:23 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 11:45:23 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 11:45:23 ========================================================= 11:45:23 EdgeX Global Pipelines Version Info 11:45:23 ========================================================= [Pipeline] libraryResource [Pipeline] sh 11:45:23 ------------------- 11:45:23 stable info: 11:45:23 ------------------- 11:45:23 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 11:45:23 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 11:45:23 Message: update stable to v1.0.227 11:45:24 ------------------- 11:45:24 experimental info: 11:45:24 ------------------- 11:45:24 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 11:45:24 Commit SHA: 821e2ffd3fa43eddc5db18cf710cdace1a36094c 11:45:24 Message: update experimental to v1.0.229 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-345 [Pipeline] echo 11:45:24 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-345 [Pipeline] echo 11:45:25 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-345 [Pipeline] echo 11:45:25 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 14ff68196de14f84e156ad11d70fc60c7e109548 [Pipeline] echo 11:45:25 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 14ff681 [Pipeline] echo 11:45:25 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:45:25 provisioning config files... 11:45:25 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config4391600871872699063tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:45:25 ---> docker-login.sh 11:45:25 nexus3.edgexfoundry.org:10001 11:45:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:45:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:45:25 Configure a credential helper to remove this warning. See 11:45:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:45:25 11:45:25 Login Succeeded 11:45:25 nexus3.edgexfoundry.org:10002 11:45:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:45:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:45:25 Configure a credential helper to remove this warning. See 11:45:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:45:25 11:45:25 Login Succeeded 11:45:25 nexus3.edgexfoundry.org:10003 11:45:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:45:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:45:25 Configure a credential helper to remove this warning. See 11:45:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:45:25 11:45:25 Login Succeeded 11:45:25 nexus3.edgexfoundry.org:10004 11:45:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:45:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:45:26 Configure a credential helper to remove this warning. See 11:45:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:45:26 11:45:26 Login Succeeded 11:45:26 docker.io 11:45:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:45:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:45:26 Configure a credential helper to remove this warning. See 11:45:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:45:26 11:45:26 Login Succeeded 11:45:26 ---> docker-login.sh ends [Pipeline] } 11:45:26 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 11:45:26 + git rev-list -1 --merges 14ff68196de14f84e156ad11d70fc60c7e109548~1..14ff68196de14f84e156ad11d70fc60c7e109548 [Pipeline] echo 11:45:26 -----------> git rev-list -1 --merges 14ff68196de14f84e156ad11d70fc60c7e109548~1..14ff68196de14f84e156ad11d70fc60c7e109548 14ff68196de14f84e156ad11d70fc60c7e109548 [false] [Pipeline] sh 11:45:27 + git log --format=format:%s -1 14ff68196de14f84e156ad11d70fc60c7e109548 [Pipeline] echo 11:45:27 ========================================================= 11:45:27 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 11:45:27 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 11:45:27 + git log --format=format:%s -1 14ff68196de14f84e156ad11d70fc60c7e109548 [Pipeline] echo 11:45:27 [semverPrep] GIT_COMMIT: 14ff68196de14f84e156ad11d70fc60c7e109548, Commit Message: build(deps): go mod tidy [Pipeline] echo 11:45:27 [semverPrep] This is not a build commit. [Pipeline] sh 11:45:28 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 11:45:28 + grep -v github /etc/ssh/ssh_known_hosts 11:45:28 + [ -e /tmp/ssh_known_hosts ] 11:45:28 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 11:45:28 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 11:45:28 + sudo tee -a /etc/ssh/ssh_known_hosts 11:45:28 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 11:45:28 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 11:45:28 11:45:28 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 11:45:28 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 11:45:28 latest: Pulling from edgex-devops/py-git-semver 11:45:28 1fe172e4850f: Pulling fs layer 11:45:28 caf521ccaac6: Pulling fs layer 11:45:28 3ead6fa29328: Pulling fs layer 11:45:28 5c2a1cbceb83: Pulling fs layer 11:45:28 a8d5f1318db7: Pulling fs layer 11:45:28 c427282e49a2: Pulling fs layer 11:45:28 1827001aaf11: Pulling fs layer 11:45:28 0714d37db230: Pulling fs layer 11:45:28 ac28cf19c067: Pulling fs layer 11:45:28 ca983d60f3e2: Pulling fs layer 11:45:28 9f894cec8388: Pulling fs layer 11:45:28 c427282e49a2: Waiting 11:45:28 1827001aaf11: Waiting 11:45:28 0714d37db230: Waiting 11:45:28 ac28cf19c067: Waiting 11:45:28 9f894cec8388: Waiting 11:45:28 ca983d60f3e2: Waiting 11:45:28 a8d5f1318db7: Waiting 11:45:28 caf521ccaac6: Download complete 11:45:28 5c2a1cbceb83: Verifying Checksum 11:45:28 5c2a1cbceb83: Download complete 11:45:28 3ead6fa29328: Verifying Checksum 11:45:28 3ead6fa29328: Download complete 11:45:28 a8d5f1318db7: Verifying Checksum 11:45:28 a8d5f1318db7: Download complete 11:45:28 c427282e49a2: Download complete 11:45:28 0714d37db230: Verifying Checksum 11:45:28 0714d37db230: Download complete 11:45:28 ac28cf19c067: Download complete 11:45:28 ca983d60f3e2: Verifying Checksum 11:45:28 ca983d60f3e2: Download complete 11:45:28 9f894cec8388: Download complete 11:45:28 1fe172e4850f: Verifying Checksum 11:45:28 1fe172e4850f: Download complete 11:45:29 1827001aaf11: Verifying Checksum 11:45:29 1827001aaf11: Download complete 11:45:30 1fe172e4850f: Pull complete 11:45:30 caf521ccaac6: Pull complete 11:45:31 3ead6fa29328: Pull complete 11:45:31 5c2a1cbceb83: Pull complete 11:45:31 a8d5f1318db7: Pull complete 11:45:31 c427282e49a2: Pull complete 11:45:34 1827001aaf11: Pull complete 11:45:34 0714d37db230: Pull complete 11:45:34 ac28cf19c067: Pull complete 11:45:34 ca983d60f3e2: Pull complete 11:45:34 9f894cec8388: Pull complete 11:45:34 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 11:45:34 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 11:45:34 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 11:45:34 prd-ubuntu20.04-docker-8c-8g-47529 does not seem to be running inside a container 11:45:34 $ 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 11:45:36 $ docker top 3a38d921ff2b32725e2dcdcd4cbb4f408ff9aae53bdc9409955d83aeaff3a875 -eo pid,comm 11:45:36 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). 11:45:36 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 11:45:36 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 11:45:36 [ssh-agent] Looking for ssh-agent implementation... 11:45:36 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 11:45:36 $ docker exec 3a38d921ff2b32725e2dcdcd4cbb4f408ff9aae53bdc9409955d83aeaff3a875 ssh-agent 11:45:36 SSH_AUTH_SOCK=/tmp/ssh-CXfdj9TImgQd/agent.33 11:45:36 SSH_AGENT_PID=39 11:45:36 Running ssh-add (command line suppressed) 11:45:36 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_1984748113734501511.key (/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_1984748113734501511.key) 11:45:36 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 11:45:36 + git tag --points-at HEAD [Pipeline] } 11:45:37 $ docker exec --env ******** --env ******** 3a38d921ff2b32725e2dcdcd4cbb4f408ff9aae53bdc9409955d83aeaff3a875 ssh-agent -k 11:45:37 unset SSH_AUTH_SOCK; 11:45:37 unset SSH_AGENT_PID; 11:45:37 echo Agent pid 39 killed; 11:45:37 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 11:45:37 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 11:45:37 [ssh-agent] Looking for ssh-agent implementation... 11:45:37 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 11:45:37 $ docker exec 3a38d921ff2b32725e2dcdcd4cbb4f408ff9aae53bdc9409955d83aeaff3a875 ssh-agent 11:45:37 SSH_AUTH_SOCK=/tmp/ssh-ytemjkGloyvt/agent.73 11:45:37 SSH_AGENT_PID=80 11:45:37 Running ssh-add (command line suppressed) 11:45:37 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_8877248271311623441.key (/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_8877248271311623441.key) 11:45:37 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 11:45:37 + git semver init 11:45:38 2022-05-10 11:45:38,178 [run_init] DEBUG init version:0.0.0 force:False 11:45:38 2022-05-10 11:45:38,179 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-345/.semver 11:45:38 2022-05-10 11:45:38,180 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-345/.semver 11:45:38 2022-05-10 11:45:38,181 [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) 11:45:39 2022-05-10 11:45:39,253 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-345/.git/info/exclude 11:45:39 2022-05-10 11:45:39,253 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-345/.semver/PR-345 with force:False 11:45:39 2022-05-10 11:45:39,253 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-345/.semver/PR-345 11:45:39 2022-05-10 11:45:39,256 [execute] INFO git cat-file --batch-check 11:45:39 2022-05-10 11:45:39,257 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-345/.semver, universal_newlines=False, shell=None, istream=) 11:45:39 2022-05-10 11:45:39,263 [execute] INFO git cat-file --batch 11:45:39 2022-05-10 11:45:39,264 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-345/.semver, universal_newlines=False, shell=None, istream=) 11:45:39 2022-05-10 11:45:39,270 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-345/.semver/PR-345 11:45:39 0.0.0 [Pipeline] } 11:45:39 $ docker exec --env ******** --env ******** 3a38d921ff2b32725e2dcdcd4cbb4f408ff9aae53bdc9409955d83aeaff3a875 ssh-agent -k 11:45:39 unset SSH_AUTH_SOCK; 11:45:39 unset SSH_AGENT_PID; 11:45:39 echo Agent pid 80 killed; 11:45:39 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 11:45:40 + git semver [Pipeline] } 11:45:40 $ docker stop --time=1 3a38d921ff2b32725e2dcdcd4cbb4f408ff9aae53bdc9409955d83aeaff3a875 11:45:41 $ docker rm -f 3a38d921ff2b32725e2dcdcd4cbb4f408ff9aae53bdc9409955d83aeaff3a875 [Pipeline] // withDockerContainer [Pipeline] sh 11:45:42 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 11:45:42 Stashed 1 file(s) [Pipeline] echo 11:45:42 [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 11:45:42 provisioning config files... 11:45:42 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config95868757694492946tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:45:42 ---> docker-login.sh 11:45:42 nexus3.edgexfoundry.org:10001 11:45:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:45:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:45:42 Configure a credential helper to remove this warning. See 11:45:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:45:42 11:45:42 Login Succeeded 11:45:42 nexus3.edgexfoundry.org:10002 11:45:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:45:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:45:43 Configure a credential helper to remove this warning. See 11:45:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:45:43 11:45:43 Login Succeeded 11:45:43 nexus3.edgexfoundry.org:10003 11:45:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:45:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:45:43 Configure a credential helper to remove this warning. See 11:45:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:45:43 11:45:43 Login Succeeded 11:45:43 nexus3.edgexfoundry.org:10004 11:45:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:45:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:45:43 Configure a credential helper to remove this warning. See 11:45:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:45:43 11:45:43 Login Succeeded 11:45:43 docker.io 11:45:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:45:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:45:43 Configure a credential helper to remove this warning. See 11:45:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:45:43 11:45:43 Login Succeeded 11:45:43 ---> docker-login.sh ends [Pipeline] } 11:45:43 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 11:45:43 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 11:45:43 ========================================================= 11:45:43 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 11:45:43 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 11:45:43 + 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 . 11:45:43 Sending build context to Docker daemon 5.915MB 11:45:43 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 11:45:43 Step 2/10 : FROM ${BASE} AS builder 11:45:43 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 11:45:43 59bf1c3509f3: Pulling fs layer 11:45:43 666ba61612fd: Pulling fs layer 11:45:43 8ed8ca486205: Pulling fs layer 11:45:43 4fe6c5a15a65: Pulling fs layer 11:45:43 22a0e8bec74d: Pulling fs layer 11:45:43 ca2b28591e48: Pulling fs layer 11:45:43 a51346096db8: Pulling fs layer 11:45:43 daebc70d1ce1: Pulling fs layer 11:45:43 4fe6c5a15a65: Waiting 11:45:43 ca2b28591e48: Waiting 11:45:43 a51346096db8: Waiting 11:45:43 0e18a0eac166: Pulling fs layer 11:45:43 daebc70d1ce1: Waiting 11:45:43 8ed8ca486205: Verifying Checksum 11:45:43 8ed8ca486205: Download complete 11:45:44 666ba61612fd: Verifying Checksum 11:45:44 666ba61612fd: Download complete 11:45:44 22a0e8bec74d: Verifying Checksum 11:45:44 22a0e8bec74d: Download complete 11:45:44 ca2b28591e48: Verifying Checksum 11:45:44 ca2b28591e48: Download complete 11:45:44 a51346096db8: Download complete 11:45:44 59bf1c3509f3: Verifying Checksum 11:45:44 59bf1c3509f3: Download complete 11:45:44 daebc70d1ce1: Verifying Checksum 11:45:44 daebc70d1ce1: Download complete 11:45:44 59bf1c3509f3: Pull complete 11:45:44 666ba61612fd: Pull complete 11:45:44 8ed8ca486205: Pull complete 11:45:44 0e18a0eac166: Verifying Checksum 11:45:44 4fe6c5a15a65: Verifying Checksum 11:45:44 4fe6c5a15a65: Download complete 11:45:49 4fe6c5a15a65: Pull complete 11:45:49 22a0e8bec74d: Pull complete 11:45:49 ca2b28591e48: Pull complete 11:45:49 a51346096db8: Pull complete 11:45:49 daebc70d1ce1: Pull complete 11:45:51 0e18a0eac166: Pull complete 11:45:51 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 11:45:51 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 11:45:51 ---> f018257e8ee9 11:45:51 Step 3/10 : ARG MAKE='make build' 11:45:53 ---> Running in 96791edf0a62 11:45:53 Removing intermediate container 96791edf0a62 11:45:53 ---> a2813ab3a936 11:45:53 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:45:53 ---> Running in 3eae6560a0eb 11:45:53 Removing intermediate container 3eae6560a0eb 11:45:53 ---> 8282c61b038b 11:45:53 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 11:45:53 ---> Running in af963e28f3c6 11:45:54 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 11:45:55 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 11:45:55 (1/8) Installing openssh-keygen (8.8_p1-r1) 11:45:55 (2/8) Installing libedit (20210910.3.1-r0) 11:45:55 (3/8) Installing openssh-client-common (8.8_p1-r1) 11:45:55 (4/8) Installing openssh-client-default (8.8_p1-r1) 11:45:55 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 11:45:55 (6/8) Installing openssh-server-common (8.8_p1-r1) 11:45:55 (7/8) Installing openssh-server (8.8_p1-r1) 11:45:55 (8/8) Installing openssh (8.8_p1-r1) 11:45:56 Executing busybox-1.34.1-r3.trigger 11:45:56 OK: 226 MiB in 60 packages 11:45:56 Removing intermediate container af963e28f3c6 11:45:56 ---> d6a0803797aa 11:45:56 Step 6/10 : WORKDIR /device-modbus-go 11:45:56 ---> Running in 290a4a1eba04 11:45:56 Removing intermediate container 290a4a1eba04 11:45:56 ---> dcfade8d1376 11:45:56 Step 7/10 : COPY go.mod vendor* ./ 11:45:57 ---> b8c47e048b1d 11:45:57 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:45:57 ---> Running in 9680566fbff2 11:45:57 Still waiting to schedule task 11:45:57 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-47528’ 11:46:11 Removing intermediate container 9680566fbff2 11:46:11 ---> 484fe7f04134 11:46:11 Step 9/10 : COPY . . 11:46:11 ---> b481503f57c6 11:46:11 Step 10/10 : RUN ${MAKE} 11:46:11 ---> Running in 9cb2ab95c0db 11:46:11 noop 11:46:11 Removing intermediate container 9cb2ab95c0db 11:46:11 ---> a68a61bb4803 11:46:11 Successfully built a68a61bb4803 11:46:11 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 11:46:12 + docker inspect -f . ci-base-image-x86_64 11:46:12 . [Pipeline] withDockerContainer 11:46:12 prd-ubuntu20.04-docker-8c-8g-47529 does not seem to be running inside a container 11:46:12 $ 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 11:46:12 $ docker top fcba6c1d62cccf657af10f3193acedfdb737deee4cbd58363362b9337d8766c3 -eo pid,comm [Pipeline] { [Pipeline] sh 11:46:13 + go version 11:46:13 go version go1.17.6 linux/amd64 [Pipeline] } 11:46:13 $ docker stop --time=1 fcba6c1d62cccf657af10f3193acedfdb737deee4cbd58363362b9337d8766c3 11:46:14 $ docker rm -f fcba6c1d62cccf657af10f3193acedfdb737deee4cbd58363362b9337d8766c3 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 11:46:14 + docker inspect -f . ci-base-image-x86_64 11:46:14 . [Pipeline] withDockerContainer 11:46:14 prd-ubuntu20.04-docker-8c-8g-47529 does not seem to be running inside a container 11:46:15 $ 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 11:46:15 $ docker top de31121fa4dbb67c88dde9a095941fa1eab672007bb7d95ba129ffb5d728e6ed -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 11:46:15 + make test 11:46:15 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 11:46:16 ? github.com/edgexfoundry/device-modbus-go [no test files] 11:46:26 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 11:46:26 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.014s coverage: 46.4% of statements 11:46:34 CGO_ENABLED=1 GO111MODULE=on go vet ./... 11:46:37 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 11:46:37 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 11:46:37 ./bin/test-attribution-txt.sh [Pipeline] echo 11:46:37 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 11:46:37 $ docker stop --time=1 de31121fa4dbb67c88dde9a095941fa1eab672007bb7d95ba129ffb5d728e6ed 11:46:39 $ docker rm -f de31121fa4dbb67c88dde9a095941fa1eab672007bb7d95ba129ffb5d728e6ed [Pipeline] // withDockerContainer [Pipeline] sh 11:46:40 + sudo chown -R jenkins:jenkins . [Pipeline] stash 11:46:40 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 11:46:40 + sudo chown -R jenkins:jenkins . [Pipeline] sh 11:46:41 + ls -al . 11:46:41 total 184 11:46:41 drwxrwxr-x 10 jenkins jenkins 4096 May 10 11:46 . 11:46:41 drwxrwxr-x 4 jenkins jenkins 4096 May 10 11:45 .. 11:46:41 -rw-rw-r-- 1 jenkins jenkins 140 May 10 11:45 .dockerignore 11:46:41 drwxrwxr-x 8 jenkins jenkins 4096 May 10 11:45 .git 11:46:41 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:45 .github 11:46:41 -rw-rw-r-- 1 jenkins jenkins 331 May 10 11:45 .gitignore 11:46:41 -rw-rw-r-- 1 jenkins jenkins 41 May 10 11:45 .golangci.yml 11:46:41 drwxr-xr-x 3 jenkins jenkins 4096 May 10 11:45 .semver 11:46:41 -rw-rw-r-- 1 jenkins jenkins 9377 May 10 11:45 Attribution.txt 11:46:41 -rw-rw-r-- 1 jenkins jenkins 10001 May 10 11:45 CHANGELOG.md 11:46:41 -rw-rw-r-- 1 jenkins jenkins 1546 May 10 11:45 Dockerfile 11:46:41 -rw-rw-r-- 1 jenkins jenkins 677 May 10 11:45 GOVERNANCE.md 11:46:41 -rw-rw-r-- 1 jenkins jenkins 680 May 10 11:45 Jenkinsfile 11:46:41 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 11:45 LICENSE 11:46:41 -rw-rw-r-- 1 jenkins jenkins 1905 May 10 11:45 Makefile 11:46:41 -rw-rw-r-- 1 jenkins jenkins 622 May 10 11:45 OWNERS.md 11:46:41 -rw-rw-r-- 1 jenkins jenkins 3397 May 10 11:45 README.md 11:46:41 -rw-rw-r-- 1 jenkins jenkins 5 May 10 11:45 VERSION 11:46:41 drwxrwxr-x 2 jenkins jenkins 4096 May 10 11:45 bin 11:46:41 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:45 cmd 11:46:41 -rw-r--r-- 1 jenkins jenkins 24065 May 10 11:46 coverage.out 11:46:41 -rw-rw-r-- 1 jenkins jenkins 3399 May 10 11:45 go.mod 11:46:41 -rw-rw-r-- 1 jenkins jenkins 35558 May 10 11:45 go.sum 11:46:41 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:45 internal 11:46:41 drwxrwxr-x 2 jenkins jenkins 4096 May 10 11:45 simulator 11:46:41 drwxrwxr-x 4 jenkins jenkins 4096 May 10 11:45 snap 11:46:41 -rw-rw-r-- 1 jenkins jenkins 229 May 10 11:45 version.go [Pipeline] isUnix [Pipeline] sh 11:46:41 + 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=14ff68196de14f84e156ad11d70fc60c7e109548 --label arch=amd64 --label version=0.0.0 . 11:46:41 Sending build context to Docker daemon 5.94MB 11:46:41 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 11:46:41 Step 2/23 : FROM ${BASE} AS builder 11:46:41 ---> a68a61bb4803 11:46:41 Step 3/23 : ARG MAKE='make build' 11:46:41 ---> Running in 79f919b199b2 11:46:41 Removing intermediate container 79f919b199b2 11:46:41 ---> 30cd7e40b6e2 11:46:41 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:46:41 ---> Running in 2534e97882a1 11:46:42 Removing intermediate container 2534e97882a1 11:46:42 ---> 1839309c0fd1 11:46:42 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 11:46:42 ---> Running in 8c451e083674 11:46:42 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 11:46:43 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 11:46:43 OK: 226 MiB in 60 packages 11:46:43 Removing intermediate container 8c451e083674 11:46:43 ---> 1a8c59939693 11:46:43 Step 6/23 : WORKDIR /device-modbus-go 11:46:43 ---> Running in e2c7094bfa3b 11:46:44 Removing intermediate container e2c7094bfa3b 11:46:44 ---> 7546f03cfdc3 11:46:44 Step 7/23 : COPY go.mod vendor* ./ 11:46:44 ---> f5b0ef3f259f 11:46:44 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:46:44 ---> Running in e0fae1a63bf5 11:46:45 Removing intermediate container e0fae1a63bf5 11:46:45 ---> 70b3d3a29537 11:46:45 Step 9/23 : COPY . . 11:46:45 ---> bdadec38026d 11:46:45 Step 10/23 : RUN ${MAKE} 11:46:45 ---> Running in 7bc4d318ab38 11:46:45 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 11:47:07 Removing intermediate container 7bc4d318ab38 11:47:07 ---> b19d3a481166 11:47:07 Step 11/23 : FROM alpine:3.14 11:47:07 3.14: Pulling from library/alpine 11:47:07 8663204ce13b: Pulling fs layer 11:47:07 8663204ce13b: Verifying Checksum 11:47:07 8663204ce13b: Download complete 11:47:07 8663204ce13b: Pull complete 11:47:07 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 11:47:07 Status: Downloaded newer image for alpine:3.14 11:47:07 ---> e04c818066af 11:47:07 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 11:47:07 ---> Running in 4695e305bed9 11:47:07 Removing intermediate container 4695e305bed9 11:47:07 ---> 33289ea3ec9f 11:47:07 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:47:07 ---> Running in 15ea87eeef29 11:47:07 Removing intermediate container 15ea87eeef29 11:47:07 ---> 2f571490a164 11:47:07 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 11:47:07 ---> Running in 5607ee2c0c5a 11:47:07 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 11:47:08 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 11:47:08 (1/6) Installing dumb-init (1.2.5-r1) 11:47:08 (2/6) Installing libgcc (10.3.1_git20210424-r2) 11:47:08 (3/6) Installing libsodium (1.0.18-r0) 11:47:08 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 11:47:08 (5/6) Installing libzmq (4.3.4-r0) 11:47:08 (6/6) Installing zeromq (4.3.4-r0) 11:47:09 Executing busybox-1.33.1-r7.trigger 11:47:09 OK: 8 MiB in 20 packages 11:47:09 Removing intermediate container 5607ee2c0c5a 11:47:09 ---> f12b6970313c 11:47:09 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 11:47:10 ---> 0333b6e81856 11:47:10 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 11:47:10 ---> 7bc075212ef8 11:47:10 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 11:47:10 ---> f38115d045f3 11:47:10 Step 18/23 : EXPOSE 59901 11:47:10 ---> Running in ea8cc8be6a2f 11:47:10 Removing intermediate container ea8cc8be6a2f 11:47:10 ---> 17ef704b6744 11:47:10 Step 19/23 : ENTRYPOINT ["/device-modbus"] 11:47:10 ---> Running in 38f160d31c1f 11:47:10 Removing intermediate container 38f160d31c1f 11:47:10 ---> aa8cd085afd4 11:47:10 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 11:47:10 ---> Running in ecfbaa8d3c71 11:47:10 Removing intermediate container ecfbaa8d3c71 11:47:10 ---> aebf38c163d7 11:47:10 Step 21/23 : LABEL arch=amd64 11:47:10 ---> Running in b1bf15473b02 11:47:10 Removing intermediate container b1bf15473b02 11:47:10 ---> 3a36f93a1ef6 11:47:10 Step 22/23 : LABEL git_sha=14ff68196de14f84e156ad11d70fc60c7e109548 11:47:11 ---> Running in 4a0a596eed78 11:47:11 Removing intermediate container 4a0a596eed78 11:47:11 ---> 96c7d0614add 11:47:11 Step 23/23 : LABEL version=0.0.0 11:47:11 ---> Running in 7d8fa3cdc313 11:47:11 Removing intermediate container 7d8fa3cdc313 11:47:11 ---> a99fc0b764b9 11:47:11 [Warning] One or more build-args [ARCH] were not consumed 11:47:11 Successfully built a99fc0b764b9 11:47:11 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 11:47:11 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:47:11 11:47:11 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 11:47:12 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:47:12 latest: Pulling from edgex-lftools-log-publisher 11:47:12 5eb5b503b376: Pulling fs layer 11:47:12 5c69ac0246d0: Pulling fs layer 11:47:12 ec43610c2a17: Pulling fs layer 11:47:12 3a2ae6a8a46f: Pulling fs layer 11:47:12 33b1e0a273af: Pulling fs layer 11:47:12 5d3b04190fa2: Pulling fs layer 11:47:12 2f39f015ded8: Pulling fs layer 11:47:12 5d3b04190fa2: Waiting 11:47:12 3a2ae6a8a46f: Waiting 11:47:12 33b1e0a273af: Waiting 11:47:12 2f39f015ded8: Waiting 11:47:12 5c69ac0246d0: Download complete 11:47:12 3a2ae6a8a46f: Verifying Checksum 11:47:12 3a2ae6a8a46f: Download complete 11:47:12 33b1e0a273af: Verifying Checksum 11:47:12 33b1e0a273af: Download complete 11:47:12 5d3b04190fa2: Verifying Checksum 11:47:12 5d3b04190fa2: Download complete 11:47:12 ec43610c2a17: Verifying Checksum 11:47:12 ec43610c2a17: Download complete 11:47:12 5eb5b503b376: Verifying Checksum 11:47:12 5eb5b503b376: Download complete 11:47:12 2f39f015ded8: Download complete 11:47:13 5eb5b503b376: Pull complete 11:47:13 5c69ac0246d0: Pull complete 11:47:14 ec43610c2a17: Pull complete 11:47:14 3a2ae6a8a46f: Pull complete 11:47:14 33b1e0a273af: Pull complete 11:47:14 5d3b04190fa2: Pull complete 11:47:18 2f39f015ded8: Pull complete 11:47:18 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 11:47:18 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:47:18 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 11:47:18 prd-ubuntu20.04-docker-8c-8g-47529 does not seem to be running inside a container 11:47:19 $ 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 11:47:20 $ docker top 4741225cb8daf2e259b09adc5795d79f382043ab5fe52eab8c0ea44a54a2075c -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:47:21 ---> job-cost.sh 11:47:21 lf-activate-venv: SKIPPING 11:47:21 INFO: No Stack... 11:47:21 INFO: Retrieving Pricing Info for: v3-standard-8 11:47:22 INFO: Archiving Costs [Pipeline] sh 11:47:22 + cat /w/workspace/xfoundry_device-modbus-go_PR-345/archives/cost.csv 11:47:22 + cut -d, -f6 [Pipeline] lock 11:47:22 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-345-2-stack-cost] 11:47:22 Resource [jenkins-edgexfoundry-device-modbus-go-PR-345-2-stack-cost] did not exist. Created. 11:47:22 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-345-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 11:47:22 + echo total: 0.2199999988079071 [Pipeline] stash 11:47:22 Stashed 1 file(s) [Pipeline] } 11:47:22 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-345-2-stack-cost] [Pipeline] // lock [Pipeline] } 11:47:22 $ docker stop --time=1 4741225cb8daf2e259b09adc5795d79f382043ab5fe52eab8c0ea44a54a2075c 11:47:23 $ docker rm -f 4741225cb8daf2e259b09adc5795d79f382043ab5fe52eab8c0ea44a54a2075c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 11:48:37 Running on prd-ubuntu20.04-docker-arm64-4c-16g-47531 in /w/workspace/xfoundry_device-modbus-go_PR-345 [Pipeline] { [Pipeline] ws 11:48:37 Running in /w/workspace/device-modbus-go/2 [Pipeline] { [Pipeline] checkout 11:48:37 Selected Git installation does not exist. Using Default 11:48:37 The recommended git tool is: NONE 11:48:43 using credential edgex-jenkins-ssh 11:48:43 Cloning the remote Git repository 11:48:43 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 11:48:43 > git init /w/workspace/device-modbus-go/2 # timeout=10 11:48:43 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 11:48:43 > git --version # timeout=10 11:48:44 > git --version # 'git version 2.25.1' 11:48:44 using GIT_SSH to set credentials SSH Credentials for GitHub 11:48:44 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 11:48:45 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 11:48:45 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 11:48:45 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 11:48:45 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 11:48:45 using GIT_SSH to set credentials SSH Credentials for GitHub 11:48:45 > 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 11:48:45 Merging remotes/origin/main commit 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea into PR head commit 14ff68196de14f84e156ad11d70fc60c7e109548 11:48:46 Merge succeeded, producing 14ff68196de14f84e156ad11d70fc60c7e109548 11:48:46 Checking out Revision 14ff68196de14f84e156ad11d70fc60c7e109548 (PR-345) 11:48:46 > git config core.sparsecheckout # timeout=10 11:48:46 > git checkout -f 14ff68196de14f84e156ad11d70fc60c7e109548 # timeout=10 11:48:46 > git remote # timeout=10 11:48:46 > git config --get remote.origin.url # timeout=10 11:48:46 using GIT_SSH to set credentials SSH Credentials for GitHub 11:48:46 > git merge 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea # timeout=10 11:48:46 > git rev-parse HEAD^{commit} # timeout=10 11:48:46 > git config core.sparsecheckout # timeout=10 11:48:46 > git checkout -f 14ff68196de14f84e156ad11d70fc60c7e109548 # timeout=10 11:48:50 Commit message: "build(deps): go mod tidy" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 11:48:51 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 11:48:51 % Total % Received % Xferd Average Speed Time Time Time Current 11:48:51 Dload Upload Total Spent Left Speed 11:48:51 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 175k 0 --:--:-- --:--:-- --:--:-- 177k [Pipeline] sh 11:48:51 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 11:48:52 + sudo tee /etc/docker/daemon.new 11:48:52 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 11:48:52 { 11:48:52 "registry-mirrors": [ 11:48:52 "https://nexus3.edgexfoundry.org:10001" 11:48:52 ], 11:48:52 "bip": "10.250.0.254/24", 11:48:52 "hosts": [ 11:48:52 "tcp://0.0.0.0:5555", 11:48:52 "unix:///var/run/docker.sock" 11:48:52 ], 11:48:52 "mtu": 1458, 11:48:52 "selinux-enabled": true, 11:48:52 "seccomp-profile": "/etc/docker/seccomp.json" 11:48:52 } [Pipeline] sh 11:48:52 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 11:48:53 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:49:11 provisioning config files... 11:49:11 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/2@tmp/config8342436468157015977tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:49:11 ---> docker-login.sh 11:49:11 nexus3.edgexfoundry.org:10001 11:49:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:49:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:49:12 Configure a credential helper to remove this warning. See 11:49:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:49:12 11:49:12 Login Succeeded 11:49:12 nexus3.edgexfoundry.org:10002 11:49:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:49:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:49:13 Configure a credential helper to remove this warning. See 11:49:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:49:13 11:49:13 Login Succeeded 11:49:13 nexus3.edgexfoundry.org:10003 11:49:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:49:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:49:13 Configure a credential helper to remove this warning. See 11:49:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:49:13 11:49:13 Login Succeeded 11:49:13 nexus3.edgexfoundry.org:10004 11:49:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:49:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:49:14 Configure a credential helper to remove this warning. See 11:49:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:49:14 11:49:14 Login Succeeded 11:49:14 docker.io 11:49:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:49:15 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:49:15 Configure a credential helper to remove this warning. See 11:49:15 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:49:15 11:49:15 Login Succeeded 11:49:15 ---> docker-login.sh ends [Pipeline] } 11:49:15 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 11:49:15 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 11:49:15 ========================================================= 11:49:15 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 11:49:15 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 11:49:15 + 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 . 11:49:16 Sending build context to Docker daemon 3.095MB 11:49:16 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 11:49:16 Step 2/10 : FROM ${BASE} AS builder 11:49:16 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 11:49:16 9b3977197b4f: Pulling fs layer 11:49:16 1a89e8eeedd5: Pulling fs layer 11:49:16 94645a83ff95: Pulling fs layer 11:49:16 3f3a8bcf1eab: Pulling fs layer 11:49:16 0c92f367c5e7: Pulling fs layer 11:49:16 3096ccb668a1: Pulling fs layer 11:49:16 e8cf19c19ddd: Pulling fs layer 11:49:16 a4caa8a26152: Pulling fs layer 11:49:16 3f3a8bcf1eab: Waiting 11:49:16 0c92f367c5e7: Waiting 11:49:16 e8cf19c19ddd: Waiting 11:49:16 3096ccb668a1: Waiting 11:49:16 a4caa8a26152: Waiting 11:49:16 94645a83ff95: Verifying Checksum 11:49:16 94645a83ff95: Download complete 11:49:16 1a89e8eeedd5: Download complete 11:49:16 0c92f367c5e7: Verifying Checksum 11:49:16 0c92f367c5e7: Download complete 11:49:16 3096ccb668a1: Verifying Checksum 11:49:16 3096ccb668a1: Download complete 11:49:16 9b3977197b4f: Verifying Checksum 11:49:16 9b3977197b4f: Download complete 11:49:16 e8cf19c19ddd: Verifying Checksum 11:49:16 e8cf19c19ddd: Download complete 11:49:17 9b3977197b4f: Pull complete 11:49:17 1a89e8eeedd5: Pull complete 11:49:18 94645a83ff95: Pull complete 11:49:18 a4caa8a26152: Download complete 11:49:19 3f3a8bcf1eab: Verifying Checksum 11:49:19 3f3a8bcf1eab: Download complete 11:49:31 3f3a8bcf1eab: Pull complete 11:49:31 0c92f367c5e7: Pull complete 11:49:31 3096ccb668a1: Pull complete 11:49:32 e8cf19c19ddd: Pull complete 11:49:38 a4caa8a26152: Pull complete 11:49:38 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 11:49:38 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 11:49:38 ---> 725f1c02e7f9 11:49:38 Step 3/10 : ARG MAKE='make build' 11:49:40 ---> Running in ddd750ab5f7e 11:49:40 Removing intermediate container ddd750ab5f7e 11:49:40 ---> b487855f5da3 11:49:40 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:49:40 ---> Running in d57220d2de22 11:49:43 Removing intermediate container d57220d2de22 11:49:43 ---> 48add6531afe 11:49:43 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 11:49:43 ---> Running in f3029e74075d 11:49:44 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 11:49:45 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 11:49:46 (1/8) Installing openssh-keygen (8.8_p1-r1) 11:49:46 (2/8) Installing libedit (20210910.3.1-r0) 11:49:46 (3/8) Installing openssh-client-common (8.8_p1-r1) 11:49:46 (4/8) Installing openssh-client-default (8.8_p1-r1) 11:49:46 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 11:49:47 (6/8) Installing openssh-server-common (8.8_p1-r1) 11:49:47 (7/8) Installing openssh-server (8.8_p1-r1) 11:49:47 (8/8) Installing openssh (8.8_p1-r1) 11:49:47 Executing busybox-1.34.1-r3.trigger 11:49:47 OK: 226 MiB in 60 packages 11:49:48 Removing intermediate container f3029e74075d 11:49:48 ---> 0bac7123ecfd 11:49:48 Step 6/10 : WORKDIR /device-modbus-go 11:49:48 ---> Running in b307887eb1c2 11:49:48 Removing intermediate container b307887eb1c2 11:49:48 ---> fde4e400ac0c 11:49:48 Step 7/10 : COPY go.mod vendor* ./ 11:49:49 ---> 48680e6a91d1 11:49:49 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:49:49 ---> Running in 5be2bd32966f 11:50:36 Removing intermediate container 5be2bd32966f 11:50:36 ---> 6960f85ef6b4 11:50:36 Step 9/10 : COPY . . 11:50:36 ---> d72d448de2f9 11:50:36 Step 10/10 : RUN ${MAKE} 11:50:36 ---> Running in 22af10bfc0d6 11:50:36 noop 11:50:36 Removing intermediate container 22af10bfc0d6 11:50:36 ---> 1a90d548ecd6 11:50:36 Successfully built 1a90d548ecd6 11:50:36 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 11:50:36 + docker inspect -f . ci-base-image-arm64 11:50:36 . [Pipeline] withDockerContainer 11:50:36 prd-ubuntu20.04-docker-arm64-4c-16g-47531 does not seem to be running inside a container 11:50:36 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@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 ******** -e ******** ci-base-image-arm64 cat 11:50:38 $ docker top 5569f641aa48a2c0084ed5e0866015fd8647a3846a4b5839017fb7c253c98402 -eo pid,comm [Pipeline] { [Pipeline] sh 11:50:39 + go version 11:50:39 go version go1.17.6 linux/arm64 [Pipeline] } 11:50:39 $ docker stop --time=1 5569f641aa48a2c0084ed5e0866015fd8647a3846a4b5839017fb7c253c98402 11:50:41 $ docker rm -f 5569f641aa48a2c0084ed5e0866015fd8647a3846a4b5839017fb7c253c98402 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 11:50:41 + docker inspect -f . ci-base-image-arm64 11:50:41 . [Pipeline] withDockerContainer 11:50:41 prd-ubuntu20.04-docker-arm64-4c-16g-47531 does not seem to be running inside a container 11:50:42 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@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 ******** -e ******** ci-base-image-arm64 cat 11:50:43 $ docker top 34cb6360bf2da07ee972be89d643c3694187b84f17db596cf18cd0f737b5c683 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 11:50:44 + make test 11:50:44 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 11:50:46 ? github.com/edgexfoundry/device-modbus-go [no test files] 11:52:23 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 11:52:23 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.059s coverage: 46.4% of statements 11:52:23 WARNING: Linting skipped (not on x86_64 or linter not installed) 11:52:23 CGO_ENABLED=1 GO111MODULE=on go vet ./... 11:52:38 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 11:52:38 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 11:52:38 ./bin/test-attribution-txt.sh [Pipeline] echo 11:52:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 11:52:41 $ docker stop --time=1 34cb6360bf2da07ee972be89d643c3694187b84f17db596cf18cd0f737b5c683 11:52:42 $ docker rm -f 34cb6360bf2da07ee972be89d643c3694187b84f17db596cf18cd0f737b5c683 [Pipeline] // withDockerContainer [Pipeline] sh 11:52:43 + sudo chown -R jenkins:jenkins . [Pipeline] stash 11:52:43 Warning: overwriting stash ‘coverage-report’ 11:52:44 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 11:52:44 + sudo chown -R jenkins:jenkins . [Pipeline] sh 11:52:45 + ls -al . 11:52:45 total 180 11:52:45 drwxrwxr-x 9 jenkins jenkins 4096 May 10 11:52 . 11:52:45 drwxrwxr-x 4 jenkins jenkins 4096 May 10 11:48 .. 11:52:45 -rw-rw-r-- 1 jenkins jenkins 140 May 10 11:48 .dockerignore 11:52:45 drwxrwxr-x 8 jenkins jenkins 4096 May 10 11:48 .git 11:52:45 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:48 .github 11:52:45 -rw-rw-r-- 1 jenkins jenkins 331 May 10 11:48 .gitignore 11:52:45 -rw-rw-r-- 1 jenkins jenkins 41 May 10 11:48 .golangci.yml 11:52:45 -rw-rw-r-- 1 jenkins jenkins 9377 May 10 11:48 Attribution.txt 11:52:45 -rw-rw-r-- 1 jenkins jenkins 10001 May 10 11:48 CHANGELOG.md 11:52:45 -rw-rw-r-- 1 jenkins jenkins 1546 May 10 11:48 Dockerfile 11:52:45 -rw-rw-r-- 1 jenkins jenkins 677 May 10 11:48 GOVERNANCE.md 11:52:45 -rw-rw-r-- 1 jenkins jenkins 680 May 10 11:48 Jenkinsfile 11:52:45 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 11:48 LICENSE 11:52:45 -rw-rw-r-- 1 jenkins jenkins 1905 May 10 11:48 Makefile 11:52:45 -rw-rw-r-- 1 jenkins jenkins 622 May 10 11:48 OWNERS.md 11:52:45 -rw-rw-r-- 1 jenkins jenkins 3397 May 10 11:48 README.md 11:52:45 -rw-rw-r-- 1 jenkins jenkins 5 May 10 11:45 VERSION 11:52:45 drwxrwxr-x 2 jenkins jenkins 4096 May 10 11:48 bin 11:52:45 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:48 cmd 11:52:45 -rw-r--r-- 1 jenkins jenkins 24065 May 10 11:52 coverage.out 11:52:45 -rw-rw-r-- 1 jenkins jenkins 3399 May 10 11:48 go.mod 11:52:45 -rw-rw-r-- 1 jenkins jenkins 35558 May 10 11:48 go.sum 11:52:45 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:48 internal 11:52:45 drwxrwxr-x 2 jenkins jenkins 4096 May 10 11:48 simulator 11:52:45 drwxrwxr-x 4 jenkins jenkins 4096 May 10 11:48 snap 11:52:45 -rw-rw-r-- 1 jenkins jenkins 229 May 10 11:48 version.go [Pipeline] isUnix [Pipeline] sh 11:52:45 + 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=14ff68196de14f84e156ad11d70fc60c7e109548 --label arch=arm64 --label version=0.0.0 . 11:52:45 Sending build context to Docker daemon 3.12MB 11:52:45 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 11:52:45 Step 2/23 : FROM ${BASE} AS builder 11:52:45 ---> 1a90d548ecd6 11:52:45 Step 3/23 : ARG MAKE='make build' 11:52:46 ---> Running in eb6004ebe249 11:52:46 Removing intermediate container eb6004ebe249 11:52:46 ---> ca1c17a85261 11:52:46 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:52:46 ---> Running in 1c57c7b05cf1 11:52:48 Removing intermediate container 1c57c7b05cf1 11:52:48 ---> 73e558bbffd5 11:52:48 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 11:52:48 ---> Running in fd09f352fe12 11:52:49 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 11:52:50 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 11:52:51 OK: 226 MiB in 60 packages 11:52:52 Removing intermediate container fd09f352fe12 11:52:52 ---> 1122f1b3a068 11:52:52 Step 6/23 : WORKDIR /device-modbus-go 11:52:52 ---> Running in bc1731f755d3 11:52:52 Removing intermediate container bc1731f755d3 11:52:52 ---> 694bd17f8271 11:52:52 Step 7/23 : COPY go.mod vendor* ./ 11:52:52 ---> 32c96a8fc112 11:52:52 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:52:52 ---> Running in ad7eeb6de988 11:52:54 Removing intermediate container ad7eeb6de988 11:52:54 ---> 302fee4d1025 11:52:54 Step 9/23 : COPY . . 11:52:55 ---> a55bbfee77b1 11:52:55 Step 10/23 : RUN ${MAKE} 11:52:55 ---> Running in 9cb0807d42f6 11:52:56 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 11:55:03 Removing intermediate container 9cb0807d42f6 11:55:03 ---> 22a9f0b80447 11:55:03 Step 11/23 : FROM alpine:3.14 11:55:03 3.14: Pulling from library/alpine 11:55:03 455c02918c45: Pulling fs layer 11:55:03 455c02918c45: Verifying Checksum 11:55:03 455c02918c45: Download complete 11:55:03 455c02918c45: Pull complete 11:55:03 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 11:55:03 Status: Downloaded newer image for alpine:3.14 11:55:03 ---> ac73e934f311 11:55:03 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 11:55:03 ---> Running in 590a7e7c2a53 11:55:03 Removing intermediate container 590a7e7c2a53 11:55:03 ---> 13393553f182 11:55:03 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:55:03 ---> Running in d0ab69f62740 11:55:05 Removing intermediate container d0ab69f62740 11:55:05 ---> 669f99b7d4de 11:55:05 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 11:55:05 ---> Running in 1e5c157e5995 11:55:06 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 11:55:07 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 11:55:08 (1/6) Installing dumb-init (1.2.5-r1) 11:55:08 (2/6) Installing libgcc (10.3.1_git20210424-r2) 11:55:08 (3/6) Installing libsodium (1.0.18-r0) 11:55:08 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 11:55:08 (5/6) Installing libzmq (4.3.4-r0) 11:55:08 (6/6) Installing zeromq (4.3.4-r0) 11:55:08 Executing busybox-1.33.1-r7.trigger 11:55:08 OK: 8 MiB in 20 packages 11:55:09 Removing intermediate container 1e5c157e5995 11:55:09 ---> f34274c0580f 11:55:09 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 11:55:11 ---> 1e3bc4b674cc 11:55:11 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 11:55:11 ---> a067b349bc91 11:55:11 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 11:55:12 ---> 5eef92a0f0b2 11:55:12 Step 18/23 : EXPOSE 59901 11:55:12 ---> Running in 44ee480965dc 11:55:12 Removing intermediate container 44ee480965dc 11:55:12 ---> f5d75530803b 11:55:12 Step 19/23 : ENTRYPOINT ["/device-modbus"] 11:55:12 ---> Running in 38d8c792195e 11:55:12 Removing intermediate container 38d8c792195e 11:55:12 ---> 82b8c82076a1 11:55:12 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 11:55:12 ---> Running in 28a2d5d66c3c 11:55:13 Removing intermediate container 28a2d5d66c3c 11:55:13 ---> b6c2b75f04d4 11:55:13 Step 21/23 : LABEL arch=arm64 11:55:13 ---> Running in f93f41eaaf17 11:55:13 Removing intermediate container f93f41eaaf17 11:55:13 ---> b320cb7c0ef5 11:55:13 Step 22/23 : LABEL git_sha=14ff68196de14f84e156ad11d70fc60c7e109548 11:55:13 ---> Running in 6537c1712cf0 11:55:14 Removing intermediate container 6537c1712cf0 11:55:14 ---> c6ae5b201ff9 11:55:14 Step 23/23 : LABEL version=0.0.0 11:55:14 ---> Running in 21a32c1b62f2 11:55:14 Removing intermediate container 21a32c1b62f2 11:55:14 ---> bb4b371e5189 11:55:14 [Warning] One or more build-args [ARCH] were not consumed 11:55:14 Successfully built bb4b371e5189 11:55:14 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 11:55:15 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 11:55:15 11:55:15 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 11:55:15 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 11:55:15 arm64: Pulling from edgex-lftools-log-publisher 11:55:15 8998bd30e6a1: Pulling fs layer 11:55:15 04944245beec: Pulling fs layer 11:55:15 699f458cf7ca: Pulling fs layer 11:55:15 765212b225bb: Pulling fs layer 11:55:15 f23df028b6ca: Pulling fs layer 11:55:15 d65c8cfc05b1: Pulling fs layer 11:55:15 2437ff75d9bd: Pulling fs layer 11:55:15 f23df028b6ca: Waiting 11:55:15 765212b225bb: Waiting 11:55:15 d65c8cfc05b1: Waiting 11:55:15 2437ff75d9bd: Waiting 11:55:15 04944245beec: Verifying Checksum 11:55:15 04944245beec: Download complete 11:55:15 765212b225bb: Verifying Checksum 11:55:15 765212b225bb: Download complete 11:55:15 f23df028b6ca: Download complete 11:55:15 d65c8cfc05b1: Verifying Checksum 11:55:15 d65c8cfc05b1: Download complete 11:55:15 699f458cf7ca: Verifying Checksum 11:55:15 699f458cf7ca: Download complete 11:55:16 8998bd30e6a1: Verifying Checksum 11:55:16 8998bd30e6a1: Download complete 11:55:18 2437ff75d9bd: Verifying Checksum 11:55:18 2437ff75d9bd: Download complete 11:55:20 8998bd30e6a1: Pull complete 11:55:20 04944245beec: Pull complete 11:55:22 699f458cf7ca: Pull complete 11:55:22 765212b225bb: Pull complete 11:55:23 f23df028b6ca: Pull complete 11:55:23 d65c8cfc05b1: Pull complete 11:55:38 2437ff75d9bd: Pull complete 11:55:38 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 11:55:38 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 11:55:38 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 11:55:38 prd-ubuntu20.04-docker-arm64-4c-16g-47531 does not seem to be running inside a container 11:55:38 $ 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/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 11:55:41 $ docker top 7a91e8450563a887e0a52bcc55a430a68aa2e91ddf816554e51f78163ec45d16 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:55:42 ---> job-cost.sh 11:55:42 lf-activate-venv: SKIPPING 11:55:42 INFO: No Stack... 11:55:43 INFO: Retrieving Pricing Info for: v3-standard-4 11:55:44 INFO: Archiving Costs [Pipeline] sh 11:55:44 + cat /w/workspace/device-modbus-go/2/archives/cost.csv 11:55:44 + cut -d, -f6 [Pipeline] lock 11:55:44 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-345-2-stack-cost] 11:55:44 Resource [jenkins-edgexfoundry-device-modbus-go-PR-345-2-stack-cost] did not exist. Created. 11:55:44 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-345-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 11:55:45 /w/workspace/device-modbus-go/2@tmp/durable-666e66fc/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 11:55:46 + echo total: 0.10999999940395355 [Pipeline] stash 11:55:46 Warning: overwriting stash ‘stack-cost’ 11:55:46 Stashed 1 file(s) [Pipeline] } 11:55:46 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-345-2-stack-cost] [Pipeline] // lock [Pipeline] } 11:55:46 $ docker stop --time=1 7a91e8450563a887e0a52bcc55a430a68aa2e91ddf816554e51f78163ec45d16 11:55:47 $ docker rm -f 7a91e8450563a887e0a52bcc55a430a68aa2e91ddf816554e51f78163ec45d16 [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 11:55:48 provisioning config files... 11:55:48 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config6338520860313108256tmp [Pipeline] { [Pipeline] sh 11:55:48 + set +x 11:55:48 + + bash -s -- 11:55:48 curl -s https://codecov.io/bash 11:55:48 11:55:48 _____ _ 11:55:48 / ____| | | 11:55:48 | | ___ __| | ___ ___ _____ __ 11:55:48 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 11:55:48 | |___| (_) | (_| | __/ (_| (_) \ V / 11:55:48 \_____\___/ \__,_|\___|\___\___/ \_/ 11:55:48 Bash-1.0.6 11:55:48 11:55:48 11:55:48 ==> git version 2.25.1 found 11:55:48 ==> 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 11:55:48 Release-Date: 2020-01-08 11:55:48 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 11:55:48 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 11:55:48 ==> Jenkins CI detected. 11:55:48 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-345 11:55:48 project root: . 11:55:48 --> token set from env 11:55:48 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 11:55:48 ==> Running gcov in . (disable via -X gcov) 11:55:48 ==> Python coveragepy not found 11:55:48 ==> Searching for coverage reports in: 11:55:48 + . 11:55:48 -> Found 1 reports 11:55:48 ==> Detecting git/mercurial file structure 11:55:48 ==> Reading reports 11:55:48 + ./coverage.out bytes=24065 11:55:48 ==> Appending adjustments 11:55:48 https://docs.codecov.io/docs/fixing-reports 11:55:48 + Found adjustments 11:55:48 ==> Gzipping contents 11:55:48 4.0K /tmp/codecov.rwTfza.gz 11:55:48 ==> Uploading reports 11:55:48 url: https://codecov.io 11:55:48 query: branch=PR-345&commit=14ff68196de14f84e156ad11d70fc60c7e109548&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-345%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=345&job=&cmd_args= 11:55:48 -> Pinging Codecov 11:55:48 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=14ff68196de14f84e156ad11d70fc60c7e109548&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-345%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=345&job=&cmd_args= 11:55:49 -> Uploading to 11:55:49 https://storage.googleapis.com/codecov/v4/raw/2022-05-10/55DBCA73C666E3227836607328DD7E49/14ff68196de14f84e156ad11d70fc60c7e109548/9ef082dc-266c-4b81-ad41-23979055d62d.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220510%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220510T115548Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=749a1a0c0262dca5b838cba0c5fb43d69dc10d2873988b36d3d7677a67774b37 11:55:49 % Total % Received % Xferd Average Speed Time Time Time Current 11:55:49 Dload Upload Total Spent Left Speed 11:55:49 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4012 0 0 100 4012 0 18660 --:--:-- --:--:-- --:--:-- 18660 11:55:49 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-modbus-go/commit/14ff68196de14f84e156ad11d70fc60c7e109548 [Pipeline] } 11:55:49 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 11:55:49 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-345/archives ] 11:55:49 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-345/archives 11:55:49 total 16 11:55:49 drwxr-xr-x 3 root root 4096 May 10 11:47 . 11:55:49 drwxrwxr-x 11 jenkins jenkins 4096 May 10 11:47 .. 11:55:49 drwxr-xr-x 2 root root 4096 May 10 11:47 cost 11:55:49 -rw-r--r-- 1 root root 87 May 10 11:47 cost.csv 11:55:49 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-345/archives 11:55:49 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-345/archives 11:55:49 total 16 11:55:49 drwxr-xr-x 3 jenkins jenkins 4096 May 10 11:47 . 11:55:49 drwxrwxr-x 11 jenkins jenkins 4096 May 10 11:47 .. 11:55:49 drwxr-xr-x 2 jenkins jenkins 4096 May 10 11:47 cost 11:55:49 -rw-r--r-- 1 jenkins jenkins 87 May 10 11:47 cost.csv [Pipeline] libraryResource [Pipeline] sh 11:55:50 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 11:55:50 ---> package-listing.sh 11:55:50 ++ facter osfamily 11:55:50 ++ tr '[:upper:]' '[:lower:]' 11:55:51 + OS_FAMILY=debian 11:55:51 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-345 11:55:51 + START_PACKAGES=/tmp/packages_start.txt 11:55:51 + END_PACKAGES=/tmp/packages_end.txt 11:55:51 + DIFF_PACKAGES=/tmp/packages_diff.txt 11:55:51 + PACKAGES=/tmp/packages_start.txt 11:55:51 + '[' /w/workspace/xfoundry_device-modbus-go_PR-345 ']' 11:55:51 + PACKAGES=/tmp/packages_end.txt 11:55:51 + case "${OS_FAMILY}" in 11:55:51 + dpkg -l 11:55:51 + grep '^ii' 11:55:51 + '[' -f /tmp/packages_start.txt ']' 11:55:51 + '[' -f /tmp/packages_end.txt ']' 11:55:51 + diff /tmp/packages_start.txt /tmp/packages_end.txt 11:55:51 + '[' /w/workspace/xfoundry_device-modbus-go_PR-345 ']' 11:55:51 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-345/archives/ 11:55:51 + 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 11:55:51 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 11:55:51 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 11:55:52 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:55:52 . [Pipeline] withDockerContainer 11:55:52 prd-ubuntu20.04-docker-8c-8g-47529 does not seem to be running inside a container 11:55:52 $ 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 11:55:52 $ docker top a91167f07dfb89fbb48bc683ecd9fc17ba9deb73f22a2e5c5b217740e556d31d -eo pid,comm [Pipeline] { [Pipeline] sh 11:55:52 + touch /tmp/pre-build-complete [Pipeline] sh 11:55:53 + mkdir -p /var/log/sysstat [Pipeline] sh 11:55:53 + ls /var/log/sa-host 11:55:53 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:55:53 provisioning config files... 11:55:53 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config1965805092351382489tmp [Pipeline] { [Pipeline] echo 11:55:53 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 11:55:53 ---> create-netrc.sh [Pipeline] } 11:55:53 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 11:55:54 ---> python-tools-install.sh [Pipeline] echo 11:55:54 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 11:55:54 ---> sudo-logs.sh 11:55:54 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 11:55:54 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 11:55:54 ---> job-cost.sh 11:55:54 lf-activate-venv: SKIPPING 11:55:54 DEBUG: total: 0.2199999988079071 11:55:54 INFO: Retrieving Stack Cost... 11:55:55 INFO: Retrieving Pricing Info for: v3-standard-8 11:55:55 INFO: Archiving Costs [Pipeline] echo 11:55:55 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 11:55:55 ---> logs-deploy.sh 11:55:55 lf-activate-venv: SKIPPING 11:55:55 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-345/2 11:55:55 INFO: archiving workspace using pattern(s): 11:55:56 Archives upload complete. 11:55:56 INFO: archiving logs to Nexus