Pull request #411 updated Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of jinlinGuan for edgexfoundry/device-modbus-go Loading trusted files from base branch main at 05607db3767b12e2b1688c1d4c1138f7ff4649fd rather than 670617287e1254d64d2b0ccdd3e9d059c2f79f5c 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-ssh12365816968914973637.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-ssh8909318445343159334.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-411/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-411/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh7891237666792812362.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 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-ssh17831397512412379278.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-411/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-411/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh11711476272077302975.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 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 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 Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-5498 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 670617287e1254d64d2b0ccdd3e9d059c2f79f5c Merge succeeded, producing 670617287e1254d64d2b0ccdd3e9d059c2f79f5c Checking out Revision 670617287e1254d64d2b0ccdd3e9d059c2f79f5c (PR-411) > git config core.sparsecheckout # timeout=10 > git checkout -f 670617287e1254d64d2b0ccdd3e9d059c2f79f5c # 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 670617287e1254d64d2b0ccdd3e9d059c2f79f5c # timeout=10 Commit message: "build(deps)!: bump device-sdk-go and go-mod-core-contracts versions" First time build. Skipping changelog. > git rev-list --no-walk 051755cd082bf34e42ec22189455455158aa0636 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 07:20:19 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 07:20:19 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 07:20:19 ========================================================= 07:20:19 EdgeX Global Pipelines Version Info 07:20:19 ========================================================= [Pipeline] libraryResource [Pipeline] sh 07:20:20 ------------------- 07:20:20 stable info: 07:20:20 ------------------- 07:20:20 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 07:20:20 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 07:20:20 Message: update stable to v1.0.244 07:20:21 ------------------- 07:20:21 experimental info: 07:20:21 ------------------- 07:20:21 Commited By: **** collab-it+edgex@linuxfoundation.org 07:20:21 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 07:20:21 Message: update experimental to v1.0.244 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.18 [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-411 [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-411 [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-411 [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 670617287e1254d64d2b0ccdd3e9d059c2f79f5c [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 6706172 [Pipeline] echo 07:20:21 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:20:21 provisioning config files... 07:20:21 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/config1089614355012247729tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:20:22 ---> docker-login.sh 07:20:22 nexus3.edgexfoundry.org:10001 07:20:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:20:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:20:22 Configure a credential helper to remove this warning. See 07:20:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:20:22 07:20:22 Login Succeeded 07:20:22 nexus3.edgexfoundry.org:10002 07:20:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:20:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:20:22 Configure a credential helper to remove this warning. See 07:20:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:20:22 07:20:22 Login Succeeded 07:20:22 nexus3.edgexfoundry.org:10003 07:20:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:20:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:20:22 Configure a credential helper to remove this warning. See 07:20:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:20:22 07:20:22 Login Succeeded 07:20:22 nexus3.edgexfoundry.org:10004 07:20:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:20:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:20:22 Configure a credential helper to remove this warning. See 07:20:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:20:22 07:20:22 Login Succeeded 07:20:22 docker.io 07:20:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:20:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:20:23 Configure a credential helper to remove this warning. See 07:20:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:20:23 07:20:23 Login Succeeded 07:20:23 ---> docker-login.sh ends [Pipeline] } 07:20:23 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 07:20:23 + git rev-list -1 --merges 670617287e1254d64d2b0ccdd3e9d059c2f79f5c~1..670617287e1254d64d2b0ccdd3e9d059c2f79f5c [Pipeline] echo 07:20:23 -----------> git rev-list -1 --merges 670617287e1254d64d2b0ccdd3e9d059c2f79f5c~1..670617287e1254d64d2b0ccdd3e9d059c2f79f5c 670617287e1254d64d2b0ccdd3e9d059c2f79f5c [false] [Pipeline] sh 07:20:23 + git log --format=format:%s -1 670617287e1254d64d2b0ccdd3e9d059c2f79f5c [Pipeline] echo 07:20:23 ========================================================= 07:20:23 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 07:20:23 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 07:20:24 + git log --format=format:%s -1 670617287e1254d64d2b0ccdd3e9d059c2f79f5c [Pipeline] echo 07:20:24 [semverPrep] GIT_COMMIT: 670617287e1254d64d2b0ccdd3e9d059c2f79f5c, Commit Message: build(deps)!: bump device-sdk-go and go-mod-core-contracts versions [Pipeline] echo 07:20:24 [semverPrep] This is not a build commit. [Pipeline] sh 07:20:24 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 07:20:24 + grep -v github /etc/ssh/ssh_known_hosts 07:20:24 + [ -e /tmp/ssh_known_hosts ] 07:20:24 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 07:20:24 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 07:20:24 + sudo tee -a /etc/ssh/ssh_known_hosts 07:20:24 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:20:24 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 07:20:24 07:20:24 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:20:25 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 07:20:25 0.1.4: Pulling from edgex-devops/py-git-semver 07:20:25 b85a868b505f: Pulling fs layer 07:20:25 e2be974225ed: Pulling fs layer 07:20:25 339a4e72a1f5: Pulling fs layer 07:20:25 988bab9f4d93: Pulling fs layer 07:20:25 1469e6f7b9e6: Pulling fs layer 07:20:25 eaf3925da568: Pulling fs layer 07:20:25 bab4dde63d76: Pulling fs layer 07:20:25 bde34c3a00c8: Pulling fs layer 07:20:25 b352a97aabf1: Pulling fs layer 07:20:25 4872d77fe225: Pulling fs layer 07:20:25 5851b861e8e6: Pulling fs layer 07:20:25 988bab9f4d93: Waiting 07:20:25 bab4dde63d76: Waiting 07:20:25 4872d77fe225: Waiting 07:20:25 eaf3925da568: Waiting 07:20:25 5851b861e8e6: Waiting 07:20:25 1469e6f7b9e6: Waiting 07:20:25 b352a97aabf1: Waiting 07:20:25 e2be974225ed: Download complete 07:20:25 988bab9f4d93: Verifying Checksum 07:20:25 988bab9f4d93: Download complete 07:20:25 1469e6f7b9e6: Verifying Checksum 07:20:25 1469e6f7b9e6: Download complete 07:20:25 eaf3925da568: Download complete 07:20:25 339a4e72a1f5: Verifying Checksum 07:20:25 339a4e72a1f5: Download complete 07:20:25 bde34c3a00c8: Download complete 07:20:25 b352a97aabf1: Verifying Checksum 07:20:25 b352a97aabf1: Download complete 07:20:25 4872d77fe225: Verifying Checksum 07:20:25 4872d77fe225: Download complete 07:20:25 5851b861e8e6: Download complete 07:20:25 b85a868b505f: Verifying Checksum 07:20:25 b85a868b505f: Download complete 07:20:26 bab4dde63d76: Verifying Checksum 07:20:26 bab4dde63d76: Download complete 07:20:27 b85a868b505f: Pull complete 07:20:27 e2be974225ed: Pull complete 07:20:27 339a4e72a1f5: Pull complete 07:20:27 988bab9f4d93: Pull complete 07:20:28 1469e6f7b9e6: Pull complete 07:20:28 eaf3925da568: Pull complete 07:20:29 bab4dde63d76: Pull complete 07:20:29 bde34c3a00c8: Pull complete 07:20:29 b352a97aabf1: Pull complete 07:20:30 4872d77fe225: Pull complete 07:20:30 5851b861e8e6: Pull complete 07:20:30 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 07:20:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 07:20:30 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:20:30 prd-ubuntu20.04-docker-8c-8g-5498 does not seem to be running inside a container 07:20:30 $ 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 ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 07:20:32 $ docker top e71d5b051d6d913af3e1ad62f66cd4153371ed5b1caaeb1520b04f7d6175d5af -eo pid,comm 07:20:32 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:20:32 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 07:20:32 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 07:20:32 [ssh-agent] Looking for ssh-agent implementation... 07:20:32 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 07:20:32 $ docker exec e71d5b051d6d913af3e1ad62f66cd4153371ed5b1caaeb1520b04f7d6175d5af ssh-agent 07:20:32 SSH_AUTH_SOCK=/tmp/ssh-kYy8UHgjSzR3/agent.32 07:20:32 SSH_AGENT_PID=39 07:20:32 Running ssh-add (command line suppressed) 07:20:33 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-411@tmp/private_key_1047625812673758056.key (/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/private_key_1047625812673758056.key) 07:20:33 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 07:20:33 + git tag --points-at HEAD [Pipeline] } 07:20:33 $ docker exec --env ******** --env ******** e71d5b051d6d913af3e1ad62f66cd4153371ed5b1caaeb1520b04f7d6175d5af ssh-agent -k 07:20:33 unset SSH_AUTH_SOCK; 07:20:33 unset SSH_AGENT_PID; 07:20:33 echo Agent pid 39 killed; 07:20:33 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 07:20:33 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 07:20:33 [ssh-agent] Looking for ssh-agent implementation... 07:20:33 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 07:20:33 $ docker exec e71d5b051d6d913af3e1ad62f66cd4153371ed5b1caaeb1520b04f7d6175d5af ssh-agent 07:20:33 SSH_AUTH_SOCK=/tmp/ssh-a3gieVkPBMZi/agent.70 07:20:33 SSH_AGENT_PID=76 07:20:33 Running ssh-add (command line suppressed) 07:20:33 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-411@tmp/private_key_9143929403902067484.key (/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/private_key_9143929403902067484.key) 07:20:33 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 07:20:34 + git semver init 07:20:34 2023-02-13 07:20:34,217 [run_init] DEBUG init version:0.0.0 force:False 07:20:34 2023-02-13 07:20:34,218 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-411/.semver 07:20:34 2023-02-13 07:20:34,218 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-411/.semver 07:20:34 2023-02-13 07:20:34,219 [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:20:35 2023-02-13 07:20:35,189 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-411/.git/info/exclude 07:20:35 2023-02-13 07:20:35,190 [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:20:35 2023-02-13 07:20:35,190 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-411/.semver/PR-411 07:20:35 2023-02-13 07:20:35,194 [execute] INFO git cat-file --batch-check 07:20:35 2023-02-13 07:20:35,194 [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:20:35 2023-02-13 07:20:35,200 [execute] INFO git cat-file --batch 07:20:35 2023-02-13 07:20:35,200 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-411/.semver, universal_newlines=False, shell=None, istream=) 07:20:35 2023-02-13 07:20:35,205 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-411/.semver/PR-411 07:20:35 0.0.0 [Pipeline] } 07:20:35 $ docker exec --env ******** --env ******** e71d5b051d6d913af3e1ad62f66cd4153371ed5b1caaeb1520b04f7d6175d5af ssh-agent -k 07:20:35 unset SSH_AUTH_SOCK; 07:20:35 unset SSH_AGENT_PID; 07:20:35 echo Agent pid 76 killed; 07:20:35 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 07:20:35 + git semver [Pipeline] } 07:20:35 $ docker stop --time=1 e71d5b051d6d913af3e1ad62f66cd4153371ed5b1caaeb1520b04f7d6175d5af 07:20:37 $ docker rm -f --volumes e71d5b051d6d913af3e1ad62f66cd4153371ed5b1caaeb1520b04f7d6175d5af [Pipeline] // withDockerContainer [Pipeline] sh 07:20:37 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 07:20:37 Stashed 1 file(s) [Pipeline] echo 07:20:37 [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:20:37 provisioning config files... 07:20:37 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/config17666101359101704006tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:20:38 ---> docker-login.sh 07:20:38 nexus3.edgexfoundry.org:10001 07:20:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:20:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:20:39 Configure a credential helper to remove this warning. See 07:20:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:20:39 07:20:39 Login Succeeded 07:20:39 nexus3.edgexfoundry.org:10002 07:20:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:20:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:20:39 Configure a credential helper to remove this warning. See 07:20:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:20:39 07:20:39 Login Succeeded 07:20:39 nexus3.edgexfoundry.org:10003 07:20:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:20:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:20:39 Configure a credential helper to remove this warning. See 07:20:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:20:39 07:20:39 Login Succeeded 07:20:39 nexus3.edgexfoundry.org:10004 07:20:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:20:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:20:39 Configure a credential helper to remove this warning. See 07:20:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:20:39 07:20:39 Login Succeeded 07:20:39 docker.io 07:20:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:20:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:20:39 Configure a credential helper to remove this warning. See 07:20:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:20:39 07:20:39 Login Succeeded 07:20:39 ---> docker-login.sh ends [Pipeline] } 07:20:39 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 07:20:39 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:20:39 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:20:39 ========================================================= 07:20:39 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine] 07:20:39 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:20:40 + 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:20:40 Sending build context to Docker daemon 6.381MB 07:20:40 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 07:20:40 Step 2/10 : FROM ${BASE} AS builder 07:20:40 1.18-alpine: Pulling from edgex-devops/edgex-golang-base 07:20:40 213ec9aee27d: Pulling fs layer 07:20:40 4583459ba037: Pulling fs layer 07:20:40 93c1e223e6f2: Pulling fs layer 07:20:40 53926ce57604: Pulling fs layer 07:20:40 21b2b0c7a3f4: Pulling fs layer 07:20:40 22ff95d597cd: Pulling fs layer 07:20:40 12d6caf4c0d1: Pulling fs layer 07:20:40 96b7cbca73a9: Pulling fs layer 07:20:40 a7acece74701: Pulling fs layer 07:20:40 53926ce57604: Waiting 07:20:40 21b2b0c7a3f4: Waiting 07:20:40 22ff95d597cd: Waiting 07:20:40 12d6caf4c0d1: Waiting 07:20:40 96b7cbca73a9: Waiting 07:20:40 a7acece74701: Waiting 07:20:40 93c1e223e6f2: Verifying Checksum 07:20:40 93c1e223e6f2: Download complete 07:20:40 4583459ba037: Verifying Checksum 07:20:40 4583459ba037: Download complete 07:20:40 21b2b0c7a3f4: Verifying Checksum 07:20:40 21b2b0c7a3f4: Download complete 07:20:40 22ff95d597cd: Verifying Checksum 07:20:40 22ff95d597cd: Download complete 07:20:40 213ec9aee27d: Download complete 07:20:40 12d6caf4c0d1: Verifying Checksum 07:20:40 12d6caf4c0d1: Download complete 07:20:40 213ec9aee27d: Pull complete 07:20:40 4583459ba037: Pull complete 07:20:40 93c1e223e6f2: Pull complete 07:20:41 a7acece74701: Verifying Checksum 07:20:41 a7acece74701: Download complete 07:20:41 53926ce57604: Verifying Checksum 07:20:41 53926ce57604: Download complete 07:20:41 96b7cbca73a9: Verifying Checksum 07:20:45 53926ce57604: Pull complete 07:20:45 21b2b0c7a3f4: Pull complete 07:20:45 22ff95d597cd: Pull complete 07:20:45 12d6caf4c0d1: Pull complete 07:20:48 96b7cbca73a9: Pull complete 07:20:48 a7acece74701: Pull complete 07:20:48 Digest: sha256:f6a9ef70c52da88a2ff63a0c6767b24654f9f5185d1d85ca6cc3004fb48f6c2d 07:20:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine 07:20:48 ---> db6d94c90886 07:20:48 Step 3/10 : ARG ADD_BUILD_TAGS="" 07:20:52 ---> Running in ca851bb3ab25 07:20:52 Removing intermediate container ca851bb3ab25 07:20:52 ---> 8e44390a4d56 07:20:52 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 07:20:52 ---> Running in 5e471fd015e9 07:20:52 Removing intermediate container 5e471fd015e9 07:20:52 ---> d8af39ceef36 07:20:52 Step 5/10 : RUN apk add --update --no-cache make git openssh 07:20:52 ---> Running in 227282a6bab7 07:20:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 07:20:52 Still waiting to schedule task 07:20:52 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 07:20:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 07:20:53 (1/8) Installing openssh-keygen (9.0_p1-r2) 07:20:53 (2/8) Installing libedit (20210910.3.1-r0) 07:20:53 (3/8) Installing openssh-client-common (9.0_p1-r2) 07:20:53 (4/8) Installing openssh-client-default (9.0_p1-r2) 07:20:53 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 07:20:53 (6/8) Installing openssh-server-common (9.0_p1-r2) 07:20:53 (7/8) Installing openssh-server (9.0_p1-r2) 07:20:53 (8/8) Installing openssh (9.0_p1-r2) 07:20:53 Executing busybox-1.35.0-r17.trigger 07:20:53 OK: 217 MiB in 59 packages 07:20:53 Removing intermediate container 227282a6bab7 07:20:53 ---> 24805765886d 07:20:53 Step 6/10 : WORKDIR /device-modbus-go 07:20:53 ---> Running in d173991fbc53 07:20:53 Removing intermediate container d173991fbc53 07:20:53 ---> 5a23c2b4c889 07:20:53 Step 7/10 : COPY go.mod vendor* ./ 07:20:53 ---> c03420af0447 07:20:53 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:20:53 ---> Running in 09a8d6c42ea2 07:21:20 Removing intermediate container 09a8d6c42ea2 07:21:20 ---> b47ac26d5715 07:21:20 Step 9/10 : COPY . . 07:21:20 ---> 4d9f7cdd36fd 07:21:20 Step 10/10 : RUN ${MAKE} 07:21:20 ---> Running in 53ce09bc592d 07:21:20 noop 07:21:20 Removing intermediate container 53ce09bc592d 07:21:20 ---> 57cdd658583e 07:21:20 Successfully built 57cdd658583e 07:21:20 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:21:20 + docker inspect -f . ci-base-image-x86_64 07:21:20 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:21:20 prd-ubuntu20.04-docker-8c-8g-5498 does not seem to be running inside a container 07:21:20 $ 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 ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 07:21:21 $ docker top 4226f2d08e4a43ceca068acd1521147b849a333bc201375ce616e68d85ab5061 -eo pid,comm [Pipeline] { [Pipeline] sh 07:21:21 + go version 07:21:21 go version go1.18.7 linux/amd64 [Pipeline] } 07:21:21 $ docker stop --time=1 4226f2d08e4a43ceca068acd1521147b849a333bc201375ce616e68d85ab5061 07:21:22 $ docker rm -f --volumes 4226f2d08e4a43ceca068acd1521147b849a333bc201375ce616e68d85ab5061 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:21:23 + docker inspect -f . ci-base-image-x86_64 07:21:23 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:21:23 prd-ubuntu20.04-docker-8c-8g-5498 does not seem to be running inside a container 07:21:23 $ 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 ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 07:21:23 $ docker top 615aa540454fb05f76b77e494c7a09405dddff21455a99d93a2faa4ccbcf38dc -eo pid,comm [Pipeline] { [Pipeline] sh 07:21:24 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-411 [Pipeline] fileExists [Pipeline] sh 07:21:24 + make test 07:21:24 go test ./... -coverprofile=coverage.out 07:21:24 ? github.com/edgexfoundry/device-modbus-go [no test files] 07:21:34 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 07:21:34 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.017s coverage: 47.7% of statements 07:21:41 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:21:41 go vet ./... 07:21:43 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 07:21:43 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 07:21:43 ./bin/test-attribution-txt.sh 07:21:43 An attribution for golang.org/x/mod is missing from Attribution.txt, please add 07:21:43 An attribution for golang.org/x/tools is missing from Attribution.txt, please add [Pipeline] echo 07:21:43 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 07:21:43 $ docker stop --time=1 615aa540454fb05f76b77e494c7a09405dddff21455a99d93a2faa4ccbcf38dc 07:21:46 $ docker rm -f --volumes 615aa540454fb05f76b77e494c7a09405dddff21455a99d93a2faa4ccbcf38dc [Pipeline] // withDockerContainer [Pipeline] sh 07:21:46 + sudo chown -R jenkins:jenkins . [Pipeline] stash 07:21:46 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 07:21:46 + sudo chown -R jenkins:jenkins . [Pipeline] sh 07:21:47 + ls -al . 07:21:47 total 184 07:21:47 drwxrwxr-x 10 jenkins jenkins 4096 Feb 13 07:21 . 07:21:47 drwxrwxr-x 4 jenkins jenkins 4096 Feb 13 07:20 .. 07:21:47 -rw-rw-r-- 1 jenkins jenkins 140 Feb 13 07:20 .dockerignore 07:21:47 drwxrwxr-x 8 jenkins jenkins 4096 Feb 13 07:21 .git 07:21:47 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:20 .github 07:21:47 -rw-rw-r-- 1 jenkins jenkins 331 Feb 13 07:20 .gitignore 07:21:47 -rw-rw-r-- 1 jenkins jenkins 41 Feb 13 07:20 .golangci.yml 07:21:47 drwxr-xr-x 3 jenkins jenkins 4096 Feb 13 07:20 .semver 07:21:47 -rw-rw-r-- 1 jenkins jenkins 10017 Feb 13 07:20 Attribution.txt 07:21:47 -rw-rw-r-- 1 jenkins jenkins 11576 Feb 13 07:20 CHANGELOG.md 07:21:47 -rw-rw-r-- 1 jenkins jenkins 1365 Feb 13 07:20 Dockerfile 07:21:47 -rw-rw-r-- 1 jenkins jenkins 677 Feb 13 07:20 GOVERNANCE.md 07:21:47 -rw-rw-r-- 1 jenkins jenkins 680 Feb 13 07:20 Jenkinsfile 07:21:47 -rw-rw-r-- 1 jenkins jenkins 11340 Feb 13 07:20 LICENSE 07:21:47 -rw-rw-r-- 1 jenkins jenkins 1670 Feb 13 07:20 Makefile 07:21:47 -rw-rw-r-- 1 jenkins jenkins 622 Feb 13 07:20 OWNERS.md 07:21:47 -rw-rw-r-- 1 jenkins jenkins 4061 Feb 13 07:20 README.md 07:21:47 -rw-rw-r-- 1 jenkins jenkins 5 Feb 13 07:20 VERSION 07:21:47 drwxrwxr-x 2 jenkins jenkins 4096 Feb 13 07:20 bin 07:21:47 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:20 cmd 07:21:47 -rw-r--r-- 1 jenkins jenkins 23241 Feb 13 07:21 coverage.out 07:21:47 -rw-rw-r-- 1 jenkins jenkins 3496 Feb 13 07:20 go.mod 07:21:47 -rw-rw-r-- 1 jenkins jenkins 33621 Feb 13 07:20 go.sum 07:21:47 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:20 internal 07:21:47 drwxrwxr-x 2 jenkins jenkins 4096 Feb 13 07:20 simulator 07:21:47 drwxrwxr-x 4 jenkins jenkins 4096 Feb 13 07:20 snap 07:21:47 -rw-rw-r-- 1 jenkins jenkins 229 Feb 13 07:20 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:21:47 + 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=670617287e1254d64d2b0ccdd3e9d059c2f79f5c --label arch=amd64 --label version=0.0.0 . 07:21:47 Sending build context to Docker daemon 6.405MB 07:21:47 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 07:21:47 Step 2/22 : FROM ${BASE} AS builder 07:21:47 ---> 57cdd658583e 07:21:47 Step 3/22 : ARG ADD_BUILD_TAGS="" 07:21:47 ---> Running in 94554d421031 07:21:47 Removing intermediate container 94554d421031 07:21:47 ---> b1d8c1d70707 07:21:47 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 07:21:47 ---> Running in 14be23d33bd3 07:21:47 Removing intermediate container 14be23d33bd3 07:21:47 ---> 670fd95aa558 07:21:47 Step 5/22 : RUN apk add --update --no-cache make git openssh 07:21:47 ---> Running in 7728a86475bc 07:21:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 07:21:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 07:21:48 OK: 217 MiB in 59 packages 07:21:48 Removing intermediate container 7728a86475bc 07:21:48 ---> 9943fd034b73 07:21:48 Step 6/22 : WORKDIR /device-modbus-go 07:21:48 ---> Running in 886575d1af38 07:21:48 Removing intermediate container 886575d1af38 07:21:48 ---> e63dc96f57ba 07:21:48 Step 7/22 : COPY go.mod vendor* ./ 07:21:49 ---> 161c4c695273 07:21:49 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:21:49 ---> Running in cb8db09b1c93 07:21:50 Removing intermediate container cb8db09b1c93 07:21:50 ---> a51611a8bcd3 07:21:50 Step 9/22 : COPY . . 07:21:50 ---> fcba8106d43a 07:21:50 Step 10/22 : RUN ${MAKE} 07:21:50 ---> Running in 1f5949a68678 07:21:50 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:22:12 Removing intermediate container 1f5949a68678 07:22:12 ---> 51233663a28d 07:22:12 Step 11/22 : FROM alpine:3.14 07:22:12 3.14: Pulling from library/alpine 07:22:12 d261077062b2: Pulling fs layer 07:22:12 d261077062b2: Verifying Checksum 07:22:12 d261077062b2: Download complete 07:22:12 d261077062b2: Pull complete 07:22:12 Digest: sha256:560e7a4fa5c891d1830f5591c80b8e472fa6cd386b7254cdf65ccc3249292a34 07:22:12 Status: Downloaded newer image for alpine:3.14 07:22:12 ---> 6dff1269bc79 07:22:12 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 07:22:12 ---> Running in c54dd4d30130 07:22:12 Removing intermediate container c54dd4d30130 07:22:12 ---> 60f73b4d952f 07:22:12 Step 13/22 : RUN apk add --update --no-cache dumb-init 07:22:12 ---> Running in 3386eecbd29f 07:22:12 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 07:22:12 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 07:22:12 (1/1) Installing dumb-init (1.2.5-r1) 07:22:12 Executing busybox-1.33.1-r8.trigger 07:22:12 OK: 6 MiB in 15 packages 07:22:12 Removing intermediate container 3386eecbd29f 07:22:12 ---> 14aceee788d6 07:22:12 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 07:22:13 ---> 8b796bc6cf57 07:22:13 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 07:22:13 ---> f104b9804d0f 07:22:13 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 07:22:13 ---> 64a34fb53c57 07:22:13 Step 17/22 : EXPOSE 59901 07:22:13 ---> Running in fbda3b3d1c11 07:22:13 Removing intermediate container fbda3b3d1c11 07:22:13 ---> 9508b5b1a287 07:22:13 Step 18/22 : ENTRYPOINT ["/device-modbus"] 07:22:13 ---> Running in 7f1350472e5e 07:22:13 Removing intermediate container 7f1350472e5e 07:22:13 ---> 665bc84ca561 07:22:13 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 07:22:13 ---> Running in 399506ca6cd9 07:22:13 Removing intermediate container 399506ca6cd9 07:22:13 ---> 8872066c1ea6 07:22:13 Step 20/22 : LABEL arch=amd64 07:22:13 ---> Running in 49c494cdeb78 07:22:13 Removing intermediate container 49c494cdeb78 07:22:13 ---> b80bca35742c 07:22:13 Step 21/22 : LABEL git_sha=670617287e1254d64d2b0ccdd3e9d059c2f79f5c 07:22:13 ---> Running in cdd9fe94d1b1 07:22:14 Removing intermediate container cdd9fe94d1b1 07:22:14 ---> c4f8c0199711 07:22:14 Step 22/22 : LABEL version=0.0.0 07:22:14 ---> Running in 8c9c5b12dec6 07:22:14 Removing intermediate container 8c9c5b12dec6 07:22:14 ---> 348d713b09af 07:22:14 [Warning] One or more build-args [ARCH] were not consumed 07:22:14 Successfully built 348d713b09af 07:22:14 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:22:14 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:22:14 07:22:14 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:22:14 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:22:14 latest: Pulling from edgex-lftools-log-publisher 07:22:14 5eb5b503b376: Pulling fs layer 07:22:14 5c69ac0246d0: Pulling fs layer 07:22:14 ec43610c2a17: Pulling fs layer 07:22:14 3a2ae6a8a46f: Pulling fs layer 07:22:14 33b1e0a273af: Pulling fs layer 07:22:14 5d3b04190fa2: Pulling fs layer 07:22:14 2f39f015ded8: Pulling fs layer 07:22:14 5d3b04190fa2: Waiting 07:22:14 3a2ae6a8a46f: Waiting 07:22:14 33b1e0a273af: Waiting 07:22:14 2f39f015ded8: Waiting 07:22:14 5c69ac0246d0: Verifying Checksum 07:22:14 5c69ac0246d0: Download complete 07:22:14 3a2ae6a8a46f: Verifying Checksum 07:22:14 3a2ae6a8a46f: Download complete 07:22:15 33b1e0a273af: Verifying Checksum 07:22:15 33b1e0a273af: Download complete 07:22:15 5d3b04190fa2: Verifying Checksum 07:22:15 5d3b04190fa2: Download complete 07:22:15 ec43610c2a17: Verifying Checksum 07:22:15 ec43610c2a17: Download complete 07:22:15 5eb5b503b376: Verifying Checksum 07:22:15 5eb5b503b376: Download complete 07:22:16 2f39f015ded8: Verifying Checksum 07:22:16 2f39f015ded8: Download complete 07:22:16 5eb5b503b376: Pull complete 07:22:16 5c69ac0246d0: Pull complete 07:22:17 ec43610c2a17: Pull complete 07:22:17 3a2ae6a8a46f: Pull complete 07:22:17 33b1e0a273af: Pull complete 07:22:17 5d3b04190fa2: Pull complete 07:22:21 2f39f015ded8: Pull complete 07:22:21 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 07:22:21 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:22:21 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:22:21 prd-ubuntu20.04-docker-8c-8g-5498 does not seem to be running inside a container 07:22:22 $ 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 ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 07:22:25 $ docker top 0a471309b99867e9f7f74d2a9e94b864280d543b3f7be7d3acafb854fea19743 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:22:25 ---> job-cost.sh 07:22:25 lf-activate-venv: SKIPPING 07:22:25 INFO: No Stack... 07:22:25 INFO: Retrieving Pricing Info for: v3-standard-8 07:22:25 INFO: Archiving Costs [Pipeline] sh 07:22:26 + cat /w/workspace/xfoundry_device-modbus-go_PR-411/archives/cost.csv 07:22:26 + cut -d, -f6 [Pipeline] lock 07:22:26 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-411-2-stack-cost] 07:22:26 Resource [jenkins-edgexfoundry-device-modbus-go-PR-411-2-stack-cost] did not exist. Created. 07:22:26 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-411-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 07:22:26 + echo total: 0.2199999988079071 [Pipeline] stash 07:22:26 Stashed 1 file(s) [Pipeline] } 07:22:26 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-411-2-stack-cost] [Pipeline] // lock [Pipeline] } 07:22:26 $ docker stop --time=1 0a471309b99867e9f7f74d2a9e94b864280d543b3f7be7d3acafb854fea19743 07:22:27 $ docker rm -f --volumes 0a471309b99867e9f7f74d2a9e94b864280d543b3f7be7d3acafb854fea19743 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 07:23:37 Running on prd-ubuntu20.04-docker-arm64-4c-16g-5500 in /w/workspace/xfoundry_device-modbus-go_PR-411 [Pipeline] { [Pipeline] ws 07:23:37 Running in /w/workspace/device-modbus-go/2 [Pipeline] { [Pipeline] checkout 07:23:37 Selected Git installation does not exist. Using Default 07:23:37 The recommended git tool is: NONE 07:23:43 using credential edgex-jenkins-ssh 07:23:43 Cloning the remote Git repository 07:23:43 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 07:23:43 > git init /w/workspace/device-modbus-go/2 # timeout=10 07:23:43 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 07:23:43 > git --version # timeout=10 07:23:43 > git --version # 'git version 2.25.1' 07:23:43 using GIT_SSH to set credentials SSH Credentials for GitHub 07:23:43 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 07:23:45 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 07:23:46 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 07:23:47 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 07:23:47 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 07:23:47 using GIT_SSH to set credentials SSH Credentials for GitHub 07:23:47 > 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:23:47 Merging remotes/origin/main commit 05607db3767b12e2b1688c1d4c1138f7ff4649fd into PR head commit 670617287e1254d64d2b0ccdd3e9d059c2f79f5c 07:23:48 Merge succeeded, producing 670617287e1254d64d2b0ccdd3e9d059c2f79f5c 07:23:48 Checking out Revision 670617287e1254d64d2b0ccdd3e9d059c2f79f5c (PR-411) 07:23:47 > git config core.sparsecheckout # timeout=10 07:23:47 > git checkout -f 670617287e1254d64d2b0ccdd3e9d059c2f79f5c # timeout=10 07:23:47 > git remote # timeout=10 07:23:47 > git config --get remote.origin.url # timeout=10 07:23:47 using GIT_SSH to set credentials SSH Credentials for GitHub 07:23:48 > git merge 05607db3767b12e2b1688c1d4c1138f7ff4649fd # timeout=10 07:23:48 > git rev-parse HEAD^{commit} # timeout=10 07:23:48 > git config core.sparsecheckout # timeout=10 07:23:48 > git checkout -f 670617287e1254d64d2b0ccdd3e9d059c2f79f5c # timeout=10 07:23:51 Commit message: "build(deps)!: bump device-sdk-go and go-mod-core-contracts versions" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 07:23:52 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 07:23:52 % Total % Received % Xferd Average Speed Time Time Time Current 07:23:52 Dload Upload Total Spent Left Speed 07:23:52 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 211k 0 --:--:-- --:--:-- --:--:-- 211k [Pipeline] sh 07:23:53 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 07:23:53 + sudo tee /etc/docker/daemon.new 07:23:53 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 07:23:53 { 07:23:53 "registry-mirrors": [ 07:23:53 "https://nexus3.edgexfoundry.org:10001" 07:23:53 ], 07:23:53 "bip": "10.250.0.254/24", 07:23:53 "hosts": [ 07:23:53 "tcp://0.0.0.0:5555", 07:23:53 "unix:///var/run/docker.sock" 07:23:53 ], 07:23:53 "mtu": 1458, 07:23:53 "selinux-enabled": true, 07:23:53 "seccomp-profile": "/etc/docker/seccomp.json" 07:23:53 } [Pipeline] sh 07:23:53 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 07:23:54 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:24:12 provisioning config files... 07:24:12 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/2@tmp/config12329652431117376473tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:24:13 ---> docker-login.sh 07:24:13 nexus3.edgexfoundry.org:10001 07:24:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:24:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:24:13 Configure a credential helper to remove this warning. See 07:24:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:24:13 07:24:13 Login Succeeded 07:24:13 nexus3.edgexfoundry.org:10002 07:24:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:24:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:24:14 Configure a credential helper to remove this warning. See 07:24:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:24:14 07:24:14 Login Succeeded 07:24:14 nexus3.edgexfoundry.org:10003 07:24:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:24:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:24:14 Configure a credential helper to remove this warning. See 07:24:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:24:14 07:24:14 Login Succeeded 07:24:14 nexus3.edgexfoundry.org:10004 07:24:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:24:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:24:14 Configure a credential helper to remove this warning. See 07:24:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:24:14 07:24:14 Login Succeeded 07:24:14 docker.io 07:24:15 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:24:15 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:24:15 Configure a credential helper to remove this warning. See 07:24:15 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:24:15 07:24:15 Login Succeeded 07:24:15 ---> docker-login.sh ends [Pipeline] } 07:24:15 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 07:24:15 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:24:15 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:24:15 ========================================================= 07:24:15 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine] 07:24:15 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:24:16 + 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:24:16 Sending build context to Docker daemon 3.331MB 07:24:16 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 07:24:16 Step 2/10 : FROM ${BASE} AS builder 07:24:16 1.18-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 07:24:16 9b18e9b68314: Pulling fs layer 07:24:16 35d82f9e3411: Pulling fs layer 07:24:16 e16973657156: Pulling fs layer 07:24:16 fc693d55d65f: Pulling fs layer 07:24:16 7e9fc2657dce: Pulling fs layer 07:24:16 dda99020689f: Pulling fs layer 07:24:16 db1c61fa0a46: Pulling fs layer 07:24:16 891c053d2c06: Pulling fs layer 07:24:16 dda99020689f: Waiting 07:24:16 db1c61fa0a46: Waiting 07:24:16 891c053d2c06: Waiting 07:24:16 fc693d55d65f: Waiting 07:24:16 7e9fc2657dce: Waiting 07:24:16 e16973657156: Download complete 07:24:16 35d82f9e3411: Download complete 07:24:16 7e9fc2657dce: Verifying Checksum 07:24:16 7e9fc2657dce: Download complete 07:24:16 dda99020689f: Verifying Checksum 07:24:16 dda99020689f: Download complete 07:24:16 9b18e9b68314: Verifying Checksum 07:24:16 9b18e9b68314: Download complete 07:24:18 9b18e9b68314: Pull complete 07:24:18 891c053d2c06: Verifying Checksum 07:24:18 891c053d2c06: Download complete 07:24:18 35d82f9e3411: Pull complete 07:24:18 e16973657156: Pull complete 07:24:19 db1c61fa0a46: Verifying Checksum 07:24:19 db1c61fa0a46: Download complete 07:24:20 fc693d55d65f: Verifying Checksum 07:24:20 fc693d55d65f: Download complete 07:24:32 fc693d55d65f: Pull complete 07:24:32 7e9fc2657dce: Pull complete 07:24:32 dda99020689f: Pull complete 07:24:39 db1c61fa0a46: Pull complete 07:24:41 891c053d2c06: Pull complete 07:24:41 Digest: sha256:2cacf8bfc28650abd52610e42dcfc04852e818eb73900ea96edaef96a54d0b45 07:24:41 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine 07:24:41 ---> f96f9c87975a 07:24:41 Step 3/10 : ARG ADD_BUILD_TAGS="" 07:24:43 ---> Running in 35b1140efec8 07:24:43 Removing intermediate container 35b1140efec8 07:24:43 ---> 8693d139d8fb 07:24:43 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 07:24:43 ---> Running in 35aacb9a5aeb 07:24:44 Removing intermediate container 35aacb9a5aeb 07:24:44 ---> 98637417ecbf 07:24:44 Step 5/10 : RUN apk add --update --no-cache make git openssh 07:24:44 ---> Running in eebbca12f1a0 07:24:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 07:24:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 07:24:46 (1/8) Installing openssh-keygen (9.0_p1-r2) 07:24:46 (2/8) Installing libedit (20210910.3.1-r0) 07:24:46 (3/8) Installing openssh-client-common (9.0_p1-r2) 07:24:47 (4/8) Installing openssh-client-default (9.0_p1-r2) 07:24:47 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 07:24:47 (6/8) Installing openssh-server-common (9.0_p1-r2) 07:24:47 (7/8) Installing openssh-server (9.0_p1-r2) 07:24:47 (8/8) Installing openssh (9.0_p1-r2) 07:24:47 Executing busybox-1.35.0-r17.trigger 07:24:47 OK: 228 MiB in 59 packages 07:24:48 Removing intermediate container eebbca12f1a0 07:24:48 ---> 58ce96f95e6e 07:24:48 Step 6/10 : WORKDIR /device-modbus-go 07:24:48 ---> Running in a83f344cc617 07:24:48 Removing intermediate container a83f344cc617 07:24:48 ---> 6ed192ddf179 07:24:48 Step 7/10 : COPY go.mod vendor* ./ 07:24:49 ---> 063124a1bc02 07:24:49 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:24:49 ---> Running in 00f843f0716f 07:25:57 Removing intermediate container 00f843f0716f 07:25:57 ---> cc95225dc311 07:25:57 Step 9/10 : COPY . . 07:25:57 ---> 76efd970c953 07:25:57 Step 10/10 : RUN ${MAKE} 07:25:57 ---> Running in 6a5d31c82111 07:25:57 noop 07:25:57 Removing intermediate container 6a5d31c82111 07:25:57 ---> 5727986c1e03 07:25:57 Successfully built 5727986c1e03 07:25:57 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:25:57 + docker inspect -f . ci-base-image-arm64 07:25:57 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:25:57 prd-ubuntu20.04-docker-arm64-4c-16g-5500 does not seem to be running inside a container 07:25:57 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 07:25:58 $ docker top c63e7f6e3b3d7387be5b0e6914225f013462bfa2831d62e0cea2fe61808e028a -eo pid,comm [Pipeline] { [Pipeline] sh 07:25:59 + go version 07:25:59 go version go1.18.7 linux/arm64 [Pipeline] } 07:25:59 $ docker stop --time=1 c63e7f6e3b3d7387be5b0e6914225f013462bfa2831d62e0cea2fe61808e028a 07:26:01 $ docker rm -f --volumes c63e7f6e3b3d7387be5b0e6914225f013462bfa2831d62e0cea2fe61808e028a [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:26:01 + docker inspect -f . ci-base-image-arm64 07:26:01 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:26:02 prd-ubuntu20.04-docker-arm64-4c-16g-5500 does not seem to be running inside a container 07:26:02 $ 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/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 07:26:03 $ docker top d0c4c4339a5130508e46edd04fc3e07b269b9d4f3cff2a14d01253195fdcfead -eo pid,comm [Pipeline] { [Pipeline] sh 07:26:04 + git config --global --add safe.directory /w/workspace/device-modbus-go/2 [Pipeline] fileExists [Pipeline] sh 07:26:04 + make test 07:26:04 go test ./... -coverprofile=coverage.out 07:26:06 ? github.com/edgexfoundry/device-modbus-go [no test files] 07:27:43 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 07:27:43 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.069s coverage: 47.7% of statements 07:27:43 WARNING: Linting skipped (not on x86_64 or linter not installed) 07:27:43 go vet ./... 07:27:55 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 07:27:55 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 07:27:55 ./bin/test-attribution-txt.sh 07:27:55 An attribution for golang.org/x/mod is missing from Attribution.txt, please add 07:27:55 An attribution for golang.org/x/tools is missing from Attribution.txt, please add [Pipeline] echo 07:27:55 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 07:27:55 $ docker stop --time=1 d0c4c4339a5130508e46edd04fc3e07b269b9d4f3cff2a14d01253195fdcfead 07:27:57 $ docker rm -f --volumes d0c4c4339a5130508e46edd04fc3e07b269b9d4f3cff2a14d01253195fdcfead [Pipeline] // withDockerContainer [Pipeline] sh 07:27:58 + sudo chown -R jenkins:jenkins . [Pipeline] stash 07:27:58 Warning: overwriting stash ‘coverage-report’ 07:27:59 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 07:28:00 + sudo chown -R jenkins:jenkins . [Pipeline] sh 07:28:00 + ls -al . 07:28:00 total 180 07:28:00 drwxrwxr-x 9 jenkins jenkins 4096 Feb 13 07:26 . 07:28:00 drwxrwxr-x 4 jenkins jenkins 4096 Feb 13 07:23 .. 07:28:00 -rw-rw-r-- 1 jenkins jenkins 140 Feb 13 07:23 .dockerignore 07:28:00 drwxrwxr-x 8 jenkins jenkins 4096 Feb 13 07:23 .git 07:28:00 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:23 .github 07:28:00 -rw-rw-r-- 1 jenkins jenkins 331 Feb 13 07:23 .gitignore 07:28:00 -rw-rw-r-- 1 jenkins jenkins 41 Feb 13 07:23 .golangci.yml 07:28:00 -rw-rw-r-- 1 jenkins jenkins 10017 Feb 13 07:23 Attribution.txt 07:28:00 -rw-rw-r-- 1 jenkins jenkins 11576 Feb 13 07:23 CHANGELOG.md 07:28:00 -rw-rw-r-- 1 jenkins jenkins 1365 Feb 13 07:23 Dockerfile 07:28:00 -rw-rw-r-- 1 jenkins jenkins 677 Feb 13 07:23 GOVERNANCE.md 07:28:00 -rw-rw-r-- 1 jenkins jenkins 680 Feb 13 07:23 Jenkinsfile 07:28:00 -rw-rw-r-- 1 jenkins jenkins 11340 Feb 13 07:23 LICENSE 07:28:00 -rw-rw-r-- 1 jenkins jenkins 1670 Feb 13 07:23 Makefile 07:28:00 -rw-rw-r-- 1 jenkins jenkins 622 Feb 13 07:23 OWNERS.md 07:28:00 -rw-rw-r-- 1 jenkins jenkins 4061 Feb 13 07:23 README.md 07:28:00 -rw-rw-r-- 1 jenkins jenkins 5 Feb 13 07:20 VERSION 07:28:00 drwxrwxr-x 2 jenkins jenkins 4096 Feb 13 07:23 bin 07:28:00 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:23 cmd 07:28:00 -rw-r--r-- 1 jenkins jenkins 23241 Feb 13 07:27 coverage.out 07:28:00 -rw-rw-r-- 1 jenkins jenkins 3496 Feb 13 07:23 go.mod 07:28:00 -rw-rw-r-- 1 jenkins jenkins 33621 Feb 13 07:23 go.sum 07:28:00 drwxrwxr-x 3 jenkins jenkins 4096 Feb 13 07:23 internal 07:28:00 drwxrwxr-x 2 jenkins jenkins 4096 Feb 13 07:23 simulator 07:28:00 drwxrwxr-x 4 jenkins jenkins 4096 Feb 13 07:23 snap 07:28:00 -rw-rw-r-- 1 jenkins jenkins 229 Feb 13 07:23 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:28:00 + 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=670617287e1254d64d2b0ccdd3e9d059c2f79f5c --label arch=arm64 --label version=0.0.0 . 07:28:01 Sending build context to Docker daemon 3.355MB 07:28:01 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 07:28:01 Step 2/22 : FROM ${BASE} AS builder 07:28:01 ---> 5727986c1e03 07:28:01 Step 3/22 : ARG ADD_BUILD_TAGS="" 07:28:01 ---> Running in aa28eb7ef4c9 07:28:01 Removing intermediate container aa28eb7ef4c9 07:28:01 ---> 599d71847888 07:28:01 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 07:28:01 ---> Running in 08622237315d 07:28:02 Removing intermediate container 08622237315d 07:28:02 ---> 07312cdafad6 07:28:02 Step 5/22 : RUN apk add --update --no-cache make git openssh 07:28:02 ---> Running in 19e459b1209f 07:28:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 07:28:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 07:28:05 OK: 228 MiB in 59 packages 07:28:06 Removing intermediate container 19e459b1209f 07:28:06 ---> a811b6e492c9 07:28:06 Step 6/22 : WORKDIR /device-modbus-go 07:28:06 ---> Running in 65d80bfe9e24 07:28:06 Removing intermediate container 65d80bfe9e24 07:28:06 ---> 48f52249af16 07:28:06 Step 7/22 : COPY go.mod vendor* ./ 07:28:06 ---> 1f13a5dbc0f7 07:28:06 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:28:07 ---> Running in 65802a83949d 07:28:09 Removing intermediate container 65802a83949d 07:28:09 ---> 75a69f94595d 07:28:09 Step 9/22 : COPY . . 07:28:11 ---> 4f369c59c1b4 07:28:11 Step 10/22 : RUN ${MAKE} 07:28:11 ---> Running in 6bb719e78c24 07:28:12 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:30:34 Removing intermediate container 6bb719e78c24 07:30:34 ---> 12360c32f222 07:30:34 Step 11/22 : FROM alpine:3.14 07:30:34 3.14: Pulling from library/alpine 07:30:34 6f0e733d82e2: Pulling fs layer 07:30:34 6f0e733d82e2: Verifying Checksum 07:30:34 6f0e733d82e2: Download complete 07:30:34 6f0e733d82e2: Pull complete 07:30:34 Digest: sha256:560e7a4fa5c891d1830f5591c80b8e472fa6cd386b7254cdf65ccc3249292a34 07:30:34 Status: Downloaded newer image for alpine:3.14 07:30:34 ---> bf97f6347a60 07:30:34 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 07:30:34 ---> Running in f0d66357f597 07:30:34 Removing intermediate container f0d66357f597 07:30:34 ---> 353008d72f01 07:30:34 Step 13/22 : RUN apk add --update --no-cache dumb-init 07:30:34 ---> Running in 230b84449471 07:30:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 07:30:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 07:30:34 (1/1) Installing dumb-init (1.2.5-r1) 07:30:34 Executing busybox-1.33.1-r8.trigger 07:30:34 OK: 6 MiB in 15 packages 07:30:35 Removing intermediate container 230b84449471 07:30:35 ---> 28300a9b0867 07:30:35 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 07:30:37 ---> 9fceba8e22bb 07:30:37 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 07:30:37 ---> c3045b963401 07:30:37 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 07:30:38 ---> e403ea2182c3 07:30:38 Step 17/22 : EXPOSE 59901 07:30:38 ---> Running in e56c29d38901 07:30:38 Removing intermediate container e56c29d38901 07:30:38 ---> 7f60fc304e4c 07:30:38 Step 18/22 : ENTRYPOINT ["/device-modbus"] 07:30:38 ---> Running in e5e129a2a06a 07:30:38 Removing intermediate container e5e129a2a06a 07:30:38 ---> 83dece0ede5b 07:30:38 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 07:30:39 ---> Running in 3c825a3c9dfd 07:30:39 Removing intermediate container 3c825a3c9dfd 07:30:39 ---> 63a41e098974 07:30:39 Step 20/22 : LABEL arch=arm64 07:30:39 ---> Running in c43f530a89a3 07:30:39 Removing intermediate container c43f530a89a3 07:30:39 ---> 52c84a2aab7d 07:30:39 Step 21/22 : LABEL git_sha=670617287e1254d64d2b0ccdd3e9d059c2f79f5c 07:30:39 ---> Running in b2d452261886 07:30:40 Removing intermediate container b2d452261886 07:30:40 ---> 0b5f0bdd905e 07:30:40 Step 22/22 : LABEL version=0.0.0 07:30:40 ---> Running in 0f5e7a72df53 07:30:40 Removing intermediate container 0f5e7a72df53 07:30:40 ---> d38272fb3e2f 07:30:40 [Warning] One or more build-args [ARCH] were not consumed 07:30:40 Successfully built d38272fb3e2f 07:30:40 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:30:40 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:30:40 07:30:40 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:30:41 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:30:41 arm64: Pulling from edgex-lftools-log-publisher 07:30:41 8998bd30e6a1: Pulling fs layer 07:30:41 04944245beec: Pulling fs layer 07:30:41 699f458cf7ca: Pulling fs layer 07:30:41 765212b225bb: Pulling fs layer 07:30:41 f23df028b6ca: Pulling fs layer 07:30:41 d65c8cfc05b1: Pulling fs layer 07:30:41 2437ff75d9bd: Pulling fs layer 07:30:41 765212b225bb: Waiting 07:30:41 f23df028b6ca: Waiting 07:30:41 d65c8cfc05b1: Waiting 07:30:41 2437ff75d9bd: Waiting 07:30:41 04944245beec: Verifying Checksum 07:30:41 04944245beec: Download complete 07:30:41 765212b225bb: Verifying Checksum 07:30:41 765212b225bb: Download complete 07:30:41 f23df028b6ca: Verifying Checksum 07:30:41 f23df028b6ca: Download complete 07:30:41 d65c8cfc05b1: Download complete 07:30:41 699f458cf7ca: Download complete 07:30:42 8998bd30e6a1: Verifying Checksum 07:30:42 8998bd30e6a1: Download complete 07:30:44 2437ff75d9bd: Verifying Checksum 07:30:44 2437ff75d9bd: Download complete 07:30:46 8998bd30e6a1: Pull complete 07:30:46 04944245beec: Pull complete 07:30:48 699f458cf7ca: Pull complete 07:30:48 765212b225bb: Pull complete 07:30:48 f23df028b6ca: Pull complete 07:30:48 d65c8cfc05b1: Pull complete 07:31:03 2437ff75d9bd: Pull complete 07:31:03 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 07:31:03 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:31:03 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:31:04 prd-ubuntu20.04-docker-arm64-4c-16g-5500 does not seem to be running inside a container 07:31:04 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 07:31:07 $ docker top 1c194128d256b936e59a64402877fa051093a49e135650022ca18b72f5bcb72f -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:31:07 ---> job-cost.sh 07:31:07 lf-activate-venv: SKIPPING 07:31:07 INFO: No Stack... 07:31:08 INFO: Retrieving Pricing Info for: v3-standard-4 07:31:09 INFO: Archiving Costs [Pipeline] sh 07:31:09 + cat /w/workspace/device-modbus-go/2/archives/cost.csv 07:31:09 + cut -d, -f6 [Pipeline] lock 07:31:09 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-411-2-stack-cost] 07:31:09 Resource [jenkins-edgexfoundry-device-modbus-go-PR-411-2-stack-cost] did not exist. Created. 07:31:09 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-411-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 07:31:10 /w/workspace/device-modbus-go/2@tmp/durable-424e9898/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 07:31:10 + echo total: 0.10999999940395355 [Pipeline] stash 07:31:10 Warning: overwriting stash ‘stack-cost’ 07:31:10 Stashed 1 file(s) [Pipeline] } 07:31:10 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-411-2-stack-cost] [Pipeline] // lock [Pipeline] } 07:31:10 $ docker stop --time=1 1c194128d256b936e59a64402877fa051093a49e135650022ca18b72f5bcb72f 07:31:12 $ docker rm -f --volumes 1c194128d256b936e59a64402877fa051093a49e135650022ca18b72f5bcb72f [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:31:12 provisioning config files... 07:31:12 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/config18014971763725607787tmp [Pipeline] { [Pipeline] sh 07:31:12 + set +x 07:31:12 + curl -s https://codecov.io/bash 07:31:12 + bash -s -- 07:31:12 07:31:12 _____ _ 07:31:12 / ____| | | 07:31:12 | | ___ __| | ___ ___ _____ __ 07:31:12 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 07:31:12 | |___| (_) | (_| | __/ (_| (_) \ V / 07:31:12 \_____\___/ \__,_|\___|\___\___/ \_/ 07:31:12 Bash-1.0.6 07:31:12 07:31:12 07:31:12 ==> git version 2.25.1 found 07:31:12 ==> 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:31:12 Release-Date: 2020-01-08 07:31:12 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:31:12 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 07:31:12 ==> Jenkins CI detected. 07:31:12 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-411 07:31:12 project root: . 07:31:12 --> token set from env 07:31:12 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 07:31:12 ==> Running gcov in . (disable via -X gcov) 07:31:12 ==> Python coveragepy not found 07:31:12 ==> Searching for coverage reports in: 07:31:12 + . 07:31:12 -> Found 1 reports 07:31:12 ==> Detecting git/mercurial file structure 07:31:12 ==> Reading reports 07:31:12 + ./coverage.out bytes=23241 07:31:12 ==> Appending adjustments 07:31:12 https://docs.codecov.io/docs/fixing-reports 07:31:13 + Found adjustments 07:31:13 ==> Gzipping contents 07:31:13 4.0K /tmp/codecov.UYGqo5.gz 07:31:13 ==> Uploading reports 07:31:13 url: https://codecov.io 07:31:13 query: branch=PR-411&commit=670617287e1254d64d2b0ccdd3e9d059c2f79f5c&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-411%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=411&job=&cmd_args= 07:31:13 -> Pinging Codecov 07:31:13 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=670617287e1254d64d2b0ccdd3e9d059c2f79f5c&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-411%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=411&job=&cmd_args= 07:31:14 -> Uploading to 07:31:14 https://storage.googleapis.com/codecov/v4/raw/2023-02-13/55DBCA73C666E3227836607328DD7E49/670617287e1254d64d2b0ccdd3e9d059c2f79f5c/d165f1fa-79f2-460e-adf0-0c58414f1a0f.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230213%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230213T073113Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=aba482b69ee788150524fedb32e1449b0b0e811c93ca4afe8922586ec2ea6afb 07:31:14 % Total % Received % Xferd Average Speed Time Time Time Current 07:31:14 Dload Upload Total Spent Left Speed 07:31:14 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3907 0 0 100 3907 0 15754 --:--:-- --:--:-- --:--:-- 15754 07:31:14 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/670617287e1254d64d2b0ccdd3e9d059c2f79f5c [Pipeline] } 07:31:14 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:31:15 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-411/archives ] 07:31:15 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-411/archives 07:31:15 total 16 07:31:15 drwxr-xr-x 3 root root 4096 Feb 13 07:22 . 07:31:15 drwxrwxr-x 11 jenkins jenkins 4096 Feb 13 07:22 .. 07:31:15 drwxr-xr-x 2 root root 4096 Feb 13 07:22 cost 07:31:15 -rw-r--r-- 1 root root 88 Feb 13 07:22 cost.csv 07:31:15 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-411/archives 07:31:15 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-411/archives 07:31:15 total 16 07:31:15 drwxr-xr-x 3 jenkins jenkins 4096 Feb 13 07:22 . 07:31:15 drwxrwxr-x 11 jenkins jenkins 4096 Feb 13 07:22 .. 07:31:15 drwxr-xr-x 2 jenkins jenkins 4096 Feb 13 07:22 cost 07:31:15 -rw-r--r-- 1 jenkins jenkins 88 Feb 13 07:22 cost.csv [Pipeline] libraryResource [Pipeline] sh 07:31:15 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 07:31:16 ---> package-listing.sh 07:31:16 ++ facter osfamily 07:31:16 ++ tr '[:upper:]' '[:lower:]' 07:31:16 + OS_FAMILY=debian 07:31:16 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-411 07:31:16 + START_PACKAGES=/tmp/packages_start.txt 07:31:16 + END_PACKAGES=/tmp/packages_end.txt 07:31:16 + DIFF_PACKAGES=/tmp/packages_diff.txt 07:31:16 + PACKAGES=/tmp/packages_start.txt 07:31:16 + '[' /w/workspace/xfoundry_device-modbus-go_PR-411 ']' 07:31:16 + PACKAGES=/tmp/packages_end.txt 07:31:16 + case "${OS_FAMILY}" in 07:31:16 + dpkg -l 07:31:16 + grep '^ii' 07:31:16 + '[' -f /tmp/packages_start.txt ']' 07:31:16 + '[' -f /tmp/packages_end.txt ']' 07:31:16 + diff /tmp/packages_start.txt /tmp/packages_end.txt 07:31:16 + '[' /w/workspace/xfoundry_device-modbus-go_PR-411 ']' 07:31:16 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-411/archives/ 07:31:16 + 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:31:16 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:31:16 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:31:17 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:31:17 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:31:17 prd-ubuntu20.04-docker-8c-8g-5498 does not seem to be running inside a container 07:31:17 $ 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 ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 07:31:17 $ docker top f3864114ea732428c84864a41f3ea9c61255beecb699f106b87d2ab9a04ff739 -eo pid,comm [Pipeline] { [Pipeline] sh 07:31:17 + touch /tmp/pre-build-complete [Pipeline] sh 07:31:18 + mkdir -p /var/log/sysstat [Pipeline] sh 07:31:18 + ls /var/log/sa-host 07:31:18 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:31:18 provisioning config files... 07:31:18 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-411@tmp/config8767857871439891218tmp [Pipeline] { [Pipeline] echo 07:31:18 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 07:31:18 ---> create-netrc.sh [Pipeline] } 07:31:18 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 07:31:19 ---> python-tools-install.sh [Pipeline] echo 07:31:19 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 07:31:19 ---> sudo-logs.sh 07:31:19 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 07:31:19 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 07:31:19 ---> job-cost.sh 07:31:19 lf-activate-venv: SKIPPING 07:31:19 DEBUG: total: 0.2199999988079071 07:31:19 INFO: Retrieving Stack Cost... 07:31:20 INFO: Retrieving Pricing Info for: v3-standard-8 07:31:20 INFO: Archiving Costs [Pipeline] echo 07:31:20 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 07:31:20 ---> logs-deploy.sh 07:31:20 lf-activate-venv: SKIPPING 07:31:20 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-411/2 07:31:20 INFO: archiving workspace using pattern(s): 07:31:21 Archives upload complete. 07:31:21 INFO: archiving logs to Nexus