Pull request #400 updated Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of farshidtz for edgexfoundry/device-modbus-go Obtained Jenkinsfile from 256f87db5fdfe07ed03426eac959ea24fa54efa6+8c18bb98ae9dac01b00ec9cd5d6b8c37f768cff1 (bfad43efae065a97c5afa50b7cc905166a46522b) 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-ssh6153007248877892558.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-ssh17706973029023566332.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-400/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-400/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh6764485175032028520.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 # timeout=10 Commit message: "Merge pull request #420 from bill-mahoney/levski-update" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh14339833015520390321.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 The recommended git tool is: NONE using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-400/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-400/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh16604144326365765574.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-modbus-go, buildSnap:false] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-modbus-go-settings PROJECT: device-modbus-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.18 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-modbus DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-2227 in /w/workspace/xfoundry_device-modbus-go_PR-400 [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-400 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/400/head:refs/remotes/origin/PR-400 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 8c18bb98ae9dac01b00ec9cd5d6b8c37f768cff1 into PR head commit 256f87db5fdfe07ed03426eac959ea24fa54efa6 Merge succeeded, producing 256f87db5fdfe07ed03426eac959ea24fa54efa6 Checking out Revision 256f87db5fdfe07ed03426eac959ea24fa54efa6 (PR-400) > git config core.sparsecheckout # timeout=10 > git checkout -f 256f87db5fdfe07ed03426eac959ea24fa54efa6 # 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 8c18bb98ae9dac01b00ec9cd5d6b8c37f768cff1 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 256f87db5fdfe07ed03426eac959ea24fa54efa6 # timeout=10 Commit message: "fix: Remove unused imported module" > git rev-list --no-walk 34d1ea018a435b8e147222b7c7e3f3cc77e41815 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 16:31:49 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 16:31:49 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 16:31:49 ========================================================= 16:31:49 EdgeX Global Pipelines Version Info 16:31:49 ========================================================= [Pipeline] libraryResource [Pipeline] sh 16:31:50 ------------------- 16:31:50 stable info: 16:31:50 ------------------- 16:31:50 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 16:31:50 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 16:31:50 Message: update stable to v1.0.244 16:31:51 ------------------- 16:31:51 experimental info: 16:31:51 ------------------- 16:31:51 Commited By: **** collab-it+edgex@linuxfoundation.org 16:31:51 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 16:31:51 Message: update experimental to v1.0.244 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.18 [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-400 [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-400 [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-400 [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 256f87db5fdfe07ed03426eac959ea24fa54efa6 [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 256f87d [Pipeline] echo 16:31:51 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 16:31:51 provisioning config files... 16:31:51 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-400@tmp/config13625577632360904018tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 16:31:52 ---> docker-login.sh 16:31:52 nexus3.edgexfoundry.org:10001 16:31:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:31:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:31:52 Configure a credential helper to remove this warning. See 16:31:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:31:52 16:31:52 Login Succeeded 16:31:52 nexus3.edgexfoundry.org:10002 16:31:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:31:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:31:52 Configure a credential helper to remove this warning. See 16:31:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:31:52 16:31:52 Login Succeeded 16:31:52 nexus3.edgexfoundry.org:10003 16:31:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:31:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:31:52 Configure a credential helper to remove this warning. See 16:31:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:31:52 16:31:52 Login Succeeded 16:31:52 nexus3.edgexfoundry.org:10004 16:31:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:31:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:31:52 Configure a credential helper to remove this warning. See 16:31:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:31:52 16:31:52 Login Succeeded 16:31:52 docker.io 16:31:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:31:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:31:53 Configure a credential helper to remove this warning. See 16:31:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:31:53 16:31:53 Login Succeeded 16:31:53 ---> docker-login.sh ends [Pipeline] } 16:31:53 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 16:31:53 + git rev-list -1 --merges 256f87db5fdfe07ed03426eac959ea24fa54efa6~1..256f87db5fdfe07ed03426eac959ea24fa54efa6 [Pipeline] echo 16:31:53 -----------> git rev-list -1 --merges 256f87db5fdfe07ed03426eac959ea24fa54efa6~1..256f87db5fdfe07ed03426eac959ea24fa54efa6 256f87db5fdfe07ed03426eac959ea24fa54efa6 [false] [Pipeline] sh 16:31:53 + git log --format=format:%s -1 256f87db5fdfe07ed03426eac959ea24fa54efa6 [Pipeline] echo 16:31:53 ========================================================= 16:31:53 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 16:31:53 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 16:31:54 + git log --format=format:%s -1 256f87db5fdfe07ed03426eac959ea24fa54efa6 [Pipeline] echo 16:31:54 [semverPrep] GIT_COMMIT: 256f87db5fdfe07ed03426eac959ea24fa54efa6, Commit Message: fix: Remove unused imported module [Pipeline] echo 16:31:54 [semverPrep] This is not a build commit. [Pipeline] sh 16:31:54 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 16:31:54 + grep -v github /etc/ssh/ssh_known_hosts 16:31:54 + [ -e /tmp/ssh_known_hosts ] 16:31:54 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 16:31:54 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 16:31:54 + sudo tee -a /etc/ssh/ssh_known_hosts 16:31:54 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:31:55 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 16:31:55 16:31:55 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:31:55 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 16:31:55 0.1.4: Pulling from edgex-devops/py-git-semver 16:31:55 b85a868b505f: Pulling fs layer 16:31:55 e2be974225ed: Pulling fs layer 16:31:55 339a4e72a1f5: Pulling fs layer 16:31:55 988bab9f4d93: Pulling fs layer 16:31:55 1469e6f7b9e6: Pulling fs layer 16:31:55 eaf3925da568: Pulling fs layer 16:31:55 bab4dde63d76: Pulling fs layer 16:31:55 bde34c3a00c8: Pulling fs layer 16:31:55 b352a97aabf1: Pulling fs layer 16:31:55 4872d77fe225: Pulling fs layer 16:31:55 5851b861e8e6: Pulling fs layer 16:31:55 eaf3925da568: Waiting 16:31:55 bab4dde63d76: Waiting 16:31:55 bde34c3a00c8: Waiting 16:31:55 b352a97aabf1: Waiting 16:31:55 4872d77fe225: Waiting 16:31:55 5851b861e8e6: Waiting 16:31:55 988bab9f4d93: Waiting 16:31:55 e2be974225ed: Verifying Checksum 16:31:55 e2be974225ed: Download complete 16:31:55 988bab9f4d93: Download complete 16:31:55 339a4e72a1f5: Verifying Checksum 16:31:55 339a4e72a1f5: Download complete 16:31:55 1469e6f7b9e6: Verifying Checksum 16:31:55 1469e6f7b9e6: Download complete 16:31:55 eaf3925da568: Download complete 16:31:55 bde34c3a00c8: Verifying Checksum 16:31:55 bde34c3a00c8: Download complete 16:31:55 b352a97aabf1: Verifying Checksum 16:31:55 b352a97aabf1: Download complete 16:31:55 4872d77fe225: Verifying Checksum 16:31:55 4872d77fe225: Download complete 16:31:55 5851b861e8e6: Verifying Checksum 16:31:55 5851b861e8e6: Download complete 16:31:55 b85a868b505f: Verifying Checksum 16:31:55 b85a868b505f: Download complete 16:31:56 bab4dde63d76: Verifying Checksum 16:31:56 bab4dde63d76: Download complete 16:31:57 b85a868b505f: Pull complete 16:31:57 e2be974225ed: Pull complete 16:31:57 339a4e72a1f5: Pull complete 16:31:57 988bab9f4d93: Pull complete 16:31:57 1469e6f7b9e6: Pull complete 16:31:58 eaf3925da568: Pull complete 16:32:00 bab4dde63d76: Pull complete 16:32:00 bde34c3a00c8: Pull complete 16:32:00 b352a97aabf1: Pull complete 16:32:00 4872d77fe225: Pull complete 16:32:00 5851b861e8e6: Pull complete 16:32:00 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 16:32:00 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 16:32:00 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:32:00 prd-ubuntu20.04-docker-8c-8g-2227 does not seem to be running inside a container 16:32:00 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-400 -v /w/workspace/xfoundry_device-modbus-go_PR-400:/w/workspace/xfoundry_device-modbus-go_PR-400:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-400@tmp:/w/workspace/xfoundry_device-modbus-go_PR-400@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-devops/py-git-semver:0.1.4 cat 16:32:02 $ docker top 284d6c22d007e658298c48715fc91e3227db427b4a3609ddb06cb6c86e6c6749 -eo pid,comm 16:32:02 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). 16:32:02 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 16:32:02 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 16:32:02 [ssh-agent] Looking for ssh-agent implementation... 16:32:02 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 16:32:02 $ docker exec 284d6c22d007e658298c48715fc91e3227db427b4a3609ddb06cb6c86e6c6749 ssh-agent 16:32:02 SSH_AUTH_SOCK=/tmp/ssh-wXpG3kmejWPw/agent.34 16:32:02 SSH_AGENT_PID=40 16:32:02 Running ssh-add (command line suppressed) 16:32:02 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-400@tmp/private_key_9925284780592676496.key (/w/workspace/xfoundry_device-modbus-go_PR-400@tmp/private_key_9925284780592676496.key) 16:32:02 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 16:32:02 + git tag --points-at HEAD [Pipeline] } 16:32:02 $ docker exec --env ******** --env ******** 284d6c22d007e658298c48715fc91e3227db427b4a3609ddb06cb6c86e6c6749 ssh-agent -k 16:32:03 unset SSH_AUTH_SOCK; 16:32:03 unset SSH_AGENT_PID; 16:32:03 echo Agent pid 40 killed; 16:32:03 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 16:32:03 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 16:32:03 [ssh-agent] Looking for ssh-agent implementation... 16:32:03 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 16:32:03 $ docker exec 284d6c22d007e658298c48715fc91e3227db427b4a3609ddb06cb6c86e6c6749 ssh-agent 16:32:03 SSH_AUTH_SOCK=/tmp/ssh-N3JlP9PuU0H2/agent.72 16:32:03 SSH_AGENT_PID=78 16:32:03 Running ssh-add (command line suppressed) 16:32:03 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-400@tmp/private_key_13404896631853794577.key (/w/workspace/xfoundry_device-modbus-go_PR-400@tmp/private_key_13404896631853794577.key) 16:32:03 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 16:32:03 + git semver init 16:32:03 2023-01-13 16:32:03,911 [run_init] DEBUG init version:0.0.0 force:False 16:32:03 2023-01-13 16:32:03,911 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-400/.semver 16:32:03 2023-01-13 16:32:03,912 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-400/.semver 16:32:03 2023-01-13 16:32:03,912 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-400/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-400, universal_newlines=False, shell=None, istream=None) 16:32:04 2023-01-13 16:32:04,788 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-400/.git/info/exclude 16:32:04 2023-01-13 16:32:04,788 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-400/.semver/PR-400 with force:False 16:32:04 2023-01-13 16:32:04,788 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-400/.semver/PR-400 16:32:04 2023-01-13 16:32:04,793 [execute] INFO git cat-file --batch-check 16:32:04 2023-01-13 16:32:04,793 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-400/.semver, universal_newlines=False, shell=None, istream=) 16:32:04 2023-01-13 16:32:04,802 [execute] INFO git cat-file --batch 16:32:04 2023-01-13 16:32:04,802 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-400/.semver, universal_newlines=False, shell=None, istream=) 16:32:04 2023-01-13 16:32:04,808 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-400/.semver/PR-400 16:32:04 0.0.0 [Pipeline] } 16:32:04 $ docker exec --env ******** --env ******** 284d6c22d007e658298c48715fc91e3227db427b4a3609ddb06cb6c86e6c6749 ssh-agent -k 16:32:05 unset SSH_AUTH_SOCK; 16:32:05 unset SSH_AGENT_PID; 16:32:05 echo Agent pid 78 killed; 16:32:05 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 16:32:05 + git semver [Pipeline] } 16:32:05 $ docker stop --time=1 284d6c22d007e658298c48715fc91e3227db427b4a3609ddb06cb6c86e6c6749 16:32:06 $ docker rm -f --volumes 284d6c22d007e658298c48715fc91e3227db427b4a3609ddb06cb6c86e6c6749 [Pipeline] // withDockerContainer [Pipeline] sh 16:32:07 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 16:32:07 Stashed 1 file(s) [Pipeline] echo 16:32:07 [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 16:32:07 provisioning config files... 16:32:07 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-400@tmp/config8859257506999522548tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 16:32:07 ---> docker-login.sh 16:32:07 nexus3.edgexfoundry.org:10001 16:32:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:32:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:32:07 Configure a credential helper to remove this warning. See 16:32:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:32:07 16:32:07 Login Succeeded 16:32:07 nexus3.edgexfoundry.org:10002 16:32:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:32:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:32:07 Configure a credential helper to remove this warning. See 16:32:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:32:07 16:32:07 Login Succeeded 16:32:07 nexus3.edgexfoundry.org:10003 16:32:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:32:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:32:08 Configure a credential helper to remove this warning. See 16:32:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:32:08 16:32:08 Login Succeeded 16:32:08 nexus3.edgexfoundry.org:10004 16:32:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:32:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:32:08 Configure a credential helper to remove this warning. See 16:32:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:32:08 16:32:08 Login Succeeded 16:32:08 docker.io 16:32:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:32:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:32:08 Configure a credential helper to remove this warning. See 16:32:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:32:08 16:32:08 Login Succeeded 16:32:08 ---> docker-login.sh ends [Pipeline] } 16:32:08 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 16:32:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 16:32:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 16:32:08 ========================================================= 16:32:08 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine] 16:32:08 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:32:09 + 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 . 16:32:09 Sending build context to Docker daemon 6.355MB 16:32:09 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 16:32:09 Step 2/10 : FROM ${BASE} AS builder 16:32:09 1.18-alpine: Pulling from edgex-devops/edgex-golang-base 16:32:09 213ec9aee27d: Pulling fs layer 16:32:09 4583459ba037: Pulling fs layer 16:32:09 93c1e223e6f2: Pulling fs layer 16:32:09 53926ce57604: Pulling fs layer 16:32:09 21b2b0c7a3f4: Pulling fs layer 16:32:09 22ff95d597cd: Pulling fs layer 16:32:09 12d6caf4c0d1: Pulling fs layer 16:32:09 96b7cbca73a9: Pulling fs layer 16:32:09 a7acece74701: Pulling fs layer 16:32:09 22ff95d597cd: Waiting 16:32:09 12d6caf4c0d1: Waiting 16:32:09 96b7cbca73a9: Waiting 16:32:09 a7acece74701: Waiting 16:32:09 21b2b0c7a3f4: Waiting 16:32:09 53926ce57604: Waiting 16:32:09 93c1e223e6f2: Verifying Checksum 16:32:09 93c1e223e6f2: Download complete 16:32:09 4583459ba037: Verifying Checksum 16:32:09 4583459ba037: Download complete 16:32:09 21b2b0c7a3f4: Verifying Checksum 16:32:09 21b2b0c7a3f4: Download complete 16:32:09 22ff95d597cd: Download complete 16:32:09 213ec9aee27d: Verifying Checksum 16:32:09 213ec9aee27d: Download complete 16:32:09 12d6caf4c0d1: Verifying Checksum 16:32:09 12d6caf4c0d1: Download complete 16:32:09 213ec9aee27d: Pull complete 16:32:09 4583459ba037: Pull complete 16:32:09 93c1e223e6f2: Pull complete 16:32:10 a7acece74701: Verifying Checksum 16:32:10 a7acece74701: Download complete 16:32:10 53926ce57604: Verifying Checksum 16:32:10 53926ce57604: Download complete 16:32:10 96b7cbca73a9: Verifying Checksum 16:32:10 96b7cbca73a9: Download complete 16:32:14 53926ce57604: Pull complete 16:32:14 21b2b0c7a3f4: Pull complete 16:32:14 22ff95d597cd: Pull complete 16:32:14 12d6caf4c0d1: Pull complete 16:32:16 96b7cbca73a9: Pull complete 16:32:17 a7acece74701: Pull complete 16:32:17 Digest: sha256:f6a9ef70c52da88a2ff63a0c6767b24654f9f5185d1d85ca6cc3004fb48f6c2d 16:32:17 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine 16:32:17 ---> db6d94c90886 16:32:17 Step 3/10 : ARG ADD_BUILD_TAGS="" 16:32:19 ---> Running in 108447b5d8e4 16:32:19 Removing intermediate container 108447b5d8e4 16:32:19 ---> c79d656576a5 16:32:19 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 16:32:19 ---> Running in 74271001ed1e 16:32:19 Removing intermediate container 74271001ed1e 16:32:19 ---> c531a709775d 16:32:19 Step 5/10 : RUN apk add --update --no-cache make git openssh 16:32:19 ---> Running in c54378f67bc7 16:32:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 16:32:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 16:32:20 (1/8) Installing openssh-keygen (9.0_p1-r2) 16:32:20 (2/8) Installing libedit (20210910.3.1-r0) 16:32:20 (3/8) Installing openssh-client-common (9.0_p1-r2) 16:32:20 (4/8) Installing openssh-client-default (9.0_p1-r2) 16:32:20 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 16:32:20 (6/8) Installing openssh-server-common (9.0_p1-r2) 16:32:20 (7/8) Installing openssh-server (9.0_p1-r2) 16:32:20 (8/8) Installing openssh (9.0_p1-r2) 16:32:20 Executing busybox-1.35.0-r17.trigger 16:32:20 OK: 217 MiB in 59 packages 16:32:21 Removing intermediate container c54378f67bc7 16:32:21 ---> 7f2e707e0f0c 16:32:21 Step 6/10 : WORKDIR /device-modbus-go 16:32:21 ---> Running in 16bd4daea1fd 16:32:21 Removing intermediate container 16bd4daea1fd 16:32:21 ---> bc49705a3be4 16:32:21 Step 7/10 : COPY go.mod vendor* ./ 16:32:21 ---> 5981c0235fa4 16:32:21 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 16:32:21 ---> Running in 95fc2a8c0142 16:32:22 Still waiting to schedule task 16:32:22 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-2226’ 16:32:43 Removing intermediate container 95fc2a8c0142 16:32:43 ---> 322193918671 16:32:43 Step 9/10 : COPY . . 16:32:43 ---> d5753247310c 16:32:43 Step 10/10 : RUN ${MAKE} 16:32:43 ---> Running in 91b1fd8405f4 16:32:43 noop 16:32:43 Removing intermediate container 91b1fd8405f4 16:32:43 ---> 956f0010f342 16:32:43 Successfully built 956f0010f342 16:32:43 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:32:43 + docker inspect -f . ci-base-image-x86_64 16:32:43 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:32:43 prd-ubuntu20.04-docker-8c-8g-2227 does not seem to be running inside a container 16:32:43 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-400 -v /w/workspace/xfoundry_device-modbus-go_PR-400:/w/workspace/xfoundry_device-modbus-go_PR-400:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-400@tmp:/w/workspace/xfoundry_device-modbus-go_PR-400@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 16:32:44 $ docker top 0a7b18c596a8d7f5ddc9bf10acbeca74c684ea3231779c0633a87269616281f5 -eo pid,comm [Pipeline] { [Pipeline] sh 16:32:44 + go version 16:32:44 go version go1.18.7 linux/amd64 [Pipeline] } 16:32:44 $ docker stop --time=1 0a7b18c596a8d7f5ddc9bf10acbeca74c684ea3231779c0633a87269616281f5 16:32:45 $ docker rm -f --volumes 0a7b18c596a8d7f5ddc9bf10acbeca74c684ea3231779c0633a87269616281f5 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:32:46 + docker inspect -f . ci-base-image-x86_64 16:32:46 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:32:46 prd-ubuntu20.04-docker-8c-8g-2227 does not seem to be running inside a container 16:32:46 $ 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-400 -v /w/workspace/xfoundry_device-modbus-go_PR-400:/w/workspace/xfoundry_device-modbus-go_PR-400:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-400@tmp:/w/workspace/xfoundry_device-modbus-go_PR-400@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 16:32:47 $ docker top 8c9b45af531d5c4350ae7f7aca34f09a33054f07bf93c60ee094be6c266610b5 -eo pid,comm [Pipeline] { [Pipeline] sh 16:32:47 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-400 [Pipeline] fileExists [Pipeline] sh 16:32:48 + make test 16:32:48 go test ./... -coverprofile=coverage.out 16:32:48 ? github.com/edgexfoundry/device-modbus-go [no test files] 16:32:58 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 16:32:58 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.015s coverage: 47.7% of statements 16:33:05 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." 16:33:05 go vet ./... 16:33:08 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 16:33:08 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 16:33:08 ./bin/test-attribution-txt.sh [Pipeline] echo 16:33:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 16:33:08 $ docker stop --time=1 8c9b45af531d5c4350ae7f7aca34f09a33054f07bf93c60ee094be6c266610b5 16:33:10 $ docker rm -f --volumes 8c9b45af531d5c4350ae7f7aca34f09a33054f07bf93c60ee094be6c266610b5 [Pipeline] // withDockerContainer [Pipeline] sh 16:33:11 + sudo chown -R jenkins:jenkins . [Pipeline] stash 16:33:11 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 16:33:11 + sudo chown -R jenkins:jenkins . [Pipeline] sh 16:33:11 + ls -al . 16:33:11 total 196 16:33:11 drwxrwxr-x 10 jenkins jenkins 4096 Jan 13 16:32 . 16:33:11 drwxrwxr-x 4 jenkins jenkins 4096 Jan 13 16:31 .. 16:33:11 -rw-rw-r-- 1 jenkins jenkins 140 Jan 13 16:31 .dockerignore 16:33:11 drwxrwxr-x 8 jenkins jenkins 4096 Jan 13 16:32 .git 16:33:11 drwxrwxr-x 3 jenkins jenkins 4096 Jan 13 16:31 .github 16:33:11 -rw-rw-r-- 1 jenkins jenkins 331 Jan 13 16:31 .gitignore 16:33:11 -rw-rw-r-- 1 jenkins jenkins 41 Jan 13 16:31 .golangci.yml 16:33:11 drwxr-xr-x 3 jenkins jenkins 4096 Jan 13 16:32 .semver 16:33:11 -rw-rw-r-- 1 jenkins jenkins 10017 Jan 13 16:31 Attribution.txt 16:33:11 -rw-rw-r-- 1 jenkins jenkins 11576 Jan 13 16:31 CHANGELOG.md 16:33:11 -rw-rw-r-- 1 jenkins jenkins 1365 Jan 13 16:31 Dockerfile 16:33:11 -rw-rw-r-- 1 jenkins jenkins 677 Jan 13 16:31 GOVERNANCE.md 16:33:11 -rw-rw-r-- 1 jenkins jenkins 680 Jan 13 16:31 Jenkinsfile 16:33:11 -rw-rw-r-- 1 jenkins jenkins 11340 Jan 13 16:31 LICENSE 16:33:11 -rw-rw-r-- 1 jenkins jenkins 1670 Jan 13 16:31 Makefile 16:33:11 -rw-rw-r-- 1 jenkins jenkins 622 Jan 13 16:31 OWNERS.md 16:33:11 -rw-rw-r-- 1 jenkins jenkins 4061 Jan 13 16:31 README.md 16:33:11 -rw-rw-r-- 1 jenkins jenkins 5 Jan 13 16:32 VERSION 16:33:11 drwxrwxr-x 2 jenkins jenkins 4096 Jan 13 16:31 bin 16:33:11 drwxrwxr-x 3 jenkins jenkins 4096 Jan 13 16:31 cmd 16:33:11 -rw-r--r-- 1 jenkins jenkins 23241 Jan 13 16:32 coverage.out 16:33:11 -rw-rw-r-- 1 jenkins jenkins 3584 Jan 13 16:31 go.mod 16:33:11 -rw-rw-r-- 1 jenkins jenkins 45355 Jan 13 16:31 go.sum 16:33:11 drwxrwxr-x 3 jenkins jenkins 4096 Jan 13 16:31 internal 16:33:11 drwxrwxr-x 2 jenkins jenkins 4096 Jan 13 16:31 simulator 16:33:11 drwxrwxr-x 4 jenkins jenkins 4096 Jan 13 16:31 snap 16:33:11 -rw-rw-r-- 1 jenkins jenkins 229 Jan 13 16:31 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:33:12 + 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=256f87db5fdfe07ed03426eac959ea24fa54efa6 --label arch=amd64 --label version=0.0.0 . 16:33:12 Sending build context to Docker daemon 6.38MB 16:33:12 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 16:33:12 Step 2/22 : FROM ${BASE} AS builder 16:33:12 ---> 956f0010f342 16:33:12 Step 3/22 : ARG ADD_BUILD_TAGS="" 16:33:12 ---> Running in f1fc28853c2b 16:33:12 Removing intermediate container f1fc28853c2b 16:33:12 ---> 5130c1dda36b 16:33:12 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 16:33:12 ---> Running in 35487b99cbb2 16:33:12 Removing intermediate container 35487b99cbb2 16:33:12 ---> a996a706dc6e 16:33:12 Step 5/22 : RUN apk add --update --no-cache make git openssh 16:33:12 ---> Running in 2002d8f5e75b 16:33:12 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 16:33:13 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 16:33:13 OK: 217 MiB in 59 packages 16:33:13 Removing intermediate container 2002d8f5e75b 16:33:13 ---> 29f56decd70f 16:33:13 Step 6/22 : WORKDIR /device-modbus-go 16:33:13 ---> Running in 4aa802c93f3d 16:33:13 Removing intermediate container 4aa802c93f3d 16:33:13 ---> bd7626814c81 16:33:13 Step 7/22 : COPY go.mod vendor* ./ 16:33:13 ---> 81bf1f4f376c 16:33:13 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 16:33:13 ---> Running in 3b188c2bdae5 16:33:14 Removing intermediate container 3b188c2bdae5 16:33:14 ---> 52c7126c79e6 16:33:14 Step 9/22 : COPY . . 16:33:15 ---> 1c6afb523636 16:33:15 Step 10/22 : RUN ${MAKE} 16:33:15 ---> Running in 860c8751e85c 16:33:15 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 16:33:33 Removing intermediate container 860c8751e85c 16:33:33 ---> 50e74a3d0468 16:33:33 Step 11/22 : FROM alpine:3.14 16:33:33 3.14: Pulling from library/alpine 16:33:33 c7ed990a2339: Pulling fs layer 16:33:33 c7ed990a2339: Verifying Checksum 16:33:33 c7ed990a2339: Download complete 16:33:33 c7ed990a2339: Pull complete 16:33:33 Digest: sha256:4c869a63e1b7c0722fed1e402a6466610327c3b83bdddb94bd94fb71da7f638a 16:33:33 Status: Downloaded newer image for alpine:3.14 16:33:33 ---> dd53f409bf0b 16:33:33 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 16:33:33 ---> Running in 3ed7e483a10d 16:33:33 Removing intermediate container 3ed7e483a10d 16:33:33 ---> 2cda943f11bd 16:33:33 Step 13/22 : RUN apk add --update --no-cache dumb-init 16:33:33 ---> Running in 86eefcbac4e4 16:33:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 16:33:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 16:33:35 (1/1) Installing dumb-init (1.2.5-r1) 16:33:35 Executing busybox-1.33.1-r8.trigger 16:33:35 OK: 6 MiB in 15 packages 16:33:35 Removing intermediate container 86eefcbac4e4 16:33:35 ---> 8701592e19fb 16:33:35 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 16:33:35 ---> 20284e2d0306 16:33:35 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 16:33:36 ---> 7e174bb314ee 16:33:36 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 16:33:36 ---> dcdc96231d2c 16:33:36 Step 17/22 : EXPOSE 59901 16:33:36 ---> Running in 3b8333b14920 16:33:36 Removing intermediate container 3b8333b14920 16:33:36 ---> da5081f19fc2 16:33:36 Step 18/22 : ENTRYPOINT ["/device-modbus"] 16:33:36 ---> Running in de37aee27f72 16:33:36 Removing intermediate container de37aee27f72 16:33:36 ---> 7c8d36a84038 16:33:36 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 16:33:36 ---> Running in 00e01a7b20b4 16:33:36 Removing intermediate container 00e01a7b20b4 16:33:36 ---> 39be5562c40b 16:33:36 Step 20/22 : LABEL arch=amd64 16:33:36 ---> Running in 87f2bd4b45c7 16:33:36 Removing intermediate container 87f2bd4b45c7 16:33:36 ---> 4ce5e42718e5 16:33:36 Step 21/22 : LABEL git_sha=256f87db5fdfe07ed03426eac959ea24fa54efa6 16:33:36 ---> Running in 4724b486d050 16:33:36 Removing intermediate container 4724b486d050 16:33:36 ---> 2417bf930346 16:33:36 Step 22/22 : LABEL version=0.0.0 16:33:36 ---> Running in 55050456ccea 16:33:37 Removing intermediate container 55050456ccea 16:33:37 ---> f2edbd7649b4 16:33:37 [Warning] One or more build-args [ARCH] were not consumed 16:33:37 Successfully built f2edbd7649b4 16:33:37 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 16:33:37 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 16:33:37 16:33:37 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:33:37 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 16:33:37 latest: Pulling from edgex-lftools-log-publisher 16:33:37 5eb5b503b376: Pulling fs layer 16:33:37 5c69ac0246d0: Pulling fs layer 16:33:37 ec43610c2a17: Pulling fs layer 16:33:37 3a2ae6a8a46f: Pulling fs layer 16:33:37 33b1e0a273af: Pulling fs layer 16:33:37 5d3b04190fa2: Pulling fs layer 16:33:37 2f39f015ded8: Pulling fs layer 16:33:37 33b1e0a273af: Waiting 16:33:37 5d3b04190fa2: Waiting 16:33:37 2f39f015ded8: Waiting 16:33:37 3a2ae6a8a46f: Waiting 16:33:37 5c69ac0246d0: Download complete 16:33:37 3a2ae6a8a46f: Verifying Checksum 16:33:37 3a2ae6a8a46f: Download complete 16:33:38 33b1e0a273af: Verifying Checksum 16:33:38 33b1e0a273af: Download complete 16:33:38 5d3b04190fa2: Download complete 16:33:38 ec43610c2a17: Verifying Checksum 16:33:38 ec43610c2a17: Download complete 16:33:38 5eb5b503b376: Verifying Checksum 16:33:38 5eb5b503b376: Download complete 16:33:38 2f39f015ded8: Download complete 16:33:39 5eb5b503b376: Pull complete 16:33:39 5c69ac0246d0: Pull complete 16:33:39 ec43610c2a17: Pull complete 16:33:39 3a2ae6a8a46f: Pull complete 16:33:40 33b1e0a273af: Pull complete 16:33:40 5d3b04190fa2: Pull complete 16:33:44 2f39f015ded8: Pull complete 16:33:44 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 16:33:44 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 16:33:44 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:33:44 prd-ubuntu20.04-docker-8c-8g-2227 does not seem to be running inside a container 16:33:44 $ 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-400 -v /w/workspace/xfoundry_device-modbus-go_PR-400:/w/workspace/xfoundry_device-modbus-go_PR-400:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-400@tmp:/w/workspace/xfoundry_device-modbus-go_PR-400@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 16:33:46 $ docker top 12975f2150dc404ff905a824468f9fcdd8365f9997db013457412cd399f760a9 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 16:33:47 ---> job-cost.sh 16:33:47 lf-activate-venv: SKIPPING 16:33:47 INFO: No Stack... 16:33:47 INFO: Retrieving Pricing Info for: v3-standard-8 16:33:47 INFO: Archiving Costs [Pipeline] sh 16:33:48 + cat /w/workspace/xfoundry_device-modbus-go_PR-400/archives/cost.csv 16:33:48 + cut -d, -f6 [Pipeline] lock 16:33:48 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-400-2-stack-cost] 16:33:48 Resource [jenkins-edgexfoundry-device-modbus-go-PR-400-2-stack-cost] did not exist. Created. 16:33:48 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-400-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 16:33:48 + echo total: 0.2199999988079071 [Pipeline] stash 16:33:48 Stashed 1 file(s) [Pipeline] } 16:33:48 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-400-2-stack-cost] [Pipeline] // lock [Pipeline] } 16:33:48 $ docker stop --time=1 12975f2150dc404ff905a824468f9fcdd8365f9997db013457412cd399f760a9 16:33:49 $ docker rm -f --volumes 12975f2150dc404ff905a824468f9fcdd8365f9997db013457412cd399f760a9 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 16:35:47 Running on prd-ubuntu20.04-docker-arm64-4c-16g-2228 in /w/workspace/xfoundry_device-modbus-go_PR-400 [Pipeline] { [Pipeline] ws 16:35:47 Running in /w/workspace/device-modbus-go/2 [Pipeline] { [Pipeline] checkout 16:35:47 Selected Git installation does not exist. Using Default 16:35:47 The recommended git tool is: NONE 16:35:53 using credential edgex-jenkins-ssh 16:35:53 Cloning the remote Git repository 16:35:53 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 16:35:53 > git init /w/workspace/device-modbus-go/2 # timeout=10 16:35:53 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 16:35:53 > git --version # timeout=10 16:35:53 > git --version # 'git version 2.25.1' 16:35:53 using GIT_SSH to set credentials SSH Credentials for GitHub 16:35:53 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 16:35:54 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 16:35:54 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 16:35:56 Merging remotes/origin/main commit 8c18bb98ae9dac01b00ec9cd5d6b8c37f768cff1 into PR head commit 256f87db5fdfe07ed03426eac959ea24fa54efa6 16:35:56 Merge succeeded, producing 256f87db5fdfe07ed03426eac959ea24fa54efa6 16:35:56 Checking out Revision 256f87db5fdfe07ed03426eac959ea24fa54efa6 (PR-400) 16:35:55 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 16:35:55 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 16:35:55 using GIT_SSH to set credentials SSH Credentials for GitHub 16:35:55 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/400/head:refs/remotes/origin/PR-400 +refs/heads/main:refs/remotes/origin/main # timeout=10 16:35:56 > git config core.sparsecheckout # timeout=10 16:35:56 > git checkout -f 256f87db5fdfe07ed03426eac959ea24fa54efa6 # timeout=10 16:35:56 > git remote # timeout=10 16:35:56 > git config --get remote.origin.url # timeout=10 16:35:56 using GIT_SSH to set credentials SSH Credentials for GitHub 16:35:56 > git merge 8c18bb98ae9dac01b00ec9cd5d6b8c37f768cff1 # timeout=10 16:35:56 > git rev-parse HEAD^{commit} # timeout=10 16:35:56 > git config core.sparsecheckout # timeout=10 16:35:56 > git checkout -f 256f87db5fdfe07ed03426eac959ea24fa54efa6 # timeout=10 16:35:59 Commit message: "fix: Remove unused imported module" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 16:36:00 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 16:36:00 % Total % Received % Xferd Average Speed Time Time Time Current 16:36:00 Dload Upload Total Spent Left Speed 16:36:00 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 75005 0 --:--:-- --:--:-- --:--:-- 75449 [Pipeline] sh 16:36:01 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 16:36:02 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 16:36:02 + sudo tee /etc/docker/daemon.new 16:36:02 { 16:36:02 "registry-mirrors": [ 16:36:02 "https://nexus3.edgexfoundry.org:10001" 16:36:02 ], 16:36:02 "bip": "10.250.0.254/24", 16:36:02 "hosts": [ 16:36:02 "tcp://0.0.0.0:5555", 16:36:02 "unix:///var/run/docker.sock" 16:36:02 ], 16:36:02 "mtu": 1458, 16:36:02 "selinux-enabled": true, 16:36:02 "seccomp-profile": "/etc/docker/seccomp.json" 16:36:02 } [Pipeline] sh 16:36:02 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 16:36:02 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 16:36:21 provisioning config files... 16:36:21 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/2@tmp/config13304349911696356219tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 16:36:21 ---> docker-login.sh 16:36:21 nexus3.edgexfoundry.org:10001 16:36:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:36:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:36:21 Configure a credential helper to remove this warning. See 16:36:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:36:21 16:36:21 Login Succeeded 16:36:21 nexus3.edgexfoundry.org:10002 16:36:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:36:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:36:22 Configure a credential helper to remove this warning. See 16:36:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:36:22 16:36:22 Login Succeeded 16:36:22 nexus3.edgexfoundry.org:10003 16:36:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:36:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:36:22 Configure a credential helper to remove this warning. See 16:36:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:36:22 16:36:22 Login Succeeded 16:36:22 nexus3.edgexfoundry.org:10004 16:36:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:36:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:36:23 Configure a credential helper to remove this warning. See 16:36:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:36:23 16:36:23 Login Succeeded 16:36:23 docker.io 16:36:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:36:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:36:23 Configure a credential helper to remove this warning. See 16:36:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:36:23 16:36:23 Login Succeeded 16:36:23 ---> docker-login.sh ends [Pipeline] } 16:36:23 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 16:36:23 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 16:36:23 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 16:36:23 ========================================================= 16:36:23 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine] 16:36:23 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:36:24 + 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 . 16:36:24 Sending build context to Docker daemon 3.327MB 16:36:24 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 16:36:24 Step 2/10 : FROM ${BASE} AS builder 16:36:25 1.18-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 16:36:25 9b18e9b68314: Pulling fs layer 16:36:25 35d82f9e3411: Pulling fs layer 16:36:25 e16973657156: Pulling fs layer 16:36:25 fc693d55d65f: Pulling fs layer 16:36:25 7e9fc2657dce: Pulling fs layer 16:36:25 dda99020689f: Pulling fs layer 16:36:25 db1c61fa0a46: Pulling fs layer 16:36:25 891c053d2c06: Pulling fs layer 16:36:25 fc693d55d65f: Waiting 16:36:25 7e9fc2657dce: Waiting 16:36:25 db1c61fa0a46: Waiting 16:36:25 dda99020689f: Waiting 16:36:25 e16973657156: Verifying Checksum 16:36:25 e16973657156: Download complete 16:36:25 35d82f9e3411: Verifying Checksum 16:36:25 35d82f9e3411: Download complete 16:36:26 7e9fc2657dce: Verifying Checksum 16:36:26 7e9fc2657dce: Download complete 16:36:26 9b18e9b68314: Verifying Checksum 16:36:26 dda99020689f: Verifying Checksum 16:36:26 dda99020689f: Download complete 16:36:26 9b18e9b68314: Download complete 16:36:27 9b18e9b68314: Pull complete 16:36:27 891c053d2c06: Verifying Checksum 16:36:27 891c053d2c06: Download complete 16:36:27 35d82f9e3411: Pull complete 16:36:28 e16973657156: Pull complete 16:36:28 db1c61fa0a46: Download complete 16:36:29 fc693d55d65f: Verifying Checksum 16:36:29 fc693d55d65f: Download complete 16:36:41 fc693d55d65f: Pull complete 16:36:41 7e9fc2657dce: Pull complete 16:36:41 dda99020689f: Pull complete 16:36:46 db1c61fa0a46: Pull complete 16:36:48 891c053d2c06: Pull complete 16:36:48 Digest: sha256:2cacf8bfc28650abd52610e42dcfc04852e818eb73900ea96edaef96a54d0b45 16:36:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine 16:36:48 ---> f96f9c87975a 16:36:48 Step 3/10 : ARG ADD_BUILD_TAGS="" 16:36:50 ---> Running in 951d00606c65 16:36:50 Removing intermediate container 951d00606c65 16:36:50 ---> dff59d5dcda1 16:36:50 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 16:36:50 ---> Running in 32a5574cc1a5 16:36:50 Removing intermediate container 32a5574cc1a5 16:36:50 ---> 2549fc591848 16:36:50 Step 5/10 : RUN apk add --update --no-cache make git openssh 16:36:50 ---> Running in 8b9a96835717 16:36:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 16:36:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 16:36:53 (1/8) Installing openssh-keygen (9.0_p1-r2) 16:36:53 (2/8) Installing libedit (20210910.3.1-r0) 16:36:53 (3/8) Installing openssh-client-common (9.0_p1-r2) 16:36:53 (4/8) Installing openssh-client-default (9.0_p1-r2) 16:36:53 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 16:36:53 (6/8) Installing openssh-server-common (9.0_p1-r2) 16:36:53 (7/8) Installing openssh-server (9.0_p1-r2) 16:36:53 (8/8) Installing openssh (9.0_p1-r2) 16:36:53 Executing busybox-1.35.0-r17.trigger 16:36:53 OK: 228 MiB in 59 packages 16:36:54 Removing intermediate container 8b9a96835717 16:36:54 ---> d8316ee4a549 16:36:54 Step 6/10 : WORKDIR /device-modbus-go 16:36:54 ---> Running in a2e118591dba 16:36:54 Removing intermediate container a2e118591dba 16:36:54 ---> 7801e4a91353 16:36:54 Step 7/10 : COPY go.mod vendor* ./ 16:36:55 ---> 68e34764fc04 16:36:55 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 16:36:55 ---> Running in 344d8aca4b87 16:37:51 Removing intermediate container 344d8aca4b87 16:37:51 ---> 15d71ca7e2fd 16:37:51 Step 9/10 : COPY . . 16:37:51 ---> c21f833a6483 16:37:51 Step 10/10 : RUN ${MAKE} 16:37:51 ---> Running in 88f0d075ced5 16:37:52 noop 16:37:53 Removing intermediate container 88f0d075ced5 16:37:53 ---> 3ca42c83a383 16:37:53 Successfully built 3ca42c83a383 16:37:53 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:37:53 + docker inspect -f . ci-base-image-arm64 16:37:53 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:37:53 prd-ubuntu20.04-docker-arm64-4c-16g-2228 does not seem to be running inside a container 16:37:53 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 16:37:56 $ docker top e16854d6c5d0ae4e36b776fd139a720b66c8e52f7ece01a1368929ae08f710d7 -eo pid,comm [Pipeline] { [Pipeline] sh 16:37:57 + go version 16:37:57 go version go1.18.7 linux/arm64 [Pipeline] } 16:37:57 $ docker stop --time=1 e16854d6c5d0ae4e36b776fd139a720b66c8e52f7ece01a1368929ae08f710d7 16:37:59 $ docker rm -f --volumes e16854d6c5d0ae4e36b776fd139a720b66c8e52f7ece01a1368929ae08f710d7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:37:59 + docker inspect -f . ci-base-image-arm64 16:37:59 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:38:00 prd-ubuntu20.04-docker-arm64-4c-16g-2228 does not seem to be running inside a container 16:38:00 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-modbus-go/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 16:38:01 $ docker top 4d61677690137c22d0d38d7445178ef08e36375b74701b89cf5a7d26dd62df7f -eo pid,comm [Pipeline] { [Pipeline] sh 16:38:02 + git config --global --add safe.directory /w/workspace/device-modbus-go/2 [Pipeline] fileExists [Pipeline] sh 16:38:02 + make test 16:38:02 go test ./... -coverprofile=coverage.out 16:38:04 ? github.com/edgexfoundry/device-modbus-go [no test files] 16:39:26 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 16:39:26 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.062s coverage: 47.7% of statements 16:39:26 WARNING: Linting skipped (not on x86_64 or linter not installed) 16:39:26 go vet ./... 16:39:48 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 16:39:48 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 16:39:48 ./bin/test-attribution-txt.sh [Pipeline] echo 16:39:48 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 16:39:48 $ docker stop --time=1 4d61677690137c22d0d38d7445178ef08e36375b74701b89cf5a7d26dd62df7f 16:39:50 $ docker rm -f --volumes 4d61677690137c22d0d38d7445178ef08e36375b74701b89cf5a7d26dd62df7f [Pipeline] // withDockerContainer [Pipeline] sh 16:39:51 + sudo chown -R jenkins:jenkins . [Pipeline] stash 16:39:51 Warning: overwriting stash ‘coverage-report’ 16:39:51 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 16:39:51 + sudo chown -R jenkins:jenkins . [Pipeline] sh 16:39:52 + ls -al . 16:39:52 total 192 16:39:52 drwxrwxr-x 9 jenkins jenkins 4096 Jan 13 16:38 . 16:39:52 drwxrwxr-x 4 jenkins jenkins 4096 Jan 13 16:35 .. 16:39:52 -rw-rw-r-- 1 jenkins jenkins 140 Jan 13 16:35 .dockerignore 16:39:52 drwxrwxr-x 8 jenkins jenkins 4096 Jan 13 16:35 .git 16:39:52 drwxrwxr-x 3 jenkins jenkins 4096 Jan 13 16:35 .github 16:39:52 -rw-rw-r-- 1 jenkins jenkins 331 Jan 13 16:35 .gitignore 16:39:52 -rw-rw-r-- 1 jenkins jenkins 41 Jan 13 16:35 .golangci.yml 16:39:52 -rw-rw-r-- 1 jenkins jenkins 10017 Jan 13 16:35 Attribution.txt 16:39:52 -rw-rw-r-- 1 jenkins jenkins 11576 Jan 13 16:35 CHANGELOG.md 16:39:52 -rw-rw-r-- 1 jenkins jenkins 1365 Jan 13 16:35 Dockerfile 16:39:52 -rw-rw-r-- 1 jenkins jenkins 677 Jan 13 16:35 GOVERNANCE.md 16:39:52 -rw-rw-r-- 1 jenkins jenkins 680 Jan 13 16:35 Jenkinsfile 16:39:52 -rw-rw-r-- 1 jenkins jenkins 11340 Jan 13 16:35 LICENSE 16:39:52 -rw-rw-r-- 1 jenkins jenkins 1670 Jan 13 16:35 Makefile 16:39:52 -rw-rw-r-- 1 jenkins jenkins 622 Jan 13 16:35 OWNERS.md 16:39:52 -rw-rw-r-- 1 jenkins jenkins 4061 Jan 13 16:35 README.md 16:39:52 -rw-rw-r-- 1 jenkins jenkins 5 Jan 13 16:32 VERSION 16:39:52 drwxrwxr-x 2 jenkins jenkins 4096 Jan 13 16:35 bin 16:39:52 drwxrwxr-x 3 jenkins jenkins 4096 Jan 13 16:35 cmd 16:39:52 -rw-r--r-- 1 jenkins jenkins 23241 Jan 13 16:39 coverage.out 16:39:52 -rw-rw-r-- 1 jenkins jenkins 3584 Jan 13 16:35 go.mod 16:39:52 -rw-rw-r-- 1 jenkins jenkins 45355 Jan 13 16:35 go.sum 16:39:52 drwxrwxr-x 3 jenkins jenkins 4096 Jan 13 16:35 internal 16:39:52 drwxrwxr-x 2 jenkins jenkins 4096 Jan 13 16:35 simulator 16:39:52 drwxrwxr-x 4 jenkins jenkins 4096 Jan 13 16:35 snap 16:39:52 -rw-rw-r-- 1 jenkins jenkins 229 Jan 13 16:35 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:39:52 + 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=256f87db5fdfe07ed03426eac959ea24fa54efa6 --label arch=arm64 --label version=0.0.0 . 16:39:52 Sending build context to Docker daemon 3.351MB 16:39:52 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 16:39:52 Step 2/22 : FROM ${BASE} AS builder 16:39:52 ---> 3ca42c83a383 16:39:52 Step 3/22 : ARG ADD_BUILD_TAGS="" 16:39:53 ---> Running in 744d8cf5950c 16:39:53 Removing intermediate container 744d8cf5950c 16:39:53 ---> f354739397e8 16:39:53 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 16:39:53 ---> Running in 47e8b68d8f2e 16:39:53 Removing intermediate container 47e8b68d8f2e 16:39:53 ---> 95e8c2b62fc1 16:39:53 Step 5/22 : RUN apk add --update --no-cache make git openssh 16:39:53 ---> Running in 2cac8ed206db 16:39:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 16:39:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 16:39:55 OK: 228 MiB in 59 packages 16:39:56 Removing intermediate container 2cac8ed206db 16:39:56 ---> 0ad7750e5af1 16:39:56 Step 6/22 : WORKDIR /device-modbus-go 16:39:56 ---> Running in 0be30ed06a2c 16:39:57 Removing intermediate container 0be30ed06a2c 16:39:57 ---> 8cb1ee25e252 16:39:57 Step 7/22 : COPY go.mod vendor* ./ 16:39:57 ---> 0910268e2679 16:39:57 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 16:39:57 ---> Running in 59b181832a29 16:39:59 Removing intermediate container 59b181832a29 16:39:59 ---> 11c40c59be44 16:39:59 Step 9/22 : COPY . . 16:40:02 ---> 6cc4af7fda1f 16:40:02 Step 10/22 : RUN ${MAKE} 16:40:02 ---> Running in 624caa5e3c5b 16:40:03 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 16:42:25 Removing intermediate container 624caa5e3c5b 16:42:25 ---> 4641c8fafd91 16:42:25 Step 11/22 : FROM alpine:3.14 16:42:25 3.14: Pulling from library/alpine 16:42:25 90cda3b7c325: Pulling fs layer 16:42:25 90cda3b7c325: Verifying Checksum 16:42:25 90cda3b7c325: Download complete 16:42:25 90cda3b7c325: Pull complete 16:42:25 Digest: sha256:4c869a63e1b7c0722fed1e402a6466610327c3b83bdddb94bd94fb71da7f638a 16:42:25 Status: Downloaded newer image for alpine:3.14 16:42:25 ---> 275902a1839d 16:42:25 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 16:42:25 ---> Running in 5ba131bfb30e 16:42:25 Removing intermediate container 5ba131bfb30e 16:42:25 ---> 675cc5536f41 16:42:25 Step 13/22 : RUN apk add --update --no-cache dumb-init 16:42:25 ---> Running in 643199b3ede2 16:42:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 16:42:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 16:42:25 (1/1) Installing dumb-init (1.2.5-r1) 16:42:25 Executing busybox-1.33.1-r8.trigger 16:42:25 OK: 6 MiB in 15 packages 16:42:25 Removing intermediate container 643199b3ede2 16:42:25 ---> fd82e6b5d390 16:42:25 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 16:42:26 ---> e766efcc326b 16:42:26 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 16:42:26 ---> 8ee353855c5e 16:42:26 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 16:42:26 ---> 6ec67cb06252 16:42:26 Step 17/22 : EXPOSE 59901 16:42:26 ---> Running in cee0a5911eee 16:42:27 Removing intermediate container cee0a5911eee 16:42:27 ---> 1126c269a0ff 16:42:27 Step 18/22 : ENTRYPOINT ["/device-modbus"] 16:42:27 ---> Running in 9ff55505b954 16:42:27 Removing intermediate container 9ff55505b954 16:42:27 ---> 3f6d8011c983 16:42:27 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 16:42:27 ---> Running in bf48d87a7d80 16:42:27 Removing intermediate container bf48d87a7d80 16:42:27 ---> d56cf3f6c780 16:42:27 Step 20/22 : LABEL arch=arm64 16:42:27 ---> Running in 7c424d8832af 16:42:28 Removing intermediate container 7c424d8832af 16:42:28 ---> df13d66d22d1 16:42:28 Step 21/22 : LABEL git_sha=256f87db5fdfe07ed03426eac959ea24fa54efa6 16:42:28 ---> Running in d5341af22491 16:42:28 Removing intermediate container d5341af22491 16:42:28 ---> a7afa4edb311 16:42:28 Step 22/22 : LABEL version=0.0.0 16:42:28 ---> Running in 24ef63756676 16:42:29 Removing intermediate container 24ef63756676 16:42:29 ---> 65699144c555 16:42:29 [Warning] One or more build-args [ARCH] were not consumed 16:42:29 Successfully built 65699144c555 16:42:29 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 16:42:29 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 16:42:29 16:42:29 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:42:29 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 16:42:29 arm64: Pulling from edgex-lftools-log-publisher 16:42:29 8998bd30e6a1: Pulling fs layer 16:42:29 04944245beec: Pulling fs layer 16:42:29 699f458cf7ca: Pulling fs layer 16:42:29 765212b225bb: Pulling fs layer 16:42:29 f23df028b6ca: Pulling fs layer 16:42:29 d65c8cfc05b1: Pulling fs layer 16:42:29 2437ff75d9bd: Pulling fs layer 16:42:29 d65c8cfc05b1: Waiting 16:42:29 f23df028b6ca: Waiting 16:42:29 2437ff75d9bd: Waiting 16:42:29 765212b225bb: Waiting 16:42:30 04944245beec: Verifying Checksum 16:42:30 04944245beec: Download complete 16:42:30 765212b225bb: Verifying Checksum 16:42:30 765212b225bb: Download complete 16:42:30 f23df028b6ca: Verifying Checksum 16:42:30 f23df028b6ca: Download complete 16:42:30 d65c8cfc05b1: Verifying Checksum 16:42:30 d65c8cfc05b1: Download complete 16:42:30 699f458cf7ca: Verifying Checksum 16:42:30 699f458cf7ca: Download complete 16:42:30 8998bd30e6a1: Verifying Checksum 16:42:30 8998bd30e6a1: Download complete 16:42:33 2437ff75d9bd: Verifying Checksum 16:42:33 2437ff75d9bd: Download complete 16:42:34 8998bd30e6a1: Pull complete 16:42:34 04944245beec: Pull complete 16:42:36 699f458cf7ca: Pull complete 16:42:36 765212b225bb: Pull complete 16:42:37 f23df028b6ca: Pull complete 16:42:37 d65c8cfc05b1: Pull complete 16:42:52 2437ff75d9bd: Pull complete 16:42:52 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 16:42:52 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 16:42:52 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:42:52 prd-ubuntu20.04-docker-arm64-4c-16g-2228 does not seem to be running inside a container 16:42:52 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 16:42:55 $ docker top 1480ae728f76978a6e2fd047da114a8c8688843aaad826013130531b302e5fae -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 16:42:56 ---> job-cost.sh 16:42:56 lf-activate-venv: SKIPPING 16:42:56 INFO: No Stack... 16:42:56 INFO: Retrieving Pricing Info for: v3-standard-4 16:42:57 INFO: Archiving Costs [Pipeline] sh 16:42:57 + + cut -d, -f6 16:42:57 cat /w/workspace/device-modbus-go/2/archives/cost.csv [Pipeline] lock 16:42:58 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-400-2-stack-cost] 16:42:58 Resource [jenkins-edgexfoundry-device-modbus-go-PR-400-2-stack-cost] did not exist. Created. 16:42:58 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-400-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 16:42:58 /w/workspace/device-modbus-go/2@tmp/durable-de173165/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 16:42:59 + echo total: 0.10999999940395355 [Pipeline] stash 16:42:59 Warning: overwriting stash ‘stack-cost’ 16:42:59 Stashed 1 file(s) [Pipeline] } 16:42:59 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-400-2-stack-cost] [Pipeline] // lock [Pipeline] } 16:42:59 $ docker stop --time=1 1480ae728f76978a6e2fd047da114a8c8688843aaad826013130531b302e5fae 16:43:00 $ docker rm -f --volumes 1480ae728f76978a6e2fd047da114a8c8688843aaad826013130531b302e5fae [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 16:43:01 provisioning config files... 16:43:01 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-400@tmp/config17998034928864724129tmp [Pipeline] { [Pipeline] sh 16:43:01 + set +x 16:43:01 + bash -s -- 16:43:01 + curl -s https://codecov.io/bash 16:43:01 16:43:01 _____ _ 16:43:01 / ____| | | 16:43:01 | | ___ __| | ___ ___ _____ __ 16:43:01 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 16:43:01 | |___| (_) | (_| | __/ (_| (_) \ V / 16:43:01 \_____\___/ \__,_|\___|\___\___/ \_/ 16:43:01 Bash-1.0.6 16:43:01 16:43:01 16:43:01 ==> git version 2.25.1 found 16:43:01 ==> 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 16:43:01 Release-Date: 2020-01-08 16:43:01 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 16:43:01 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 16:43:01 ==> Jenkins CI detected. 16:43:01 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-400 16:43:01 project root: . 16:43:01 --> token set from env 16:43:01 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 16:43:01 ==> Running gcov in . (disable via -X gcov) 16:43:01 ==> Python coveragepy not found 16:43:01 ==> Searching for coverage reports in: 16:43:01 + . 16:43:01 -> Found 1 reports 16:43:01 ==> Detecting git/mercurial file structure 16:43:01 ==> Reading reports 16:43:01 + ./coverage.out bytes=23241 16:43:01 ==> Appending adjustments 16:43:01 https://docs.codecov.io/docs/fixing-reports 16:43:01 + Found adjustments 16:43:01 ==> Gzipping contents 16:43:01 4.0K /tmp/codecov.qA1fH1.gz 16:43:01 ==> Uploading reports 16:43:01 url: https://codecov.io 16:43:01 query: branch=PR-400&commit=256f87db5fdfe07ed03426eac959ea24fa54efa6&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-400%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=400&job=&cmd_args= 16:43:01 -> Pinging Codecov 16:43:01 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-400&commit=256f87db5fdfe07ed03426eac959ea24fa54efa6&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-400%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=400&job=&cmd_args= 16:43:01 -> Uploading to 16:43:01 https://storage.googleapis.com/codecov/v4/raw/2023-01-13/55DBCA73C666E3227836607328DD7E49/256f87db5fdfe07ed03426eac959ea24fa54efa6/c0da079d-e62a-4b54-922c-2b8cdcb33dc2.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230113%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230113T164301Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=5b27e64df5aec15281492b23234e77674e3d1d8577e5fb8af532ec46841ea1fe 16:43:01 % Total % Received % Xferd Average Speed Time Time Time Current 16:43:01 Dload Upload Total Spent Left Speed 16:43:02 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3883 0 0 100 3883 0 44125 --:--:-- --:--:-- --:--:-- 43629 100 3883 0 0 100 3883 0 13917 --:--:-- --:--:-- --:--:-- 13867 16:43:02 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/256f87db5fdfe07ed03426eac959ea24fa54efa6 [Pipeline] } 16:43:02 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 16:43:02 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-400/archives ] 16:43:02 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-400/archives 16:43:02 total 16 16:43:02 drwxr-xr-x 3 root root 4096 Jan 13 16:33 . 16:43:02 drwxrwxr-x 11 jenkins jenkins 4096 Jan 13 16:33 .. 16:43:02 drwxr-xr-x 2 root root 4096 Jan 13 16:33 cost 16:43:02 -rw-r--r-- 1 root root 88 Jan 13 16:33 cost.csv 16:43:02 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-400/archives 16:43:02 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-400/archives 16:43:02 total 16 16:43:02 drwxr-xr-x 3 jenkins jenkins 4096 Jan 13 16:33 . 16:43:02 drwxrwxr-x 11 jenkins jenkins 4096 Jan 13 16:33 .. 16:43:02 drwxr-xr-x 2 jenkins jenkins 4096 Jan 13 16:33 cost 16:43:02 -rw-r--r-- 1 jenkins jenkins 88 Jan 13 16:33 cost.csv [Pipeline] libraryResource [Pipeline] sh 16:43:03 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 16:43:03 ---> package-listing.sh 16:43:03 ++ facter osfamily 16:43:03 ++ tr '[:upper:]' '[:lower:]' 16:43:04 + OS_FAMILY=debian 16:43:04 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-400 16:43:04 + START_PACKAGES=/tmp/packages_start.txt 16:43:04 + END_PACKAGES=/tmp/packages_end.txt 16:43:04 + DIFF_PACKAGES=/tmp/packages_diff.txt 16:43:04 + PACKAGES=/tmp/packages_start.txt 16:43:04 + '[' /w/workspace/xfoundry_device-modbus-go_PR-400 ']' 16:43:04 + PACKAGES=/tmp/packages_end.txt 16:43:04 + case "${OS_FAMILY}" in 16:43:04 + dpkg -l 16:43:04 + grep '^ii' 16:43:04 + '[' -f /tmp/packages_start.txt ']' 16:43:04 + '[' -f /tmp/packages_end.txt ']' 16:43:04 + diff /tmp/packages_start.txt /tmp/packages_end.txt 16:43:04 + '[' /w/workspace/xfoundry_device-modbus-go_PR-400 ']' 16:43:04 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-400/archives/ 16:43:04 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-400/archives/ [Pipeline] echo 16:43:04 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-400/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 16:43:04 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:43:04 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 16:43:04 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:43:04 prd-ubuntu20.04-docker-8c-8g-2227 does not seem to be running inside a container 16:43:04 $ 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-400/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-400 -v /w/workspace/xfoundry_device-modbus-go_PR-400:/w/workspace/xfoundry_device-modbus-go_PR-400:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-400@tmp:/w/workspace/xfoundry_device-modbus-go_PR-400@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 16:43:05 $ docker top 0ef03745b078e0954f03c53b3cfdbd5d04eda1ee09be7039e7880639a64e50b1 -eo pid,comm [Pipeline] { [Pipeline] sh 16:43:05 + touch /tmp/pre-build-complete [Pipeline] sh 16:43:05 + mkdir -p /var/log/sysstat [Pipeline] sh 16:43:06 + ls /var/log/sa-host 16:43:06 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 16:43:06 provisioning config files... 16:43:06 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-400@tmp/config8671072954913318648tmp [Pipeline] { [Pipeline] echo 16:43:06 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 16:43:06 ---> create-netrc.sh [Pipeline] } 16:43:06 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 16:43:06 ---> python-tools-install.sh [Pipeline] echo 16:43:06 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 16:43:07 ---> sudo-logs.sh 16:43:07 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 16:43:07 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 16:43:07 ---> job-cost.sh 16:43:07 lf-activate-venv: SKIPPING 16:43:07 DEBUG: total: 0.2199999988079071 16:43:07 INFO: Retrieving Stack Cost... 16:43:07 INFO: Retrieving Pricing Info for: v3-standard-8 16:43:08 INFO: Archiving Costs [Pipeline] echo 16:43:08 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 16:43:08 ---> logs-deploy.sh 16:43:08 lf-activate-venv: SKIPPING 16:43:08 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-400/2 16:43:08 INFO: archiving workspace using pattern(s): 16:43:09 Archives upload complete. 16:43:09 INFO: archiving logs to Nexus