Pull request #408 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of lenny-intel for edgexfoundry/device-modbus-go Obtained Jenkinsfile from 6edb17e21d9641da6fc95b762e70d9a9b0591641+3e881fe54d34e3489b353c0554336186a92f7554 (44ea775b9293946396f6e0b62725a3185e02c831) 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-ssh2368726887446335264.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-ssh4856902910068948455.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-408/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-408/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh16091737794148916071.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-408/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh3652664488344182081.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 # timeout=10 Commit message: "Merge pull request #420 from bill-mahoney/levski-update" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh8643061644319313048.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-408/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-408/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh1313603569686091015.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-modbus-go, buildSnap:false] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-modbus-go-settings PROJECT: device-modbus-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.18 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-modbus DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-4995 in /w/workspace/xfoundry_device-modbus-go_PR-408 [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-408 # 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 Merging remotes/origin/main commit 3e881fe54d34e3489b353c0554336186a92f7554 into PR head commit 6edb17e21d9641da6fc95b762e70d9a9b0591641 Merge succeeded, producing 6edb17e21d9641da6fc95b762e70d9a9b0591641 Checking out Revision 6edb17e21d9641da6fc95b762e70d9a9b0591641 (PR-408) > 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/408/head:refs/remotes/origin/PR-408 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 6edb17e21d9641da6fc95b762e70d9a9b0591641 # 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 3e881fe54d34e3489b353c0554336186a92f7554 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 6edb17e21d9641da6fc95b762e70d9a9b0591641 # timeout=10 Commit message: "feat!: Use latest SDK for MessageBus Request API" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 22:20:10 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 22:20:10 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 22:20:10 ========================================================= 22:20:10 EdgeX Global Pipelines Version Info 22:20:10 ========================================================= [Pipeline] libraryResource [Pipeline] sh 22:20:11 ------------------- 22:20:11 stable info: 22:20:11 ------------------- 22:20:11 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 22:20:11 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 22:20:11 Message: update stable to v1.0.244 22:20:11 ------------------- 22:20:11 experimental info: 22:20:11 ------------------- 22:20:11 Commited By: **** collab-it+edgex@linuxfoundation.org 22:20:11 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 22:20:11 Message: update experimental to v1.0.244 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.18 [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 22:20:12 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-408 [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-408 [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-408 [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 6edb17e21d9641da6fc95b762e70d9a9b0591641 [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 6edb17e [Pipeline] echo 22:20:13 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 22:20:13 provisioning config files... 22:20:13 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-408@tmp/config338878097404919635tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:20:13 ---> docker-login.sh 22:20:13 nexus3.edgexfoundry.org:10001 22:20:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:20:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:20:14 Configure a credential helper to remove this warning. See 22:20:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:20:14 22:20:14 Login Succeeded 22:20:14 nexus3.edgexfoundry.org:10002 22:20:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:20:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:20:14 Configure a credential helper to remove this warning. See 22:20:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:20:14 22:20:14 Login Succeeded 22:20:14 nexus3.edgexfoundry.org:10003 22:20:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:20:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:20:14 Configure a credential helper to remove this warning. See 22:20:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:20:14 22:20:14 Login Succeeded 22:20:14 nexus3.edgexfoundry.org:10004 22:20:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:20:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:20:14 Configure a credential helper to remove this warning. See 22:20:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:20:14 22:20:14 Login Succeeded 22:20:14 docker.io 22:20:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:20:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:20:14 Configure a credential helper to remove this warning. See 22:20:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:20:14 22:20:14 Login Succeeded 22:20:14 ---> docker-login.sh ends [Pipeline] } 22:20:15 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 22:20:15 + git rev-list -1 --merges 6edb17e21d9641da6fc95b762e70d9a9b0591641~1..6edb17e21d9641da6fc95b762e70d9a9b0591641 [Pipeline] echo 22:20:15 -----------> git rev-list -1 --merges 6edb17e21d9641da6fc95b762e70d9a9b0591641~1..6edb17e21d9641da6fc95b762e70d9a9b0591641 6edb17e21d9641da6fc95b762e70d9a9b0591641 [false] [Pipeline] sh 22:20:16 + git log --format=format:%s -1 6edb17e21d9641da6fc95b762e70d9a9b0591641 [Pipeline] echo 22:20:16 ========================================================= 22:20:16 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 22:20:16 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 22:20:16 + git log --format=format:%s -1 6edb17e21d9641da6fc95b762e70d9a9b0591641 [Pipeline] echo 22:20:16 [semverPrep] GIT_COMMIT: 6edb17e21d9641da6fc95b762e70d9a9b0591641, Commit Message: feat!: Use latest SDK for MessageBus Request API [Pipeline] echo 22:20:16 [semverPrep] This is not a build commit. [Pipeline] sh 22:20:16 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 22:20:16 + grep -v github /etc/ssh/ssh_known_hosts 22:20:16 + [ -e /tmp/ssh_known_hosts ] 22:20:16 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 22:20:16 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 22:20:16 + sudo tee -a /etc/ssh/ssh_known_hosts 22:20:16 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:20:17 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 22:20:17 22:20:17 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:20:17 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 22:20:17 0.1.4: Pulling from edgex-devops/py-git-semver 22:20:17 b85a868b505f: Pulling fs layer 22:20:17 e2be974225ed: Pulling fs layer 22:20:17 339a4e72a1f5: Pulling fs layer 22:20:17 988bab9f4d93: Pulling fs layer 22:20:17 1469e6f7b9e6: Pulling fs layer 22:20:17 eaf3925da568: Pulling fs layer 22:20:17 bab4dde63d76: Pulling fs layer 22:20:17 bde34c3a00c8: Pulling fs layer 22:20:17 b352a97aabf1: Pulling fs layer 22:20:17 4872d77fe225: Pulling fs layer 22:20:17 5851b861e8e6: Pulling fs layer 22:20:17 bde34c3a00c8: Waiting 22:20:17 bab4dde63d76: Waiting 22:20:17 1469e6f7b9e6: Waiting 22:20:17 b352a97aabf1: Waiting 22:20:17 4872d77fe225: Waiting 22:20:17 988bab9f4d93: Waiting 22:20:17 eaf3925da568: Waiting 22:20:17 5851b861e8e6: Waiting 22:20:17 e2be974225ed: Download complete 22:20:17 988bab9f4d93: Verifying Checksum 22:20:17 988bab9f4d93: Download complete 22:20:18 1469e6f7b9e6: Verifying Checksum 22:20:18 1469e6f7b9e6: Download complete 22:20:18 eaf3925da568: Verifying Checksum 22:20:18 eaf3925da568: Download complete 22:20:18 339a4e72a1f5: Verifying Checksum 22:20:18 339a4e72a1f5: Download complete 22:20:18 bde34c3a00c8: Download complete 22:20:18 b352a97aabf1: Download complete 22:20:18 4872d77fe225: Verifying Checksum 22:20:18 4872d77fe225: Download complete 22:20:18 5851b861e8e6: Verifying Checksum 22:20:18 5851b861e8e6: Download complete 22:20:18 b85a868b505f: Download complete 22:20:18 bab4dde63d76: Download complete 22:20:19 b85a868b505f: Pull complete 22:20:20 e2be974225ed: Pull complete 22:20:20 339a4e72a1f5: Pull complete 22:20:20 988bab9f4d93: Pull complete 22:20:20 1469e6f7b9e6: Pull complete 22:20:20 eaf3925da568: Pull complete 22:20:22 bab4dde63d76: Pull complete 22:20:22 bde34c3a00c8: Pull complete 22:20:22 b352a97aabf1: Pull complete 22:20:22 4872d77fe225: Pull complete 22:20:23 5851b861e8e6: Pull complete 22:20:23 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 22:20:23 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 22:20:23 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:20:23 prd-ubuntu20.04-docker-8c-8g-4995 does not seem to be running inside a container 22:20:23 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-408 -v /w/workspace/xfoundry_device-modbus-go_PR-408:/w/workspace/xfoundry_device-modbus-go_PR-408:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-408@tmp:/w/workspace/xfoundry_device-modbus-go_PR-408@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 22:20:26 $ docker top d7d0520229ba84914381da78856b5e2989e4a9a48a441d8cf27a2a908781f462 -eo pid,comm 22:20:26 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). 22:20:26 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 22:20:27 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 22:20:27 [ssh-agent] Looking for ssh-agent implementation... 22:20:27 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 22:20:27 $ docker exec d7d0520229ba84914381da78856b5e2989e4a9a48a441d8cf27a2a908781f462 ssh-agent 22:20:27 SSH_AUTH_SOCK=/tmp/ssh-Jl9ks9Db6a22/agent.32 22:20:27 SSH_AGENT_PID=38 22:20:27 Running ssh-add (command line suppressed) 22:20:27 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-408@tmp/private_key_4751003088396119063.key (/w/workspace/xfoundry_device-modbus-go_PR-408@tmp/private_key_4751003088396119063.key) 22:20:27 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 22:20:27 + git tag --points-at HEAD [Pipeline] } 22:20:27 $ docker exec --env ******** --env ******** d7d0520229ba84914381da78856b5e2989e4a9a48a441d8cf27a2a908781f462 ssh-agent -k 22:20:27 unset SSH_AUTH_SOCK; 22:20:27 unset SSH_AGENT_PID; 22:20:27 echo Agent pid 38 killed; 22:20:27 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 22:20:27 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 22:20:27 [ssh-agent] Looking for ssh-agent implementation... 22:20:28 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 22:20:28 $ docker exec d7d0520229ba84914381da78856b5e2989e4a9a48a441d8cf27a2a908781f462 ssh-agent 22:20:28 SSH_AUTH_SOCK=/tmp/ssh-PO4D5ci83lxp/agent.70 22:20:28 SSH_AGENT_PID=76 22:20:28 Running ssh-add (command line suppressed) 22:20:28 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-408@tmp/private_key_9484089972755341167.key (/w/workspace/xfoundry_device-modbus-go_PR-408@tmp/private_key_9484089972755341167.key) 22:20:28 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 22:20:28 + git semver init 22:20:28 2023-02-07 22:20:28,843 [run_init] DEBUG init version:0.0.0 force:False 22:20:28 2023-02-07 22:20:28,844 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-408/.semver 22:20:28 2023-02-07 22:20:28,844 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-408/.semver 22:20:28 2023-02-07 22:20:28,844 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-408/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-408, universal_newlines=False, shell=None, istream=None) 22:20:29 2023-02-07 22:20:29,856 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-408/.git/info/exclude 22:20:29 2023-02-07 22:20:29,856 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-408/.semver/PR-408 with force:False 22:20:29 2023-02-07 22:20:29,856 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-408/.semver/PR-408 22:20:29 2023-02-07 22:20:29,860 [execute] INFO git cat-file --batch-check 22:20:29 2023-02-07 22:20:29,861 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-408/.semver, universal_newlines=False, shell=None, istream=) 22:20:30 2023-02-07 22:20:29,867 [execute] INFO git cat-file --batch 22:20:30 2023-02-07 22:20:29,867 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-408/.semver, universal_newlines=False, shell=None, istream=) 22:20:30 2023-02-07 22:20:29,871 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-408/.semver/PR-408 22:20:30 0.0.0 [Pipeline] } 22:20:30 $ docker exec --env ******** --env ******** d7d0520229ba84914381da78856b5e2989e4a9a48a441d8cf27a2a908781f462 ssh-agent -k 22:20:30 unset SSH_AUTH_SOCK; 22:20:30 unset SSH_AGENT_PID; 22:20:30 echo Agent pid 76 killed; 22:20:30 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 22:20:30 + git semver [Pipeline] } 22:20:30 $ docker stop --time=1 d7d0520229ba84914381da78856b5e2989e4a9a48a441d8cf27a2a908781f462 22:20:32 $ docker rm -f --volumes d7d0520229ba84914381da78856b5e2989e4a9a48a441d8cf27a2a908781f462 [Pipeline] // withDockerContainer [Pipeline] sh 22:20:32 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 22:20:32 Stashed 1 file(s) [Pipeline] echo 22:20:32 [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 22:20:33 provisioning config files... 22:20:33 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-408@tmp/config15748247459739351983tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:20:33 ---> docker-login.sh 22:20:33 nexus3.edgexfoundry.org:10001 22:20:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:20:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:20:33 Configure a credential helper to remove this warning. See 22:20:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:20:33 22:20:33 Login Succeeded 22:20:33 nexus3.edgexfoundry.org:10002 22:20:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:20:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:20:33 Configure a credential helper to remove this warning. See 22:20:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:20:33 22:20:33 Login Succeeded 22:20:33 nexus3.edgexfoundry.org:10003 22:20:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:20:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:20:34 Configure a credential helper to remove this warning. See 22:20:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:20:34 22:20:34 Login Succeeded 22:20:34 nexus3.edgexfoundry.org:10004 22:20:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:20:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:20:34 Configure a credential helper to remove this warning. See 22:20:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:20:34 22:20:34 Login Succeeded 22:20:34 docker.io 22:20:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:20:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:20:34 Configure a credential helper to remove this warning. See 22:20:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:20:34 22:20:34 Login Succeeded 22:20:34 ---> docker-login.sh ends [Pipeline] } 22:20:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 22:20:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:20:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:20:34 ========================================================= 22:20:34 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine] 22:20:34 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:20:35 + 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 . 22:20:35 Sending build context to Docker daemon 6.386MB 22:20:35 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 22:20:35 Step 2/10 : FROM ${BASE} AS builder 22:20:35 1.18-alpine: Pulling from edgex-devops/edgex-golang-base 22:20:35 213ec9aee27d: Pulling fs layer 22:20:35 4583459ba037: Pulling fs layer 22:20:35 93c1e223e6f2: Pulling fs layer 22:20:35 53926ce57604: Pulling fs layer 22:20:35 53926ce57604: Waiting 22:20:35 21b2b0c7a3f4: Pulling fs layer 22:20:35 22ff95d597cd: Pulling fs layer 22:20:35 21b2b0c7a3f4: Waiting 22:20:35 22ff95d597cd: Waiting 22:20:35 12d6caf4c0d1: Pulling fs layer 22:20:35 96b7cbca73a9: Pulling fs layer 22:20:35 a7acece74701: Pulling fs layer 22:20:35 12d6caf4c0d1: Waiting 22:20:35 a7acece74701: Waiting 22:20:35 93c1e223e6f2: Verifying Checksum 22:20:35 4583459ba037: Verifying Checksum 22:20:35 4583459ba037: Download complete 22:20:35 21b2b0c7a3f4: Verifying Checksum 22:20:35 21b2b0c7a3f4: Download complete 22:20:35 22ff95d597cd: Verifying Checksum 22:20:35 22ff95d597cd: Download complete 22:20:35 213ec9aee27d: Verifying Checksum 22:20:35 213ec9aee27d: Download complete 22:20:35 12d6caf4c0d1: Download complete 22:20:35 213ec9aee27d: Pull complete 22:20:35 4583459ba037: Pull complete 22:20:35 93c1e223e6f2: Pull complete 22:20:36 a7acece74701: Verifying Checksum 22:20:36 a7acece74701: Download complete 22:20:36 53926ce57604: Verifying Checksum 22:20:36 53926ce57604: Download complete 22:20:36 96b7cbca73a9: Verifying Checksum 22:20:36 96b7cbca73a9: Download complete 22:20:39 53926ce57604: Pull complete 22:20:39 21b2b0c7a3f4: Pull complete 22:20:39 22ff95d597cd: Pull complete 22:20:39 12d6caf4c0d1: Pull complete 22:20:41 96b7cbca73a9: Pull complete 22:20:42 a7acece74701: Pull complete 22:20:43 Digest: sha256:f6a9ef70c52da88a2ff63a0c6767b24654f9f5185d1d85ca6cc3004fb48f6c2d 22:20:43 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine 22:20:43 ---> db6d94c90886 22:20:43 Step 3/10 : ARG ADD_BUILD_TAGS="" 22:20:48 Still waiting to schedule task 22:20:48 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 22:20:51 ---> Running in 07ef4d28fc50 22:20:51 Removing intermediate container 07ef4d28fc50 22:20:51 ---> 3722ab7bd3b8 22:20:51 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 22:20:51 ---> Running in 20e65abf7b50 22:20:51 Removing intermediate container 20e65abf7b50 22:20:51 ---> 0cdf6bad5982 22:20:51 Step 5/10 : RUN apk add --update --no-cache make git openssh 22:20:51 ---> Running in 705a16a562e4 22:20:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 22:20:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 22:20:52 (1/8) Installing openssh-keygen (9.0_p1-r2) 22:20:52 (2/8) Installing libedit (20210910.3.1-r0) 22:20:52 (3/8) Installing openssh-client-common (9.0_p1-r2) 22:20:52 (4/8) Installing openssh-client-default (9.0_p1-r2) 22:20:52 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 22:20:52 (6/8) Installing openssh-server-common (9.0_p1-r2) 22:20:52 (7/8) Installing openssh-server (9.0_p1-r2) 22:20:52 (8/8) Installing openssh (9.0_p1-r2) 22:20:52 Executing busybox-1.35.0-r17.trigger 22:20:52 OK: 217 MiB in 59 packages 22:20:53 Removing intermediate container 705a16a562e4 22:20:53 ---> 940cac96148e 22:20:53 Step 6/10 : WORKDIR /device-modbus-go 22:20:53 ---> Running in 6147907e7971 22:20:53 Removing intermediate container 6147907e7971 22:20:53 ---> ca6cc5f626c2 22:20:53 Step 7/10 : COPY go.mod vendor* ./ 22:20:54 ---> dd05a3b4e4ea 22:20:54 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:20:54 ---> Running in 8fac02e44ee0 22:21:50 Removing intermediate container 8fac02e44ee0 22:21:50 ---> 52de5e04f623 22:21:50 Step 9/10 : COPY . . 22:21:50 ---> 3460fd7341e4 22:21:50 Step 10/10 : RUN ${MAKE} 22:21:50 ---> Running in 6a864c5312f1 22:21:50 noop 22:21:50 Removing intermediate container 6a864c5312f1 22:21:50 ---> 00bf7ba378b8 22:21:50 Successfully built 00bf7ba378b8 22:21:50 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:21:50 + docker inspect -f . ci-base-image-x86_64 22:21:50 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:21:51 prd-ubuntu20.04-docker-8c-8g-4995 does not seem to be running inside a container 22:21:51 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-408 -v /w/workspace/xfoundry_device-modbus-go_PR-408:/w/workspace/xfoundry_device-modbus-go_PR-408:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-408@tmp:/w/workspace/xfoundry_device-modbus-go_PR-408@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 ******** ci-base-image-x86_64 cat 22:21:51 $ docker top 2179ff7a6d20aed64d28808d4beab59f5a8b587ba3537fa7583042572e1a41f9 -eo pid,comm [Pipeline] { [Pipeline] sh 22:21:51 + go version 22:21:51 go version go1.18.7 linux/amd64 [Pipeline] } 22:21:51 $ docker stop --time=1 2179ff7a6d20aed64d28808d4beab59f5a8b587ba3537fa7583042572e1a41f9 22:21:53 $ docker rm -f --volumes 2179ff7a6d20aed64d28808d4beab59f5a8b587ba3537fa7583042572e1a41f9 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:21:53 + docker inspect -f . ci-base-image-x86_64 22:21:53 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:21:54 prd-ubuntu20.04-docker-8c-8g-4995 does not seem to be running inside a container 22:21:54 $ 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-408 -v /w/workspace/xfoundry_device-modbus-go_PR-408:/w/workspace/xfoundry_device-modbus-go_PR-408:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-408@tmp:/w/workspace/xfoundry_device-modbus-go_PR-408@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 ******** ci-base-image-x86_64 cat 22:21:54 $ docker top 3e0fad88a1b280376e6f10d13061a8fde5687357650203297dd2995474599183 -eo pid,comm [Pipeline] { [Pipeline] sh 22:21:54 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-408 [Pipeline] fileExists [Pipeline] sh 22:21:55 + make test 22:21:55 go test ./... -coverprofile=coverage.out 22:21:55 ? github.com/edgexfoundry/device-modbus-go [no test files] 22:22:05 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 22:22:05 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.012s coverage: 47.7% of statements 22:22:12 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." 22:22:12 go vet ./... 22:22:15 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 22:22:15 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 22:22:15 ./bin/test-attribution-txt.sh 22:22:15 An attribution for golang.org/x/mod is missing from Attribution.txt, please add 22:22:15 An attribution for golang.org/x/tools is missing from Attribution.txt, please add [Pipeline] echo 22:22:15 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 22:22:15 $ docker stop --time=1 3e0fad88a1b280376e6f10d13061a8fde5687357650203297dd2995474599183 22:22:18 $ docker rm -f --volumes 3e0fad88a1b280376e6f10d13061a8fde5687357650203297dd2995474599183 [Pipeline] // withDockerContainer [Pipeline] sh 22:22:18 + sudo chown -R jenkins:jenkins . [Pipeline] stash 22:22:18 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 22:22:19 + sudo chown -R jenkins:jenkins . [Pipeline] sh 22:22:19 + ls -al . 22:22:19 total 184 22:22:19 drwxrwxr-x 10 jenkins jenkins 4096 Feb 7 22:21 . 22:22:19 drwxrwxr-x 4 jenkins jenkins 4096 Feb 7 22:20 .. 22:22:19 -rw-rw-r-- 1 jenkins jenkins 140 Feb 7 22:20 .dockerignore 22:22:19 drwxrwxr-x 8 jenkins jenkins 4096 Feb 7 22:22 .git 22:22:19 drwxrwxr-x 3 jenkins jenkins 4096 Feb 7 22:20 .github 22:22:19 -rw-rw-r-- 1 jenkins jenkins 331 Feb 7 22:20 .gitignore 22:22:19 -rw-rw-r-- 1 jenkins jenkins 41 Feb 7 22:20 .golangci.yml 22:22:19 drwxr-xr-x 3 jenkins jenkins 4096 Feb 7 22:20 .semver 22:22:19 -rw-rw-r-- 1 jenkins jenkins 10017 Feb 7 22:20 Attribution.txt 22:22:19 -rw-rw-r-- 1 jenkins jenkins 11576 Feb 7 22:20 CHANGELOG.md 22:22:19 -rw-rw-r-- 1 jenkins jenkins 1365 Feb 7 22:20 Dockerfile 22:22:19 -rw-rw-r-- 1 jenkins jenkins 677 Feb 7 22:20 GOVERNANCE.md 22:22:19 -rw-rw-r-- 1 jenkins jenkins 680 Feb 7 22:20 Jenkinsfile 22:22:19 -rw-rw-r-- 1 jenkins jenkins 11340 Feb 7 22:20 LICENSE 22:22:19 -rw-rw-r-- 1 jenkins jenkins 1670 Feb 7 22:20 Makefile 22:22:19 -rw-rw-r-- 1 jenkins jenkins 622 Feb 7 22:20 OWNERS.md 22:22:19 -rw-rw-r-- 1 jenkins jenkins 4061 Feb 7 22:20 README.md 22:22:19 -rw-rw-r-- 1 jenkins jenkins 5 Feb 7 22:20 VERSION 22:22:19 drwxrwxr-x 2 jenkins jenkins 4096 Feb 7 22:20 bin 22:22:19 drwxrwxr-x 3 jenkins jenkins 4096 Feb 7 22:20 cmd 22:22:19 -rw-r--r-- 1 jenkins jenkins 23241 Feb 7 22:22 coverage.out 22:22:19 -rw-rw-r-- 1 jenkins jenkins 3495 Feb 7 22:20 go.mod 22:22:19 -rw-rw-r-- 1 jenkins jenkins 33619 Feb 7 22:20 go.sum 22:22:19 drwxrwxr-x 3 jenkins jenkins 4096 Feb 7 22:20 internal 22:22:19 drwxrwxr-x 2 jenkins jenkins 4096 Feb 7 22:20 simulator 22:22:19 drwxrwxr-x 4 jenkins jenkins 4096 Feb 7 22:20 snap 22:22:19 -rw-rw-r-- 1 jenkins jenkins 229 Feb 7 22:20 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:22:20 + 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=6edb17e21d9641da6fc95b762e70d9a9b0591641 --label arch=amd64 --label version=0.0.0 . 22:22:20 Sending build context to Docker daemon 6.41MB 22:22:20 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 22:22:20 Step 2/22 : FROM ${BASE} AS builder 22:22:20 ---> 00bf7ba378b8 22:22:20 Step 3/22 : ARG ADD_BUILD_TAGS="" 22:22:20 ---> Running in b9aa81001f38 22:22:20 Removing intermediate container b9aa81001f38 22:22:20 ---> 77dbfed44755 22:22:20 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 22:22:20 ---> Running in 6182309870c7 22:22:20 Removing intermediate container 6182309870c7 22:22:20 ---> 137a7c2b040e 22:22:20 Step 5/22 : RUN apk add --update --no-cache make git openssh 22:22:20 ---> Running in 280c88b748c7 22:22:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 22:22:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 22:22:21 OK: 217 MiB in 59 packages 22:22:21 Removing intermediate container 280c88b748c7 22:22:21 ---> f87cc9dcef6a 22:22:21 Step 6/22 : WORKDIR /device-modbus-go 22:22:21 ---> Running in 39215a969331 22:22:21 Removing intermediate container 39215a969331 22:22:21 ---> eebe85216f9a 22:22:21 Step 7/22 : COPY go.mod vendor* ./ 22:22:21 ---> 9cee47f84ca6 22:22:21 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:22:21 ---> Running in e0ed91b68680 22:22:22 Removing intermediate container e0ed91b68680 22:22:22 ---> 0707e59c334a 22:22:22 Step 9/22 : COPY . . 22:22:23 ---> 2fff783cc47c 22:22:23 Step 10/22 : RUN ${MAKE} 22:22:23 ---> Running in 2eb0a3d02ffd 22:22:23 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 22:22:45 Removing intermediate container 2eb0a3d02ffd 22:22:45 ---> 03d3d98fb80c 22:22:45 Step 11/22 : FROM alpine:3.14 22:22:45 3.14: Pulling from library/alpine 22:22:45 c7ed990a2339: Pulling fs layer 22:22:45 c7ed990a2339: Verifying Checksum 22:22:45 c7ed990a2339: Download complete 22:22:45 c7ed990a2339: Pull complete 22:22:45 Digest: sha256:4c869a63e1b7c0722fed1e402a6466610327c3b83bdddb94bd94fb71da7f638a 22:22:45 Status: Downloaded newer image for alpine:3.14 22:22:45 ---> dd53f409bf0b 22:22:45 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 22:22:45 ---> Running in 764e3a917472 22:22:45 Removing intermediate container 764e3a917472 22:22:45 ---> fb9f74365aea 22:22:45 Step 13/22 : RUN apk add --update --no-cache dumb-init 22:22:45 ---> Running in 171d48009e8c 22:22:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 22:22:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 22:22:45 (1/1) Installing dumb-init (1.2.5-r1) 22:22:45 Executing busybox-1.33.1-r8.trigger 22:22:45 OK: 6 MiB in 15 packages 22:22:45 Removing intermediate container 171d48009e8c 22:22:45 ---> 826a8075a5c7 22:22:45 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 22:22:45 ---> 49a5044d186e 22:22:45 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 22:22:45 ---> 1b10c6066f75 22:22:45 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 22:22:46 ---> 09551d4c2f99 22:22:46 Step 17/22 : EXPOSE 59901 22:22:46 ---> Running in fd0d36a46f0a 22:22:46 Removing intermediate container fd0d36a46f0a 22:22:46 ---> bfc7417af670 22:22:46 Step 18/22 : ENTRYPOINT ["/device-modbus"] 22:22:46 ---> Running in cdb4c0604fec 22:22:46 Removing intermediate container cdb4c0604fec 22:22:46 ---> bd02ccd65ac9 22:22:46 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 22:22:46 ---> Running in d411754bfc6f 22:22:46 Removing intermediate container d411754bfc6f 22:22:46 ---> d2e709d72460 22:22:46 Step 20/22 : LABEL arch=amd64 22:22:46 ---> Running in 114891bd6269 22:22:46 Removing intermediate container 114891bd6269 22:22:46 ---> 457d9cbce949 22:22:46 Step 21/22 : LABEL git_sha=6edb17e21d9641da6fc95b762e70d9a9b0591641 22:22:46 ---> Running in c3bcb058a760 22:22:46 Removing intermediate container c3bcb058a760 22:22:46 ---> 248223ebeaff 22:22:46 Step 22/22 : LABEL version=0.0.0 22:22:46 ---> Running in 55774f523e9f 22:22:46 Removing intermediate container 55774f523e9f 22:22:46 ---> a3ebc4b1a494 22:22:46 [Warning] One or more build-args [ARCH] were not consumed 22:22:46 Successfully built a3ebc4b1a494 22:22:46 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 22:22:47 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:22:47 22:22:47 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:22:47 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:22:47 latest: Pulling from edgex-lftools-log-publisher 22:22:47 5eb5b503b376: Pulling fs layer 22:22:47 5c69ac0246d0: Pulling fs layer 22:22:47 ec43610c2a17: Pulling fs layer 22:22:47 3a2ae6a8a46f: Pulling fs layer 22:22:47 33b1e0a273af: Pulling fs layer 22:22:47 5d3b04190fa2: Pulling fs layer 22:22:47 2f39f015ded8: Pulling fs layer 22:22:47 3a2ae6a8a46f: Waiting 22:22:47 5d3b04190fa2: Waiting 22:22:47 2f39f015ded8: Waiting 22:22:47 33b1e0a273af: Waiting 22:22:47 5c69ac0246d0: Verifying Checksum 22:22:47 5c69ac0246d0: Download complete 22:22:47 3a2ae6a8a46f: Verifying Checksum 22:22:47 3a2ae6a8a46f: Download complete 22:22:48 33b1e0a273af: Verifying Checksum 22:22:48 33b1e0a273af: Download complete 22:22:48 5d3b04190fa2: Verifying Checksum 22:22:48 5d3b04190fa2: Download complete 22:22:48 ec43610c2a17: Verifying Checksum 22:22:48 5eb5b503b376: Verifying Checksum 22:22:48 5eb5b503b376: Download complete 22:22:48 2f39f015ded8: Download complete 22:22:49 5eb5b503b376: Pull complete 22:22:49 5c69ac0246d0: Pull complete 22:22:50 ec43610c2a17: Pull complete 22:22:50 3a2ae6a8a46f: Pull complete 22:22:50 33b1e0a273af: Pull complete 22:22:50 5d3b04190fa2: Pull complete 22:22:54 2f39f015ded8: Pull complete 22:22:54 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 22:22:54 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:22:54 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:22:54 prd-ubuntu20.04-docker-8c-8g-4995 does not seem to be running inside a container 22:22:54 $ 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-408 -v /w/workspace/xfoundry_device-modbus-go_PR-408:/w/workspace/xfoundry_device-modbus-go_PR-408:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-408@tmp:/w/workspace/xfoundry_device-modbus-go_PR-408@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 22:22:58 $ docker top 71a1c5e863c630573e20d5234dd16f8b454210d8646dc463909a93980df1891c -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:22:58 ---> job-cost.sh 22:22:58 lf-activate-venv: SKIPPING 22:22:58 INFO: No Stack... 22:23:01 INFO: Retrieving Pricing Info for: v3-standard-8 22:23:01 INFO: Archiving Costs [Pipeline] sh 22:23:02 + cat /w/workspace/xfoundry_device-modbus-go_PR-408/archives/cost.csv 22:23:02 + cut -d, -f6 [Pipeline] lock 22:23:02 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-408-1-stack-cost] 22:23:02 Resource [jenkins-edgexfoundry-device-modbus-go-PR-408-1-stack-cost] did not exist. Created. 22:23:02 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-408-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 22:23:02 + echo total: 0.2199999988079071 [Pipeline] stash 22:23:02 Stashed 1 file(s) [Pipeline] } 22:23:02 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-408-1-stack-cost] [Pipeline] // lock [Pipeline] } 22:23:02 $ docker stop --time=1 71a1c5e863c630573e20d5234dd16f8b454210d8646dc463909a93980df1891c 22:23:03 $ docker rm -f --volumes 71a1c5e863c630573e20d5234dd16f8b454210d8646dc463909a93980df1891c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 22:23:11 Running on prd-ubuntu20.04-docker-arm64-4c-16g-4997 in /w/workspace/xfoundry_device-modbus-go_PR-408 [Pipeline] { [Pipeline] ws 22:23:11 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 22:23:11 Selected Git installation does not exist. Using Default 22:23:11 The recommended git tool is: NONE 22:23:16 using credential edgex-jenkins-ssh 22:23:16 Cloning the remote Git repository 22:23:16 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 22:23:16 > git init /w/workspace/device-modbus-go/1 # timeout=10 22:23:17 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 22:23:17 > git --version # timeout=10 22:23:17 > git --version # 'git version 2.25.1' 22:23:17 using GIT_SSH to set credentials SSH Credentials for GitHub 22:23:17 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 22:23:18 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 22:23:18 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 22:23:19 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 22:23:19 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 22:23:19 using GIT_SSH to set credentials SSH Credentials for GitHub 22:23:19 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/408/head:refs/remotes/origin/PR-408 +refs/heads/main:refs/remotes/origin/main # timeout=10 22:23:20 Merging remotes/origin/main commit 3e881fe54d34e3489b353c0554336186a92f7554 into PR head commit 6edb17e21d9641da6fc95b762e70d9a9b0591641 22:23:20 Merge succeeded, producing 6edb17e21d9641da6fc95b762e70d9a9b0591641 22:23:20 Checking out Revision 6edb17e21d9641da6fc95b762e70d9a9b0591641 (PR-408) 22:23:20 > git config core.sparsecheckout # timeout=10 22:23:20 > git checkout -f 6edb17e21d9641da6fc95b762e70d9a9b0591641 # timeout=10 22:23:20 > git remote # timeout=10 22:23:20 > git config --get remote.origin.url # timeout=10 22:23:20 using GIT_SSH to set credentials SSH Credentials for GitHub 22:23:20 > git merge 3e881fe54d34e3489b353c0554336186a92f7554 # timeout=10 22:23:20 > git rev-parse HEAD^{commit} # timeout=10 22:23:20 > git config core.sparsecheckout # timeout=10 22:23:20 > git checkout -f 6edb17e21d9641da6fc95b762e70d9a9b0591641 # timeout=10 22:23:24 Commit message: "feat!: Use latest SDK for MessageBus Request API" 22:23:24 > git --version # timeout=10 22:23:24 > git --version # 'git version 2.25.1' 22:23:24 fatal: bad object cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 22:23:25 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 22:23:25 % Total % Received % Xferd Average Speed Time Time Time Current 22:23:25 Dload Upload Total Spent Left Speed 22:23:25 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 180k 0 --:--:-- --:--:-- --:--:-- 183k [Pipeline] sh 22:23:26 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 22:23:26 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 22:23:26 + sudo tee /etc/docker/daemon.new 22:23:26 { 22:23:26 "registry-mirrors": [ 22:23:26 "https://nexus3.edgexfoundry.org:10001" 22:23:26 ], 22:23:26 "bip": "10.250.0.254/24", 22:23:26 "hosts": [ 22:23:26 "tcp://0.0.0.0:5555", 22:23:26 "unix:///var/run/docker.sock" 22:23:26 ], 22:23:26 "mtu": 1458, 22:23:26 "selinux-enabled": true, 22:23:26 "seccomp-profile": "/etc/docker/seccomp.json" 22:23:26 } [Pipeline] sh 22:23:26 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 22:23:27 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 22:23:45 provisioning config files... 22:23:45 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config15321264227075713770tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:23:46 ---> docker-login.sh 22:23:46 nexus3.edgexfoundry.org:10001 22:23:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:23:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:23:46 Configure a credential helper to remove this warning. See 22:23:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:23:46 22:23:46 Login Succeeded 22:23:46 nexus3.edgexfoundry.org:10002 22:23:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:23:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:23:47 Configure a credential helper to remove this warning. See 22:23:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:23:47 22:23:47 Login Succeeded 22:23:47 nexus3.edgexfoundry.org:10003 22:23:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:23:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:23:47 Configure a credential helper to remove this warning. See 22:23:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:23:47 22:23:47 Login Succeeded 22:23:47 nexus3.edgexfoundry.org:10004 22:23:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:23:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:23:48 Configure a credential helper to remove this warning. See 22:23:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:23:48 22:23:48 Login Succeeded 22:23:48 docker.io 22:23:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:23:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:23:48 Configure a credential helper to remove this warning. See 22:23:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:23:48 22:23:48 Login Succeeded 22:23:48 ---> docker-login.sh ends [Pipeline] } 22:23:48 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 22:23:49 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:23:49 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:23:49 ========================================================= 22:23:49 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine] 22:23:49 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:23:49 + 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 . 22:23:49 Sending build context to Docker daemon 3.34MB 22:23:49 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 22:23:49 Step 2/10 : FROM ${BASE} AS builder 22:23:50 1.18-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 22:23:50 9b18e9b68314: Pulling fs layer 22:23:50 35d82f9e3411: Pulling fs layer 22:23:50 e16973657156: Pulling fs layer 22:23:50 fc693d55d65f: Pulling fs layer 22:23:50 7e9fc2657dce: Pulling fs layer 22:23:50 dda99020689f: Pulling fs layer 22:23:50 db1c61fa0a46: Pulling fs layer 22:23:50 891c053d2c06: Pulling fs layer 22:23:50 fc693d55d65f: Waiting 22:23:50 7e9fc2657dce: Waiting 22:23:50 dda99020689f: Waiting 22:23:50 db1c61fa0a46: Waiting 22:23:50 891c053d2c06: Waiting 22:23:50 e16973657156: Verifying Checksum 22:23:50 e16973657156: Download complete 22:23:50 35d82f9e3411: Verifying Checksum 22:23:50 35d82f9e3411: Download complete 22:23:50 7e9fc2657dce: Verifying Checksum 22:23:50 7e9fc2657dce: Download complete 22:23:50 dda99020689f: Verifying Checksum 22:23:50 dda99020689f: Download complete 22:23:50 9b18e9b68314: Download complete 22:23:51 9b18e9b68314: Pull complete 22:23:51 891c053d2c06: Download complete 22:23:51 35d82f9e3411: Pull complete 22:23:52 e16973657156: Pull complete 22:23:53 db1c61fa0a46: Download complete 22:23:53 fc693d55d65f: Verifying Checksum 22:23:53 fc693d55d65f: Download complete 22:24:06 fc693d55d65f: Pull complete 22:24:06 7e9fc2657dce: Pull complete 22:24:06 dda99020689f: Pull complete 22:24:10 db1c61fa0a46: Pull complete 22:24:12 891c053d2c06: Pull complete 22:24:12 Digest: sha256:2cacf8bfc28650abd52610e42dcfc04852e818eb73900ea96edaef96a54d0b45 22:24:12 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine 22:24:12 ---> f96f9c87975a 22:24:12 Step 3/10 : ARG ADD_BUILD_TAGS="" 22:24:14 ---> Running in 4bc4b9a44902 22:24:14 Removing intermediate container 4bc4b9a44902 22:24:14 ---> 893bde965f69 22:24:14 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 22:24:14 ---> Running in f4db7793f71a 22:24:15 Removing intermediate container f4db7793f71a 22:24:15 ---> cf9516244ac2 22:24:15 Step 5/10 : RUN apk add --update --no-cache make git openssh 22:24:15 ---> Running in 1a7dab5c0722 22:24:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 22:24:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 22:24:18 (1/8) Installing openssh-keygen (9.0_p1-r2) 22:24:18 (2/8) Installing libedit (20210910.3.1-r0) 22:24:18 (3/8) Installing openssh-client-common (9.0_p1-r2) 22:24:18 (4/8) Installing openssh-client-default (9.0_p1-r2) 22:24:18 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 22:24:18 (6/8) Installing openssh-server-common (9.0_p1-r2) 22:24:18 (7/8) Installing openssh-server (9.0_p1-r2) 22:24:18 (8/8) Installing openssh (9.0_p1-r2) 22:24:18 Executing busybox-1.35.0-r17.trigger 22:24:18 OK: 228 MiB in 59 packages 22:24:20 Removing intermediate container 1a7dab5c0722 22:24:20 ---> 0d582e87f7c1 22:24:20 Step 6/10 : WORKDIR /device-modbus-go 22:24:20 ---> Running in 23bc3fbdad53 22:24:20 Removing intermediate container 23bc3fbdad53 22:24:20 ---> 2ae7a841c5af 22:24:20 Step 7/10 : COPY go.mod vendor* ./ 22:24:21 ---> 252e147a3164 22:24:21 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:24:21 ---> Running in 9f9c224c4e2f 22:25:42 Removing intermediate container 9f9c224c4e2f 22:25:42 ---> 551a61597305 22:25:42 Step 9/10 : COPY . . 22:25:42 ---> cb7496f025a1 22:25:42 Step 10/10 : RUN ${MAKE} 22:25:42 ---> Running in c6025bc20479 22:25:43 noop 22:25:44 Removing intermediate container c6025bc20479 22:25:44 ---> 29de8104e0bb 22:25:44 Successfully built 29de8104e0bb 22:25:44 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:25:45 + docker inspect -f . ci-base-image-arm64 22:25:45 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:25:45 prd-ubuntu20.04-docker-arm64-4c-16g-4997 does not seem to be running inside a container 22:25:45 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 22:25:47 $ docker top a6acb1e491b2743ab7f0b0e627717e833206a04e7ad1370cc548931e2b4da7a7 -eo pid,comm [Pipeline] { [Pipeline] sh 22:25:48 + go version 22:25:48 go version go1.18.7 linux/arm64 [Pipeline] } 22:25:48 $ docker stop --time=1 a6acb1e491b2743ab7f0b0e627717e833206a04e7ad1370cc548931e2b4da7a7 22:25:49 $ docker rm -f --volumes a6acb1e491b2743ab7f0b0e627717e833206a04e7ad1370cc548931e2b4da7a7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:25:50 + docker inspect -f . ci-base-image-arm64 22:25:50 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:25:50 prd-ubuntu20.04-docker-arm64-4c-16g-4997 does not seem to be running inside a container 22:25:51 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 22:25:52 $ docker top 5f67a89b8b649029c21b184c20327e2cce521f7f5aa4becaf3eb7f98cb618c00 -eo pid,comm [Pipeline] { [Pipeline] sh 22:25:53 + git config --global --add safe.directory /w/workspace/device-modbus-go/1 [Pipeline] fileExists [Pipeline] sh 22:25:53 + make test 22:25:53 go test ./... -coverprofile=coverage.out 22:25:55 ? github.com/edgexfoundry/device-modbus-go [no test files] 22:27:32 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 22:27:32 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.127s coverage: 47.7% of statements 22:27:32 WARNING: Linting skipped (not on x86_64 or linter not installed) 22:27:32 go vet ./... 22:28:05 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 22:28:05 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 22:28:05 ./bin/test-attribution-txt.sh 22:28:05 An attribution for golang.org/x/mod is missing from Attribution.txt, please add 22:28:05 An attribution for golang.org/x/tools is missing from Attribution.txt, please add [Pipeline] echo 22:28:05 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 22:28:05 $ docker stop --time=1 5f67a89b8b649029c21b184c20327e2cce521f7f5aa4becaf3eb7f98cb618c00 22:28:07 $ docker rm -f --volumes 5f67a89b8b649029c21b184c20327e2cce521f7f5aa4becaf3eb7f98cb618c00 [Pipeline] // withDockerContainer [Pipeline] sh 22:28:09 + sudo chown -R jenkins:jenkins . [Pipeline] stash 22:28:09 Warning: overwriting stash ‘coverage-report’ 22:28:09 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 22:28:10 + sudo chown -R jenkins:jenkins . [Pipeline] sh 22:28:10 + ls -al . 22:28:10 total 180 22:28:10 drwxrwxr-x 9 jenkins jenkins 4096 Feb 7 22:25 . 22:28:10 drwxrwxr-x 4 jenkins jenkins 4096 Feb 7 22:23 .. 22:28:10 -rw-rw-r-- 1 jenkins jenkins 140 Feb 7 22:23 .dockerignore 22:28:10 drwxrwxr-x 8 jenkins jenkins 4096 Feb 7 22:23 .git 22:28:10 drwxrwxr-x 3 jenkins jenkins 4096 Feb 7 22:23 .github 22:28:10 -rw-rw-r-- 1 jenkins jenkins 331 Feb 7 22:23 .gitignore 22:28:10 -rw-rw-r-- 1 jenkins jenkins 41 Feb 7 22:23 .golangci.yml 22:28:10 -rw-rw-r-- 1 jenkins jenkins 10017 Feb 7 22:23 Attribution.txt 22:28:10 -rw-rw-r-- 1 jenkins jenkins 11576 Feb 7 22:23 CHANGELOG.md 22:28:10 -rw-rw-r-- 1 jenkins jenkins 1365 Feb 7 22:23 Dockerfile 22:28:10 -rw-rw-r-- 1 jenkins jenkins 677 Feb 7 22:23 GOVERNANCE.md 22:28:10 -rw-rw-r-- 1 jenkins jenkins 680 Feb 7 22:23 Jenkinsfile 22:28:10 -rw-rw-r-- 1 jenkins jenkins 11340 Feb 7 22:23 LICENSE 22:28:10 -rw-rw-r-- 1 jenkins jenkins 1670 Feb 7 22:23 Makefile 22:28:10 -rw-rw-r-- 1 jenkins jenkins 622 Feb 7 22:23 OWNERS.md 22:28:10 -rw-rw-r-- 1 jenkins jenkins 4061 Feb 7 22:23 README.md 22:28:10 -rw-rw-r-- 1 jenkins jenkins 5 Feb 7 22:20 VERSION 22:28:10 drwxrwxr-x 2 jenkins jenkins 4096 Feb 7 22:23 bin 22:28:10 drwxrwxr-x 3 jenkins jenkins 4096 Feb 7 22:23 cmd 22:28:10 -rw-r--r-- 1 jenkins jenkins 23241 Feb 7 22:27 coverage.out 22:28:10 -rw-rw-r-- 1 jenkins jenkins 3495 Feb 7 22:23 go.mod 22:28:10 -rw-rw-r-- 1 jenkins jenkins 33619 Feb 7 22:23 go.sum 22:28:10 drwxrwxr-x 3 jenkins jenkins 4096 Feb 7 22:23 internal 22:28:10 drwxrwxr-x 2 jenkins jenkins 4096 Feb 7 22:23 simulator 22:28:10 drwxrwxr-x 4 jenkins jenkins 4096 Feb 7 22:23 snap 22:28:10 -rw-rw-r-- 1 jenkins jenkins 229 Feb 7 22:23 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:28:11 + 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=6edb17e21d9641da6fc95b762e70d9a9b0591641 --label arch=arm64 --label version=0.0.0 . 22:28:11 Sending build context to Docker daemon 3.364MB 22:28:11 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 22:28:11 Step 2/22 : FROM ${BASE} AS builder 22:28:11 ---> 29de8104e0bb 22:28:11 Step 3/22 : ARG ADD_BUILD_TAGS="" 22:28:11 ---> Running in 5663fee676d3 22:28:12 Removing intermediate container 5663fee676d3 22:28:12 ---> d0b11d8205f7 22:28:12 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 22:28:12 ---> Running in 8a7a1aa0a06f 22:28:12 Removing intermediate container 8a7a1aa0a06f 22:28:12 ---> 2bb8ec43b2ef 22:28:12 Step 5/22 : RUN apk add --update --no-cache make git openssh 22:28:12 ---> Running in bed390567553 22:28:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 22:28:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 22:28:15 OK: 228 MiB in 59 packages 22:28:16 Removing intermediate container bed390567553 22:28:16 ---> ea1526f2bcd1 22:28:16 Step 6/22 : WORKDIR /device-modbus-go 22:28:16 ---> Running in e63f05290410 22:28:17 Removing intermediate container e63f05290410 22:28:17 ---> ae231409909a 22:28:17 Step 7/22 : COPY go.mod vendor* ./ 22:28:18 ---> 850f891c3423 22:28:18 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:28:18 ---> Running in f2a6b6f13a21 22:28:21 Removing intermediate container f2a6b6f13a21 22:28:21 ---> 49fd7cdb7b4a 22:28:21 Step 9/22 : COPY . . 22:28:22 ---> 98c53e8df244 22:28:22 Step 10/22 : RUN ${MAKE} 22:28:22 ---> Running in da23833b9f1e 22:28:23 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 22:30:45 Removing intermediate container da23833b9f1e 22:30:45 ---> edb2e7e29192 22:30:45 Step 11/22 : FROM alpine:3.14 22:30:45 3.14: Pulling from library/alpine 22:30:45 90cda3b7c325: Pulling fs layer 22:30:45 90cda3b7c325: Verifying Checksum 22:30:45 90cda3b7c325: Download complete 22:30:45 90cda3b7c325: Pull complete 22:30:45 Digest: sha256:4c869a63e1b7c0722fed1e402a6466610327c3b83bdddb94bd94fb71da7f638a 22:30:45 Status: Downloaded newer image for alpine:3.14 22:30:45 ---> 275902a1839d 22:30:45 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 22:30:45 ---> Running in c3c5180d4b60 22:30:45 Removing intermediate container c3c5180d4b60 22:30:45 ---> a5e5a61b87e0 22:30:45 Step 13/22 : RUN apk add --update --no-cache dumb-init 22:30:45 ---> Running in a24a9e16ea68 22:30:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 22:30:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 22:30:46 (1/1) Installing dumb-init (1.2.5-r1) 22:30:46 Executing busybox-1.33.1-r8.trigger 22:30:46 OK: 6 MiB in 15 packages 22:30:47 Removing intermediate container a24a9e16ea68 22:30:47 ---> 16e0bf4f3bf7 22:30:47 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 22:30:48 ---> 6e01f5f4582e 22:30:48 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 22:30:49 ---> 7864e43a079a 22:30:49 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 22:30:49 ---> 69719406ebe2 22:30:49 Step 17/22 : EXPOSE 59901 22:30:49 ---> Running in 5d9e570cb479 22:30:50 Removing intermediate container 5d9e570cb479 22:30:50 ---> 692c226cfbc3 22:30:50 Step 18/22 : ENTRYPOINT ["/device-modbus"] 22:30:50 ---> Running in 873de54ebfbe 22:30:50 Removing intermediate container 873de54ebfbe 22:30:50 ---> a90e2782be46 22:30:50 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 22:30:50 ---> Running in e4003766dc24 22:30:50 Removing intermediate container e4003766dc24 22:30:50 ---> 471b7c4573a1 22:30:50 Step 20/22 : LABEL arch=arm64 22:30:50 ---> Running in 6a98a72b615a 22:30:51 Removing intermediate container 6a98a72b615a 22:30:51 ---> 3a5a8a2a24a8 22:30:51 Step 21/22 : LABEL git_sha=6edb17e21d9641da6fc95b762e70d9a9b0591641 22:30:51 ---> Running in 2aa546ce1f0b 22:30:51 Removing intermediate container 2aa546ce1f0b 22:30:51 ---> 02535dbe9af7 22:30:51 Step 22/22 : LABEL version=0.0.0 22:30:51 ---> Running in 53c6721af692 22:30:52 Removing intermediate container 53c6721af692 22:30:52 ---> c7eb5e327adc 22:30:52 [Warning] One or more build-args [ARCH] were not consumed 22:30:52 Successfully built c7eb5e327adc 22:30:52 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 22:30:52 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 22:30:52 22:30:52 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:30:53 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 22:30:53 arm64: Pulling from edgex-lftools-log-publisher 22:30:53 8998bd30e6a1: Pulling fs layer 22:30:53 04944245beec: Pulling fs layer 22:30:53 699f458cf7ca: Pulling fs layer 22:30:53 765212b225bb: Pulling fs layer 22:30:53 f23df028b6ca: Pulling fs layer 22:30:53 d65c8cfc05b1: Pulling fs layer 22:30:53 2437ff75d9bd: Pulling fs layer 22:30:53 765212b225bb: Waiting 22:30:53 f23df028b6ca: Waiting 22:30:53 d65c8cfc05b1: Waiting 22:30:53 2437ff75d9bd: Waiting 22:30:53 04944245beec: Verifying Checksum 22:30:53 04944245beec: Download complete 22:30:53 765212b225bb: Verifying Checksum 22:30:53 765212b225bb: Download complete 22:30:53 f23df028b6ca: Verifying Checksum 22:30:53 f23df028b6ca: Download complete 22:30:53 d65c8cfc05b1: Verifying Checksum 22:30:53 d65c8cfc05b1: Download complete 22:30:53 699f458cf7ca: Download complete 22:30:54 8998bd30e6a1: Verifying Checksum 22:30:54 8998bd30e6a1: Download complete 22:30:56 2437ff75d9bd: Verifying Checksum 22:30:56 2437ff75d9bd: Download complete 22:30:58 8998bd30e6a1: Pull complete 22:30:58 04944245beec: Pull complete 22:31:00 699f458cf7ca: Pull complete 22:31:00 765212b225bb: Pull complete 22:31:01 f23df028b6ca: Pull complete 22:31:01 d65c8cfc05b1: Pull complete 22:31:16 2437ff75d9bd: Pull complete 22:31:16 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 22:31:16 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 22:31:16 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:31:16 prd-ubuntu20.04-docker-arm64-4c-16g-4997 does not seem to be running inside a container 22:31:16 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 22:31:19 $ docker top 160260ce2ca3fdfc08fec104ba49f2d1fd20d36c78b4c67e57be48c714e1c04c -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:31:20 ---> job-cost.sh 22:31:20 lf-activate-venv: SKIPPING 22:31:20 INFO: No Stack... 22:31:21 INFO: Retrieving Pricing Info for: v3-standard-4 22:31:21 INFO: Archiving Costs [Pipeline] sh 22:31:22 + cat /w/workspace/device-modbus-go/1/archives/cost.csv 22:31:22 + cut -d, -f6 [Pipeline] lock 22:31:22 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-408-1-stack-cost] 22:31:22 Resource [jenkins-edgexfoundry-device-modbus-go-PR-408-1-stack-cost] did not exist. Created. 22:31:22 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-408-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 22:31:23 /w/workspace/device-modbus-go/1@tmp/durable-c88d6a6b/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 22:31:23 + echo total: 0.10999999940395355 [Pipeline] stash 22:31:23 Warning: overwriting stash ‘stack-cost’ 22:31:23 Stashed 1 file(s) [Pipeline] } 22:31:23 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-408-1-stack-cost] [Pipeline] // lock [Pipeline] } 22:31:24 $ docker stop --time=1 160260ce2ca3fdfc08fec104ba49f2d1fd20d36c78b4c67e57be48c714e1c04c 22:31:25 $ docker rm -f --volumes 160260ce2ca3fdfc08fec104ba49f2d1fd20d36c78b4c67e57be48c714e1c04c [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 22:31:26 provisioning config files... 22:31:26 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-408@tmp/config4248491977184901728tmp [Pipeline] { [Pipeline] sh 22:31:26 + set +x 22:31:26 + curl -s https://codecov.io/bash 22:31:26 + bash -s -- 22:31:26 22:31:26 _____ _ 22:31:26 / ____| | | 22:31:26 | | ___ __| | ___ ___ _____ __ 22:31:26 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 22:31:26 | |___| (_) | (_| | __/ (_| (_) \ V / 22:31:26 \_____\___/ \__,_|\___|\___\___/ \_/ 22:31:26 Bash-1.0.6 22:31:26 22:31:26 22:31:26 ==> git version 2.25.1 found 22:31:26 ==> 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 22:31:26 Release-Date: 2020-01-08 22:31:26 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 22:31:26 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 22:31:26 ==> Jenkins CI detected. 22:31:26 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-408 22:31:26 project root: . 22:31:26 --> token set from env 22:31:26 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 22:31:26 ==> Running gcov in . (disable via -X gcov) 22:31:26 ==> Python coveragepy not found 22:31:26 ==> Searching for coverage reports in: 22:31:26 + . 22:31:26 -> Found 1 reports 22:31:26 ==> Detecting git/mercurial file structure 22:31:26 ==> Reading reports 22:31:26 + ./coverage.out bytes=23241 22:31:26 ==> Appending adjustments 22:31:26 https://docs.codecov.io/docs/fixing-reports 22:31:27 + Found adjustments 22:31:27 ==> Gzipping contents 22:31:27 4.0K /tmp/codecov.j4RnxK.gz 22:31:27 ==> Uploading reports 22:31:27 url: https://codecov.io 22:31:27 query: branch=PR-408&commit=6edb17e21d9641da6fc95b762e70d9a9b0591641&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-408%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=408&job=&cmd_args= 22:31:27 -> Pinging Codecov 22:31:27 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-408&commit=6edb17e21d9641da6fc95b762e70d9a9b0591641&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-408%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=408&job=&cmd_args= 22:31:27 -> Uploading to 22:31:27 https://storage.googleapis.com/codecov/v4/raw/2023-02-07/55DBCA73C666E3227836607328DD7E49/6edb17e21d9641da6fc95b762e70d9a9b0591641/4def9d44-dff9-4c88-bf2a-f26d8c9a5b11.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230207%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230207T223127Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=b1ca2ce56354354af8868332a4fd848dcf44756c1afa1ed2e5b9000e5610e681 22:31:27 % Total % Received % Xferd Average Speed Time Time Time Current 22:31:27 Dload Upload Total Spent Left Speed 22:31:27 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3907 0 0 100 3907 0 14053 --:--:-- --:--:-- --:--:-- 14053 22:31:27 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/6edb17e21d9641da6fc95b762e70d9a9b0591641 [Pipeline] } 22:31:27 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 22:31:29 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-408/archives ] 22:31:29 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-408/archives 22:31:29 total 16 22:31:29 drwxr-xr-x 3 root root 4096 Feb 7 22:23 . 22:31:29 drwxrwxr-x 11 jenkins jenkins 4096 Feb 7 22:23 .. 22:31:29 drwxr-xr-x 2 root root 4096 Feb 7 22:23 cost 22:31:29 -rw-r--r-- 1 root root 88 Feb 7 22:23 cost.csv 22:31:29 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-408/archives 22:31:29 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-408/archives 22:31:29 total 16 22:31:29 drwxr-xr-x 3 jenkins jenkins 4096 Feb 7 22:23 . 22:31:29 drwxrwxr-x 11 jenkins jenkins 4096 Feb 7 22:23 .. 22:31:29 drwxr-xr-x 2 jenkins jenkins 4096 Feb 7 22:23 cost 22:31:29 -rw-r--r-- 1 jenkins jenkins 88 Feb 7 22:23 cost.csv [Pipeline] libraryResource [Pipeline] sh 22:31:29 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 22:31:30 ---> package-listing.sh 22:31:30 ++ facter osfamily 22:31:30 ++ tr '[:upper:]' '[:lower:]' 22:31:30 + OS_FAMILY=debian 22:31:30 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-408 22:31:30 + START_PACKAGES=/tmp/packages_start.txt 22:31:30 + END_PACKAGES=/tmp/packages_end.txt 22:31:30 + DIFF_PACKAGES=/tmp/packages_diff.txt 22:31:30 + PACKAGES=/tmp/packages_start.txt 22:31:30 + '[' /w/workspace/xfoundry_device-modbus-go_PR-408 ']' 22:31:30 + PACKAGES=/tmp/packages_end.txt 22:31:30 + case "${OS_FAMILY}" in 22:31:30 + dpkg -l 22:31:30 + grep '^ii' 22:31:30 + '[' -f /tmp/packages_start.txt ']' 22:31:30 + '[' -f /tmp/packages_end.txt ']' 22:31:30 + diff /tmp/packages_start.txt /tmp/packages_end.txt 22:31:30 + '[' /w/workspace/xfoundry_device-modbus-go_PR-408 ']' 22:31:30 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-408/archives/ 22:31:30 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-408/archives/ [Pipeline] echo 22:31:30 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-408/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 22:31:31 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:31:31 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:31:31 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:31:31 prd-ubuntu20.04-docker-8c-8g-4995 does not seem to be running inside a container 22:31:32 $ 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-408/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-408 -v /w/workspace/xfoundry_device-modbus-go_PR-408:/w/workspace/xfoundry_device-modbus-go_PR-408:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-408@tmp:/w/workspace/xfoundry_device-modbus-go_PR-408@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-lftools-log-publisher:latest cat 22:31:32 $ docker top fc7b2e58655ad3e825143cdcb3f3dd4548071eb20ac65b4fca759a37958b9535 -eo pid,comm [Pipeline] { [Pipeline] sh 22:31:32 + touch /tmp/pre-build-complete [Pipeline] sh 22:31:32 + mkdir -p /var/log/sysstat [Pipeline] sh 22:31:33 + ls /var/log/sa-host 22:31:33 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 22:31:33 provisioning config files... 22:31:33 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-408@tmp/config18177199997276365161tmp [Pipeline] { [Pipeline] echo 22:31:33 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 22:31:33 ---> create-netrc.sh [Pipeline] } 22:31:33 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 22:31:34 ---> python-tools-install.sh [Pipeline] echo 22:31:34 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 22:31:34 ---> sudo-logs.sh 22:31:34 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 22:31:34 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 22:31:34 ---> job-cost.sh 22:31:34 lf-activate-venv: SKIPPING 22:31:34 DEBUG: total: 0.2199999988079071 22:31:34 INFO: Retrieving Stack Cost... 22:31:35 INFO: Retrieving Pricing Info for: v3-standard-8 22:31:35 INFO: Archiving Costs [Pipeline] echo 22:31:35 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 22:31:36 ---> logs-deploy.sh 22:31:36 lf-activate-venv: SKIPPING 22:31:36 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-408/1 22:31:36 INFO: archiving workspace using pattern(s): 22:31:37 Archives upload complete. 22:31:37 INFO: archiving logs to Nexus