Pull request #480 event Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc+60f68763f8e382a62519363eb4c00d8ae3469bcd (cd733c9d1879e082a167b4d06d849e5bfa22c5bf) 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-ssh3897521590609001696.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision d4291cbe28daa2a40ca94d44cc831565108a4ea5 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-ssh5025116844845258892.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 d4291cbe28daa2a40ca94d44cc831565108a4ea5 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-480/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-480/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh2586742120146810059.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision d4291cbe28daa2a40ca94d44cc831565108a4ea5 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f d4291cbe28daa2a40ca94d44cc831565108a4ea5 # timeout=10 Commit message: "Merge pull request #431 from ernestojeda/update-compose" > 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-ssh2064491121584896233.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-480/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-480/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh18113044373476157937.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.20 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 ‘prd-centos7-blackbox-4c-2g-18336’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-centos7-blackbox-4c-2g-18337’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-8c-8g-18459’ is offline ‘prd-ubuntu20.04-docker-8c-8g-18469’ is offline ‘prd-ubuntu20.04-docker-arm64-4c-16g-18460’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-18470 in /w/workspace/xfoundry_device-modbus-go_PR-480 [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-480 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 60f68763f8e382a62519363eb4c00d8ae3469bcd into PR head commit fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc > 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/480/head:refs/remotes/origin/PR-480 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc # timeout=10 Merge succeeded, producing fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc Checking out Revision fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc (PR-480) Commit message: "build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 17:54:11 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 17:54:12 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 17:54:12 ========================================================= 17:54:12 EdgeX Global Pipelines Version Info 17:54:12 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 60f68763f8e382a62519363eb4c00d8ae3469bcd # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc # timeout=10 > git rev-list --no-walk 84d5ec98441b0535d60753163d8b56c531163cfc # timeout=10 17:54:12 ------------------- 17:54:12 stable info: 17:54:12 ------------------- 17:54:12 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 17:54:12 Commit SHA: d4291cbe28daa2a40ca94d44cc831565108a4ea5 17:54:12 Message: update stable to v1.0.250 17:54:13 ------------------- 17:54:13 experimental info: 17:54:13 ------------------- 17:54:13 Commited By: **** collab-it+edgex@linuxfoundation.org 17:54:13 Commit SHA: d4291cbe28daa2a40ca94d44cc831565108a4ea5 17:54:13 Message: update experimental to v1.0.250 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-480 [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-480 [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-480 [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = fcc5acb [Pipeline] echo 17:54:13 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 17:54:13 provisioning config files... 17:54:13 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/config17875107899092964436tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:54:14 ---> docker-login.sh 17:54:14 nexus3.edgexfoundry.org:10001 17:54:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:54:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:54:14 Configure a credential helper to remove this warning. See 17:54:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:54:14 17:54:14 Login Succeeded 17:54:14 nexus3.edgexfoundry.org:10002 17:54:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:54:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:54:14 Configure a credential helper to remove this warning. See 17:54:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:54:14 17:54:14 Login Succeeded 17:54:14 nexus3.edgexfoundry.org:10003 17:54:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:54:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:54:14 Configure a credential helper to remove this warning. See 17:54:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:54:14 17:54:14 Login Succeeded 17:54:14 nexus3.edgexfoundry.org:10004 17:54:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:54:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:54:14 Configure a credential helper to remove this warning. See 17:54:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:54:14 17:54:14 Login Succeeded 17:54:14 docker.io 17:54:15 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:54:15 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:54:15 Configure a credential helper to remove this warning. See 17:54:15 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:54:15 17:54:15 Login Succeeded 17:54:15 ---> docker-login.sh ends [Pipeline] } 17:54:15 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 17:54:15 + git rev-list -1 --merges fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc~1..fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc [Pipeline] echo 17:54:15 -----------> git rev-list -1 --merges fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc~1..fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc [false] [Pipeline] sh 17:54:15 + git log --format=format:%s -1 fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc [Pipeline] echo 17:54:15 ========================================================= 17:54:15 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 17:54:15 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 17:54:16 + git log --format=format:%s -1 fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc [Pipeline] echo 17:54:16 [semverPrep] GIT_COMMIT: fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc, Commit Message: build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1 [Pipeline] echo 17:54:16 [semverPrep] This is not a build commit. [Pipeline] sh 17:54:16 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 17:54:16 + grep -v github /etc/ssh/ssh_known_hosts 17:54:16 + [ -e /tmp/ssh_known_hosts ] 17:54:16 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 17:54:16 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 17:54:16 + sudo tee -a /etc/ssh/ssh_known_hosts 17:54:16 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:54:16 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 17:54:16 17:54:16 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:54:17 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 17:54:17 0.1.4: Pulling from edgex-devops/py-git-semver 17:54:17 b85a868b505f: Pulling fs layer 17:54:17 e2be974225ed: Pulling fs layer 17:54:17 339a4e72a1f5: Pulling fs layer 17:54:17 988bab9f4d93: Pulling fs layer 17:54:17 1469e6f7b9e6: Pulling fs layer 17:54:17 eaf3925da568: Pulling fs layer 17:54:17 bab4dde63d76: Pulling fs layer 17:54:17 bde34c3a00c8: Pulling fs layer 17:54:17 b352a97aabf1: Pulling fs layer 17:54:17 4872d77fe225: Pulling fs layer 17:54:17 5851b861e8e6: Pulling fs layer 17:54:17 bde34c3a00c8: Waiting 17:54:17 988bab9f4d93: Waiting 17:54:17 b352a97aabf1: Waiting 17:54:17 1469e6f7b9e6: Waiting 17:54:17 eaf3925da568: Waiting 17:54:17 bab4dde63d76: Waiting 17:54:17 4872d77fe225: Waiting 17:54:17 5851b861e8e6: Waiting 17:54:17 e2be974225ed: Download complete 17:54:17 988bab9f4d93: Verifying Checksum 17:54:17 988bab9f4d93: Download complete 17:54:17 1469e6f7b9e6: Verifying Checksum 17:54:17 1469e6f7b9e6: Download complete 17:54:17 eaf3925da568: Verifying Checksum 17:54:17 eaf3925da568: Download complete 17:54:17 339a4e72a1f5: Verifying Checksum 17:54:17 339a4e72a1f5: Download complete 17:54:17 bde34c3a00c8: Download complete 17:54:17 b352a97aabf1: Download complete 17:54:17 4872d77fe225: Verifying Checksum 17:54:17 4872d77fe225: Download complete 17:54:17 5851b861e8e6: Verifying Checksum 17:54:17 5851b861e8e6: Download complete 17:54:17 b85a868b505f: Download complete 17:54:17 bab4dde63d76: Verifying Checksum 17:54:17 bab4dde63d76: Download complete 17:54:18 b85a868b505f: Pull complete 17:54:18 e2be974225ed: Pull complete 17:54:19 339a4e72a1f5: Pull complete 17:54:19 988bab9f4d93: Pull complete 17:54:19 1469e6f7b9e6: Pull complete 17:54:19 eaf3925da568: Pull complete 17:54:21 bab4dde63d76: Pull complete 17:54:21 bde34c3a00c8: Pull complete 17:54:21 b352a97aabf1: Pull complete 17:54:22 4872d77fe225: Pull complete 17:54:22 5851b861e8e6: Pull complete 17:54:22 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 17:54:22 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 17:54:22 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:54:22 prd-ubuntu20.04-docker-8c-8g-18470 does not seem to be running inside a container 17:54:22 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-480 -v /w/workspace/xfoundry_device-modbus-go_PR-480:/w/workspace/xfoundry_device-modbus-go_PR-480:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-480@tmp:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 17:54:23 $ docker top 3c06aec41a42311dd827c530c7d67458f647249814a24c893e9e44a590943f50 -eo pid,comm 17:54:23 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). 17:54:23 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 17:54:23 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 17:54:23 [ssh-agent] Looking for ssh-agent implementation... 17:54:23 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 17:54:23 $ docker exec 3c06aec41a42311dd827c530c7d67458f647249814a24c893e9e44a590943f50 ssh-agent 17:54:23 SSH_AUTH_SOCK=/tmp/ssh-EAujz82LpJ0s/agent.33 17:54:23 SSH_AGENT_PID=39 17:54:23 Running ssh-add (command line suppressed) 17:54:23 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-480@tmp/private_key_17798387008585069464.key (/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/private_key_17798387008585069464.key) 17:54:23 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 17:54:24 + git tag --points-at HEAD [Pipeline] } 17:54:24 $ docker exec --env ******** --env ******** 3c06aec41a42311dd827c530c7d67458f647249814a24c893e9e44a590943f50 ssh-agent -k 17:54:24 unset SSH_AUTH_SOCK; 17:54:24 unset SSH_AGENT_PID; 17:54:24 echo Agent pid 39 killed; 17:54:24 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 17:54:24 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 17:54:24 [ssh-agent] Looking for ssh-agent implementation... 17:54:24 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 17:54:24 $ docker exec 3c06aec41a42311dd827c530c7d67458f647249814a24c893e9e44a590943f50 ssh-agent 17:54:24 SSH_AUTH_SOCK=/tmp/ssh-5d0LxQJvl0w1/agent.71 17:54:24 SSH_AGENT_PID=77 17:54:24 Running ssh-add (command line suppressed) 17:54:24 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-480@tmp/private_key_3477154211874567726.key (/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/private_key_3477154211874567726.key) 17:54:24 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 17:54:24 + git semver init 17:54:25 2023-06-12 17:54:25,115 [run_init] DEBUG init version:0.0.0 force:False 17:54:25 2023-06-12 17:54:25,116 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-480/.semver 17:54:25 2023-06-12 17:54:25,116 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-480/.semver 17:54:25 2023-06-12 17:54:25,117 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-480/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-480, universal_newlines=False, shell=None, istream=None) 17:54:26 2023-06-12 17:54:25,868 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-480/.git/info/exclude 17:54:26 2023-06-12 17:54:25,869 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-480/.semver/PR-480 with force:False 17:54:26 2023-06-12 17:54:25,869 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-480/.semver/PR-480 17:54:26 2023-06-12 17:54:25,873 [execute] INFO git cat-file --batch-check 17:54:26 2023-06-12 17:54:25,874 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-480/.semver, universal_newlines=False, shell=None, istream=) 17:54:26 2023-06-12 17:54:25,879 [execute] INFO git cat-file --batch 17:54:26 2023-06-12 17:54:25,879 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-480/.semver, universal_newlines=False, shell=None, istream=) 17:54:26 2023-06-12 17:54:25,884 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-480/.semver/PR-480 17:54:26 0.0.0 [Pipeline] } 17:54:26 $ docker exec --env ******** --env ******** 3c06aec41a42311dd827c530c7d67458f647249814a24c893e9e44a590943f50 ssh-agent -k 17:54:26 unset SSH_AUTH_SOCK; 17:54:26 unset SSH_AGENT_PID; 17:54:26 echo Agent pid 77 killed; 17:54:26 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 17:54:26 + git semver [Pipeline] } 17:54:26 $ docker stop --time=1 3c06aec41a42311dd827c530c7d67458f647249814a24c893e9e44a590943f50 17:54:28 $ docker rm -f --volumes 3c06aec41a42311dd827c530c7d67458f647249814a24c893e9e44a590943f50 [Pipeline] // withDockerContainer [Pipeline] sh 17:54:28 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 17:54:28 Stashed 1 file(s) [Pipeline] echo 17:54:28 [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 17:54:28 provisioning config files... 17:54:28 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/config14189465778682913326tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:54:29 ---> docker-login.sh 17:54:29 nexus3.edgexfoundry.org:10001 17:54:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:54:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:54:29 Configure a credential helper to remove this warning. See 17:54:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:54:29 17:54:29 Login Succeeded 17:54:29 nexus3.edgexfoundry.org:10002 17:54:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:54:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:54:29 Configure a credential helper to remove this warning. See 17:54:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:54:29 17:54:29 Login Succeeded 17:54:29 nexus3.edgexfoundry.org:10003 17:54:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:54:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:54:29 Configure a credential helper to remove this warning. See 17:54:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:54:29 17:54:29 Login Succeeded 17:54:29 nexus3.edgexfoundry.org:10004 17:54:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:54:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:54:29 Configure a credential helper to remove this warning. See 17:54:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:54:29 17:54:29 Login Succeeded 17:54:29 docker.io 17:54:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:54:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:54:29 Configure a credential helper to remove this warning. See 17:54:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:54:29 17:54:29 Login Succeeded 17:54:29 ---> docker-login.sh ends [Pipeline] } 17:54:29 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 17:54:29 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:54:29 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:54:29 ========================================================= 17:54:29 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 17:54:29 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:54:30 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine --build-arg MAKE=echo noop --target=builder . 17:54:30 Sending build context to Docker daemon 6.403MB 17:54:30 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 17:54:30 Step 2/10 : FROM ${BASE} AS builder 17:54:30 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 17:54:30 f56be85fc22e: Pulling fs layer 17:54:30 85791d961cd3: Pulling fs layer 17:54:30 d694b5ae8c79: Pulling fs layer 17:54:30 9f32a84ed3da: Pulling fs layer 17:54:30 4d19c01a9841: Pulling fs layer 17:54:30 9325e15d5711: Pulling fs layer 17:54:30 556b6ee489ea: Pulling fs layer 17:54:30 c5a4b2cf53e6: Pulling fs layer 17:54:30 9f32a84ed3da: Waiting 17:54:30 4d19c01a9841: Waiting 17:54:30 9325e15d5711: Waiting 17:54:30 556b6ee489ea: Waiting 17:54:30 c5a4b2cf53e6: Waiting 17:54:30 85791d961cd3: Verifying Checksum 17:54:30 85791d961cd3: Download complete 17:54:30 9f32a84ed3da: Verifying Checksum 17:54:30 9f32a84ed3da: Download complete 17:54:30 4d19c01a9841: Verifying Checksum 17:54:30 4d19c01a9841: Download complete 17:54:30 f56be85fc22e: Verifying Checksum 17:54:30 f56be85fc22e: Download complete 17:54:30 9325e15d5711: Verifying Checksum 17:54:30 9325e15d5711: Download complete 17:54:30 f56be85fc22e: Pull complete 17:54:30 85791d961cd3: Pull complete 17:54:30 c5a4b2cf53e6: Verifying Checksum 17:54:30 c5a4b2cf53e6: Download complete 17:54:30 d694b5ae8c79: Download complete 17:54:31 556b6ee489ea: Verifying Checksum 17:54:31 556b6ee489ea: Download complete 17:54:33 d694b5ae8c79: Pull complete 17:54:33 9f32a84ed3da: Pull complete 17:54:33 4d19c01a9841: Pull complete 17:54:34 9325e15d5711: Pull complete 17:54:36 556b6ee489ea: Pull complete 17:54:37 c5a4b2cf53e6: Pull complete 17:54:37 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 17:54:37 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 17:54:37 ---> c4be618373d6 17:54:37 Step 3/10 : ARG ADD_BUILD_TAGS="" 17:54:39 ---> Running in 9566e8d764ac 17:54:39 Removing intermediate container 9566e8d764ac 17:54:39 ---> cf0efeb8f476 17:54:39 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 17:54:39 ---> Running in af29ae86e598 17:54:39 Removing intermediate container af29ae86e598 17:54:39 ---> 6eac5aba4f49 17:54:39 Step 5/10 : RUN apk add --update --no-cache make git openssh 17:54:39 ---> Running in 71b903ea89e7 17:54:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 17:54:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 17:54:39 (1/8) Installing openssh-keygen (9.1_p1-r3) 17:54:39 (2/8) Installing libedit (20221030.3.1-r0) 17:54:39 (3/8) Installing openssh-client-common (9.1_p1-r3) 17:54:39 (4/8) Installing openssh-client-default (9.1_p1-r3) 17:54:39 (5/8) Installing openssh-sftp-server (9.1_p1-r3) 17:54:39 (6/8) Installing openssh-server-common (9.1_p1-r3) 17:54:39 (7/8) Installing openssh-server (9.1_p1-r3) 17:54:39 (8/8) Installing openssh (9.1_p1-r3) 17:54:39 Executing busybox-1.35.0-r29.trigger 17:54:39 OK: 270 MiB in 61 packages 17:54:40 Removing intermediate container 71b903ea89e7 17:54:40 ---> dbdd53f9de77 17:54:40 Step 6/10 : WORKDIR /device-modbus-go 17:54:40 ---> Running in 62e884fa2e27 17:54:40 Removing intermediate container 62e884fa2e27 17:54:40 ---> da90b7ef6990 17:54:40 Step 7/10 : COPY go.mod vendor* ./ 17:54:40 ---> 219e9103dd82 17:54:40 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 17:54:40 ---> Running in 97c89710263a 17:54:43 Still waiting to schedule task 17:54:43 ‘prd-centos7-blackbox-4c-2g-18336’ doesn’t have label ‘ubuntu20.04-docker-arm64-4c-16g’ 17:54:43 ‘prd-centos7-blackbox-4c-2g-18337’ doesn’t have label ‘ubuntu20.04-docker-arm64-4c-16g’ 17:54:43 ‘prd-ubuntu20.04-docker-8c-8g-18459’ doesn’t have label ‘ubuntu20.04-docker-arm64-4c-16g’ 17:54:43 ‘prd-ubuntu20.04-docker-arm64-4c-16g-18460’ is offline 17:54:43 ‘prd-ubuntu20.04-docker-arm64-4c-16g-18471’ is offline 17:54:58 Removing intermediate container 97c89710263a 17:54:58 ---> ec3a76d7b009 17:54:58 Step 9/10 : COPY . . 17:54:58 ---> 1d8f61e8d736 17:54:58 Step 10/10 : RUN ${MAKE} 17:54:58 ---> Running in fb7d8820668f 17:54:59 noop 17:54:59 Removing intermediate container fb7d8820668f 17:54:59 ---> 4747ff87ec49 17:54:59 Successfully built 4747ff87ec49 17:54:59 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:54:59 + docker inspect -f . ci-base-image-x86_64 17:54:59 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:54:59 prd-ubuntu20.04-docker-8c-8g-18470 does not seem to be running inside a container 17:54:59 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-480 -v /w/workspace/xfoundry_device-modbus-go_PR-480:/w/workspace/xfoundry_device-modbus-go_PR-480:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-480@tmp:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 17:55:00 $ docker top 9311ad8cf7e298e8b085b7a020e7b04d6041b531e0203ebc47e4de9f09aeb3c7 -eo pid,comm [Pipeline] { [Pipeline] sh 17:55:00 + go version 17:55:00 go version go1.20.2 linux/amd64 [Pipeline] } 17:55:00 $ docker stop --time=1 9311ad8cf7e298e8b085b7a020e7b04d6041b531e0203ebc47e4de9f09aeb3c7 17:55:01 $ docker rm -f --volumes 9311ad8cf7e298e8b085b7a020e7b04d6041b531e0203ebc47e4de9f09aeb3c7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:55:02 + docker inspect -f . ci-base-image-x86_64 17:55:02 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:55:02 prd-ubuntu20.04-docker-8c-8g-18470 does not seem to be running inside a container 17:55:02 $ 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-480 -v /w/workspace/xfoundry_device-modbus-go_PR-480:/w/workspace/xfoundry_device-modbus-go_PR-480:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-480@tmp:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 17:55:02 $ docker top a130f5c788eb463c7f680712e113a8e012bc50a369d67261b55290f58def513b -eo pid,comm [Pipeline] { [Pipeline] sh 17:55:02 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-480 [Pipeline] fileExists [Pipeline] sh 17:55:03 + make test 17:55:03 go test ./... -coverprofile=coverage.out 17:55:08 ? github.com/edgexfoundry/device-modbus-go [no test files] 17:55:18 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 17:55:18 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.017s coverage: 47.4% of statements 17:55:24 go vet ./... 17:55:28 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 17:55:28 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 17:55:28 ./bin/test-attribution-txt.sh [Pipeline] echo 17:55:28 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 17:55:28 $ docker stop --time=1 a130f5c788eb463c7f680712e113a8e012bc50a369d67261b55290f58def513b 17:55:30 $ docker rm -f --volumes a130f5c788eb463c7f680712e113a8e012bc50a369d67261b55290f58def513b [Pipeline] // withDockerContainer [Pipeline] sh 17:55:31 + sudo chown -R jenkins:jenkins . [Pipeline] stash 17:55:31 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 17:55:31 + sudo chown -R jenkins:jenkins . [Pipeline] sh 17:55:32 + ls -al . 17:55:32 total 188 17:55:32 drwxrwxr-x 10 jenkins jenkins 4096 Jun 12 17:55 . 17:55:32 drwxrwxr-x 4 jenkins jenkins 4096 Jun 12 17:54 .. 17:55:32 -rw-rw-r-- 1 jenkins jenkins 140 Jun 12 17:54 .dockerignore 17:55:32 drwxrwxr-x 8 jenkins jenkins 4096 Jun 12 17:54 .git 17:55:32 drwxrwxr-x 3 jenkins jenkins 4096 Jun 12 17:54 .github 17:55:32 -rw-rw-r-- 1 jenkins jenkins 331 Jun 12 17:54 .gitignore 17:55:32 -rw-rw-r-- 1 jenkins jenkins 41 Jun 12 17:54 .golangci.yml 17:55:32 drwxr-xr-x 3 jenkins jenkins 4096 Jun 12 17:54 .semver 17:55:32 -rw-rw-r-- 1 jenkins jenkins 10132 Jun 12 17:54 Attribution.txt 17:55:32 -rw-rw-r-- 1 jenkins jenkins 14764 Jun 12 17:54 CHANGELOG.md 17:55:32 -rw-rw-r-- 1 jenkins jenkins 1365 Jun 12 17:54 Dockerfile 17:55:32 -rw-rw-r-- 1 jenkins jenkins 677 Jun 12 17:54 GOVERNANCE.md 17:55:32 -rw-rw-r-- 1 jenkins jenkins 680 Jun 12 17:54 Jenkinsfile 17:55:32 -rw-rw-r-- 1 jenkins jenkins 11340 Jun 12 17:54 LICENSE 17:55:32 -rw-rw-r-- 1 jenkins jenkins 1705 Jun 12 17:54 Makefile 17:55:32 -rw-rw-r-- 1 jenkins jenkins 622 Jun 12 17:54 OWNERS.md 17:55:32 -rw-rw-r-- 1 jenkins jenkins 4578 Jun 12 17:54 README.md 17:55:32 -rw-rw-r-- 1 jenkins jenkins 5 Jun 12 17:54 VERSION 17:55:32 drwxrwxr-x 2 jenkins jenkins 4096 Jun 12 17:54 bin 17:55:32 drwxrwxr-x 3 jenkins jenkins 4096 Jun 12 17:54 cmd 17:55:32 -rw-r--r-- 1 jenkins jenkins 24160 Jun 12 17:55 coverage.out 17:55:32 -rw-rw-r-- 1 jenkins jenkins 3405 Jun 12 17:54 go.mod 17:55:32 -rw-rw-r-- 1 jenkins jenkins 31664 Jun 12 17:54 go.sum 17:55:32 drwxrwxr-x 3 jenkins jenkins 4096 Jun 12 17:54 internal 17:55:32 drwxrwxr-x 2 jenkins jenkins 4096 Jun 12 17:54 simulator 17:55:32 drwxrwxr-x 4 jenkins jenkins 4096 Jun 12 17:54 snap 17:55:32 -rw-rw-r-- 1 jenkins jenkins 229 Jun 12 17:54 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:55:32 + 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=fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc --label arch=amd64 --label version=0.0.0 . 17:55:32 Sending build context to Docker daemon 6.428MB 17:55:32 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 17:55:32 Step 2/22 : FROM ${BASE} AS builder 17:55:32 ---> 4747ff87ec49 17:55:32 Step 3/22 : ARG ADD_BUILD_TAGS="" 17:55:32 ---> Running in c40c25a2809a 17:55:32 Removing intermediate container c40c25a2809a 17:55:32 ---> 7f092651107c 17:55:32 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 17:55:32 ---> Running in a08f315d9bbd 17:55:32 Removing intermediate container a08f315d9bbd 17:55:32 ---> 7bb20f3d1b5b 17:55:32 Step 5/22 : RUN apk add --update --no-cache make git openssh 17:55:32 ---> Running in 229f4f9759ec 17:55:33 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 17:55:33 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 17:55:33 OK: 270 MiB in 61 packages 17:55:33 Removing intermediate container 229f4f9759ec 17:55:33 ---> a3d62a1b55d8 17:55:33 Step 6/22 : WORKDIR /device-modbus-go 17:55:33 ---> Running in 87737ba38fcb 17:55:33 Removing intermediate container 87737ba38fcb 17:55:33 ---> db1399242ecb 17:55:33 Step 7/22 : COPY go.mod vendor* ./ 17:55:33 ---> 4e44d6efdc09 17:55:33 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 17:55:34 ---> Running in 5997df6e7f62 17:55:34 Removing intermediate container 5997df6e7f62 17:55:34 ---> d311eda2fc18 17:55:34 Step 9/22 : COPY . . 17:55:34 ---> 9fea35869376 17:55:34 Step 10/22 : RUN ${MAKE} 17:55:34 ---> Running in 937704cf71a1 17:55:35 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 17:55:53 Removing intermediate container 937704cf71a1 17:55:53 ---> 5f68ed451d92 17:55:53 Step 11/22 : FROM alpine:3.17 17:55:53 3.17: Pulling from library/alpine 17:55:53 f56be85fc22e: Already exists 17:55:53 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 17:55:53 Status: Downloaded newer image for alpine:3.17 17:55:53 ---> 9ed4aefc74f6 17:55:53 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 17:55:53 ---> Running in c175a506ccf0 17:55:53 Removing intermediate container c175a506ccf0 17:55:53 ---> f4a370de00c1 17:55:53 Step 13/22 : RUN apk add --update --no-cache dumb-init 17:55:53 ---> Running in 4246f7b1235d 17:55:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 17:55:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 17:55:54 (1/1) Installing dumb-init (1.2.5-r2) 17:55:54 Executing busybox-1.35.0-r29.trigger 17:55:54 OK: 7 MiB in 16 packages 17:55:54 Removing intermediate container 4246f7b1235d 17:55:54 ---> e8950e266a90 17:55:54 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 17:55:55 ---> 463ed791e02e 17:55:55 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 17:55:55 ---> 9156589c108d 17:55:55 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 17:55:55 ---> 331656cb00c5 17:55:55 Step 17/22 : EXPOSE 59901 17:55:55 ---> Running in 2677e11a5070 17:55:55 Removing intermediate container 2677e11a5070 17:55:55 ---> 9cc30125ccca 17:55:55 Step 18/22 : ENTRYPOINT ["/device-modbus"] 17:55:55 ---> Running in f1510ad4c9af 17:55:55 Removing intermediate container f1510ad4c9af 17:55:55 ---> eb19717b863c 17:55:55 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 17:55:55 ---> Running in 8c7c5103460c 17:55:55 Removing intermediate container 8c7c5103460c 17:55:55 ---> c5ea02aedbb0 17:55:55 Step 20/22 : LABEL arch=amd64 17:55:55 ---> Running in d97f13bdcf49 17:55:55 Removing intermediate container d97f13bdcf49 17:55:55 ---> 903b2f52b149 17:55:55 Step 21/22 : LABEL git_sha=fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc 17:55:55 ---> Running in c42ba341fb6f 17:55:55 Removing intermediate container c42ba341fb6f 17:55:55 ---> 46097c113578 17:55:55 Step 22/22 : LABEL version=0.0.0 17:55:55 ---> Running in a2e0437a1e82 17:55:56 Removing intermediate container a2e0437a1e82 17:55:56 ---> 856801901490 17:55:56 [Warning] One or more build-args [ARCH] were not consumed 17:55:56 Successfully built 856801901490 17:55:56 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 17:55:56 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 17:55:56 17:55:56 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:55:56 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 17:55:56 latest: Pulling from edgex-lftools-log-publisher 17:55:56 5eb5b503b376: Pulling fs layer 17:55:56 5c69ac0246d0: Pulling fs layer 17:55:56 ec43610c2a17: Pulling fs layer 17:55:56 3a2ae6a8a46f: Pulling fs layer 17:55:56 33b1e0a273af: Pulling fs layer 17:55:56 5d3b04190fa2: Pulling fs layer 17:55:56 2f39f015ded8: Pulling fs layer 17:55:56 3a2ae6a8a46f: Waiting 17:55:56 33b1e0a273af: Waiting 17:55:56 2f39f015ded8: Waiting 17:55:56 5d3b04190fa2: Waiting 17:55:56 5c69ac0246d0: Verifying Checksum 17:55:56 5c69ac0246d0: Download complete 17:55:56 3a2ae6a8a46f: Download complete 17:55:56 33b1e0a273af: Verifying Checksum 17:55:56 33b1e0a273af: Download complete 17:55:56 5d3b04190fa2: Download complete 17:55:56 ec43610c2a17: Verifying Checksum 17:55:56 ec43610c2a17: Download complete 17:55:57 5eb5b503b376: Verifying Checksum 17:55:57 5eb5b503b376: Download complete 17:55:58 5eb5b503b376: Pull complete 17:55:58 5c69ac0246d0: Pull complete 17:55:58 ec43610c2a17: Pull complete 17:55:58 3a2ae6a8a46f: Pull complete 17:55:58 33b1e0a273af: Pull complete 17:55:59 5d3b04190fa2: Pull complete 17:56:03 2f39f015ded8: Pull complete 17:56:03 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 17:56:03 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 17:56:03 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:56:03 prd-ubuntu20.04-docker-8c-8g-18470 does not seem to be running inside a container 17:56:03 $ 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-480 -v /w/workspace/xfoundry_device-modbus-go_PR-480:/w/workspace/xfoundry_device-modbus-go_PR-480:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-480@tmp:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 17:56:05 $ docker top 00c99429417b8f14ec92960b3e37d6024022d619c4f28cfd6f705085c6a87776 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:56:06 ---> job-cost.sh 17:56:06 lf-activate-venv: SKIPPING 17:56:06 INFO: No Stack... 17:56:06 INFO: Retrieving Pricing Info for: v3-standard-8 17:56:06 INFO: Archiving Costs [Pipeline] sh 17:56:06 + cat /w/workspace/xfoundry_device-modbus-go_PR-480/archives/cost.csv 17:56:06 + cut -d, -f6 [Pipeline] lock 17:56:06 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-480-12-stack-cost] 17:56:06 Resource [jenkins-edgexfoundry-device-modbus-go-PR-480-12-stack-cost] did not exist. Created. 17:56:06 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-480-12-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 17:56:07 + echo total: 0.2199999988079071 [Pipeline] stash 17:56:07 Stashed 1 file(s) [Pipeline] } 17:56:07 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-480-12-stack-cost] [Pipeline] // lock [Pipeline] } 17:56:07 $ docker stop --time=1 00c99429417b8f14ec92960b3e37d6024022d619c4f28cfd6f705085c6a87776 17:56:08 $ docker rm -f --volumes 00c99429417b8f14ec92960b3e37d6024022d619c4f28cfd6f705085c6a87776 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 17:57:18 Running on prd-ubuntu20.04-docker-arm64-4c-16g-18475 in /w/workspace/xfoundry_device-modbus-go_PR-480 [Pipeline] { [Pipeline] ws 17:57:18 Running in /w/workspace/device-modbus-go/12 [Pipeline] { [Pipeline] checkout 17:57:18 Selected Git installation does not exist. Using Default 17:57:18 The recommended git tool is: NONE 17:57:25 using credential edgex-jenkins-ssh 17:57:25 Cloning the remote Git repository 17:57:25 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 17:57:25 > git init /w/workspace/device-modbus-go/12 # timeout=10 17:57:26 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 17:57:26 > git --version # timeout=10 17:57:26 > git --version # 'git version 2.25.1' 17:57:26 using GIT_SSH to set credentials SSH Credentials for GitHub 17:57:26 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 17:57:27 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 17:57:27 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 17:57:29 Merging remotes/origin/main commit 60f68763f8e382a62519363eb4c00d8ae3469bcd into PR head commit fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc 17:57:28 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 17:57:28 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 17:57:28 using GIT_SSH to set credentials SSH Credentials for GitHub 17:57:28 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/480/head:refs/remotes/origin/PR-480 +refs/heads/main:refs/remotes/origin/main # timeout=10 17:57:29 > git config core.sparsecheckout # timeout=10 17:57:29 > git checkout -f fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc # timeout=10 17:57:29 > git remote # timeout=10 17:57:29 > git config --get remote.origin.url # timeout=10 17:57:29 using GIT_SSH to set credentials SSH Credentials for GitHub 17:57:32 Merge succeeded, producing fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc 17:57:32 Checking out Revision fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc (PR-480) 17:57:32 Commit message: "build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 17:57:31 > git merge 60f68763f8e382a62519363eb4c00d8ae3469bcd # timeout=10 17:57:31 > git rev-parse HEAD^{commit} # timeout=10 17:57:32 > git config core.sparsecheckout # timeout=10 17:57:32 > git checkout -f fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc # timeout=10 17:57:33 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 17:57:33 % Total % Received % Xferd Average Speed Time Time Time Current 17:57:33 Dload Upload Total Spent Left Speed 17:57:33 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 175k 0 --:--:-- --:--:-- --:--:-- 175k [Pipeline] sh 17:57:34 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 17:57:34 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 17:57:34 + sudo tee /etc/docker/daemon.new 17:57:34 { 17:57:34 "registry-mirrors": [ 17:57:34 "https://nexus3.edgexfoundry.org:10001" 17:57:34 ], 17:57:34 "bip": "10.250.0.254/24", 17:57:34 "hosts": [ 17:57:34 "tcp://0.0.0.0:5555", 17:57:34 "unix:///var/run/docker.sock" 17:57:34 ], 17:57:34 "mtu": 1458, 17:57:34 "selinux-enabled": true, 17:57:34 "seccomp-profile": "/etc/docker/seccomp.json" 17:57:34 } [Pipeline] sh 17:57:34 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 17:57:35 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 17:57:53 provisioning config files... 17:57:53 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/12@tmp/config10544299215581105898tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:57:53 ---> docker-login.sh 17:57:53 nexus3.edgexfoundry.org:10001 17:57:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:57:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:57:54 Configure a credential helper to remove this warning. See 17:57:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:57:54 17:57:54 Login Succeeded 17:57:54 nexus3.edgexfoundry.org:10002 17:57:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:57:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:57:55 Configure a credential helper to remove this warning. See 17:57:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:57:55 17:57:55 Login Succeeded 17:57:55 nexus3.edgexfoundry.org:10003 17:57:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:57:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:57:55 Configure a credential helper to remove this warning. See 17:57:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:57:55 17:57:55 Login Succeeded 17:57:55 nexus3.edgexfoundry.org:10004 17:57:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:57:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:57:55 Configure a credential helper to remove this warning. See 17:57:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:57:55 17:57:55 Login Succeeded 17:57:55 docker.io 17:57:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:57:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:57:56 Configure a credential helper to remove this warning. See 17:57:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:57:56 17:57:56 Login Succeeded 17:57:56 ---> docker-login.sh ends [Pipeline] } 17:57:56 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 17:57:56 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:57:56 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:57:56 ========================================================= 17:57:56 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 17:57:56 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:57:57 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine --build-arg MAKE=echo noop --target=builder . 17:57:59 Sending build context to Docker daemon 3.316MB 17:58:00 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 17:58:00 Step 2/10 : FROM ${BASE} AS builder 17:58:00 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 17:58:00 c41833b44d91: Pulling fs layer 17:58:00 ed15518f5707: Pulling fs layer 17:58:00 feae8fd75edb: Pulling fs layer 17:58:00 242c74f7c9fa: Pulling fs layer 17:58:00 3cdef696dda3: Pulling fs layer 17:58:00 2ced38df9373: Pulling fs layer 17:58:00 58f1dce35555: Pulling fs layer 17:58:00 3cdef696dda3: Waiting 17:58:00 242c74f7c9fa: Waiting 17:58:00 2ced38df9373: Waiting 17:58:00 58f1dce35555: Waiting 17:58:00 ed15518f5707: Verifying Checksum 17:58:00 ed15518f5707: Download complete 17:58:00 242c74f7c9fa: Verifying Checksum 17:58:00 242c74f7c9fa: Download complete 17:58:00 3cdef696dda3: Verifying Checksum 17:58:00 3cdef696dda3: Download complete 17:58:00 c41833b44d91: Verifying Checksum 17:58:00 c41833b44d91: Download complete 17:58:01 c41833b44d91: Pull complete 17:58:02 58f1dce35555: Verifying Checksum 17:58:02 58f1dce35555: Download complete 17:58:02 ed15518f5707: Pull complete 17:58:02 feae8fd75edb: Verifying Checksum 17:58:02 feae8fd75edb: Download complete 17:58:02 2ced38df9373: Verifying Checksum 17:58:02 2ced38df9373: Download complete 17:58:15 feae8fd75edb: Pull complete 17:58:15 242c74f7c9fa: Pull complete 17:58:15 3cdef696dda3: Pull complete 17:58:22 2ced38df9373: Pull complete 17:58:24 58f1dce35555: Pull complete 17:58:24 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 17:58:24 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 17:58:24 ---> fadd8f120f05 17:58:24 Step 3/10 : ARG ADD_BUILD_TAGS="" 17:58:26 ---> Running in ab8e6bd4d800 17:58:26 Removing intermediate container ab8e6bd4d800 17:58:26 ---> c732b63cdc19 17:58:26 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 17:58:26 ---> Running in a747aae70c1f 17:58:26 Removing intermediate container a747aae70c1f 17:58:26 ---> 80d84fa390d7 17:58:26 Step 5/10 : RUN apk add --update --no-cache make git openssh 17:58:26 ---> Running in 13f62024348a 17:58:28 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 17:58:28 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 17:58:29 (1/8) Installing openssh-keygen (9.1_p1-r3) 17:58:29 (2/8) Installing libedit (20221030.3.1-r0) 17:58:29 (3/8) Installing openssh-client-common (9.1_p1-r3) 17:58:29 (4/8) Installing openssh-client-default (9.1_p1-r3) 17:58:29 (5/8) Installing openssh-sftp-server (9.1_p1-r3) 17:58:29 (6/8) Installing openssh-server-common (9.1_p1-r3) 17:58:29 (7/8) Installing openssh-server (9.1_p1-r3) 17:58:29 (8/8) Installing openssh (9.1_p1-r3) 17:58:29 Executing busybox-1.35.0-r29.trigger 17:58:29 OK: 270 MiB in 61 packages 17:58:30 Removing intermediate container 13f62024348a 17:58:30 ---> 5bd05b6e0dbf 17:58:30 Step 6/10 : WORKDIR /device-modbus-go 17:58:31 ---> Running in 6367d8d3b88d 17:58:31 Removing intermediate container 6367d8d3b88d 17:58:31 ---> e479475f0787 17:58:31 Step 7/10 : COPY go.mod vendor* ./ 17:58:31 ---> 5a16d53f87f3 17:58:31 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 17:58:31 ---> Running in 6fd2de552d1f 17:59:40 Removing intermediate container 6fd2de552d1f 17:59:40 ---> fd56769feb4d 17:59:40 Step 9/10 : COPY . . 17:59:40 ---> e8ad0206e778 17:59:40 Step 10/10 : RUN ${MAKE} 17:59:40 ---> Running in 118849562dea 17:59:40 noop 17:59:40 Removing intermediate container 118849562dea 17:59:40 ---> 6ccf055a04f6 17:59:40 Successfully built 6ccf055a04f6 17:59:40 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:59:40 + docker inspect -f . ci-base-image-arm64 17:59:40 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:59:40 prd-ubuntu20.04-docker-arm64-4c-16g-18475 does not seem to be running inside a container 17:59:40 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/12 -v /w/workspace/device-modbus-go/12:/w/workspace/device-modbus-go/12:rw,z -v /w/workspace/device-modbus-go/12@tmp:/w/workspace/device-modbus-go/12@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 17:59:42 $ docker top d609b4899eef2c2d184e4e08c526befdebca921f981f4a9b3c3a530b4e96aa33 -eo pid,comm [Pipeline] { [Pipeline] sh 17:59:43 + go version 17:59:43 go version go1.20.2 linux/arm64 [Pipeline] } 17:59:43 $ docker stop --time=1 d609b4899eef2c2d184e4e08c526befdebca921f981f4a9b3c3a530b4e96aa33 17:59:44 $ docker rm -f --volumes d609b4899eef2c2d184e4e08c526befdebca921f981f4a9b3c3a530b4e96aa33 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:59:45 + docker inspect -f . ci-base-image-arm64 17:59:45 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:59:45 prd-ubuntu20.04-docker-arm64-4c-16g-18475 does not seem to be running inside a container 17:59:45 $ 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/12 -v /w/workspace/device-modbus-go/12:/w/workspace/device-modbus-go/12:rw,z -v /w/workspace/device-modbus-go/12@tmp:/w/workspace/device-modbus-go/12@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 17:59:47 $ docker top 495d5bb4a3f2d2d2366cc4afd09482d85ded69ca2a62ea806b2d2d0e26506d7b -eo pid,comm [Pipeline] { [Pipeline] sh 17:59:47 + git config --global --add safe.directory /w/workspace/device-modbus-go/12 [Pipeline] fileExists [Pipeline] sh 17:59:48 + make test 17:59:48 go test ./... -coverprofile=coverage.out 18:00:27 ? github.com/edgexfoundry/device-modbus-go [no test files] 18:02:49 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 18:02:49 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.087s coverage: 47.4% of statements 18:02:49 WARNING: Linting skipped (not on x86_64 or linter not installed) 18:02:49 go vet ./... 18:03:21 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 18:03:21 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 18:03:21 ./bin/test-attribution-txt.sh [Pipeline] echo 18:03:21 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 18:03:21 $ docker stop --time=1 495d5bb4a3f2d2d2366cc4afd09482d85ded69ca2a62ea806b2d2d0e26506d7b 18:03:23 $ docker rm -f --volumes 495d5bb4a3f2d2d2366cc4afd09482d85ded69ca2a62ea806b2d2d0e26506d7b [Pipeline] // withDockerContainer [Pipeline] sh 18:03:24 + sudo chown -R jenkins:jenkins . [Pipeline] stash 18:03:24 Warning: overwriting stash ‘coverage-report’ 18:03:25 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 18:03:25 + sudo chown -R jenkins:jenkins . [Pipeline] sh 18:03:26 + ls -al . 18:03:26 total 184 18:03:26 drwxrwxr-x 9 jenkins jenkins 4096 Jun 12 17:59 . 18:03:26 drwxrwxr-x 4 jenkins jenkins 4096 Jun 12 17:57 .. 18:03:26 -rw-rw-r-- 1 jenkins jenkins 140 Jun 12 17:57 .dockerignore 18:03:26 drwxrwxr-x 8 jenkins jenkins 4096 Jun 12 17:57 .git 18:03:26 drwxrwxr-x 3 jenkins jenkins 4096 Jun 12 17:57 .github 18:03:26 -rw-rw-r-- 1 jenkins jenkins 331 Jun 12 17:57 .gitignore 18:03:26 -rw-rw-r-- 1 jenkins jenkins 41 Jun 12 17:57 .golangci.yml 18:03:26 -rw-rw-r-- 1 jenkins jenkins 10132 Jun 12 17:57 Attribution.txt 18:03:26 -rw-rw-r-- 1 jenkins jenkins 14764 Jun 12 17:57 CHANGELOG.md 18:03:26 -rw-rw-r-- 1 jenkins jenkins 1365 Jun 12 17:57 Dockerfile 18:03:26 -rw-rw-r-- 1 jenkins jenkins 677 Jun 12 17:57 GOVERNANCE.md 18:03:26 -rw-rw-r-- 1 jenkins jenkins 680 Jun 12 17:57 Jenkinsfile 18:03:26 -rw-rw-r-- 1 jenkins jenkins 11340 Jun 12 17:57 LICENSE 18:03:26 -rw-rw-r-- 1 jenkins jenkins 1705 Jun 12 17:57 Makefile 18:03:26 -rw-rw-r-- 1 jenkins jenkins 622 Jun 12 17:57 OWNERS.md 18:03:26 -rw-rw-r-- 1 jenkins jenkins 4578 Jun 12 17:57 README.md 18:03:26 -rw-rw-r-- 1 jenkins jenkins 5 Jun 12 17:54 VERSION 18:03:26 drwxrwxr-x 2 jenkins jenkins 4096 Jun 12 17:57 bin 18:03:26 drwxrwxr-x 3 jenkins jenkins 4096 Jun 12 17:57 cmd 18:03:26 -rw-r--r-- 1 jenkins jenkins 24160 Jun 12 18:02 coverage.out 18:03:26 -rw-rw-r-- 1 jenkins jenkins 3405 Jun 12 17:57 go.mod 18:03:26 -rw-rw-r-- 1 jenkins jenkins 31664 Jun 12 17:57 go.sum 18:03:26 drwxrwxr-x 3 jenkins jenkins 4096 Jun 12 17:57 internal 18:03:26 drwxrwxr-x 2 jenkins jenkins 4096 Jun 12 17:57 simulator 18:03:26 drwxrwxr-x 4 jenkins jenkins 4096 Jun 12 17:57 snap 18:03:26 -rw-rw-r-- 1 jenkins jenkins 229 Jun 12 17:57 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:03:26 + 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=fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc --label arch=arm64 --label version=0.0.0 . 18:03:26 Sending build context to Docker daemon 3.341MB 18:03:26 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 18:03:26 Step 2/22 : FROM ${BASE} AS builder 18:03:26 ---> 6ccf055a04f6 18:03:26 Step 3/22 : ARG ADD_BUILD_TAGS="" 18:03:26 ---> Running in f0c27e26e5ea 18:03:27 Removing intermediate container f0c27e26e5ea 18:03:27 ---> aa7e9d69eb22 18:03:27 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 18:03:27 ---> Running in 20ebde362c19 18:03:27 Removing intermediate container 20ebde362c19 18:03:27 ---> ee88e59b6b09 18:03:27 Step 5/22 : RUN apk add --update --no-cache make git openssh 18:03:27 ---> Running in c5a1ff84028a 18:03:28 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 18:03:29 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 18:03:30 OK: 270 MiB in 61 packages 18:03:31 Removing intermediate container c5a1ff84028a 18:03:31 ---> 2d26f9b40a4a 18:03:31 Step 6/22 : WORKDIR /device-modbus-go 18:03:31 ---> Running in 5882fe4e3f13 18:03:31 Removing intermediate container 5882fe4e3f13 18:03:31 ---> 6ad8b0a6b427 18:03:31 Step 7/22 : COPY go.mod vendor* ./ 18:03:32 ---> 9560b7397c1e 18:03:32 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:03:32 ---> Running in e9e5d4ea6874 18:03:36 Removing intermediate container e9e5d4ea6874 18:03:36 ---> ea9d88754a89 18:03:36 Step 9/22 : COPY . . 18:03:37 ---> eaf39abd6d93 18:03:37 Step 10/22 : RUN ${MAKE} 18:03:37 ---> Running in 07b8047ae1da 18:03:38 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 18:06:16 Removing intermediate container 07b8047ae1da 18:06:16 ---> cc4a8b4ba1df 18:06:16 Step 11/22 : FROM alpine:3.17 18:06:16 3.17: Pulling from library/alpine 18:06:16 c41833b44d91: Already exists 18:06:16 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 18:06:16 Status: Downloaded newer image for alpine:3.17 18:06:16 ---> 51e60588ff2c 18:06:16 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 18:06:16 ---> Running in 24c4b830360f 18:06:16 Removing intermediate container 24c4b830360f 18:06:16 ---> ed166a24b7b3 18:06:16 Step 13/22 : RUN apk add --update --no-cache dumb-init 18:06:16 ---> Running in aaae0e4304ac 18:06:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 18:06:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 18:06:16 (1/1) Installing dumb-init (1.2.5-r2) 18:06:16 Executing busybox-1.35.0-r29.trigger 18:06:16 OK: 8 MiB in 16 packages 18:06:16 Removing intermediate container aaae0e4304ac 18:06:16 ---> 6e73f7957a5b 18:06:16 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 18:06:16 ---> 2e36d9e9ca67 18:06:16 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 18:06:16 ---> a970a41c9873 18:06:16 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 18:06:16 ---> 0e5f3b77f8aa 18:06:16 Step 17/22 : EXPOSE 59901 18:06:16 ---> Running in 4d761009631d 18:06:16 Removing intermediate container 4d761009631d 18:06:16 ---> 593ebeffab1c 18:06:16 Step 18/22 : ENTRYPOINT ["/device-modbus"] 18:06:16 ---> Running in 835be2802843 18:06:16 Removing intermediate container 835be2802843 18:06:16 ---> a3b7a90ad5de 18:06:16 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 18:06:16 ---> Running in 0df6b6168b76 18:06:17 Removing intermediate container 0df6b6168b76 18:06:17 ---> 5ddf69287d32 18:06:17 Step 20/22 : LABEL arch=arm64 18:06:17 ---> Running in 02362e1dec53 18:06:17 Removing intermediate container 02362e1dec53 18:06:17 ---> 855a291163c5 18:06:17 Step 21/22 : LABEL git_sha=fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc 18:06:17 ---> Running in 71486292506c 18:06:18 Removing intermediate container 71486292506c 18:06:18 ---> 626dc670d40c 18:06:18 Step 22/22 : LABEL version=0.0.0 18:06:18 ---> Running in ed4d90603fb9 18:06:18 Removing intermediate container ed4d90603fb9 18:06:18 ---> 8519e163e774 18:06:18 [Warning] One or more build-args [ARCH] were not consumed 18:06:18 Successfully built 8519e163e774 18:06:18 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 18:06:18 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:06:18 18:06:18 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:06:19 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:06:19 arm64: Pulling from edgex-lftools-log-publisher 18:06:19 8998bd30e6a1: Pulling fs layer 18:06:19 04944245beec: Pulling fs layer 18:06:19 699f458cf7ca: Pulling fs layer 18:06:19 765212b225bb: Pulling fs layer 18:06:19 f23df028b6ca: Pulling fs layer 18:06:19 d65c8cfc05b1: Pulling fs layer 18:06:19 2437ff75d9bd: Pulling fs layer 18:06:19 f23df028b6ca: Waiting 18:06:19 2437ff75d9bd: Waiting 18:06:19 d65c8cfc05b1: Waiting 18:06:19 765212b225bb: Waiting 18:06:19 04944245beec: Verifying Checksum 18:06:19 04944245beec: Download complete 18:06:19 765212b225bb: Verifying Checksum 18:06:19 765212b225bb: Download complete 18:06:19 f23df028b6ca: Verifying Checksum 18:06:19 f23df028b6ca: Download complete 18:06:19 d65c8cfc05b1: Verifying Checksum 18:06:19 d65c8cfc05b1: Download complete 18:06:19 699f458cf7ca: Verifying Checksum 18:06:19 699f458cf7ca: Download complete 18:06:19 8998bd30e6a1: Verifying Checksum 18:06:19 8998bd30e6a1: Download complete 18:06:22 2437ff75d9bd: Verifying Checksum 18:06:22 2437ff75d9bd: Download complete 18:06:24 8998bd30e6a1: Pull complete 18:06:24 04944245beec: Pull complete 18:06:26 699f458cf7ca: Pull complete 18:06:26 765212b225bb: Pull complete 18:06:26 f23df028b6ca: Pull complete 18:06:27 d65c8cfc05b1: Pull complete 18:06:42 2437ff75d9bd: Pull complete 18:06:42 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 18:06:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:06:42 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:06:42 prd-ubuntu20.04-docker-arm64-4c-16g-18475 does not seem to be running inside a container 18:06:42 $ 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/12 -v /w/workspace/device-modbus-go/12:/w/workspace/device-modbus-go/12:rw,z -v /w/workspace/device-modbus-go/12@tmp:/w/workspace/device-modbus-go/12@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 18:06:45 $ docker top 0309e572941dd774f20b97ee68da182c3f9a31ced5a40a6bc07794fd84082425 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:06:46 ---> job-cost.sh 18:06:46 lf-activate-venv: SKIPPING 18:06:46 INFO: No Stack... 18:06:46 INFO: Retrieving Pricing Info for: v3-standard-4 18:06:47 INFO: Archiving Costs [Pipeline] sh 18:06:47 + + cutcat -d, /w/workspace/device-modbus-go/12/archives/cost.csv -f6 18:06:47 [Pipeline] lock 18:06:47 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-480-12-stack-cost] 18:06:47 Resource [jenkins-edgexfoundry-device-modbus-go-PR-480-12-stack-cost] did not exist. Created. 18:06:47 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-480-12-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 18:06:48 /w/workspace/device-modbus-go/12@tmp/durable-0d5551c7/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 18:06:49 + echo total: 0.10999999940395355 [Pipeline] stash 18:06:49 Warning: overwriting stash ‘stack-cost’ 18:06:49 Stashed 1 file(s) [Pipeline] } 18:06:49 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-480-12-stack-cost] [Pipeline] // lock [Pipeline] } 18:06:49 $ docker stop --time=1 0309e572941dd774f20b97ee68da182c3f9a31ced5a40a6bc07794fd84082425 18:06:50 $ docker rm -f --volumes 0309e572941dd774f20b97ee68da182c3f9a31ced5a40a6bc07794fd84082425 [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 18:06:51 provisioning config files... 18:06:51 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/config17399394020976142440tmp [Pipeline] { [Pipeline] sh 18:06:51 + set +x 18:06:51 + curl -s https://codecov.io/bash 18:06:51 + bash -s -- 18:06:51 18:06:51 _____ _ 18:06:51 / ____| | | 18:06:51 | | ___ __| | ___ ___ _____ __ 18:06:51 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 18:06:51 | |___| (_) | (_| | __/ (_| (_) \ V / 18:06:51 \_____\___/ \__,_|\___|\___\___/ \_/ 18:06:51 Bash-1.0.6 18:06:51 18:06:51 18:06:51 ==> git version 2.25.1 found 18:06:51 ==> 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 18:06:51 Release-Date: 2020-01-08 18:06:51 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 18:06:51 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 18:06:51 ==> Jenkins CI detected. 18:06:51 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-480 18:06:51 project root: . 18:06:51 --> token set from env 18:06:51 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 18:06:51 ==> Running gcov in . (disable via -X gcov) 18:06:51 ==> Python coveragepy not found 18:06:51 ==> Searching for coverage reports in: 18:06:51 + . 18:06:51 -> Found 1 reports 18:06:51 ==> Detecting git/mercurial file structure 18:06:51 ==> Reading reports 18:06:51 + ./coverage.out bytes=24160 18:06:51 ==> Appending adjustments 18:06:51 https://docs.codecov.io/docs/fixing-reports 18:06:51 + Found adjustments 18:06:51 ==> Gzipping contents 18:06:51 4.0K /tmp/codecov.T8bLwJ.gz 18:06:51 ==> Uploading reports 18:06:51 url: https://codecov.io 18:06:51 query: branch=PR-480&commit=fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc&build=12&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-480%2F12%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=480&job=&cmd_args= 18:06:51 -> Pinging Codecov 18:06:51 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-480&commit=fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc&build=12&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-480%2F12%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=480&job=&cmd_args= 18:06:51 -> Uploading to 18:06:51 https://storage.googleapis.com/codecov/v4/raw/2023-06-12/55DBCA73C666E3227836607328DD7E49/fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc/329346c6-76fa-48a0-bd0d-38bcaff63dc1.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230612%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230612T180651Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=1092e8476d2c54efe902c5f4927972afd18f1fa3cbc138c1c8346f8ca743214a 18:06:51 % Total % Received % Xferd Average Speed Time Time Time Current 18:06:51 Dload Upload Total Spent Left Speed 18:06:51 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3924 0 0 100 3924 0 16148 --:--:-- --:--:-- --:--:-- 16148 18:06:51 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/fcc5acb2938ad1e04a2fdcb53d090a04a921a1fc [Pipeline] } 18:06:51 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 18:06:52 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-480/archives ] 18:06:52 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-480/archives 18:06:52 total 16 18:06:52 drwxr-xr-x 3 root root 4096 Jun 12 17:56 . 18:06:52 drwxrwxr-x 11 jenkins jenkins 4096 Jun 12 17:56 .. 18:06:52 drwxr-xr-x 2 root root 4096 Jun 12 17:56 cost 18:06:52 -rw-r--r-- 1 root root 89 Jun 12 17:56 cost.csv 18:06:52 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-480/archives 18:06:52 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-480/archives 18:06:52 total 16 18:06:52 drwxr-xr-x 3 jenkins jenkins 4096 Jun 12 17:56 . 18:06:52 drwxrwxr-x 11 jenkins jenkins 4096 Jun 12 17:56 .. 18:06:52 drwxr-xr-x 2 jenkins jenkins 4096 Jun 12 17:56 cost 18:06:52 -rw-r--r-- 1 jenkins jenkins 89 Jun 12 17:56 cost.csv [Pipeline] libraryResource [Pipeline] sh 18:06:52 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 18:06:53 ---> package-listing.sh 18:06:53 ++ facter osfamily 18:06:53 ++ tr '[:upper:]' '[:lower:]' 18:06:54 + OS_FAMILY=debian 18:06:54 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-480 18:06:54 + START_PACKAGES=/tmp/packages_start.txt 18:06:54 + END_PACKAGES=/tmp/packages_end.txt 18:06:54 + DIFF_PACKAGES=/tmp/packages_diff.txt 18:06:54 + PACKAGES=/tmp/packages_start.txt 18:06:54 + '[' /w/workspace/xfoundry_device-modbus-go_PR-480 ']' 18:06:54 + PACKAGES=/tmp/packages_end.txt 18:06:54 + case "${OS_FAMILY}" in 18:06:54 + dpkg -l 18:06:54 + grep '^ii' 18:06:54 + '[' -f /tmp/packages_start.txt ']' 18:06:54 + '[' -f /tmp/packages_end.txt ']' 18:06:54 + diff /tmp/packages_start.txt /tmp/packages_end.txt 18:06:54 + '[' /w/workspace/xfoundry_device-modbus-go_PR-480 ']' 18:06:54 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-480/archives/ 18:06:54 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-480/archives/ [Pipeline] echo 18:06:54 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-480/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 18:06:54 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:06:54 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:06:54 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:06:55 prd-ubuntu20.04-docker-8c-8g-18470 does not seem to be running inside a container 18:06:55 $ 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-480/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-480 -v /w/workspace/xfoundry_device-modbus-go_PR-480:/w/workspace/xfoundry_device-modbus-go_PR-480:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-480@tmp:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 18:06:55 $ docker top 7f735411e68b1b4154a60c1d16e8a572475a1cdbe78a6df37e0d3dc7b267a138 -eo pid,comm [Pipeline] { [Pipeline] sh 18:06:55 + touch /tmp/pre-build-complete [Pipeline] sh 18:06:55 + mkdir -p /var/log/sysstat [Pipeline] sh 18:06:56 + ls /var/log/sa-host 18:06:56 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 18:06:56 provisioning config files... 18:06:56 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/config12124450023844249651tmp [Pipeline] { [Pipeline] echo 18:06:56 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 18:06:56 ---> create-netrc.sh [Pipeline] } 18:06:56 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 18:06:57 ---> python-tools-install.sh [Pipeline] echo 18:06:57 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 18:06:57 ---> sudo-logs.sh 18:06:57 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 18:06:57 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 18:06:57 ---> job-cost.sh 18:06:57 lf-activate-venv: SKIPPING 18:06:57 DEBUG: total: 0.2199999988079071 18:06:57 INFO: Retrieving Stack Cost... 18:06:57 INFO: Retrieving Pricing Info for: v3-standard-8 18:06:58 INFO: Archiving Costs [Pipeline] echo 18:06:58 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 18:06:58 ---> logs-deploy.sh 18:06:58 lf-activate-venv: SKIPPING 18:06:58 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-480/12 18:06:58 INFO: archiving workspace using pattern(s): 18:06:59 Archives upload complete. 18:06:59 INFO: archiving logs to Nexus