Pull request #411 opened 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 jinlinGuan for edgexfoundry/device-modbus-go Loading trusted files from base branch main at 05607db3767b12e2b1688c1d4c1138f7ff4649fd rather than 051755cd082bf34e42ec22189455455158aa0636 Obtained Jenkinsfile from 05607db3767b12e2b1688c1d4c1138f7ff4649fd 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-ssh7713877872407545935.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 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-ssh3818294188588526935.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 cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-411/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [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-411/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh9807424490333016297.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [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-411/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh8137826077422948729.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 # timeout=10 Commit message: "Merge pull request #420 from bill-mahoney/levski-update" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that 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-ssh8401738072079517732.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-411/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [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-411/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh6939679107298890698.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that 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.18 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 SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task All nodes of label ‘ubuntu20.04-docker-8c-8g’ are offline Running on prd-ubuntu20.04-docker-8c-8g-5494 in /w/workspace/xfoundry_device-modbus-go_PR-411 [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-411 # 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 > 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/411/head:refs/remotes/origin/PR-411 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 05607db3767b12e2b1688c1d4c1138f7ff4649fd into PR head commit 051755cd082bf34e42ec22189455455158aa0636 Merge succeeded, producing 051755cd082bf34e42ec22189455455158aa0636 Checking out Revision 051755cd082bf34e42ec22189455455158aa0636 (PR-411) > git config core.sparsecheckout # timeout=10 > git checkout -f 051755cd082bf34e42ec22189455455158aa0636 # 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 05607db3767b12e2b1688c1d4c1138f7ff4649fd # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 051755cd082bf34e42ec22189455455158aa0636 # timeout=10 Commit message: "build(deps): bump device-sdk-go and go-mod-core-contracts versions" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 07:05:03 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 07:05:03 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 07:05:03 ========================================================= 07:05:03 EdgeX Global Pipelines Version Info 07:05:03 ========================================================= [Pipeline] libraryResource [Pipeline] sh 07:05:04 ------------------- 07:05:04 stable info: 07:05:04 ------------------- 07:05:04 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 07:05:04 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 07:05:04 Message: update stable to v1.0.244 07:05:04 ------------------- 07:05:04 experimental info: 07:05:04 ------------------- 07:05:04 Commited By: **** collab-it+edgex@linuxfoundation.org 07:05:04 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 07:05:04 Message: update experimental to v1.0.244 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.18 [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 07:05:05 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 07:05:06 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 07:05:06 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 07:05:06 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 07:05:06 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-411 [Pipeline] echo 07:05:06 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-411 [Pipeline] echo 07:05:06 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-411 [Pipeline] echo 07:05:06 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 051755cd082bf34e42ec22189455455158aa0636 [Pipeline] echo 07:05:06 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 051755c [Pipeline] echo 07:05:06 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:05:06 provisioning config files... 07:05:06 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/config5657342347583641636tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:05:06 ---> docker-login.sh 07:05:06 nexus3.edgexfoundry.org:10001 07:05:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:07 Configure a credential helper to remove this warning. See 07:05:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:07 07:05:07 Login Succeeded 07:05:07 nexus3.edgexfoundry.org:10002 07:05:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:07 Configure a credential helper to remove this warning. See 07:05:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:07 07:05:07 Login Succeeded 07:05:07 nexus3.edgexfoundry.org:10003 07:05:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:07 Configure a credential helper to remove this warning. See 07:05:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:07 07:05:07 Login Succeeded 07:05:07 nexus3.edgexfoundry.org:10004 07:05:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:07 Configure a credential helper to remove this warning. See 07:05:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:07 07:05:07 Login Succeeded 07:05:07 docker.io 07:05:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:07 Configure a credential helper to remove this warning. See 07:05:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:07 07:05:07 Login Succeeded 07:05:07 ---> docker-login.sh ends [Pipeline] } 07:05:07 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 07:05:08 + git rev-list -1 --merges 051755cd082bf34e42ec22189455455158aa0636~1..051755cd082bf34e42ec22189455455158aa0636 [Pipeline] echo 07:05:08 -----------> git rev-list -1 --merges 051755cd082bf34e42ec22189455455158aa0636~1..051755cd082bf34e42ec22189455455158aa0636 051755cd082bf34e42ec22189455455158aa0636 [false] [Pipeline] sh 07:05:08 + git log --format=format:%s -1 051755cd082bf34e42ec22189455455158aa0636 [Pipeline] echo 07:05:08 ========================================================= 07:05:08 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 07:05:08 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 07:05:09 + git log --format=format:%s -1 051755cd082bf34e42ec22189455455158aa0636 [Pipeline] echo 07:05:09 [semverPrep] GIT_COMMIT: 051755cd082bf34e42ec22189455455158aa0636, Commit Message: build(deps): bump device-sdk-go and go-mod-core-contracts versions [Pipeline] echo 07:05:09 [semverPrep] This is not a build commit. [Pipeline] sh 07:05:09 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 07:05:09 + grep -v github /etc/ssh/ssh_known_hosts 07:05:09 + [ -e /tmp/ssh_known_hosts ] 07:05:09 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 07:05:09 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 07:05:09 + sudo tee -a /etc/ssh/ssh_known_hosts 07:05:09 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:05:10 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 07:05:10 07:05:10 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:05:10 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 07:05:10 0.1.4: Pulling from edgex-devops/py-git-semver 07:05:10 b85a868b505f: Pulling fs layer 07:05:10 e2be974225ed: Pulling fs layer 07:05:10 339a4e72a1f5: Pulling fs layer 07:05:10 988bab9f4d93: Pulling fs layer 07:05:10 1469e6f7b9e6: Pulling fs layer 07:05:10 eaf3925da568: Pulling fs layer 07:05:10 bab4dde63d76: Pulling fs layer 07:05:10 bde34c3a00c8: Pulling fs layer 07:05:10 b352a97aabf1: Pulling fs layer 07:05:10 4872d77fe225: Pulling fs layer 07:05:10 5851b861e8e6: Pulling fs layer 07:05:10 bab4dde63d76: Waiting 07:05:10 5851b861e8e6: Waiting 07:05:10 4872d77fe225: Waiting 07:05:10 988bab9f4d93: Waiting 07:05:10 1469e6f7b9e6: Waiting 07:05:10 eaf3925da568: Waiting 07:05:10 bde34c3a00c8: Waiting 07:05:10 b352a97aabf1: Waiting 07:05:10 e2be974225ed: Verifying Checksum 07:05:10 e2be974225ed: Download complete 07:05:10 988bab9f4d93: Verifying Checksum 07:05:10 988bab9f4d93: Download complete 07:05:11 339a4e72a1f5: Verifying Checksum 07:05:11 339a4e72a1f5: Download complete 07:05:11 eaf3925da568: Verifying Checksum 07:05:11 eaf3925da568: Download complete 07:05:11 1469e6f7b9e6: Download complete 07:05:11 bde34c3a00c8: Verifying Checksum 07:05:11 bde34c3a00c8: Download complete 07:05:11 b352a97aabf1: Verifying Checksum 07:05:11 b352a97aabf1: Download complete 07:05:11 4872d77fe225: Verifying Checksum 07:05:11 4872d77fe225: Download complete 07:05:11 5851b861e8e6: Download complete 07:05:11 b85a868b505f: Verifying Checksum 07:05:11 b85a868b505f: Download complete 07:05:11 bab4dde63d76: Verifying Checksum 07:05:11 bab4dde63d76: Download complete 07:05:12 b85a868b505f: Pull complete 07:05:12 e2be974225ed: Pull complete 07:05:13 339a4e72a1f5: Pull complete 07:05:13 988bab9f4d93: Pull complete 07:05:13 1469e6f7b9e6: Pull complete 07:05:13 eaf3925da568: Pull complete 07:05:15 bab4dde63d76: Pull complete 07:05:15 bde34c3a00c8: Pull complete 07:05:15 b352a97aabf1: Pull complete 07:05:15 4872d77fe225: Pull complete 07:05:15 5851b861e8e6: Pull complete 07:05:15 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 07:05:15 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 07:05:15 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:05:15 prd-ubuntu20.04-docker-8c-8g-5494 does not seem to be running inside a container 07:05:15 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-411 -v /w/workspace/xfoundry_device-modbus-go_PR-411:/w/workspace/xfoundry_device-modbus-go_PR-411:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-411@tmp:/w/workspace/xfoundry_device-modbus-go_PR-411@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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 07:05:17 $ docker top 7d7251d0d543cceab4a2111c1f00e4305569e3140a2d1ca69f0bb450981f01df -eo pid,comm 07:05:17 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). 07:05:17 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 07:05:17 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 07:05:17 [ssh-agent] Looking for ssh-agent implementation... 07:05:17 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 07:05:17 $ docker exec 7d7251d0d543cceab4a2111c1f00e4305569e3140a2d1ca69f0bb450981f01df ssh-agent 07:05:17 SSH_AUTH_SOCK=/tmp/ssh-eVFneZB1fLVU/agent.32 07:05:17 SSH_AGENT_PID=38 07:05:17 Running ssh-add (command line suppressed) 07:05:18 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-411@tmp/private_key_471557713888056815.key (/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/private_key_471557713888056815.key) 07:05:18 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 07:05:18 + git tag --points-at HEAD [Pipeline] } 07:05:18 $ docker exec --env ******** --env ******** 7d7251d0d543cceab4a2111c1f00e4305569e3140a2d1ca69f0bb450981f01df ssh-agent -k 07:05:18 unset SSH_AUTH_SOCK; 07:05:18 unset SSH_AGENT_PID; 07:05:18 echo Agent pid 38 killed; 07:05:18 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 07:05:18 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 07:05:18 [ssh-agent] Looking for ssh-agent implementation... 07:05:18 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 07:05:18 $ docker exec 7d7251d0d543cceab4a2111c1f00e4305569e3140a2d1ca69f0bb450981f01df ssh-agent 07:05:18 SSH_AUTH_SOCK=/tmp/ssh-dBNmbVdUAHUM/agent.70 07:05:18 SSH_AGENT_PID=76 07:05:18 Running ssh-add (command line suppressed) 07:05:19 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-411@tmp/private_key_14611617441835888070.key (/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/private_key_14611617441835888070.key) 07:05:19 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 07:05:19 + git semver init 07:05:19 2023-02-13 07:05:19,550 [run_init] DEBUG init version:0.0.0 force:False 07:05:19 2023-02-13 07:05:19,551 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-411/.semver 07:05:19 2023-02-13 07:05:19,552 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-411/.semver 07:05:19 2023-02-13 07:05:19,552 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-411/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-411, universal_newlines=False, shell=None, istream=None) 07:05:20 2023-02-13 07:05:20,473 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-411/.git/info/exclude 07:05:20 2023-02-13 07:05:20,474 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-411/.semver/PR-411 with force:False 07:05:20 2023-02-13 07:05:20,474 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-411/.semver/PR-411 07:05:20 2023-02-13 07:05:20,479 [execute] INFO git cat-file --batch-check 07:05:20 2023-02-13 07:05:20,480 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-411/.semver, universal_newlines=False, shell=None, istream=) 07:05:20 2023-02-13 07:05:20,486 [execute] INFO git cat-file --batch 07:05:20 2023-02-13 07:05:20,487 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-411/.semver, universal_newlines=False, shell=None, istream=) 07:05:20 2023-02-13 07:05:20,493 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-411/.semver/PR-411 07:05:20 0.0.0 [Pipeline] } 07:05:20 $ docker exec --env ******** --env ******** 7d7251d0d543cceab4a2111c1f00e4305569e3140a2d1ca69f0bb450981f01df ssh-agent -k 07:05:20 unset SSH_AUTH_SOCK; 07:05:20 unset SSH_AGENT_PID; 07:05:20 echo Agent pid 76 killed; 07:05:20 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 07:05:21 + git semver [Pipeline] } 07:05:21 $ docker stop --time=1 7d7251d0d543cceab4a2111c1f00e4305569e3140a2d1ca69f0bb450981f01df 07:05:22 $ docker rm -f --volumes 7d7251d0d543cceab4a2111c1f00e4305569e3140a2d1ca69f0bb450981f01df [Pipeline] // withDockerContainer [Pipeline] sh 07:05:23 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 07:05:23 Stashed 1 file(s) [Pipeline] echo 07:05:23 [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 07:05:24 provisioning config files... 07:05:24 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/config5400532509857006904tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:05:24 ---> docker-login.sh 07:05:24 nexus3.edgexfoundry.org:10001 07:05:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:24 Configure a credential helper to remove this warning. See 07:05:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:24 07:05:24 Login Succeeded 07:05:24 nexus3.edgexfoundry.org:10002 07:05:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:24 Configure a credential helper to remove this warning. See 07:05:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:24 07:05:24 Login Succeeded 07:05:24 nexus3.edgexfoundry.org:10003 07:05:24 Running on prd-ubuntu20.04-docker-arm64-4c-16g-5491 in /w/workspace/xfoundry_device-modbus-go_PR-411 [Pipeline] { [Pipeline] ws 07:05:24 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 07:05:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:24 Configure a credential helper to remove this warning. See 07:05:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:24 07:05:24 Login Succeeded 07:05:24 nexus3.edgexfoundry.org:10004 07:05:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:24 Configure a credential helper to remove this warning. See 07:05:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:24 07:05:24 Login Succeeded 07:05:24 docker.io 07:05:24 Selected Git installation does not exist. Using Default 07:05:24 The recommended git tool is: NONE 07:05:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:25 Configure a credential helper to remove this warning. See 07:05:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:25 07:05:25 Login Succeeded 07:05:25 ---> docker-login.sh ends [Pipeline] } 07:05:25 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 07:05:25 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:05:25 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:05:25 ========================================================= 07:05:25 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine] 07:05:25 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:05:25 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine --build-arg MAKE=echo noop --target=builder . 07:05:25 Sending build context to Docker daemon 6.38MB 07:05:25 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 07:05:25 Step 2/10 : FROM ${BASE} AS builder 07:05:25 1.18-alpine: Pulling from edgex-devops/edgex-golang-base 07:05:25 213ec9aee27d: Pulling fs layer 07:05:25 4583459ba037: Pulling fs layer 07:05:25 93c1e223e6f2: Pulling fs layer 07:05:25 53926ce57604: Pulling fs layer 07:05:25 21b2b0c7a3f4: Pulling fs layer 07:05:25 22ff95d597cd: Pulling fs layer 07:05:25 12d6caf4c0d1: Pulling fs layer 07:05:25 96b7cbca73a9: Pulling fs layer 07:05:25 a7acece74701: Pulling fs layer 07:05:25 53926ce57604: Waiting 07:05:25 22ff95d597cd: Waiting 07:05:25 12d6caf4c0d1: Waiting 07:05:25 21b2b0c7a3f4: Waiting 07:05:25 96b7cbca73a9: Waiting 07:05:25 a7acece74701: Waiting 07:05:25 93c1e223e6f2: Verifying Checksum 07:05:25 93c1e223e6f2: Download complete 07:05:26 4583459ba037: Download complete 07:05:26 21b2b0c7a3f4: Verifying Checksum 07:05:26 21b2b0c7a3f4: Download complete 07:05:26 22ff95d597cd: Verifying Checksum 07:05:26 22ff95d597cd: Download complete 07:05:26 213ec9aee27d: Verifying Checksum 07:05:26 213ec9aee27d: Download complete 07:05:26 12d6caf4c0d1: Download complete 07:05:26 213ec9aee27d: Pull complete 07:05:26 4583459ba037: Pull complete 07:05:26 93c1e223e6f2: Pull complete 07:05:27 a7acece74701: Verifying Checksum 07:05:27 a7acece74701: Download complete 07:05:27 96b7cbca73a9: Verifying Checksum 07:05:27 96b7cbca73a9: Download complete 07:05:27 53926ce57604: Verifying Checksum 07:05:27 53926ce57604: Download complete 07:05:29 using credential edgex-jenkins-ssh 07:05:29 Cloning the remote Git repository 07:05:29 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 07:05:29 > git init /w/workspace/device-modbus-go/1 # timeout=10 07:05:29 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 07:05:29 > git --version # timeout=10 07:05:29 > git --version # 'git version 2.25.1' 07:05:29 using GIT_SSH to set credentials SSH Credentials for GitHub 07:05:29 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 07:05:30 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 07:05:31 53926ce57604: Pull complete 07:05:31 21b2b0c7a3f4: Pull complete 07:05:31 22ff95d597cd: Pull complete 07:05:31 12d6caf4c0d1: Pull complete 07:05:30 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 07:05:31 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 07:05:31 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 07:05:31 using GIT_SSH to set credentials SSH Credentials for GitHub 07:05:31 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/411/head:refs/remotes/origin/PR-411 +refs/heads/main:refs/remotes/origin/main # timeout=10 07:05:32 Merging remotes/origin/main commit 05607db3767b12e2b1688c1d4c1138f7ff4649fd into PR head commit 051755cd082bf34e42ec22189455455158aa0636 07:05:32 Merge succeeded, producing 051755cd082bf34e42ec22189455455158aa0636 07:05:32 Checking out Revision 051755cd082bf34e42ec22189455455158aa0636 (PR-411) 07:05:32 > git config core.sparsecheckout # timeout=10 07:05:32 > git checkout -f 051755cd082bf34e42ec22189455455158aa0636 # timeout=10 07:05:32 > git remote # timeout=10 07:05:32 > git config --get remote.origin.url # timeout=10 07:05:32 using GIT_SSH to set credentials SSH Credentials for GitHub 07:05:32 > git merge 05607db3767b12e2b1688c1d4c1138f7ff4649fd # timeout=10 07:05:32 > git rev-parse HEAD^{commit} # timeout=10 07:05:32 > git config core.sparsecheckout # timeout=10 07:05:32 > git checkout -f 051755cd082bf34e42ec22189455455158aa0636 # timeout=10 07:05:34 96b7cbca73a9: Pull complete 07:05:34 a7acece74701: Pull complete 07:05:34 Digest: sha256:f6a9ef70c52da88a2ff63a0c6767b24654f9f5185d1d85ca6cc3004fb48f6c2d 07:05:34 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine 07:05:34 ---> db6d94c90886 07:05:34 Step 3/10 : ARG ADD_BUILD_TAGS="" 07:05:36 Commit message: "build(deps): bump device-sdk-go and go-mod-core-contracts versions" 07:05:36 > git --version # timeout=10 07:05:36 > git --version # 'git version 2.25.1' 07:05:36 fatal: bad object cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 07:05:36 ---> Running in 532a53f30e40 07:05:36 Removing intermediate container 532a53f30e40 07:05:36 ---> 9bcba3afe9ed 07:05:36 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 07:05:36 ---> Running in ff46e7aafc9f 07:05:36 Removing intermediate container ff46e7aafc9f 07:05:36 ---> 7c1142370331 07:05:36 Step 5/10 : RUN apk add --update --no-cache make git openssh 07:05:37 ---> Running in 92b58cefafc4 07:05:37 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 07:05:37 % Total % Received % Xferd Average Speed Time Time Time Current 07:05:37 Dload Upload Total Spent Left Speed 07:05:37 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 93072 0 --:--:-- --:--:-- --:--:-- 93757 07:05:37 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 07:05:37 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz [Pipeline] sh 07:05:37 (1/8) Installing openssh-keygen (9.0_p1-r2) 07:05:37 (2/8) Installing libedit (20210910.3.1-r0) 07:05:37 (3/8) Installing openssh-client-common (9.0_p1-r2) 07:05:37 (4/8) Installing openssh-client-default (9.0_p1-r2) 07:05:37 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 07:05:37 (6/8) Installing openssh-server-common (9.0_p1-r2) 07:05:37 (7/8) Installing openssh-server (9.0_p1-r2) 07:05:37 (8/8) Installing openssh (9.0_p1-r2) 07:05:37 Executing busybox-1.35.0-r17.trigger 07:05:37 OK: 217 MiB in 59 packages 07:05:37 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 07:05:38 + sudo tee /etc/docker/daemon.new 07:05:38 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 07:05:38 { 07:05:38 "registry-mirrors": [ 07:05:38 "https://nexus3.edgexfoundry.org:10001" 07:05:38 ], 07:05:38 "bip": "10.250.0.254/24", 07:05:38 "hosts": [ 07:05:38 "tcp://0.0.0.0:5555", 07:05:38 "unix:///var/run/docker.sock" 07:05:38 ], 07:05:38 "mtu": 1458, 07:05:38 "selinux-enabled": true, 07:05:38 "seccomp-profile": "/etc/docker/seccomp.json" 07:05:38 } [Pipeline] sh 07:05:38 Removing intermediate container 92b58cefafc4 07:05:38 ---> 04eca457beb9 07:05:38 Step 6/10 : WORKDIR /device-modbus-go 07:05:38 ---> Running in efe59b9f3955 07:05:38 Removing intermediate container efe59b9f3955 07:05:38 ---> f6b66c59b01d 07:05:38 Step 7/10 : COPY go.mod vendor* ./ 07:05:38 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 07:05:38 ---> 2d8e4155ce21 07:05:38 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:05:38 ---> Running in fa8e78893f81 07:05:39 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:05:57 provisioning config files... 07:05:57 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config27395349400917804tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:05:57 ---> docker-login.sh 07:05:57 nexus3.edgexfoundry.org:10001 07:05:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:58 Configure a credential helper to remove this warning. See 07:05:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:58 07:05:58 Login Succeeded 07:05:58 nexus3.edgexfoundry.org:10002 07:05:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:58 Configure a credential helper to remove this warning. See 07:05:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:58 07:05:58 Login Succeeded 07:05:58 nexus3.edgexfoundry.org:10003 07:05:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:59 Configure a credential helper to remove this warning. See 07:05:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:59 07:05:59 Login Succeeded 07:05:59 nexus3.edgexfoundry.org:10004 07:05:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:59 Configure a credential helper to remove this warning. See 07:05:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:59 07:05:59 Login Succeeded 07:05:59 docker.io 07:05:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:05:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:05:59 Configure a credential helper to remove this warning. See 07:05:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:05:59 07:05:59 Login Succeeded 07:05:59 ---> docker-login.sh ends [Pipeline] } 07:05:59 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 07:06:00 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:06:00 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:06:00 ========================================================= 07:06:00 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine] 07:06:00 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:06:00 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine --build-arg MAKE=echo noop --target=builder . 07:06:03 Sending build context to Docker daemon 3.33MB 07:06:03 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 07:06:03 Step 2/10 : FROM ${BASE} AS builder 07:06:03 1.18-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 07:06:03 9b18e9b68314: Pulling fs layer 07:06:03 35d82f9e3411: Pulling fs layer 07:06:03 e16973657156: Pulling fs layer 07:06:03 fc693d55d65f: Pulling fs layer 07:06:03 7e9fc2657dce: Pulling fs layer 07:06:03 dda99020689f: Pulling fs layer 07:06:03 db1c61fa0a46: Pulling fs layer 07:06:03 891c053d2c06: Pulling fs layer 07:06:03 fc693d55d65f: Waiting 07:06:03 7e9fc2657dce: Waiting 07:06:03 dda99020689f: Waiting 07:06:03 db1c61fa0a46: Waiting 07:06:03 891c053d2c06: Waiting 07:06:03 e16973657156: Download complete 07:06:03 35d82f9e3411: Verifying Checksum 07:06:03 35d82f9e3411: Download complete 07:06:03 7e9fc2657dce: Verifying Checksum 07:06:03 7e9fc2657dce: Download complete 07:06:03 dda99020689f: Verifying Checksum 07:06:03 dda99020689f: Download complete 07:06:03 9b18e9b68314: Download complete 07:06:04 9b18e9b68314: Pull complete 07:06:04 891c053d2c06: Verifying Checksum 07:06:04 891c053d2c06: Download complete 07:06:04 35d82f9e3411: Pull complete 07:06:05 e16973657156: Pull complete 07:06:05 db1c61fa0a46: Verifying Checksum 07:06:05 db1c61fa0a46: Download complete 07:06:06 fc693d55d65f: Download complete 07:06:10 Removing intermediate container fa8e78893f81 07:06:10 ---> eda329072180 07:06:10 Step 9/10 : COPY . . 07:06:10 ---> dac7d0d825cd 07:06:10 Step 10/10 : RUN ${MAKE} 07:06:10 ---> Running in fc04c9f2d951 07:06:10 noop 07:06:11 Removing intermediate container fc04c9f2d951 07:06:11 ---> 87cf7a5b3d74 07:06:11 Successfully built 87cf7a5b3d74 07:06:11 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:06:11 + docker inspect -f . ci-base-image-x86_64 07:06:11 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:06:11 prd-ubuntu20.04-docker-8c-8g-5494 does not seem to be running inside a container 07:06:11 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-411 -v /w/workspace/xfoundry_device-modbus-go_PR-411:/w/workspace/xfoundry_device-modbus-go_PR-411:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-411@tmp:/w/workspace/xfoundry_device-modbus-go_PR-411@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 ******** ci-base-image-x86_64 cat 07:06:12 $ docker top d414186126693ce1017bb45758694939162b8779c95becb4fa0f8e3a67e661cb -eo pid,comm [Pipeline] { [Pipeline] sh 07:06:12 + go version 07:06:12 go version go1.18.7 linux/amd64 [Pipeline] } 07:06:12 $ docker stop --time=1 d414186126693ce1017bb45758694939162b8779c95becb4fa0f8e3a67e661cb 07:06:13 $ docker rm -f --volumes d414186126693ce1017bb45758694939162b8779c95becb4fa0f8e3a67e661cb [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:06:14 + docker inspect -f . ci-base-image-x86_64 07:06:14 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:06:14 prd-ubuntu20.04-docker-8c-8g-5494 does not seem to be running inside a container 07:06:14 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/xfoundry_device-modbus-go_PR-411 -v /w/workspace/xfoundry_device-modbus-go_PR-411:/w/workspace/xfoundry_device-modbus-go_PR-411:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-411@tmp:/w/workspace/xfoundry_device-modbus-go_PR-411@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 ******** ci-base-image-x86_64 cat 07:06:15 $ docker top e4046100624a339b312104b71ab9936bd24206565c3d82097a1dec6bc5fea394 -eo pid,comm [Pipeline] { [Pipeline] sh 07:06:15 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-411 [Pipeline] fileExists [Pipeline] sh 07:06:15 + make test 07:06:15 go test ./... -coverprofile=coverage.out 07:06:16 ? github.com/edgexfoundry/device-modbus-go [no test files] 07:06:18 fc693d55d65f: Pull complete 07:06:18 7e9fc2657dce: Pull complete 07:06:18 dda99020689f: Pull complete 07:06:25 db1c61fa0a46: Pull complete 07:06:26 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 07:06:26 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.015s coverage: 47.7% of statements 07:06:27 891c053d2c06: Pull complete 07:06:27 Digest: sha256:2cacf8bfc28650abd52610e42dcfc04852e818eb73900ea96edaef96a54d0b45 07:06:27 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine 07:06:27 ---> f96f9c87975a 07:06:27 Step 3/10 : ARG ADD_BUILD_TAGS="" 07:06:28 ---> Running in 8c234167793b 07:06:28 Removing intermediate container 8c234167793b 07:06:28 ---> b0d46c0ad94f 07:06:28 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 07:06:28 ---> Running in 4818a593bf63 07:06:28 Removing intermediate container 4818a593bf63 07:06:28 ---> befdf37026c9 07:06:28 Step 5/10 : RUN apk add --update --no-cache make git openssh 07:06:29 ---> Running in 260007cb28c8 07:06:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 07:06:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 07:06:31 (1/8) Installing openssh-keygen (9.0_p1-r2) 07:06:31 (2/8) Installing libedit (20210910.3.1-r0) 07:06:31 (3/8) Installing openssh-client-common (9.0_p1-r2) 07:06:31 (4/8) Installing openssh-client-default (9.0_p1-r2) 07:06:31 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 07:06:31 (6/8) Installing openssh-server-common (9.0_p1-r2) 07:06:31 (7/8) Installing openssh-server (9.0_p1-r2) 07:06:31 (8/8) Installing openssh (9.0_p1-r2) 07:06:31 Executing busybox-1.35.0-r17.trigger 07:06:31 OK: 228 MiB in 59 packages 07:06:32 level=warning msg="[linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649." 07:06:32 go vet ./... 07:06:32 Removing intermediate container 260007cb28c8 07:06:32 ---> ad99e0194884 07:06:32 Step 6/10 : WORKDIR /device-modbus-go 07:06:32 ---> Running in 500c9d66103a 07:06:33 Removing intermediate container 500c9d66103a 07:06:33 ---> 64528fad5755 07:06:33 Step 7/10 : COPY go.mod vendor* ./ 07:06:33 ---> 2adf5715951d 07:06:33 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:06:33 ---> Running in f450d1de4ac0 07:06:36 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 07:06:36 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 07:06:36 ./bin/test-attribution-txt.sh 07:06:36 An attribution for golang.org/x/mod is missing from Attribution.txt, please add 07:06:36 An attribution for golang.org/x/tools is missing from Attribution.txt, please add [Pipeline] echo 07:06:36 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 07:06:36 $ docker stop --time=1 e4046100624a339b312104b71ab9936bd24206565c3d82097a1dec6bc5fea394 07:06:38 $ docker rm -f --volumes e4046100624a339b312104b71ab9936bd24206565c3d82097a1dec6bc5fea394 [Pipeline] // withDockerContainer [Pipeline] sh 07:06:38 + sudo chown -R jenkins:jenkins . [Pipeline] stash 07:06:38 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 07:06:39 + sudo chown -R jenkins:jenkins . [Pipeline] sh 07:06:39 + ls -al . 07:06:39 total 184 07:06:39 drwxrwxr-x 10 jenkins jenkins 4096 Feb 13 07:06 . 07:06:39 drwxrwxr-x 4 jenkins jenkins 4096 Feb 13 07:04 .. 07:06:39 -rw-rw-r-- 1 jenkins jenkins 140 Feb 13 07:04 .dockerignore 07:06:39 drwxrwxr-x 8 jenkins jenkins 4096 Feb 13 07:06 .git 07:06:39 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:04 .github 07:06:39 -rw-rw-r-- 1 jenkins jenkins 331 Feb 13 07:04 .gitignore 07:06:39 -rw-rw-r-- 1 jenkins jenkins 41 Feb 13 07:04 .golangci.yml 07:06:39 drwxr-xr-x 3 jenkins jenkins 4096 Feb 13 07:05 .semver 07:06:39 -rw-rw-r-- 1 jenkins jenkins 10017 Feb 13 07:04 Attribution.txt 07:06:39 -rw-rw-r-- 1 jenkins jenkins 11576 Feb 13 07:04 CHANGELOG.md 07:06:39 -rw-rw-r-- 1 jenkins jenkins 1365 Feb 13 07:04 Dockerfile 07:06:39 -rw-rw-r-- 1 jenkins jenkins 677 Feb 13 07:04 GOVERNANCE.md 07:06:39 -rw-rw-r-- 1 jenkins jenkins 680 Feb 13 07:04 Jenkinsfile 07:06:39 -rw-rw-r-- 1 jenkins jenkins 11340 Feb 13 07:04 LICENSE 07:06:39 -rw-rw-r-- 1 jenkins jenkins 1670 Feb 13 07:04 Makefile 07:06:39 -rw-rw-r-- 1 jenkins jenkins 622 Feb 13 07:04 OWNERS.md 07:06:39 -rw-rw-r-- 1 jenkins jenkins 4061 Feb 13 07:04 README.md 07:06:39 -rw-rw-r-- 1 jenkins jenkins 5 Feb 13 07:05 VERSION 07:06:39 drwxrwxr-x 2 jenkins jenkins 4096 Feb 13 07:04 bin 07:06:39 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:04 cmd 07:06:39 -rw-r--r-- 1 jenkins jenkins 23241 Feb 13 07:06 coverage.out 07:06:39 -rw-rw-r-- 1 jenkins jenkins 3496 Feb 13 07:04 go.mod 07:06:39 -rw-rw-r-- 1 jenkins jenkins 33621 Feb 13 07:04 go.sum 07:06:39 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:04 internal 07:06:39 drwxrwxr-x 2 jenkins jenkins 4096 Feb 13 07:04 simulator 07:06:39 drwxrwxr-x 4 jenkins jenkins 4096 Feb 13 07:04 snap 07:06:39 -rw-rw-r-- 1 jenkins jenkins 229 Feb 13 07:04 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:06:40 + 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=051755cd082bf34e42ec22189455455158aa0636 --label arch=amd64 --label version=0.0.0 . 07:06:40 Sending build context to Docker daemon 6.404MB 07:06:40 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 07:06:40 Step 2/22 : FROM ${BASE} AS builder 07:06:40 ---> 87cf7a5b3d74 07:06:40 Step 3/22 : ARG ADD_BUILD_TAGS="" 07:06:40 ---> Running in a63fa713ba28 07:06:40 Removing intermediate container a63fa713ba28 07:06:40 ---> b19b1cef17be 07:06:40 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 07:06:40 ---> Running in 5cf29d880e1e 07:06:40 Removing intermediate container 5cf29d880e1e 07:06:40 ---> 1fa01ceeb2fc 07:06:40 Step 5/22 : RUN apk add --update --no-cache make git openssh 07:06:40 ---> Running in de85d0451bd8 07:06:40 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 07:06:40 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 07:06:41 OK: 217 MiB in 59 packages 07:06:41 Removing intermediate container de85d0451bd8 07:06:41 ---> 986bdc1f5c75 07:06:41 Step 6/22 : WORKDIR /device-modbus-go 07:06:41 ---> Running in 52559ea5eb3c 07:06:41 Removing intermediate container 52559ea5eb3c 07:06:41 ---> 8f68fa94281b 07:06:41 Step 7/22 : COPY go.mod vendor* ./ 07:06:41 ---> 1f8a27841d5c 07:06:41 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:06:42 ---> Running in baddaa16a879 07:06:42 Removing intermediate container baddaa16a879 07:06:42 ---> e59165c18454 07:06:42 Step 9/22 : COPY . . 07:06:42 ---> 957111c90f6b 07:06:42 Step 10/22 : RUN ${MAKE} 07:06:43 ---> Running in a45df6da8814 07:06:43 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 07:07:01 Removing intermediate container a45df6da8814 07:07:01 ---> 8091d6be4bbd 07:07:01 Step 11/22 : FROM alpine:3.14 07:07:01 3.14: Pulling from library/alpine 07:07:01 d261077062b2: Pulling fs layer 07:07:01 d261077062b2: Verifying Checksum 07:07:01 d261077062b2: Download complete 07:07:01 d261077062b2: Pull complete 07:07:01 Digest: sha256:560e7a4fa5c891d1830f5591c80b8e472fa6cd386b7254cdf65ccc3249292a34 07:07:01 Status: Downloaded newer image for alpine:3.14 07:07:01 ---> 6dff1269bc79 07:07:01 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 07:07:01 ---> Running in 8d287f8b8af6 07:07:01 Removing intermediate container 8d287f8b8af6 07:07:01 ---> f512c15b7855 07:07:01 Step 13/22 : RUN apk add --update --no-cache dumb-init 07:07:01 ---> Running in d16d906e2f45 07:07:01 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 07:07:02 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 07:07:02 (1/1) Installing dumb-init (1.2.5-r1) 07:07:02 Executing busybox-1.33.1-r8.trigger 07:07:02 OK: 6 MiB in 15 packages 07:07:02 Removing intermediate container d16d906e2f45 07:07:02 ---> e4b7ee539d28 07:07:02 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 07:07:03 ---> 8b8e59aea28c 07:07:03 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 07:07:03 ---> 1db0bae48cc1 07:07:03 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 07:07:03 ---> 2ef032a763f4 07:07:03 Step 17/22 : EXPOSE 59901 07:07:03 ---> Running in 80b1301df0c8 07:07:03 Removing intermediate container 80b1301df0c8 07:07:03 ---> 31f47a8fd4f3 07:07:03 Step 18/22 : ENTRYPOINT ["/device-modbus"] 07:07:03 ---> Running in ec882e5a9713 07:07:03 Removing intermediate container ec882e5a9713 07:07:03 ---> 3601ca074854 07:07:03 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 07:07:03 ---> Running in 74a04af7fb6a 07:07:03 Removing intermediate container 74a04af7fb6a 07:07:03 ---> ee2ba30ebb2f 07:07:03 Step 20/22 : LABEL arch=amd64 07:07:03 ---> Running in de815cf026a0 07:07:04 Removing intermediate container de815cf026a0 07:07:04 ---> 1287d96a3feb 07:07:04 Step 21/22 : LABEL git_sha=051755cd082bf34e42ec22189455455158aa0636 07:07:04 ---> Running in bee3b3ebd402 07:07:04 Removing intermediate container bee3b3ebd402 07:07:04 ---> 21d37ea650ca 07:07:04 Step 22/22 : LABEL version=0.0.0 07:07:04 ---> Running in 8c528a58255c 07:07:04 Removing intermediate container 8c528a58255c 07:07:04 ---> eba6dbd09ad0 07:07:04 [Warning] One or more build-args [ARCH] were not consumed 07:07:04 Successfully built eba6dbd09ad0 07:07:04 Successfully tagged device-modbus:latest [Pipeline] } [Pipeline] // withEnv [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] withEnv [Pipeline] { [Pipeline] sh 07:07:05 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:07:05 07:07:05 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:07:05 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:07:05 latest: Pulling from edgex-lftools-log-publisher 07:07:05 5eb5b503b376: Pulling fs layer 07:07:05 5c69ac0246d0: Pulling fs layer 07:07:05 ec43610c2a17: Pulling fs layer 07:07:05 3a2ae6a8a46f: Pulling fs layer 07:07:05 33b1e0a273af: Pulling fs layer 07:07:05 5d3b04190fa2: Pulling fs layer 07:07:05 2f39f015ded8: Pulling fs layer 07:07:05 33b1e0a273af: Waiting 07:07:05 5d3b04190fa2: Waiting 07:07:05 3a2ae6a8a46f: Waiting 07:07:05 5c69ac0246d0: Verifying Checksum 07:07:05 5c69ac0246d0: Download complete 07:07:05 3a2ae6a8a46f: Verifying Checksum 07:07:05 3a2ae6a8a46f: Download complete 07:07:06 33b1e0a273af: Verifying Checksum 07:07:06 33b1e0a273af: Download complete 07:07:06 5d3b04190fa2: Verifying Checksum 07:07:06 5d3b04190fa2: Download complete 07:07:06 ec43610c2a17: Verifying Checksum 07:07:06 ec43610c2a17: Download complete 07:07:06 5eb5b503b376: Verifying Checksum 07:07:06 5eb5b503b376: Download complete 07:07:06 2f39f015ded8: Download complete 07:07:07 5eb5b503b376: Pull complete 07:07:07 5c69ac0246d0: Pull complete 07:07:07 ec43610c2a17: Pull complete 07:07:07 3a2ae6a8a46f: Pull complete 07:07:07 33b1e0a273af: Pull complete 07:07:08 5d3b04190fa2: Pull complete 07:07:12 2f39f015ded8: Pull complete 07:07:12 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 07:07:12 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:07:12 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:07:12 prd-ubuntu20.04-docker-8c-8g-5494 does not seem to be running inside a container 07:07:12 $ 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-411 -v /w/workspace/xfoundry_device-modbus-go_PR-411:/w/workspace/xfoundry_device-modbus-go_PR-411:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-411@tmp:/w/workspace/xfoundry_device-modbus-go_PR-411@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-lftools-log-publisher:latest cat 07:07:14 $ docker top f2b4f379a6f827cef0652de5487395c643def7f68d2511c5661e5509ebe1a49a -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:07:14 ---> job-cost.sh 07:07:14 lf-activate-venv: SKIPPING 07:07:14 INFO: No Stack... 07:07:15 INFO: Retrieving Pricing Info for: v3-standard-8 07:07:15 INFO: Archiving Costs [Pipeline] sh 07:07:16 + cat /w/workspace/xfoundry_device-modbus-go_PR-411/archives/cost.csv 07:07:16 + cut -d, -f6 [Pipeline] lock 07:07:16 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-411-1-stack-cost] 07:07:16 Resource [jenkins-edgexfoundry-device-modbus-go-PR-411-1-stack-cost] did not exist. Created. 07:07:16 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-411-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 07:07:16 + echo total: 0.2199999988079071 [Pipeline] stash 07:07:16 Stashed 1 file(s) [Pipeline] } 07:07:16 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-411-1-stack-cost] [Pipeline] // lock [Pipeline] } 07:07:16 $ docker stop --time=1 f2b4f379a6f827cef0652de5487395c643def7f68d2511c5661e5509ebe1a49a 07:07:17 $ docker rm -f --volumes f2b4f379a6f827cef0652de5487395c643def7f68d2511c5661e5509ebe1a49a [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 07:07:41 Removing intermediate container f450d1de4ac0 07:07:41 ---> cf7be57ba395 07:07:41 Step 9/10 : COPY . . 07:07:41 ---> 8e7a7c4aacde 07:07:41 Step 10/10 : RUN ${MAKE} 07:07:41 ---> Running in 156f5e3fd1b3 07:07:41 noop 07:07:41 Removing intermediate container 156f5e3fd1b3 07:07:41 ---> ff8dc9e0a772 07:07:41 Successfully built ff8dc9e0a772 07:07:41 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:07:42 + docker inspect -f . ci-base-image-arm64 07:07:42 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:07:42 prd-ubuntu20.04-docker-arm64-4c-16g-5491 does not seem to be running inside a container 07:07:42 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 07:07:43 $ docker top 6227e43d49a4b2b9286211fc92249f93500d14c78bb24caf6c0ccc24faeda5eb -eo pid,comm [Pipeline] { [Pipeline] sh 07:07:44 + go version 07:07:44 go version go1.18.7 linux/arm64 [Pipeline] } 07:07:44 $ docker stop --time=1 6227e43d49a4b2b9286211fc92249f93500d14c78bb24caf6c0ccc24faeda5eb 07:07:46 $ docker rm -f --volumes 6227e43d49a4b2b9286211fc92249f93500d14c78bb24caf6c0ccc24faeda5eb [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:07:47 + docker inspect -f . ci-base-image-arm64 07:07:47 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:07:47 prd-ubuntu20.04-docker-arm64-4c-16g-5491 does not seem to be running inside a container 07:07:47 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 07:07:48 $ docker top 5d59ebf9825b95b3f196c6ddf53a716da56f141f5e6a72dfc6ad31916b0618a6 -eo pid,comm [Pipeline] { [Pipeline] sh 07:07:49 + git config --global --add safe.directory /w/workspace/device-modbus-go/1 [Pipeline] fileExists [Pipeline] sh 07:07:50 + make test 07:07:50 go test ./... -coverprofile=coverage.out 07:07:51 ? github.com/edgexfoundry/device-modbus-go [no test files] 07:09:13 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 07:09:13 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.062s coverage: 47.7% of statements 07:09:13 WARNING: Linting skipped (not on x86_64 or linter not installed) 07:09:13 go vet ./... 07:09:31 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 07:09:31 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 07:09:31 ./bin/test-attribution-txt.sh 07:09:31 An attribution for golang.org/x/mod is missing from Attribution.txt, please add 07:09:31 An attribution for golang.org/x/tools is missing from Attribution.txt, please add [Pipeline] echo 07:09:31 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 07:09:31 $ docker stop --time=1 5d59ebf9825b95b3f196c6ddf53a716da56f141f5e6a72dfc6ad31916b0618a6 07:09:33 $ docker rm -f --volumes 5d59ebf9825b95b3f196c6ddf53a716da56f141f5e6a72dfc6ad31916b0618a6 [Pipeline] // withDockerContainer [Pipeline] sh 07:09:34 + sudo chown -R jenkins:jenkins . [Pipeline] stash 07:09:34 Warning: overwriting stash ‘coverage-report’ 07:09:35 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 07:09:35 + sudo chown -R jenkins:jenkins . [Pipeline] sh 07:09:36 + ls -al . 07:09:36 total 180 07:09:36 drwxrwxr-x 9 jenkins jenkins 4096 Feb 13 07:07 . 07:09:36 drwxrwxr-x 4 jenkins jenkins 4096 Feb 13 07:05 .. 07:09:36 -rw-rw-r-- 1 jenkins jenkins 140 Feb 13 07:05 .dockerignore 07:09:36 drwxrwxr-x 8 jenkins jenkins 4096 Feb 13 07:05 .git 07:09:36 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:05 .github 07:09:36 -rw-rw-r-- 1 jenkins jenkins 331 Feb 13 07:05 .gitignore 07:09:36 -rw-rw-r-- 1 jenkins jenkins 41 Feb 13 07:05 .golangci.yml 07:09:36 -rw-rw-r-- 1 jenkins jenkins 10017 Feb 13 07:05 Attribution.txt 07:09:36 -rw-rw-r-- 1 jenkins jenkins 11576 Feb 13 07:05 CHANGELOG.md 07:09:36 -rw-rw-r-- 1 jenkins jenkins 1365 Feb 13 07:05 Dockerfile 07:09:36 -rw-rw-r-- 1 jenkins jenkins 677 Feb 13 07:05 GOVERNANCE.md 07:09:36 -rw-rw-r-- 1 jenkins jenkins 680 Feb 13 07:05 Jenkinsfile 07:09:36 -rw-rw-r-- 1 jenkins jenkins 11340 Feb 13 07:05 LICENSE 07:09:36 -rw-rw-r-- 1 jenkins jenkins 1670 Feb 13 07:05 Makefile 07:09:36 -rw-rw-r-- 1 jenkins jenkins 622 Feb 13 07:05 OWNERS.md 07:09:36 -rw-rw-r-- 1 jenkins jenkins 4061 Feb 13 07:05 README.md 07:09:36 -rw-rw-r-- 1 jenkins jenkins 5 Feb 13 07:05 VERSION 07:09:36 drwxrwxr-x 2 jenkins jenkins 4096 Feb 13 07:05 bin 07:09:36 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:05 cmd 07:09:36 -rw-r--r-- 1 jenkins jenkins 23241 Feb 13 07:09 coverage.out 07:09:36 -rw-rw-r-- 1 jenkins jenkins 3496 Feb 13 07:05 go.mod 07:09:36 -rw-rw-r-- 1 jenkins jenkins 33621 Feb 13 07:05 go.sum 07:09:36 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:05 internal 07:09:36 drwxrwxr-x 2 jenkins jenkins 4096 Feb 13 07:05 simulator 07:09:36 drwxrwxr-x 4 jenkins jenkins 4096 Feb 13 07:05 snap 07:09:36 -rw-rw-r-- 1 jenkins jenkins 229 Feb 13 07:05 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:09:36 + 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=051755cd082bf34e42ec22189455455158aa0636 --label arch=arm64 --label version=0.0.0 . 07:09:36 Sending build context to Docker daemon 3.354MB 07:09:36 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 07:09:36 Step 2/22 : FROM ${BASE} AS builder 07:09:36 ---> ff8dc9e0a772 07:09:36 Step 3/22 : ARG ADD_BUILD_TAGS="" 07:09:36 ---> Running in 30cdff1164c5 07:09:37 Removing intermediate container 30cdff1164c5 07:09:37 ---> e4c9c2c68874 07:09:37 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 07:09:37 ---> Running in 2013d21f194f 07:09:37 Removing intermediate container 2013d21f194f 07:09:37 ---> f24aee4aeaae 07:09:37 Step 5/22 : RUN apk add --update --no-cache make git openssh 07:09:37 ---> Running in 1927addf5fd4 07:09:38 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 07:09:38 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 07:09:39 OK: 228 MiB in 59 packages 07:09:40 Removing intermediate container 1927addf5fd4 07:09:40 ---> f9fd12b9c6d7 07:09:40 Step 6/22 : WORKDIR /device-modbus-go 07:09:40 ---> Running in bf272a694eab 07:09:40 Removing intermediate container bf272a694eab 07:09:40 ---> 808083e3385a 07:09:40 Step 7/22 : COPY go.mod vendor* ./ 07:09:41 ---> 585449052849 07:09:41 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:09:42 ---> Running in 834a162d18f8 07:09:45 Removing intermediate container 834a162d18f8 07:09:45 ---> b868db568392 07:09:45 Step 9/22 : COPY . . 07:09:46 ---> 1edd5c0a056a 07:09:46 Step 10/22 : RUN ${MAKE} 07:09:46 ---> Running in ff633bfe99a8 07:09:47 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 07:11:53 Removing intermediate container ff633bfe99a8 07:11:53 ---> 4a2576b04d3f 07:11:53 Step 11/22 : FROM alpine:3.14 07:11:53 3.14: Pulling from library/alpine 07:11:53 6f0e733d82e2: Pulling fs layer 07:11:53 6f0e733d82e2: Download complete 07:11:53 6f0e733d82e2: Pull complete 07:11:53 Digest: sha256:560e7a4fa5c891d1830f5591c80b8e472fa6cd386b7254cdf65ccc3249292a34 07:11:53 Status: Downloaded newer image for alpine:3.14 07:11:53 ---> bf97f6347a60 07:11:53 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 07:11:53 ---> Running in 674cc20d4d6c 07:11:53 Removing intermediate container 674cc20d4d6c 07:11:53 ---> 8e71d5206a34 07:11:53 Step 13/22 : RUN apk add --update --no-cache dumb-init 07:11:53 ---> Running in a6a824db7a94 07:11:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 07:11:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 07:11:53 (1/1) Installing dumb-init (1.2.5-r1) 07:11:53 Executing busybox-1.33.1-r8.trigger 07:11:53 OK: 6 MiB in 15 packages 07:11:53 Removing intermediate container a6a824db7a94 07:11:53 ---> 02d0119fb07d 07:11:53 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 07:11:53 ---> d7d4f7f6ac6b 07:11:53 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 07:11:53 ---> 6d9509d9d5d1 07:11:53 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 07:11:53 ---> 96b0187c4620 07:11:53 Step 17/22 : EXPOSE 59901 07:11:53 ---> Running in e09e047b138d 07:11:53 Removing intermediate container e09e047b138d 07:11:53 ---> 9faa43bcca3c 07:11:53 Step 18/22 : ENTRYPOINT ["/device-modbus"] 07:11:53 ---> Running in 2307d0c0e010 07:11:53 Removing intermediate container 2307d0c0e010 07:11:53 ---> de075b4a5915 07:11:53 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 07:11:53 ---> Running in b10efa9c8ead 07:11:53 Removing intermediate container b10efa9c8ead 07:11:53 ---> cbdf46907354 07:11:53 Step 20/22 : LABEL arch=arm64 07:11:53 ---> Running in a0e81f0a6d42 07:11:53 Removing intermediate container a0e81f0a6d42 07:11:53 ---> 47ecb464a625 07:11:53 Step 21/22 : LABEL git_sha=051755cd082bf34e42ec22189455455158aa0636 07:11:53 ---> Running in aec064a3ebd0 07:11:53 Removing intermediate container aec064a3ebd0 07:11:53 ---> 1eb6abb1c814 07:11:53 Step 22/22 : LABEL version=0.0.0 07:11:53 ---> Running in 168bc6dba5ae 07:11:53 Removing intermediate container 168bc6dba5ae 07:11:53 ---> 1607e1764579 07:11:53 [Warning] One or more build-args [ARCH] were not consumed 07:11:53 Successfully built 1607e1764579 07:11:53 Successfully tagged device-modbus-arm64:latest [Pipeline] } [Pipeline] // withEnv [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] withEnv [Pipeline] { [Pipeline] sh 07:11:54 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:11:54 07:11:54 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:11:54 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:11:54 arm64: Pulling from edgex-lftools-log-publisher 07:11:54 8998bd30e6a1: Pulling fs layer 07:11:54 04944245beec: Pulling fs layer 07:11:54 699f458cf7ca: Pulling fs layer 07:11:54 765212b225bb: Pulling fs layer 07:11:54 f23df028b6ca: Pulling fs layer 07:11:54 d65c8cfc05b1: Pulling fs layer 07:11:54 2437ff75d9bd: Pulling fs layer 07:11:54 765212b225bb: Waiting 07:11:54 f23df028b6ca: Waiting 07:11:54 d65c8cfc05b1: Waiting 07:11:54 2437ff75d9bd: Waiting 07:11:55 04944245beec: Verifying Checksum 07:11:55 04944245beec: Download complete 07:11:55 765212b225bb: Verifying Checksum 07:11:55 765212b225bb: Download complete 07:11:55 f23df028b6ca: Download complete 07:11:55 d65c8cfc05b1: Verifying Checksum 07:11:55 d65c8cfc05b1: Download complete 07:11:55 699f458cf7ca: Verifying Checksum 07:11:55 699f458cf7ca: Download complete 07:11:55 8998bd30e6a1: Verifying Checksum 07:11:55 8998bd30e6a1: Download complete 07:11:57 2437ff75d9bd: Verifying Checksum 07:11:57 2437ff75d9bd: Download complete 07:11:59 8998bd30e6a1: Pull complete 07:11:59 04944245beec: Pull complete 07:12:00 699f458cf7ca: Pull complete 07:12:03 765212b225bb: Pull complete 07:12:03 f23df028b6ca: Pull complete 07:12:04 d65c8cfc05b1: Pull complete 07:12:19 2437ff75d9bd: Pull complete 07:12:19 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 07:12:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:12:19 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:12:19 prd-ubuntu20.04-docker-arm64-4c-16g-5491 does not seem to be running inside a container 07:12: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/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 07:12:21 $ docker top a7fe8aeb22aba351cc0054ee0d8e98002478782f9748d5a61f5f1bf3dcfbd039 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:12:22 ---> job-cost.sh 07:12:22 lf-activate-venv: SKIPPING 07:12:22 INFO: No Stack... 07:12:23 INFO: Retrieving Pricing Info for: v3-standard-4 07:12:23 INFO: Archiving Costs [Pipeline] sh 07:12:24 + + catcut /w/workspace/device-modbus-go/1/archives/cost.csv -d, 07:12:24 -f6 [Pipeline] lock 07:12:24 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-411-1-stack-cost] 07:12:24 Resource [jenkins-edgexfoundry-device-modbus-go-PR-411-1-stack-cost] did not exist. Created. 07:12:24 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-411-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 07:12:25 /w/workspace/device-modbus-go/1@tmp/durable-eb86e604/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 07:12:25 + echo total: 0.2199999988079071 [Pipeline] stash 07:12:25 Warning: overwriting stash ‘stack-cost’ 07:12:25 Stashed 1 file(s) [Pipeline] } 07:12:25 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-411-1-stack-cost] [Pipeline] // lock [Pipeline] } 07:12:25 $ docker stop --time=1 a7fe8aeb22aba351cc0054ee0d8e98002478782f9748d5a61f5f1bf3dcfbd039 07:12:27 $ docker rm -f --volumes a7fe8aeb22aba351cc0054ee0d8e98002478782f9748d5a61f5f1bf3dcfbd039 [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 07:12:28 provisioning config files... 07:12:28 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/config4203595170208514160tmp [Pipeline] { [Pipeline] sh 07:12:28 + set +x 07:12:28 + curl -s https://codecov.io/bash 07:12:28 + bash -s -- 07:12:28 07:12:28 _____ _ 07:12:28 / ____| | | 07:12:28 | | ___ __| | ___ ___ _____ __ 07:12:28 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 07:12:28 | |___| (_) | (_| | __/ (_| (_) \ V / 07:12:28 \_____\___/ \__,_|\___|\___\___/ \_/ 07:12:28 Bash-1.0.6 07:12:28 07:12:28 07:12:28 ==> git version 2.25.1 found 07:12:28 ==> 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 07:12:28 Release-Date: 2020-01-08 07:12:28 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 07:12:28 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 07:12:28 ==> Jenkins CI detected. 07:12:28 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-411 07:12:28 project root: . 07:12:28 --> token set from env 07:12:28 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 07:12:28 ==> Running gcov in . (disable via -X gcov) 07:12:28 ==> Python coveragepy not found 07:12:28 ==> Searching for coverage reports in: 07:12:28 + . 07:12:28 -> Found 1 reports 07:12:28 ==> Detecting git/mercurial file structure 07:12:28 ==> Reading reports 07:12:28 + ./coverage.out bytes=23241 07:12:28 ==> Appending adjustments 07:12:28 https://docs.codecov.io/docs/fixing-reports 07:12:28 + Found adjustments 07:12:28 ==> Gzipping contents 07:12:28 4.0K /tmp/codecov.njsVw3.gz 07:12:28 ==> Uploading reports 07:12:28 url: https://codecov.io 07:12:28 query: branch=PR-411&commit=051755cd082bf34e42ec22189455455158aa0636&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-411%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=411&job=&cmd_args= 07:12:28 -> Pinging Codecov 07:12:28 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-411&commit=051755cd082bf34e42ec22189455455158aa0636&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-411%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=411&job=&cmd_args= 07:12:29 -> Uploading to 07:12:29 https://storage.googleapis.com/codecov/v4/raw/2023-02-13/55DBCA73C666E3227836607328DD7E49/051755cd082bf34e42ec22189455455158aa0636/f111c102-8925-4bc4-bac6-21a81571e55f.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230213%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230213T071229Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=c3ed859933b32f6a35d8ed7466b393f9bb8e8a4432cfc3fbf174277be523c262 07:12:29 % Total % Received % Xferd Average Speed Time Time Time Current 07:12:29 Dload Upload Total Spent Left Speed 07:12:29 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3899 0 0 100 3899 0 14938 --:--:-- --:--:-- --:--:-- 14938 07:12:29 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/051755cd082bf34e42ec22189455455158aa0636 [Pipeline] } 07:12:29 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 07:12:31 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-411/archives ] 07:12:31 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-411/archives 07:12:31 total 16 07:12:31 drwxr-xr-x 3 root root 4096 Feb 13 07:07 . 07:12:31 drwxrwxr-x 11 jenkins jenkins 4096 Feb 13 07:07 .. 07:12:31 drwxr-xr-x 2 root root 4096 Feb 13 07:07 cost 07:12:31 -rw-r--r-- 1 root root 88 Feb 13 07:07 cost.csv 07:12:31 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-411/archives 07:12:31 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-411/archives 07:12:31 total 16 07:12:31 drwxr-xr-x 3 jenkins jenkins 4096 Feb 13 07:07 . 07:12:31 drwxrwxr-x 11 jenkins jenkins 4096 Feb 13 07:07 .. 07:12:31 drwxr-xr-x 2 jenkins jenkins 4096 Feb 13 07:07 cost 07:12:31 -rw-r--r-- 1 jenkins jenkins 88 Feb 13 07:07 cost.csv [Pipeline] libraryResource [Pipeline] sh 07:12:31 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 07:12:32 ---> package-listing.sh 07:12:32 ++ facter osfamily 07:12:32 ++ tr '[:upper:]' '[:lower:]' 07:12:32 + OS_FAMILY=debian 07:12:32 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-411 07:12:32 + START_PACKAGES=/tmp/packages_start.txt 07:12:32 + END_PACKAGES=/tmp/packages_end.txt 07:12:32 + DIFF_PACKAGES=/tmp/packages_diff.txt 07:12:32 + PACKAGES=/tmp/packages_start.txt 07:12:32 + '[' /w/workspace/xfoundry_device-modbus-go_PR-411 ']' 07:12:32 + PACKAGES=/tmp/packages_end.txt 07:12:32 + case "${OS_FAMILY}" in 07:12:32 + dpkg -l 07:12:32 + grep '^ii' 07:12:32 + '[' -f /tmp/packages_start.txt ']' 07:12:32 + '[' -f /tmp/packages_end.txt ']' 07:12:32 + diff /tmp/packages_start.txt /tmp/packages_end.txt 07:12:32 + '[' /w/workspace/xfoundry_device-modbus-go_PR-411 ']' 07:12:32 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-411/archives/ 07:12:32 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-411/archives/ [Pipeline] echo 07:12:32 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-411/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 07:12:32 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:12:33 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:12:33 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:12:33 prd-ubuntu20.04-docker-8c-8g-5494 does not seem to be running inside a container 07:12:33 $ 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-411/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-411 -v /w/workspace/xfoundry_device-modbus-go_PR-411:/w/workspace/xfoundry_device-modbus-go_PR-411:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-411@tmp:/w/workspace/xfoundry_device-modbus-go_PR-411@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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 07:12:33 $ docker top 4e66eb5ce6516fa05b86d65f1beb570965c01b3f89366a3f2f70f43bd027ad57 -eo pid,comm [Pipeline] { [Pipeline] sh 07:12:34 + touch /tmp/pre-build-complete [Pipeline] sh 07:12:34 + mkdir -p /var/log/sysstat [Pipeline] sh 07:12:34 + ls /var/log/sa-host 07:12:34 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:12:35 provisioning config files... 07:12:35 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/config5857922390142879601tmp [Pipeline] { [Pipeline] echo 07:12:35 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 07:12:35 ---> create-netrc.sh [Pipeline] } 07:12:35 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 07:12:35 ---> python-tools-install.sh [Pipeline] echo 07:12:35 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 07:12:36 ---> sudo-logs.sh 07:12:36 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 07:12:36 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 07:12:36 ---> job-cost.sh 07:12:36 lf-activate-venv: SKIPPING 07:12:36 DEBUG: total: 0.2199999988079071 07:12:36 INFO: Retrieving Stack Cost... 07:12:36 INFO: Retrieving Pricing Info for: v3-standard-8 07:12:37 INFO: Archiving Costs [Pipeline] echo 07:12:37 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 07:12:37 ---> logs-deploy.sh 07:12:37 lf-activate-venv: SKIPPING 07:12:37 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-411/1 07:12:37 INFO: archiving workspace using pattern(s): 07:12:38 Archives upload complete. 07:12:38 INFO: archiving logs to Nexus