Pull request #483 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from b1bcc90fc06ffe5477ba6810065aa364ae99a552+2cc3518655efefba22ff17e7bf1dcccbd8773e75 (64046166665fbc23d0de2a99b8d0d95c0a5acb2f) 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-ssh1199830011196364823.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd 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-ssh11122932003155374393.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 4fc256d9079ed2258907e613f84b1b8da264a4bd The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-483/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-483/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh12698544552572784331.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-483/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh11929261720813846166.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 4fc256d9079ed2258907e613f84b1b8da264a4bd (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 4fc256d9079ed2258907e613f84b1b8da264a4bd # timeout=10 Commit message: "Merge pull request #430 from ernestojeda/release-lock" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh18316705264622053268.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-483/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-483/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh7913747379714633205.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd 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 Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-15913 in /w/workspace/xfoundry_device-modbus-go_PR-483 [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-483 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/483/head:refs/remotes/origin/PR-483 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 2cc3518655efefba22ff17e7bf1dcccbd8773e75 into PR head commit b1bcc90fc06ffe5477ba6810065aa364ae99a552 Merge succeeded, producing b1bcc90fc06ffe5477ba6810065aa364ae99a552 Checking out Revision b1bcc90fc06ffe5477ba6810065aa364ae99a552 (PR-483) Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { > git config core.sparsecheckout # timeout=10 > git checkout -f b1bcc90fc06ffe5477ba6810065aa364ae99a552 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 2cc3518655efefba22ff17e7bf1dcccbd8773e75 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b1bcc90fc06ffe5477ba6810065aa364ae99a552 # timeout=10 [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 18:30:22 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 18:30:23 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 18:30:23 ========================================================= 18:30:23 EdgeX Global Pipelines Version Info 18:30:23 ========================================================= [Pipeline] libraryResource [Pipeline] sh 18:30:24 ------------------- 18:30:24 stable info: 18:30:24 ------------------- 18:30:24 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 18:30:24 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 18:30:24 Message: update stable to v1.0.249 18:30:24 ------------------- 18:30:24 experimental info: 18:30:24 ------------------- 18:30:24 Commited By: **** collab-it+edgex@linuxfoundation.org 18:30:24 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 18:30:24 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 18:30:24 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 18:30:24 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 18:30:24 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 18:30:25 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 18:30:26 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-483 [Pipeline] echo 18:30:26 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-483 [Pipeline] echo 18:30:26 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-483 [Pipeline] echo 18:30:26 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b1bcc90fc06ffe5477ba6810065aa364ae99a552 [Pipeline] echo 18:30:26 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b1bcc90 [Pipeline] echo 18:30:26 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 18:30:26 provisioning config files... 18:30:26 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-483@tmp/config16430459449745113258tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:30:26 ---> docker-login.sh 18:30:26 nexus3.edgexfoundry.org:10001 18:30:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:30:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:30:26 Configure a credential helper to remove this warning. See 18:30:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:30:26 18:30:26 Login Succeeded 18:30:26 nexus3.edgexfoundry.org:10002 18:30:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:30:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:30:26 Configure a credential helper to remove this warning. See 18:30:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:30:26 18:30:26 Login Succeeded 18:30:26 nexus3.edgexfoundry.org:10003 18:30:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:30:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:30:27 Configure a credential helper to remove this warning. See 18:30:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:30:27 18:30:27 Login Succeeded 18:30:27 nexus3.edgexfoundry.org:10004 18:30:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:30:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:30:27 Configure a credential helper to remove this warning. See 18:30:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:30:27 18:30:27 Login Succeeded 18:30:27 docker.io 18:30:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:30:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:30:27 Configure a credential helper to remove this warning. See 18:30:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:30:27 18:30:27 Login Succeeded 18:30:27 ---> docker-login.sh ends [Pipeline] } 18:30:27 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 18:30:28 + git rev-list -1 --merges b1bcc90fc06ffe5477ba6810065aa364ae99a552~1..b1bcc90fc06ffe5477ba6810065aa364ae99a552 [Pipeline] echo 18:30:28 -----------> git rev-list -1 --merges b1bcc90fc06ffe5477ba6810065aa364ae99a552~1..b1bcc90fc06ffe5477ba6810065aa364ae99a552 b1bcc90fc06ffe5477ba6810065aa364ae99a552 [false] [Pipeline] sh 18:30:28 + git log --format=format:%s -1 b1bcc90fc06ffe5477ba6810065aa364ae99a552 [Pipeline] echo 18:30:28 ========================================================= 18:30:28 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 18:30:28 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 18:30:29 + git log --format=format:%s -1 b1bcc90fc06ffe5477ba6810065aa364ae99a552 [Pipeline] echo 18:30:29 [semverPrep] GIT_COMMIT: b1bcc90fc06ffe5477ba6810065aa364ae99a552, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3 [Pipeline] echo 18:30:29 [semverPrep] This is not a build commit. [Pipeline] sh 18:30:29 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 18:30:29 + grep -v github /etc/ssh/ssh_known_hosts 18:30:29 + [ -e /tmp/ssh_known_hosts ] 18:30:29 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 18:30:29 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 18:30:29 + sudo tee -a /etc/ssh/ssh_known_hosts 18:30:29 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:30:29 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 18:30:29 18:30:29 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:30:30 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 18:30:30 0.1.4: Pulling from edgex-devops/py-git-semver 18:30:30 b85a868b505f: Pulling fs layer 18:30:30 e2be974225ed: Pulling fs layer 18:30:30 339a4e72a1f5: Pulling fs layer 18:30:30 988bab9f4d93: Pulling fs layer 18:30:30 988bab9f4d93: Waiting 18:30:30 1469e6f7b9e6: Pulling fs layer 18:30:30 eaf3925da568: Pulling fs layer 18:30:30 bab4dde63d76: Pulling fs layer 18:30:30 bde34c3a00c8: Pulling fs layer 18:30:30 b352a97aabf1: Pulling fs layer 18:30:30 4872d77fe225: Pulling fs layer 18:30:30 5851b861e8e6: Pulling fs layer 18:30:30 1469e6f7b9e6: Waiting 18:30:30 5851b861e8e6: Waiting 18:30:30 4872d77fe225: Waiting 18:30:30 eaf3925da568: Waiting 18:30:30 bde34c3a00c8: Waiting 18:30:30 bab4dde63d76: Waiting 18:30:30 e2be974225ed: Verifying Checksum 18:30:30 e2be974225ed: Download complete 18:30:30 988bab9f4d93: Verifying Checksum 18:30:30 988bab9f4d93: Download complete 18:30:30 1469e6f7b9e6: Verifying Checksum 18:30:30 1469e6f7b9e6: Download complete 18:30:30 339a4e72a1f5: Verifying Checksum 18:30:30 339a4e72a1f5: Download complete 18:30:30 eaf3925da568: Verifying Checksum 18:30:30 eaf3925da568: Download complete 18:30:30 bde34c3a00c8: Verifying Checksum 18:30:30 bde34c3a00c8: Download complete 18:30:30 b352a97aabf1: Download complete 18:30:30 4872d77fe225: Verifying Checksum 18:30:30 4872d77fe225: Download complete 18:30:30 5851b861e8e6: Download complete 18:30:30 b85a868b505f: Verifying Checksum 18:30:30 b85a868b505f: Download complete 18:30:30 bab4dde63d76: Verifying Checksum 18:30:30 bab4dde63d76: Download complete 18:30:31 b85a868b505f: Pull complete 18:30:31 e2be974225ed: Pull complete 18:30:32 339a4e72a1f5: Pull complete 18:30:32 988bab9f4d93: Pull complete 18:30:32 1469e6f7b9e6: Pull complete 18:30:32 eaf3925da568: Pull complete 18:30:34 bab4dde63d76: Pull complete 18:30:34 bde34c3a00c8: Pull complete 18:30:34 b352a97aabf1: Pull complete 18:30:34 4872d77fe225: Pull complete 18:30:34 5851b861e8e6: Pull complete 18:30:34 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 18:30:34 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 18:30:34 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:30:35 prd-ubuntu20.04-docker-8c-8g-15913 does not seem to be running inside a container 18:30:35 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-483 -v /w/workspace/xfoundry_device-modbus-go_PR-483:/w/workspace/xfoundry_device-modbus-go_PR-483:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-483@tmp:/w/workspace/xfoundry_device-modbus-go_PR-483@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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 18:30:39 $ docker top 46e4b6d5a6276f5db7b76c1476830fd719769475b5ca7eddd4dd6e0b3eee5ead -eo pid,comm 18:30:39 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). 18:30:39 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 18:30:39 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 18:30:39 [ssh-agent] Looking for ssh-agent implementation... 18:30:39 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 18:30:39 $ docker exec 46e4b6d5a6276f5db7b76c1476830fd719769475b5ca7eddd4dd6e0b3eee5ead ssh-agent 18:30:39 SSH_AUTH_SOCK=/tmp/ssh-hlQSHcWD5732/agent.32 18:30:39 SSH_AGENT_PID=38 18:30:39 Running ssh-add (command line suppressed) 18:30:39 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-483@tmp/private_key_8862066056954894142.key (/w/workspace/xfoundry_device-modbus-go_PR-483@tmp/private_key_8862066056954894142.key) 18:30:39 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 18:30:39 + git tag --points-at HEAD [Pipeline] } 18:30:39 $ docker exec --env ******** --env ******** 46e4b6d5a6276f5db7b76c1476830fd719769475b5ca7eddd4dd6e0b3eee5ead ssh-agent -k 18:30:39 unset SSH_AUTH_SOCK; 18:30:39 unset SSH_AGENT_PID; 18:30:39 echo Agent pid 38 killed; 18:30:40 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 18:30:40 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 18:30:40 [ssh-agent] Looking for ssh-agent implementation... 18:30:40 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 18:30:40 $ docker exec 46e4b6d5a6276f5db7b76c1476830fd719769475b5ca7eddd4dd6e0b3eee5ead ssh-agent 18:30:40 SSH_AUTH_SOCK=/tmp/ssh-UJFtysg2qpnL/agent.70 18:30:40 SSH_AGENT_PID=76 18:30:40 Running ssh-add (command line suppressed) 18:30:40 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-483@tmp/private_key_16282063210201757255.key (/w/workspace/xfoundry_device-modbus-go_PR-483@tmp/private_key_16282063210201757255.key) 18:30:40 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 18:30:40 + git semver init 18:30:41 2023-05-17 18:30:40,955 [run_init] DEBUG init version:0.0.0 force:False 18:30:41 2023-05-17 18:30:40,956 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-483/.semver 18:30:41 2023-05-17 18:30:40,957 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-483/.semver 18:30:41 2023-05-17 18:30:40,957 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-483/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-483, universal_newlines=False, shell=None, istream=None) 18:30:41 2023-05-17 18:30:41,672 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-483/.git/info/exclude 18:30:41 2023-05-17 18:30:41,673 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-483/.semver/PR-483 with force:False 18:30:41 2023-05-17 18:30:41,673 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-483/.semver/PR-483 18:30:41 2023-05-17 18:30:41,676 [execute] INFO git cat-file --batch-check 18:30:41 2023-05-17 18:30:41,677 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-483/.semver, universal_newlines=False, shell=None, istream=) 18:30:41 2023-05-17 18:30:41,685 [execute] INFO git cat-file --batch 18:30:41 2023-05-17 18:30:41,685 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-483/.semver, universal_newlines=False, shell=None, istream=) 18:30:41 2023-05-17 18:30:41,692 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-483/.semver/PR-483 18:30:41 0.0.0 [Pipeline] } 18:30:41 $ docker exec --env ******** --env ******** 46e4b6d5a6276f5db7b76c1476830fd719769475b5ca7eddd4dd6e0b3eee5ead ssh-agent -k 18:30:42 unset SSH_AUTH_SOCK; 18:30:42 unset SSH_AGENT_PID; 18:30:42 echo Agent pid 76 killed; 18:30:42 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 18:30:42 + git semver [Pipeline] } 18:30:42 $ docker stop --time=1 46e4b6d5a6276f5db7b76c1476830fd719769475b5ca7eddd4dd6e0b3eee5ead 18:30:44 $ docker rm -f --volumes 46e4b6d5a6276f5db7b76c1476830fd719769475b5ca7eddd4dd6e0b3eee5ead [Pipeline] // withDockerContainer [Pipeline] sh 18:30:44 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 18:30:44 Stashed 1 file(s) [Pipeline] echo 18:30:44 [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 18:30:45 provisioning config files... 18:30:45 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-483@tmp/config14155933863729617606tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:30:45 ---> docker-login.sh 18:30:45 nexus3.edgexfoundry.org:10001 18:30:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:30:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:30:45 Configure a credential helper to remove this warning. See 18:30:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:30:45 18:30:45 Login Succeeded 18:30:45 nexus3.edgexfoundry.org:10002 18:30:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:30:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:30:46 Configure a credential helper to remove this warning. See 18:30:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:30:46 18:30:46 Login Succeeded 18:30:46 nexus3.edgexfoundry.org:10003 18:30:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:30:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:30:46 Configure a credential helper to remove this warning. See 18:30:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:30:46 18:30:46 Login Succeeded 18:30:46 nexus3.edgexfoundry.org:10004 18:30:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:30:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:30:46 Configure a credential helper to remove this warning. See 18:30:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:30:46 18:30:46 Login Succeeded 18:30:46 docker.io 18:30:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:30:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:30:46 Configure a credential helper to remove this warning. See 18:30:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:30:46 18:30:46 Login Succeeded 18:30:46 ---> docker-login.sh ends [Pipeline] } 18:30:46 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 18:30:46 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 18:30:46 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 18:30:46 ========================================================= 18:30:46 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 18:30:46 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:30:47 + 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 . 18:30:47 Sending build context to Docker daemon 6.534MB 18:30:47 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 18:30:47 Step 2/10 : FROM ${BASE} AS builder 18:30:47 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 18:30:47 f56be85fc22e: Pulling fs layer 18:30:47 85791d961cd3: Pulling fs layer 18:30:47 d694b5ae8c79: Pulling fs layer 18:30:47 9f32a84ed3da: Pulling fs layer 18:30:47 4d19c01a9841: Pulling fs layer 18:30:47 9325e15d5711: Pulling fs layer 18:30:47 556b6ee489ea: Pulling fs layer 18:30:47 c5a4b2cf53e6: Pulling fs layer 18:30:47 9f32a84ed3da: Waiting 18:30:47 4d19c01a9841: Waiting 18:30:47 9325e15d5711: Waiting 18:30:47 556b6ee489ea: Waiting 18:30:47 c5a4b2cf53e6: Waiting 18:30:47 85791d961cd3: Verifying Checksum 18:30:47 85791d961cd3: Download complete 18:30:47 9f32a84ed3da: Verifying Checksum 18:30:47 9f32a84ed3da: Download complete 18:30:47 4d19c01a9841: Verifying Checksum 18:30:47 4d19c01a9841: Download complete 18:30:47 f56be85fc22e: Verifying Checksum 18:30:47 f56be85fc22e: Download complete 18:30:47 9325e15d5711: Verifying Checksum 18:30:47 9325e15d5711: Download complete 18:30:47 f56be85fc22e: Pull complete 18:30:47 85791d961cd3: Pull complete 18:30:48 c5a4b2cf53e6: Verifying Checksum 18:30:48 c5a4b2cf53e6: Download complete 18:30:48 d694b5ae8c79: Verifying Checksum 18:30:48 d694b5ae8c79: Download complete 18:30:48 556b6ee489ea: Verifying Checksum 18:30:48 556b6ee489ea: Download complete 18:30:51 d694b5ae8c79: Pull complete 18:30:51 9f32a84ed3da: Pull complete 18:30:51 4d19c01a9841: Pull complete 18:30:52 9325e15d5711: Pull complete 18:30:54 556b6ee489ea: Pull complete 18:30:55 c5a4b2cf53e6: Pull complete 18:30:55 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 18:30:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 18:30:55 ---> c4be618373d6 18:30:55 Step 3/10 : ARG ADD_BUILD_TAGS="" 18:30:59 ---> Running in 081437c7e7b6 18:30:59 Removing intermediate container 081437c7e7b6 18:30:59 ---> 6884dc9abe40 18:30:59 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 18:30:59 ---> Running in 5c5a6b76bb21 18:30:59 Removing intermediate container 5c5a6b76bb21 18:30:59 ---> 86d104e09573 18:30:59 Step 5/10 : RUN apk add --update --no-cache make git openssh 18:30:59 ---> Running in 09afc1c2e125 18:30:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 18:31:00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 18:31:00 (1/8) Installing openssh-keygen (9.1_p1-r3) 18:31:00 (2/8) Installing libedit (20221030.3.1-r0) 18:31:00 (3/8) Installing openssh-client-common (9.1_p1-r3) 18:31:00 Still waiting to schedule task 18:31:00 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 18:31:00 (4/8) Installing openssh-client-default (9.1_p1-r3) 18:31:00 (5/8) Installing openssh-sftp-server (9.1_p1-r3) 18:31:00 (6/8) Installing openssh-server-common (9.1_p1-r3) 18:31:00 (7/8) Installing openssh-server (9.1_p1-r3) 18:31:00 (8/8) Installing openssh (9.1_p1-r3) 18:31:00 Executing busybox-1.35.0-r29.trigger 18:31:00 OK: 270 MiB in 61 packages 18:31:01 Removing intermediate container 09afc1c2e125 18:31:01 ---> 632d1b9a4d69 18:31:01 Step 6/10 : WORKDIR /device-modbus-go 18:31:01 ---> Running in a3447968636a 18:31:01 Removing intermediate container a3447968636a 18:31:01 ---> e1a2e2cbc3dc 18:31:01 Step 7/10 : COPY go.mod vendor* ./ 18:31:01 ---> 838701cdc9c8 18:31:01 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:31:01 ---> Running in a7b96cd294ff 18:31:33 Removing intermediate container a7b96cd294ff 18:31:33 ---> 5723237e624b 18:31:33 Step 9/10 : COPY . . 18:31:33 ---> d4a62e702223 18:31:33 Step 10/10 : RUN ${MAKE} 18:31:33 ---> Running in 1811c57d1433 18:31:33 noop 18:31:33 Removing intermediate container 1811c57d1433 18:31:33 ---> 83bb1b9f64af 18:31:33 Successfully built 83bb1b9f64af 18:31:33 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:31:34 + docker inspect -f . ci-base-image-x86_64 18:31:34 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:31:34 prd-ubuntu20.04-docker-8c-8g-15913 does not seem to be running inside a container 18:31:34 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-483 -v /w/workspace/xfoundry_device-modbus-go_PR-483:/w/workspace/xfoundry_device-modbus-go_PR-483:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-483@tmp:/w/workspace/xfoundry_device-modbus-go_PR-483@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 ******** ci-base-image-x86_64 cat 18:31:34 $ docker top f2e4288f8601ee0523a731fc10807fb70f8deccb4945caa9aa2b290866013202 -eo pid,comm [Pipeline] { [Pipeline] sh 18:31:34 + go version 18:31:34 go version go1.20.2 linux/amd64 [Pipeline] } 18:31:34 $ docker stop --time=1 f2e4288f8601ee0523a731fc10807fb70f8deccb4945caa9aa2b290866013202 18:31:36 $ docker rm -f --volumes f2e4288f8601ee0523a731fc10807fb70f8deccb4945caa9aa2b290866013202 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:31:36 + docker inspect -f . ci-base-image-x86_64 18:31:36 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:31:37 prd-ubuntu20.04-docker-8c-8g-15913 does not seem to be running inside a container 18:31:37 $ 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-483 -v /w/workspace/xfoundry_device-modbus-go_PR-483:/w/workspace/xfoundry_device-modbus-go_PR-483:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-483@tmp:/w/workspace/xfoundry_device-modbus-go_PR-483@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 ******** ci-base-image-x86_64 cat 18:31:37 $ docker top 2d43a9e9e9cbcdf990a8981b29c72ca9c7fe9204927feb990d991dfd5d90f50a -eo pid,comm [Pipeline] { [Pipeline] sh 18:31:37 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-483 [Pipeline] fileExists [Pipeline] sh 18:31:38 + make test 18:31:38 go test ./... -coverprofile=coverage.out 18:31:43 ? github.com/edgexfoundry/device-modbus-go [no test files] 18:31:53 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 18:31:53 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.015s coverage: 47.4% of statements 18:31:58 go vet ./... 18:32:02 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 18:32:02 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 18:32:02 ./bin/test-attribution-txt.sh [Pipeline] echo 18:32:02 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 18:32:02 $ docker stop --time=1 2d43a9e9e9cbcdf990a8981b29c72ca9c7fe9204927feb990d991dfd5d90f50a 18:32:06 $ docker rm -f --volumes 2d43a9e9e9cbcdf990a8981b29c72ca9c7fe9204927feb990d991dfd5d90f50a [Pipeline] // withDockerContainer [Pipeline] sh 18:32:06 + sudo chown -R jenkins:jenkins . [Pipeline] stash 18:32:06 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 18:32:07 + sudo chown -R jenkins:jenkins . [Pipeline] sh 18:32:07 + ls -al . 18:32:07 total 184 18:32:07 drwxrwxr-x 10 jenkins jenkins 4096 May 17 18:31 . 18:32:07 drwxrwxr-x 4 jenkins jenkins 4096 May 17 18:30 .. 18:32:07 -rw-rw-r-- 1 jenkins jenkins 140 May 17 18:30 .dockerignore 18:32:07 drwxrwxr-x 8 jenkins jenkins 4096 May 17 18:30 .git 18:32:07 drwxrwxr-x 3 jenkins jenkins 4096 May 17 18:30 .github 18:32:07 -rw-rw-r-- 1 jenkins jenkins 331 May 17 18:30 .gitignore 18:32:07 -rw-rw-r-- 1 jenkins jenkins 41 May 17 18:30 .golangci.yml 18:32:07 drwxr-xr-x 3 jenkins jenkins 4096 May 17 18:30 .semver 18:32:07 -rw-rw-r-- 1 jenkins jenkins 10132 May 17 18:30 Attribution.txt 18:32:07 -rw-rw-r-- 1 jenkins jenkins 11576 May 17 18:30 CHANGELOG.md 18:32:07 -rw-rw-r-- 1 jenkins jenkins 1365 May 17 18:30 Dockerfile 18:32:07 -rw-rw-r-- 1 jenkins jenkins 677 May 17 18:30 GOVERNANCE.md 18:32:07 -rw-rw-r-- 1 jenkins jenkins 680 May 17 18:30 Jenkinsfile 18:32:07 -rw-rw-r-- 1 jenkins jenkins 11340 May 17 18:30 LICENSE 18:32:07 -rw-rw-r-- 1 jenkins jenkins 1705 May 17 18:30 Makefile 18:32:07 -rw-rw-r-- 1 jenkins jenkins 622 May 17 18:30 OWNERS.md 18:32:07 -rw-rw-r-- 1 jenkins jenkins 4554 May 17 18:30 README.md 18:32:07 -rw-rw-r-- 1 jenkins jenkins 5 May 17 18:30 VERSION 18:32:07 drwxrwxr-x 2 jenkins jenkins 4096 May 17 18:30 bin 18:32:07 drwxrwxr-x 3 jenkins jenkins 4096 May 17 18:30 cmd 18:32:07 -rw-r--r-- 1 jenkins jenkins 24160 May 17 18:31 coverage.out 18:32:07 -rw-rw-r-- 1 jenkins jenkins 3453 May 17 18:30 go.mod 18:32:07 -rw-rw-r-- 1 jenkins jenkins 31670 May 17 18:30 go.sum 18:32:07 drwxrwxr-x 3 jenkins jenkins 4096 May 17 18:30 internal 18:32:07 drwxrwxr-x 2 jenkins jenkins 4096 May 17 18:30 simulator 18:32:07 drwxrwxr-x 4 jenkins jenkins 4096 May 17 18:30 snap 18:32:07 -rw-rw-r-- 1 jenkins jenkins 229 May 17 18:30 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:32:08 + 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=b1bcc90fc06ffe5477ba6810065aa364ae99a552 --label arch=amd64 --label version=0.0.0 . 18:32:08 Sending build context to Docker daemon 6.559MB 18:32:08 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 18:32:08 Step 2/22 : FROM ${BASE} AS builder 18:32:08 ---> 83bb1b9f64af 18:32:08 Step 3/22 : ARG ADD_BUILD_TAGS="" 18:32:08 ---> Running in db5a3f1a3c35 18:32:08 Removing intermediate container db5a3f1a3c35 18:32:08 ---> 7cd270c3eb20 18:32:08 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 18:32:08 ---> Running in f19ff39dcc79 18:32:08 Removing intermediate container f19ff39dcc79 18:32:08 ---> b7d6d9ff5b9e 18:32:08 Step 5/22 : RUN apk add --update --no-cache make git openssh 18:32:08 ---> Running in ba5e71339896 18:32:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 18:32:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 18:32:08 OK: 270 MiB in 61 packages 18:32:09 Removing intermediate container ba5e71339896 18:32:09 ---> 1fb3d58c5b41 18:32:09 Step 6/22 : WORKDIR /device-modbus-go 18:32:09 ---> Running in 4b0c38e89d40 18:32:09 Removing intermediate container 4b0c38e89d40 18:32:09 ---> caa6878f01ee 18:32:09 Step 7/22 : COPY go.mod vendor* ./ 18:32:09 ---> f8778296f4bc 18:32:09 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:32:09 ---> Running in 7507ec0af5cc 18:32:10 Removing intermediate container 7507ec0af5cc 18:32:10 ---> cd051d1b03bf 18:32:10 Step 9/22 : COPY . . 18:32:10 ---> 78473b5e6654 18:32:10 Step 10/22 : RUN ${MAKE} 18:32:10 ---> Running in 5bbb9f47f787 18:32:10 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:32:32 Removing intermediate container 5bbb9f47f787 18:32:32 ---> a835219b1938 18:32:32 Step 11/22 : FROM alpine:3.17 18:32:32 3.17: Pulling from library/alpine 18:32:32 f56be85fc22e: Already exists 18:32:32 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 18:32:32 Status: Downloaded newer image for alpine:3.17 18:32:32 ---> 9ed4aefc74f6 18:32:32 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 18:32:32 ---> Running in 9eb889b6cebb 18:32:32 Removing intermediate container 9eb889b6cebb 18:32:32 ---> eeb764db314d 18:32:32 Step 13/22 : RUN apk add --update --no-cache dumb-init 18:32:32 ---> Running in 4b440217599d 18:32:32 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 18:32:32 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 18:32:32 (1/1) Installing dumb-init (1.2.5-r2) 18:32:32 Executing busybox-1.35.0-r29.trigger 18:32:32 OK: 7 MiB in 16 packages 18:32:32 Removing intermediate container 4b440217599d 18:32:32 ---> fed172d50ff7 18:32:32 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 18:32:32 ---> ec2360d632c0 18:32:32 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 18:32:33 ---> 5609068644f0 18:32:33 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 18:32:33 ---> 6af21aa27f8f 18:32:33 Step 17/22 : EXPOSE 59901 18:32:33 ---> Running in da7af418d5be 18:32:33 Removing intermediate container da7af418d5be 18:32:33 ---> d17b45117b81 18:32:33 Step 18/22 : ENTRYPOINT ["/device-modbus"] 18:32:33 ---> Running in 58f3c22e679b 18:32:33 Removing intermediate container 58f3c22e679b 18:32:33 ---> a93ed3b3595e 18:32:33 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 18:32:33 ---> Running in cbc41685e8d7 18:32:33 Removing intermediate container cbc41685e8d7 18:32:33 ---> 5dc3b8376908 18:32:33 Step 20/22 : LABEL arch=amd64 18:32:33 ---> Running in 618548ef3e61 18:32:33 Removing intermediate container 618548ef3e61 18:32:33 ---> 2bd7603ffc83 18:32:33 Step 21/22 : LABEL git_sha=b1bcc90fc06ffe5477ba6810065aa364ae99a552 18:32:33 ---> Running in d72f02da2390 18:32:33 Removing intermediate container d72f02da2390 18:32:33 ---> 7810a056fdf8 18:32:33 Step 22/22 : LABEL version=0.0.0 18:32:33 ---> Running in 54b51870c79e 18:32:33 Removing intermediate container 54b51870c79e 18:32:33 ---> 088f98775fdf 18:32:33 [Warning] One or more build-args [ARCH] were not consumed 18:32:33 Successfully built 088f98775fdf 18:32:33 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 18:32:34 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:32:34 18:32:34 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:32:34 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:32:34 latest: Pulling from edgex-lftools-log-publisher 18:32:34 5eb5b503b376: Pulling fs layer 18:32:34 5c69ac0246d0: Pulling fs layer 18:32:34 ec43610c2a17: Pulling fs layer 18:32:34 3a2ae6a8a46f: Pulling fs layer 18:32:34 33b1e0a273af: Pulling fs layer 18:32:34 5d3b04190fa2: Pulling fs layer 18:32:34 2f39f015ded8: Pulling fs layer 18:32:34 3a2ae6a8a46f: Waiting 18:32:34 2f39f015ded8: Waiting 18:32:34 33b1e0a273af: Waiting 18:32:34 5c69ac0246d0: Download complete 18:32:34 3a2ae6a8a46f: Download complete 18:32:34 33b1e0a273af: Verifying Checksum 18:32:34 33b1e0a273af: Download complete 18:32:34 5d3b04190fa2: Verifying Checksum 18:32:34 5d3b04190fa2: Download complete 18:32:34 ec43610c2a17: Verifying Checksum 18:32:34 ec43610c2a17: Download complete 18:32:35 5eb5b503b376: Verifying Checksum 18:32:35 5eb5b503b376: Download complete 18:32:35 2f39f015ded8: Download complete 18:32:36 5eb5b503b376: Pull complete 18:32:36 5c69ac0246d0: Pull complete 18:32:36 ec43610c2a17: Pull complete 18:32:36 3a2ae6a8a46f: Pull complete 18:32:37 33b1e0a273af: Pull complete 18:32:37 5d3b04190fa2: Pull complete 18:32:41 2f39f015ded8: Pull complete 18:32:41 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 18:32:41 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:32:41 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:32:41 prd-ubuntu20.04-docker-8c-8g-15913 does not seem to be running inside a container 18:32:41 $ 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-483 -v /w/workspace/xfoundry_device-modbus-go_PR-483:/w/workspace/xfoundry_device-modbus-go_PR-483:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-483@tmp:/w/workspace/xfoundry_device-modbus-go_PR-483@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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 18:32:45 $ docker top 5cb33a21bf070a45fc9e8bcecee6818b0a386ca37789b5894bfde8c5d3c940f3 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:32:46 ---> job-cost.sh 18:32:46 lf-activate-venv: SKIPPING 18:32:46 INFO: No Stack... 18:32:46 INFO: Retrieving Pricing Info for: v3-standard-8 18:32:46 INFO: Archiving Costs [Pipeline] sh 18:32:46 + cat /w/workspace/xfoundry_device-modbus-go_PR-483/archives/cost.csv 18:32:46 + cut -d, -f6 [Pipeline] lock 18:32:47 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-483-1-stack-cost] 18:32:47 Resource [jenkins-edgexfoundry-device-modbus-go-PR-483-1-stack-cost] did not exist. Created. 18:32:47 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-483-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 18:32:47 + echo total: 0.2199999988079071 [Pipeline] stash 18:32:47 Stashed 1 file(s) [Pipeline] } 18:32:47 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-483-1-stack-cost] [Pipeline] // lock [Pipeline] } 18:32:47 $ docker stop --time=1 5cb33a21bf070a45fc9e8bcecee6818b0a386ca37789b5894bfde8c5d3c940f3 18:32:48 $ docker rm -f --volumes 5cb33a21bf070a45fc9e8bcecee6818b0a386ca37789b5894bfde8c5d3c940f3 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 18:33:44 Running on prd-ubuntu20.04-docker-arm64-4c-16g-15917 in /w/workspace/xfoundry_device-modbus-go_PR-483 [Pipeline] { [Pipeline] ws 18:33:44 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 18:33:44 Selected Git installation does not exist. Using Default 18:33:44 The recommended git tool is: NONE 18:33:51 using credential edgex-jenkins-ssh 18:33:51 Cloning the remote Git repository 18:33:51 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 18:33:51 > git init /w/workspace/device-modbus-go/1 # timeout=10 18:33:51 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 18:33:51 > git --version # timeout=10 18:33:52 > git --version # 'git version 2.25.1' 18:33:52 using GIT_SSH to set credentials SSH Credentials for GitHub 18:33:52 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 18:33:53 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 18:33:53 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 18:33:54 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 18:33:54 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 18:33:54 using GIT_SSH to set credentials SSH Credentials for GitHub 18:33:54 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/483/head:refs/remotes/origin/PR-483 +refs/heads/main:refs/remotes/origin/main # timeout=10 18:33:55 Merging remotes/origin/main commit 2cc3518655efefba22ff17e7bf1dcccbd8773e75 into PR head commit b1bcc90fc06ffe5477ba6810065aa364ae99a552 18:33:55 Merge succeeded, producing b1bcc90fc06ffe5477ba6810065aa364ae99a552 18:33:55 Checking out Revision b1bcc90fc06ffe5477ba6810065aa364ae99a552 (PR-483) 18:33:56 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 18:33:55 > git config core.sparsecheckout # timeout=10 18:33:55 > git checkout -f b1bcc90fc06ffe5477ba6810065aa364ae99a552 # timeout=10 18:33:55 > git remote # timeout=10 18:33:55 > git config --get remote.origin.url # timeout=10 18:33:55 using GIT_SSH to set credentials SSH Credentials for GitHub 18:33:55 > git merge 2cc3518655efefba22ff17e7bf1dcccbd8773e75 # timeout=10 18:33:55 > git rev-parse HEAD^{commit} # timeout=10 18:33:55 > git config core.sparsecheckout # timeout=10 18:33:55 > git checkout -f b1bcc90fc06ffe5477ba6810065aa364ae99a552 # timeout=10 18:33:56 > git --version # timeout=10 18:33:56 > git --version # 'git version 2.25.1' 18:33:56 fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 18:33:57 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 18:33:57 % Total % Received % Xferd Average Speed Time Time Time Current 18:33:57 Dload Upload Total Spent Left Speed 18:33:57 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 211k 0 --:--:-- --:--:-- --:--:-- 211k [Pipeline] sh 18:33:58 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 18:33:58 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 18:33:58 + sudo tee /etc/docker/daemon.new 18:33:58 { 18:33:58 "registry-mirrors": [ 18:33:58 "https://nexus3.edgexfoundry.org:10001" 18:33:58 ], 18:33:58 "bip": "10.250.0.254/24", 18:33:58 "hosts": [ 18:33:58 "tcp://0.0.0.0:5555", 18:33:58 "unix:///var/run/docker.sock" 18:33:58 ], 18:33:58 "mtu": 1458, 18:33:58 "selinux-enabled": true, 18:33:58 "seccomp-profile": "/etc/docker/seccomp.json" 18:33:58 } [Pipeline] sh 18:33:58 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 18:33:59 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 18:34:17 provisioning config files... 18:34:17 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config16720763175458825116tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:34:18 ---> docker-login.sh 18:34:18 nexus3.edgexfoundry.org:10001 18:34:18 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:34:18 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:34:18 Configure a credential helper to remove this warning. See 18:34:18 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:34:18 18:34:18 Login Succeeded 18:34:18 nexus3.edgexfoundry.org:10002 18:34:19 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:34:19 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:34:19 Configure a credential helper to remove this warning. See 18:34:19 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:34:19 18:34:19 Login Succeeded 18:34:19 nexus3.edgexfoundry.org:10003 18:34:19 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:34:19 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:34:19 Configure a credential helper to remove this warning. See 18:34:19 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:34:19 18:34:19 Login Succeeded 18:34:19 nexus3.edgexfoundry.org:10004 18:34:19 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:34:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:34:20 Configure a credential helper to remove this warning. See 18:34:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:34:20 18:34:20 Login Succeeded 18:34:20 docker.io 18:34:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:34:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:34:20 Configure a credential helper to remove this warning. See 18:34:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:34:20 18:34:20 Login Succeeded 18:34:20 ---> docker-login.sh ends [Pipeline] } 18:34:20 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 18:34:21 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 18:34:21 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 18:34:21 ========================================================= 18:34:21 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 18:34:21 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:34:21 + 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 . 18:34:22 Sending build context to Docker daemon 3.419MB 18:34:22 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 18:34:22 Step 2/10 : FROM ${BASE} AS builder 18:34:22 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 18:34:22 c41833b44d91: Pulling fs layer 18:34:22 ed15518f5707: Pulling fs layer 18:34:22 feae8fd75edb: Pulling fs layer 18:34:22 242c74f7c9fa: Pulling fs layer 18:34:22 3cdef696dda3: Pulling fs layer 18:34:22 2ced38df9373: Pulling fs layer 18:34:22 58f1dce35555: Pulling fs layer 18:34:22 3cdef696dda3: Waiting 18:34:22 2ced38df9373: Waiting 18:34:22 242c74f7c9fa: Waiting 18:34:22 58f1dce35555: Waiting 18:34:22 ed15518f5707: Verifying Checksum 18:34:22 ed15518f5707: Download complete 18:34:22 242c74f7c9fa: Verifying Checksum 18:34:22 242c74f7c9fa: Download complete 18:34:22 3cdef696dda3: Verifying Checksum 18:34:22 3cdef696dda3: Download complete 18:34:22 c41833b44d91: Verifying Checksum 18:34:22 c41833b44d91: Download complete 18:34:24 c41833b44d91: Pull complete 18:34:24 58f1dce35555: Verifying Checksum 18:34:24 58f1dce35555: Download complete 18:34:25 ed15518f5707: Pull complete 18:34:26 feae8fd75edb: Download complete 18:34:26 2ced38df9373: Verifying Checksum 18:34:26 2ced38df9373: Download complete 18:34:36 feae8fd75edb: Pull complete 18:34:36 242c74f7c9fa: Pull complete 18:34:36 3cdef696dda3: Pull complete 18:34:43 2ced38df9373: Pull complete 18:34:47 58f1dce35555: Pull complete 18:34:47 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 18:34:47 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 18:34:47 ---> fadd8f120f05 18:34:47 Step 3/10 : ARG ADD_BUILD_TAGS="" 18:34:49 ---> Running in 3ff3ad697cf1 18:34:49 Removing intermediate container 3ff3ad697cf1 18:34:49 ---> 1c38bf1013c3 18:34:49 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 18:34:49 ---> Running in b4ff0c3925e0 18:34:49 Removing intermediate container b4ff0c3925e0 18:34:49 ---> 0c1e0c6d07e1 18:34:49 Step 5/10 : RUN apk add --update --no-cache make git openssh 18:34:49 ---> Running in 279b476998ef 18:34:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 18:34:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 18:34:53 (1/8) Installing openssh-keygen (9.1_p1-r3) 18:34:53 (2/8) Installing libedit (20221030.3.1-r0) 18:34:53 (3/8) Installing openssh-client-common (9.1_p1-r3) 18:34:53 (4/8) Installing openssh-client-default (9.1_p1-r3) 18:34:53 (5/8) Installing openssh-sftp-server (9.1_p1-r3) 18:34:53 (6/8) Installing openssh-server-common (9.1_p1-r3) 18:34:53 (7/8) Installing openssh-server (9.1_p1-r3) 18:34:53 (8/8) Installing openssh (9.1_p1-r3) 18:34:53 Executing busybox-1.35.0-r29.trigger 18:34:53 OK: 270 MiB in 61 packages 18:34:54 Removing intermediate container 279b476998ef 18:34:54 ---> d9556da6667c 18:34:54 Step 6/10 : WORKDIR /device-modbus-go 18:34:54 ---> Running in 7d9fe68a03b0 18:34:55 Removing intermediate container 7d9fe68a03b0 18:34:55 ---> a39efe94f8a8 18:34:55 Step 7/10 : COPY go.mod vendor* ./ 18:34:55 ---> 90cb1fad2e6c 18:34:55 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:34:55 ---> Running in 76e0e997aaf3 18:36:03 Removing intermediate container 76e0e997aaf3 18:36:03 ---> b7ac376db01b 18:36:03 Step 9/10 : COPY . . 18:36:03 ---> bf8f5043297b 18:36:03 Step 10/10 : RUN ${MAKE} 18:36:03 ---> Running in a3eb5a02e71a 18:36:03 noop 18:36:04 Removing intermediate container a3eb5a02e71a 18:36:04 ---> 99c30b316d11 18:36:04 Successfully built 99c30b316d11 18:36:04 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:36:05 + docker inspect -f . ci-base-image-arm64 18:36:05 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:36:05 prd-ubuntu20.04-docker-arm64-4c-16g-15917 does not seem to be running inside a container 18:36:05 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 18:36:08 $ docker top 9a51e3896a3c9a059a747a2eeb126c9da416412d3d644e923dadfaa1cc40b150 -eo pid,comm [Pipeline] { [Pipeline] sh 18:36:09 + go version 18:36:09 go version go1.20.2 linux/arm64 [Pipeline] } 18:36:09 $ docker stop --time=1 9a51e3896a3c9a059a747a2eeb126c9da416412d3d644e923dadfaa1cc40b150 18:36:10 $ docker rm -f --volumes 9a51e3896a3c9a059a747a2eeb126c9da416412d3d644e923dadfaa1cc40b150 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:36:11 + docker inspect -f . ci-base-image-arm64 18:36:11 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:36:12 prd-ubuntu20.04-docker-arm64-4c-16g-15917 does not seem to be running inside a container 18:36:12 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 18:36:13 $ docker top 8425a88d44c1f533d4579f21fbdf09cf7cf53e2b4724a6141e2036a1f760ae69 -eo pid,comm [Pipeline] { [Pipeline] sh 18:36:14 + git config --global --add safe.directory /w/workspace/device-modbus-go/1 [Pipeline] fileExists [Pipeline] sh 18:36:15 + make test 18:36:15 go test ./... -coverprofile=coverage.out 18:36:54 ? github.com/edgexfoundry/device-modbus-go [no test files] 18:39:00 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 18:39:00 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.079s coverage: 47.4% of statements 18:39:00 WARNING: Linting skipped (not on x86_64 or linter not installed) 18:39:00 go vet ./... 18:39:33 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 18:39:33 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 18:39:33 ./bin/test-attribution-txt.sh [Pipeline] echo 18:39:33 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 18:39:33 $ docker stop --time=1 8425a88d44c1f533d4579f21fbdf09cf7cf53e2b4724a6141e2036a1f760ae69 18:39:35 $ docker rm -f --volumes 8425a88d44c1f533d4579f21fbdf09cf7cf53e2b4724a6141e2036a1f760ae69 [Pipeline] // withDockerContainer [Pipeline] sh 18:39:36 + sudo chown -R jenkins:jenkins . [Pipeline] stash 18:39:36 Warning: overwriting stash ‘coverage-report’ 18:39:37 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 18:39:37 + sudo chown -R jenkins:jenkins . [Pipeline] sh 18:39:37 + ls -al . 18:39:37 total 180 18:39:37 drwxrwxr-x 9 jenkins jenkins 4096 May 17 18:36 . 18:39:37 drwxrwxr-x 4 jenkins jenkins 4096 May 17 18:33 .. 18:39:37 -rw-rw-r-- 1 jenkins jenkins 140 May 17 18:33 .dockerignore 18:39:37 drwxrwxr-x 8 jenkins jenkins 4096 May 17 18:33 .git 18:39:37 drwxrwxr-x 3 jenkins jenkins 4096 May 17 18:33 .github 18:39:37 -rw-rw-r-- 1 jenkins jenkins 331 May 17 18:33 .gitignore 18:39:37 -rw-rw-r-- 1 jenkins jenkins 41 May 17 18:33 .golangci.yml 18:39:37 -rw-rw-r-- 1 jenkins jenkins 10132 May 17 18:33 Attribution.txt 18:39:37 -rw-rw-r-- 1 jenkins jenkins 11576 May 17 18:33 CHANGELOG.md 18:39:37 -rw-rw-r-- 1 jenkins jenkins 1365 May 17 18:33 Dockerfile 18:39:37 -rw-rw-r-- 1 jenkins jenkins 677 May 17 18:33 GOVERNANCE.md 18:39:37 -rw-rw-r-- 1 jenkins jenkins 680 May 17 18:33 Jenkinsfile 18:39:37 -rw-rw-r-- 1 jenkins jenkins 11340 May 17 18:33 LICENSE 18:39:37 -rw-rw-r-- 1 jenkins jenkins 1705 May 17 18:33 Makefile 18:39:37 -rw-rw-r-- 1 jenkins jenkins 622 May 17 18:33 OWNERS.md 18:39:37 -rw-rw-r-- 1 jenkins jenkins 4554 May 17 18:33 README.md 18:39:37 -rw-rw-r-- 1 jenkins jenkins 5 May 17 18:30 VERSION 18:39:37 drwxrwxr-x 2 jenkins jenkins 4096 May 17 18:33 bin 18:39:37 drwxrwxr-x 3 jenkins jenkins 4096 May 17 18:33 cmd 18:39:37 -rw-r--r-- 1 jenkins jenkins 24160 May 17 18:38 coverage.out 18:39:37 -rw-rw-r-- 1 jenkins jenkins 3453 May 17 18:33 go.mod 18:39:37 -rw-rw-r-- 1 jenkins jenkins 31670 May 17 18:33 go.sum 18:39:37 drwxrwxr-x 3 jenkins jenkins 4096 May 17 18:33 internal 18:39:37 drwxrwxr-x 2 jenkins jenkins 4096 May 17 18:33 simulator 18:39:37 drwxrwxr-x 4 jenkins jenkins 4096 May 17 18:33 snap 18:39:37 -rw-rw-r-- 1 jenkins jenkins 229 May 17 18:33 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:39:38 + 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=b1bcc90fc06ffe5477ba6810065aa364ae99a552 --label arch=arm64 --label version=0.0.0 . 18:39:38 Sending build context to Docker daemon 3.444MB 18:39:38 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 18:39:38 Step 2/22 : FROM ${BASE} AS builder 18:39:38 ---> 99c30b316d11 18:39:38 Step 3/22 : ARG ADD_BUILD_TAGS="" 18:39:38 ---> Running in 0ea88396c005 18:39:39 Removing intermediate container 0ea88396c005 18:39:39 ---> 729a9f720d6e 18:39:39 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 18:39:39 ---> Running in 8d4d084df288 18:39:43 Removing intermediate container 8d4d084df288 18:39:43 ---> 863b98ad4284 18:39:43 Step 5/22 : RUN apk add --update --no-cache make git openssh 18:39:43 ---> Running in aa74f3d35865 18:39:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 18:39:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 18:39:46 OK: 270 MiB in 61 packages 18:39:47 Removing intermediate container aa74f3d35865 18:39:47 ---> 298c1b937cdd 18:39:47 Step 6/22 : WORKDIR /device-modbus-go 18:39:47 ---> Running in 7a2b44e96e57 18:39:47 Removing intermediate container 7a2b44e96e57 18:39:47 ---> 9f6d14e4af49 18:39:47 Step 7/22 : COPY go.mod vendor* ./ 18:39:48 ---> 15aa7ef38424 18:39:48 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:39:48 ---> Running in ab6802585179 18:39:51 Removing intermediate container ab6802585179 18:39:51 ---> 18a56411cd5b 18:39:51 Step 9/22 : COPY . . 18:39:52 ---> 340407d86871 18:39:52 Step 10/22 : RUN ${MAKE} 18:39:52 ---> Running in 6863ef105b85 18:39:53 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:42:30 Removing intermediate container 6863ef105b85 18:42:30 ---> a20334cbb860 18:42:30 Step 11/22 : FROM alpine:3.17 18:42:30 3.17: Pulling from library/alpine 18:42:30 c41833b44d91: Already exists 18:42:30 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 18:42:30 Status: Downloaded newer image for alpine:3.17 18:42:30 ---> 51e60588ff2c 18:42:30 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 18:42:30 ---> Running in 54d24634b51f 18:42:30 Removing intermediate container 54d24634b51f 18:42:30 ---> dce0c1270a9b 18:42:30 Step 13/22 : RUN apk add --update --no-cache dumb-init 18:42:30 ---> Running in 7358729ec052 18:42:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 18:42:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 18:42:30 (1/1) Installing dumb-init (1.2.5-r2) 18:42:30 Executing busybox-1.35.0-r29.trigger 18:42:30 OK: 8 MiB in 16 packages 18:42:30 Removing intermediate container 7358729ec052 18:42:30 ---> 658f76842448 18:42:30 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 18:42:30 ---> 56ca690a4914 18:42:30 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 18:42:30 ---> 6327432240cc 18:42:30 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 18:42:30 ---> 4ae27e5c660f 18:42:30 Step 17/22 : EXPOSE 59901 18:42:30 ---> Running in 0edcb9a9a099 18:42:30 Removing intermediate container 0edcb9a9a099 18:42:30 ---> 2390567bbc66 18:42:30 Step 18/22 : ENTRYPOINT ["/device-modbus"] 18:42:30 ---> Running in 3071403dac14 18:42:30 Removing intermediate container 3071403dac14 18:42:30 ---> bdcb2ef80873 18:42:30 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 18:42:30 ---> Running in db97ae34cca8 18:42:30 Removing intermediate container db97ae34cca8 18:42:30 ---> 5d50d89dc9e2 18:42:30 Step 20/22 : LABEL arch=arm64 18:42:30 ---> Running in f3f0d4cf79aa 18:42:30 Removing intermediate container f3f0d4cf79aa 18:42:30 ---> 68c61114cf20 18:42:30 Step 21/22 : LABEL git_sha=b1bcc90fc06ffe5477ba6810065aa364ae99a552 18:42:30 ---> Running in 01e1d710bf4e 18:42:30 Removing intermediate container 01e1d710bf4e 18:42:30 ---> 38e92d6783f0 18:42:30 Step 22/22 : LABEL version=0.0.0 18:42:30 ---> Running in fd09f799cb21 18:42:30 Removing intermediate container fd09f799cb21 18:42:30 ---> 31c1d262e3fe 18:42:30 [Warning] One or more build-args [ARCH] were not consumed 18:42:30 Successfully built 31c1d262e3fe 18:42:30 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:42:31 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:42:31 18:42:31 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:42:31 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:42:31 arm64: Pulling from edgex-lftools-log-publisher 18:42:31 8998bd30e6a1: Pulling fs layer 18:42:31 04944245beec: Pulling fs layer 18:42:31 699f458cf7ca: Pulling fs layer 18:42:31 765212b225bb: Pulling fs layer 18:42:31 f23df028b6ca: Pulling fs layer 18:42:31 d65c8cfc05b1: Pulling fs layer 18:42:31 2437ff75d9bd: Pulling fs layer 18:42:31 f23df028b6ca: Waiting 18:42:31 d65c8cfc05b1: Waiting 18:42:31 2437ff75d9bd: Waiting 18:42:31 765212b225bb: Waiting 18:42:31 04944245beec: Verifying Checksum 18:42:31 04944245beec: Download complete 18:42:31 765212b225bb: Verifying Checksum 18:42:31 765212b225bb: Download complete 18:42:31 f23df028b6ca: Download complete 18:42:31 d65c8cfc05b1: Verifying Checksum 18:42:31 d65c8cfc05b1: Download complete 18:42:32 699f458cf7ca: Verifying Checksum 18:42:32 699f458cf7ca: Download complete 18:42:32 8998bd30e6a1: Download complete 18:42:35 2437ff75d9bd: Verifying Checksum 18:42:35 2437ff75d9bd: Download complete 18:42:37 8998bd30e6a1: Pull complete 18:42:37 04944245beec: Pull complete 18:42:38 699f458cf7ca: Pull complete 18:42:39 765212b225bb: Pull complete 18:42:40 f23df028b6ca: Pull complete 18:42:40 d65c8cfc05b1: Pull complete 18:42:55 2437ff75d9bd: Pull complete 18:42:55 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 18:42:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:42:55 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:42:55 prd-ubuntu20.04-docker-arm64-4c-16g-15917 does not seem to be running inside a container 18:42:55 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 18:42:58 $ docker top f1bb1e50131f2d354d7efcd45e0edee47db8a11bbadc726f04db8a98d9a6c9f1 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:42:59 ---> job-cost.sh 18:42:59 lf-activate-venv: SKIPPING 18:42:59 INFO: No Stack... 18:42:59 INFO: Retrieving Pricing Info for: v3-standard-4 18:43:00 INFO: Archiving Costs [Pipeline] sh 18:43:01 + cut -d, -f6 18:43:01 + cat /w/workspace/device-modbus-go/1/archives/cost.csv [Pipeline] lock 18:43:01 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-483-1-stack-cost] 18:43:01 Resource [jenkins-edgexfoundry-device-modbus-go-PR-483-1-stack-cost] did not exist. Created. 18:43:01 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-483-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 18:43:01 /w/workspace/device-modbus-go/1@tmp/durable-81b78a8c/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 18:43:02 + echo total: 0.10999999940395355 [Pipeline] stash 18:43:02 Warning: overwriting stash ‘stack-cost’ 18:43:02 Stashed 1 file(s) [Pipeline] } 18:43:02 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-483-1-stack-cost] [Pipeline] // lock [Pipeline] } 18:43:02 $ docker stop --time=1 f1bb1e50131f2d354d7efcd45e0edee47db8a11bbadc726f04db8a98d9a6c9f1 18:43:06 $ docker rm -f --volumes f1bb1e50131f2d354d7efcd45e0edee47db8a11bbadc726f04db8a98d9a6c9f1 [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:43:07 provisioning config files... 18:43:07 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-483@tmp/config3014074139826970065tmp [Pipeline] { [Pipeline] sh 18:43:08 + set +x 18:43:08 + bash -s -- 18:43:08 + curl -s https://codecov.io/bash 18:43:08 18:43:08 _____ _ 18:43:08 / ____| | | 18:43:08 | | ___ __| | ___ ___ _____ __ 18:43:08 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 18:43:08 | |___| (_) | (_| | __/ (_| (_) \ V / 18:43:08 \_____\___/ \__,_|\___|\___\___/ \_/ 18:43:08 Bash-1.0.6 18:43:08 18:43:08 18:43:08 ==> git version 2.25.1 found 18:43:08 ==> 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:43:08 Release-Date: 2020-01-08 18:43:08 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:43:08 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 18:43:08 ==> Jenkins CI detected. 18:43:08 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-483 18:43:08 project root: . 18:43:08 --> token set from env 18:43:08 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 18:43:08 ==> Running gcov in . (disable via -X gcov) 18:43:08 ==> Python coveragepy not found 18:43:08 ==> Searching for coverage reports in: 18:43:08 + . 18:43:08 -> Found 1 reports 18:43:08 ==> Detecting git/mercurial file structure 18:43:08 ==> Reading reports 18:43:08 + ./coverage.out bytes=24160 18:43:08 ==> Appending adjustments 18:43:08 https://docs.codecov.io/docs/fixing-reports 18:43:08 + Found adjustments 18:43:08 ==> Gzipping contents 18:43:08 4.0K /tmp/codecov.0YZAZB.gz 18:43:08 ==> Uploading reports 18:43:08 url: https://codecov.io 18:43:08 query: branch=PR-483&commit=b1bcc90fc06ffe5477ba6810065aa364ae99a552&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-483%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=483&job=&cmd_args= 18:43:08 -> Pinging Codecov 18:43:08 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-483&commit=b1bcc90fc06ffe5477ba6810065aa364ae99a552&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-483%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=483&job=&cmd_args= 18:43:08 -> Uploading to 18:43:08 https://storage.googleapis.com/codecov/v4/raw/2023-05-17/55DBCA73C666E3227836607328DD7E49/b1bcc90fc06ffe5477ba6810065aa364ae99a552/585fc89b-74ff-416c-a134-33e198a79f3a.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230517%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230517T184308Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=4c33fb5bab6c9a190914726d4e1f844c15be2a7f95f87474a9784289b3944b79 18:43:08 % Total % Received % Xferd Average Speed Time Time Time Current 18:43:08 Dload Upload Total Spent Left Speed 18:43:08 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3924 0 0 100 3924 0 21096 --:--:-- --:--:-- --:--:-- 20983 100 3924 0 0 100 3924 0 21096 --:--:-- --:--:-- --:--:-- 20983 18:43:08 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/b1bcc90fc06ffe5477ba6810065aa364ae99a552 [Pipeline] } 18:43:08 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:43:10 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-483/archives ] 18:43:10 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-483/archives 18:43:10 total 16 18:43:10 drwxr-xr-x 3 root root 4096 May 17 18:32 . 18:43:10 drwxrwxr-x 11 jenkins jenkins 4096 May 17 18:32 .. 18:43:10 drwxr-xr-x 2 root root 4096 May 17 18:32 cost 18:43:10 -rw-r--r-- 1 root root 88 May 17 18:32 cost.csv 18:43:10 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-483/archives 18:43:10 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-483/archives 18:43:10 total 16 18:43:10 drwxr-xr-x 3 jenkins jenkins 4096 May 17 18:32 . 18:43:10 drwxrwxr-x 11 jenkins jenkins 4096 May 17 18:32 .. 18:43:10 drwxr-xr-x 2 jenkins jenkins 4096 May 17 18:32 cost 18:43:10 -rw-r--r-- 1 jenkins jenkins 88 May 17 18:32 cost.csv [Pipeline] libraryResource [Pipeline] sh 18:43:10 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 18:43:11 ---> package-listing.sh 18:43:11 ++ facter osfamily 18:43:11 ++ tr '[:upper:]' '[:lower:]' 18:43:11 + OS_FAMILY=debian 18:43:11 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-483 18:43:11 + START_PACKAGES=/tmp/packages_start.txt 18:43:11 + END_PACKAGES=/tmp/packages_end.txt 18:43:11 + DIFF_PACKAGES=/tmp/packages_diff.txt 18:43:11 + PACKAGES=/tmp/packages_start.txt 18:43:11 + '[' /w/workspace/xfoundry_device-modbus-go_PR-483 ']' 18:43:11 + PACKAGES=/tmp/packages_end.txt 18:43:11 + case "${OS_FAMILY}" in 18:43:11 + dpkg -l 18:43:11 + grep '^ii' 18:43:11 + '[' -f /tmp/packages_start.txt ']' 18:43:11 + '[' -f /tmp/packages_end.txt ']' 18:43:11 + diff /tmp/packages_start.txt /tmp/packages_end.txt 18:43:11 + '[' /w/workspace/xfoundry_device-modbus-go_PR-483 ']' 18:43:11 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-483/archives/ 18:43:11 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-483/archives/ [Pipeline] echo 18:43:11 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-483/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 18:43:12 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:43:12 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:43:12 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:43:12 prd-ubuntu20.04-docker-8c-8g-15913 does not seem to be running inside a container 18:43:12 $ 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-483/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-483 -v /w/workspace/xfoundry_device-modbus-go_PR-483:/w/workspace/xfoundry_device-modbus-go_PR-483:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-483@tmp:/w/workspace/xfoundry_device-modbus-go_PR-483@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 18:43:13 $ docker top d781e0679a3a108bed3a9b76e9a0f0ba3f9d4d90b3da41a841c0b201a206edf2 -eo pid,comm [Pipeline] { [Pipeline] sh 18:43:13 + touch /tmp/pre-build-complete [Pipeline] sh 18:43:13 + mkdir -p /var/log/sysstat [Pipeline] sh 18:43:14 + ls /var/log/sa-host 18:43:14 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 18:43:14 provisioning config files... 18:43:14 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-483@tmp/config12862835580470643489tmp [Pipeline] { [Pipeline] echo 18:43:14 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 18:43:14 ---> create-netrc.sh [Pipeline] } 18:43:14 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 18:43:15 ---> python-tools-install.sh [Pipeline] echo 18:43:15 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 18:43:15 ---> sudo-logs.sh 18:43:15 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 18:43:15 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 18:43:16 ---> job-cost.sh 18:43:16 lf-activate-venv: SKIPPING 18:43:16 DEBUG: total: 0.2199999988079071 18:43:16 INFO: Retrieving Stack Cost... 18:43:16 INFO: Retrieving Pricing Info for: v3-standard-8 18:43:16 INFO: Archiving Costs [Pipeline] echo 18:43:16 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 18:43:17 ---> logs-deploy.sh 18:43:17 lf-activate-venv: SKIPPING 18:43:17 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-483/1 18:43:17 INFO: archiving workspace using pattern(s): 18:43:18 Archives upload complete. 18:43:18 INFO: archiving logs to Nexus