Pull request #434 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of weichou1229 for edgexfoundry/device-modbus-go Obtained Jenkinsfile from 46775bb9762b1738260e2eefac696f1a9833a740+d976059f8bfb405a00b06a9502768812e8b859e1 (462f75b2445e3483771f378557780f0be841fb6f) 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-ssh4271916073929329076.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 66200e8eedfc470904d6b329e562ec5b45423d6a 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-ssh6631896511613923727.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 66200e8eedfc470904d6b329e562ec5b45423d6a 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-434/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-434/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh14023436360552501833.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-434/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh829109366622030477.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 66200e8eedfc470904d6b329e562ec5b45423d6a (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 66200e8eedfc470904d6b329e562ec5b45423d6a # timeout=10 Commit message: "feat: add capability to use golang 1.20 (#427)" > 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-ssh209771560425301934.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-434/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-434/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh17923906277549945.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 66200e8eedfc470904d6b329e562ec5b45423d6a 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 Running on prd-ubuntu20.04-docker-8c-8g-4729 in /w/workspace/xfoundry_device-modbus-go_PR-434 [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-434 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit d976059f8bfb405a00b06a9502768812e8b859e1 into PR head commit 46775bb9762b1738260e2eefac696f1a9833a740 Merge succeeded, producing 46775bb9762b1738260e2eefac696f1a9833a740 Checking out Revision 46775bb9762b1738260e2eefac696f1a9833a740 (PR-434) > 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/434/head:refs/remotes/origin/PR-434 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 46775bb9762b1738260e2eefac696f1a9833a740 # 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 d976059f8bfb405a00b06a9502768812e8b859e1 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 46775bb9762b1738260e2eefac696f1a9833a740 # timeout=10 Commit message: "build(deps)!: bump sdk to 3.0.0-dev.54" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 05:22:29 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 05:22:30 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 05:22:30 ========================================================= 05:22:30 EdgeX Global Pipelines Version Info 05:22:30 ========================================================= [Pipeline] libraryResource [Pipeline] sh 05:22:30 ------------------- 05:22:30 stable info: 05:22:30 ------------------- 05:22:30 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 05:22:30 Commit SHA: 66200e8eedfc470904d6b329e562ec5b45423d6a 05:22:30 Message: update stable to v1.0.245 05:22:31 ------------------- 05:22:31 experimental info: 05:22:31 ------------------- 05:22:31 Commited By: **** collab-it+edgex@linuxfoundation.org 05:22:31 Commit SHA: eb5041bb0874f6b7cdca3e6793e1ef87c0289dce 05:22:31 Message: update experimental to v1.0.246 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 05:22:31 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 05:22:31 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 05:22:31 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 05:22:31 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 05:22:31 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 05:22:31 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 05:22:31 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-434 [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-434 [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-434 [Pipeline] echo 05:22:32 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 46775bb9762b1738260e2eefac696f1a9833a740 [Pipeline] echo 05:22:33 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 46775bb [Pipeline] echo 05:22:33 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:22:33 provisioning config files... 05:22:33 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-434@tmp/config15881208717002145696tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:22:33 ---> docker-login.sh 05:22:33 nexus3.edgexfoundry.org:10001 05:22:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:22:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:22:33 Configure a credential helper to remove this warning. See 05:22:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:22:33 05:22:33 Login Succeeded 05:22:34 nexus3.edgexfoundry.org:10002 05:22:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:22:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:22:34 Configure a credential helper to remove this warning. See 05:22:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:22:34 05:22:34 Login Succeeded 05:22:34 nexus3.edgexfoundry.org:10003 05:22:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:22:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:22:34 Configure a credential helper to remove this warning. See 05:22:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:22:34 05:22:34 Login Succeeded 05:22:34 nexus3.edgexfoundry.org:10004 05:22:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:22:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:22:34 Configure a credential helper to remove this warning. See 05:22:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:22:34 05:22:34 Login Succeeded 05:22:34 docker.io 05:22:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:22:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:22:34 Configure a credential helper to remove this warning. See 05:22:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:22:34 05:22:34 Login Succeeded 05:22:34 ---> docker-login.sh ends [Pipeline] } 05:22:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 05:22:35 + git rev-list -1 --merges 46775bb9762b1738260e2eefac696f1a9833a740~1..46775bb9762b1738260e2eefac696f1a9833a740 [Pipeline] echo 05:22:35 -----------> git rev-list -1 --merges 46775bb9762b1738260e2eefac696f1a9833a740~1..46775bb9762b1738260e2eefac696f1a9833a740 46775bb9762b1738260e2eefac696f1a9833a740 [false] [Pipeline] sh 05:22:35 + git log --format=format:%s -1 46775bb9762b1738260e2eefac696f1a9833a740 [Pipeline] echo 05:22:35 ========================================================= 05:22:35 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 05:22:35 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:22:36 + git log --format=format:%s -1 46775bb9762b1738260e2eefac696f1a9833a740 [Pipeline] echo 05:22:36 [semverPrep] GIT_COMMIT: 46775bb9762b1738260e2eefac696f1a9833a740, Commit Message: build(deps)!: bump sdk to 3.0.0-dev.54 [Pipeline] echo 05:22:36 [semverPrep] This is not a build commit. [Pipeline] sh 05:22:36 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 05:22:36 + grep -v github /etc/ssh/ssh_known_hosts 05:22:36 + [ -e /tmp/ssh_known_hosts ] 05:22:36 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 05:22:36 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 05:22:36 + sudo tee -a /etc/ssh/ssh_known_hosts 05:22:36 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:22:36 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:22:36 05:22:36 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:22:37 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:22:37 0.1.4: Pulling from edgex-devops/py-git-semver 05:22:37 b85a868b505f: Pulling fs layer 05:22:37 e2be974225ed: Pulling fs layer 05:22:37 339a4e72a1f5: Pulling fs layer 05:22:37 988bab9f4d93: Pulling fs layer 05:22:37 1469e6f7b9e6: Pulling fs layer 05:22:37 eaf3925da568: Pulling fs layer 05:22:37 bab4dde63d76: Pulling fs layer 05:22:37 bde34c3a00c8: Pulling fs layer 05:22:37 b352a97aabf1: Pulling fs layer 05:22:37 4872d77fe225: Pulling fs layer 05:22:37 5851b861e8e6: Pulling fs layer 05:22:37 bab4dde63d76: Waiting 05:22:37 4872d77fe225: Waiting 05:22:37 5851b861e8e6: Waiting 05:22:37 988bab9f4d93: Waiting 05:22:37 bde34c3a00c8: Waiting 05:22:37 1469e6f7b9e6: Waiting 05:22:37 b352a97aabf1: Waiting 05:22:37 eaf3925da568: Waiting 05:22:37 e2be974225ed: Verifying Checksum 05:22:37 e2be974225ed: Download complete 05:22:37 988bab9f4d93: Download complete 05:22:37 1469e6f7b9e6: Verifying Checksum 05:22:37 1469e6f7b9e6: Download complete 05:22:37 eaf3925da568: Verifying Checksum 05:22:37 eaf3925da568: Download complete 05:22:37 339a4e72a1f5: Verifying Checksum 05:22:37 339a4e72a1f5: Download complete 05:22:37 bde34c3a00c8: Verifying Checksum 05:22:37 bde34c3a00c8: Download complete 05:22:37 b352a97aabf1: Verifying Checksum 05:22:37 b352a97aabf1: Download complete 05:22:37 4872d77fe225: Verifying Checksum 05:22:37 4872d77fe225: Download complete 05:22:37 5851b861e8e6: Verifying Checksum 05:22:37 5851b861e8e6: Download complete 05:22:37 b85a868b505f: Verifying Checksum 05:22:37 b85a868b505f: Download complete 05:22:37 bab4dde63d76: Verifying Checksum 05:22:37 bab4dde63d76: Download complete 05:22:38 b85a868b505f: Pull complete 05:22:38 e2be974225ed: Pull complete 05:22:39 339a4e72a1f5: Pull complete 05:22:39 988bab9f4d93: Pull complete 05:22:39 1469e6f7b9e6: Pull complete 05:22:39 eaf3925da568: Pull complete 05:22:41 bab4dde63d76: Pull complete 05:22:41 bde34c3a00c8: Pull complete 05:22:41 b352a97aabf1: Pull complete 05:22:41 4872d77fe225: Pull complete 05:22:41 5851b861e8e6: Pull complete 05:22:41 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 05:22:41 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:22:41 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:22:41 prd-ubuntu20.04-docker-8c-8g-4729 does not seem to be running inside a container 05:22:41 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-434 -v /w/workspace/xfoundry_device-modbus-go_PR-434:/w/workspace/xfoundry_device-modbus-go_PR-434:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-434@tmp:/w/workspace/xfoundry_device-modbus-go_PR-434@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-devops/py-git-semver:0.1.4 cat 05:22:42 $ docker top e09c5f92c358714fee475fdbd5a42207d2650c86adbf7aaab374b2ed099c8454 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 05:22:43 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:22:43 [ssh-agent] Looking for ssh-agent implementation... 05:22:43 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:22:43 $ docker exec e09c5f92c358714fee475fdbd5a42207d2650c86adbf7aaab374b2ed099c8454 ssh-agent 05:22:43 SSH_AUTH_SOCK=/tmp/ssh-zwt4vG27qwK3/agent.32 05:22:43 SSH_AGENT_PID=38 05:22:43 Running ssh-add (command line suppressed) 05:22:43 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-434@tmp/private_key_48792042285227235.key (/w/workspace/xfoundry_device-modbus-go_PR-434@tmp/private_key_48792042285227235.key) 05:22:43 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:22:43 + git tag --points-at HEAD [Pipeline] } 05:22:43 $ docker exec --env ******** --env ******** e09c5f92c358714fee475fdbd5a42207d2650c86adbf7aaab374b2ed099c8454 ssh-agent -k 05:22:43 unset SSH_AUTH_SOCK; 05:22:43 unset SSH_AGENT_PID; 05:22:43 echo Agent pid 38 killed; 05:22:43 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 05:22:43 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:22:43 [ssh-agent] Looking for ssh-agent implementation... 05:22:44 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:22:44 $ docker exec e09c5f92c358714fee475fdbd5a42207d2650c86adbf7aaab374b2ed099c8454 ssh-agent 05:22:44 SSH_AUTH_SOCK=/tmp/ssh-k5K1UXfq80qd/agent.70 05:22:44 SSH_AGENT_PID=76 05:22:44 Running ssh-add (command line suppressed) 05:22:44 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-434@tmp/private_key_14439848646846456870.key (/w/workspace/xfoundry_device-modbus-go_PR-434@tmp/private_key_14439848646846456870.key) 05:22:44 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:22:44 + git semver init 05:22:44 2023-03-21 05:22:44,782 [run_init] DEBUG init version:0.0.0 force:False 05:22:44 2023-03-21 05:22:44,783 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-434/.semver 05:22:44 2023-03-21 05:22:44,783 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-434/.semver 05:22:44 2023-03-21 05:22:44,784 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-434/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-434, universal_newlines=False, shell=None, istream=None) 05:22:45 2023-03-21 05:22:45,508 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-434/.git/info/exclude 05:22:45 2023-03-21 05:22:45,508 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-434/.semver/PR-434 with force:False 05:22:45 2023-03-21 05:22:45,509 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-434/.semver/PR-434 05:22:45 2023-03-21 05:22:45,513 [execute] INFO git cat-file --batch-check 05:22:45 2023-03-21 05:22:45,513 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-434/.semver, universal_newlines=False, shell=None, istream=) 05:22:45 2023-03-21 05:22:45,520 [execute] INFO git cat-file --batch 05:22:45 2023-03-21 05:22:45,521 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-434/.semver, universal_newlines=False, shell=None, istream=) 05:22:45 2023-03-21 05:22:45,527 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-434/.semver/PR-434 05:22:45 0.0.0 [Pipeline] } 05:22:45 $ docker exec --env ******** --env ******** e09c5f92c358714fee475fdbd5a42207d2650c86adbf7aaab374b2ed099c8454 ssh-agent -k 05:22:45 unset SSH_AUTH_SOCK; 05:22:45 unset SSH_AGENT_PID; 05:22:45 echo Agent pid 76 killed; 05:22:45 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 05:22:46 + git semver [Pipeline] } 05:22:46 $ docker stop --time=1 e09c5f92c358714fee475fdbd5a42207d2650c86adbf7aaab374b2ed099c8454 05:22:47 $ docker rm -f --volumes e09c5f92c358714fee475fdbd5a42207d2650c86adbf7aaab374b2ed099c8454 [Pipeline] // withDockerContainer [Pipeline] sh 05:22:48 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 05:22:48 Stashed 1 file(s) [Pipeline] echo 05:22:48 [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 05:22:49 provisioning config files... 05:22:49 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-434@tmp/config780026641802625900tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:22:49 Running on prd-ubuntu20.04-docker-arm64-4c-16g-4735 in /w/workspace/xfoundry_device-modbus-go_PR-434 [Pipeline] { [Pipeline] ws 05:22:49 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 05:22:49 Selected Git installation does not exist. Using Default 05:22:49 The recommended git tool is: NONE 05:22:49 ---> docker-login.sh 05:22:49 nexus3.edgexfoundry.org:10001 05:22:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:22:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:22:49 Configure a credential helper to remove this warning. See 05:22:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:22:49 05:22:49 Login Succeeded 05:22:49 nexus3.edgexfoundry.org:10002 05:22:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:22:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:22:49 Configure a credential helper to remove this warning. See 05:22:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:22:49 05:22:49 Login Succeeded 05:22:49 nexus3.edgexfoundry.org:10003 05:22:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:22:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:22:49 Configure a credential helper to remove this warning. See 05:22:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:22:49 05:22:49 Login Succeeded 05:22:49 nexus3.edgexfoundry.org:10004 05:22:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:22:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:22:49 Configure a credential helper to remove this warning. See 05:22:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:22:49 05:22:49 Login Succeeded 05:22:49 docker.io 05:22:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:22:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:22:50 Configure a credential helper to remove this warning. See 05:22:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:22:50 05:22:50 Login Succeeded 05:22:50 ---> docker-login.sh ends [Pipeline] } 05:22:50 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:22:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:22:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:22:50 ========================================================= 05:22:50 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 05:22:50 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:22:50 + 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 . 05:22:50 Sending build context to Docker daemon 6.396MB 05:22:50 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 05:22:50 Step 2/10 : FROM ${BASE} AS builder 05:22:50 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 05:22:50 63b65145d645: Pulling fs layer 05:22:50 a2d21d5440eb: Pulling fs layer 05:22:50 935e6c44a52c: Pulling fs layer 05:22:50 94cc34f8dd06: Pulling fs layer 05:22:50 30dea6a524f1: Pulling fs layer 05:22:50 a2aff8979fd8: Pulling fs layer 05:22:50 6808be2612f2: Pulling fs layer 05:22:50 f25807f1079a: Pulling fs layer 05:22:50 a2aff8979fd8: Waiting 05:22:50 6808be2612f2: Waiting 05:22:50 94cc34f8dd06: Waiting 05:22:50 30dea6a524f1: Waiting 05:22:50 a2d21d5440eb: Download complete 05:22:50 94cc34f8dd06: Verifying Checksum 05:22:50 94cc34f8dd06: Download complete 05:22:50 30dea6a524f1: Download complete 05:22:51 63b65145d645: Verifying Checksum 05:22:51 63b65145d645: Download complete 05:22:51 a2aff8979fd8: Verifying Checksum 05:22:51 a2aff8979fd8: Download complete 05:22:51 63b65145d645: Pull complete 05:22:51 a2d21d5440eb: Pull complete 05:22:51 f25807f1079a: Verifying Checksum 05:22:51 f25807f1079a: Download complete 05:22:51 935e6c44a52c: Verifying Checksum 05:22:51 935e6c44a52c: Download complete 05:22:51 6808be2612f2: Verifying Checksum 05:22:51 6808be2612f2: Download complete 05:22:54 using credential edgex-jenkins-ssh 05:22:54 Cloning the remote Git repository 05:22:55 935e6c44a52c: Pull complete 05:22:55 94cc34f8dd06: Pull complete 05:22:55 30dea6a524f1: Pull complete 05:22:55 a2aff8979fd8: Pull complete 05:22:54 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 05:22:54 > git init /w/workspace/device-modbus-go/1 # timeout=10 05:22:54 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:22:54 > git --version # timeout=10 05:22:54 > git --version # 'git version 2.25.1' 05:22:54 using GIT_SSH to set credentials SSH Credentials for GitHub 05:22:55 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 05:22:56 6808be2612f2: Pull complete 05:22:56 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:22:56 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 05:22:57 f25807f1079a: Pull complete 05:22:57 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 05:22:57 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 05:22:57 ---> 3b553350e43f 05:22:57 Step 3/10 : ARG ADD_BUILD_TAGS="" 05:22:57 Merging remotes/origin/main commit d976059f8bfb405a00b06a9502768812e8b859e1 into PR head commit 46775bb9762b1738260e2eefac696f1a9833a740 05:22:58 Merge succeeded, producing 46775bb9762b1738260e2eefac696f1a9833a740 05:22:58 Checking out Revision 46775bb9762b1738260e2eefac696f1a9833a740 (PR-434) 05:22:57 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:22:57 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:22:57 using GIT_SSH to set credentials SSH Credentials for GitHub 05:22:57 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/434/head:refs/remotes/origin/PR-434 +refs/heads/main:refs/remotes/origin/main # timeout=10 05:22:57 > git config core.sparsecheckout # timeout=10 05:22:57 > git checkout -f 46775bb9762b1738260e2eefac696f1a9833a740 # timeout=10 05:22:57 > git remote # timeout=10 05:22:57 > git config --get remote.origin.url # timeout=10 05:22:58 using GIT_SSH to set credentials SSH Credentials for GitHub 05:22:58 > git merge d976059f8bfb405a00b06a9502768812e8b859e1 # timeout=10 05:22:58 > git rev-parse HEAD^{commit} # timeout=10 05:22:58 > git config core.sparsecheckout # timeout=10 05:22:58 > git checkout -f 46775bb9762b1738260e2eefac696f1a9833a740 # timeout=10 05:22:58 ---> Running in 69245bd399f7 05:22:58 Removing intermediate container 69245bd399f7 05:22:58 ---> f9f0a6dba8e6 05:22:58 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:22:58 ---> Running in d99fd26bf1d9 05:22:58 Removing intermediate container d99fd26bf1d9 05:22:58 ---> a09fcb10580f 05:22:58 Step 5/10 : RUN apk add --update --no-cache make git openssh 05:22:58 ---> Running in 49400beee6c2 05:22:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 05:22:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 05:22:59 (1/8) Installing openssh-keygen (9.1_p1-r2) 05:22:59 (2/8) Installing libedit (20221030.3.1-r0) 05:22:59 (3/8) Installing openssh-client-common (9.1_p1-r2) 05:22:59 (4/8) Installing openssh-client-default (9.1_p1-r2) 05:22:59 (5/8) Installing openssh-sftp-server (9.1_p1-r2) 05:22:59 (6/8) Installing openssh-server-common (9.1_p1-r2) 05:22:59 (7/8) Installing openssh-server (9.1_p1-r2) 05:22:59 (8/8) Installing openssh (9.1_p1-r2) 05:22:59 Executing busybox-1.35.0-r29.trigger 05:22:59 OK: 270 MiB in 61 packages 05:22:59 Removing intermediate container 49400beee6c2 05:22:59 ---> 119863877de9 05:22:59 Step 6/10 : WORKDIR /device-modbus-go 05:22:59 ---> Running in 2ba3ef30f34c 05:23:00 Removing intermediate container 2ba3ef30f34c 05:23:00 ---> ce829cb85070 05:23:00 Step 7/10 : COPY go.mod vendor* ./ 05:23:00 ---> 14caccf42025 05:23:00 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:23:00 ---> Running in 8a3b4fb92a4e 05:23:01 Commit message: "build(deps)!: bump sdk to 3.0.0-dev.54" 05:23:01 > git --version # timeout=10 05:23:01 > git --version # 'git version 2.25.1' 05:23:01 fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:23:02 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 05:23:02 % Total % Received % Xferd Average Speed Time Time Time Current 05:23:02 Dload Upload Total Spent Left Speed 05:23:02 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 74133 0 --:--:-- --:--:-- --:--:-- 74567 [Pipeline] sh 05:23:03 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 05:23:03 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 05:23:03 + sudo tee /etc/docker/daemon.new 05:23:03 { 05:23:03 "registry-mirrors": [ 05:23:03 "https://nexus3.edgexfoundry.org:10001" 05:23:03 ], 05:23:03 "bip": "10.250.0.254/24", 05:23:03 "hosts": [ 05:23:03 "tcp://0.0.0.0:5555", 05:23:03 "unix:///var/run/docker.sock" 05:23:03 ], 05:23:03 "mtu": 1458, 05:23:03 "selinux-enabled": true, 05:23:03 "seccomp-profile": "/etc/docker/seccomp.json" 05:23:03 } [Pipeline] sh 05:23:04 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 05:23:04 + sudo service docker restart 05:23:18 Removing intermediate container 8a3b4fb92a4e 05:23:18 ---> 00a1004a9342 05:23:18 Step 9/10 : COPY . . 05:23:18 ---> e099137edea2 05:23:18 Step 10/10 : RUN ${MAKE} 05:23:18 ---> Running in ee854ad10266 05:23:18 noop 05:23:18 Removing intermediate container ee854ad10266 05:23:18 ---> 7cab9f0123c7 05:23:18 Successfully built 7cab9f0123c7 05:23:18 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:23:19 + docker inspect -f . ci-base-image-x86_64 05:23:19 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:23:19 prd-ubuntu20.04-docker-8c-8g-4729 does not seem to be running inside a container 05:23:19 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-434 -v /w/workspace/xfoundry_device-modbus-go_PR-434:/w/workspace/xfoundry_device-modbus-go_PR-434:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-434@tmp:/w/workspace/xfoundry_device-modbus-go_PR-434@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:23:19 $ docker top 4e8ad7c5e26a68dd563cfce51be4e503f04cfbe501a6dd479c961b6de59dd3c0 -eo pid,comm [Pipeline] { [Pipeline] sh 05:23:20 + go version 05:23:20 go version go1.20.2 linux/amd64 [Pipeline] } 05:23:20 $ docker stop --time=1 4e8ad7c5e26a68dd563cfce51be4e503f04cfbe501a6dd479c961b6de59dd3c0 05:23:21 $ docker rm -f --volumes 4e8ad7c5e26a68dd563cfce51be4e503f04cfbe501a6dd479c961b6de59dd3c0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:23:22 + docker inspect -f . ci-base-image-x86_64 05:23:22 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:23:22 prd-ubuntu20.04-docker-8c-8g-4729 does not seem to be running inside a container 05:23:22 $ 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-434 -v /w/workspace/xfoundry_device-modbus-go_PR-434:/w/workspace/xfoundry_device-modbus-go_PR-434:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-434@tmp:/w/workspace/xfoundry_device-modbus-go_PR-434@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:23:22 $ docker top 1dcc334dd0a23520851a47aff34c35eec6c5080149f6c986c0ab0200636cfb0a -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sh [Pipeline] configFileProvider 05:23:22 provisioning config files... 05:23:22 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config598121128015439818tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:23:23 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-434 [Pipeline] fileExists [Pipeline] sh 05:23:23 ---> docker-login.sh 05:23:23 nexus3.edgexfoundry.org:10001 05:23:23 + make test 05:23:23 go test ./... -coverprofile=coverage.out 05:23:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:23:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:23:23 Configure a credential helper to remove this warning. See 05:23:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:23:23 05:23:23 Login Succeeded 05:23:23 nexus3.edgexfoundry.org:10002 05:23:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:23:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:23:24 Configure a credential helper to remove this warning. See 05:23:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:23:24 05:23:24 Login Succeeded 05:23:24 nexus3.edgexfoundry.org:10003 05:23:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:23:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:23:24 Configure a credential helper to remove this warning. See 05:23:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:23:24 05:23:24 Login Succeeded 05:23:24 nexus3.edgexfoundry.org:10004 05:23:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:23:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:23:24 Configure a credential helper to remove this warning. See 05:23:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:23:24 05:23:24 Login Succeeded 05:23:24 docker.io 05:23:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:23:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:23:25 Configure a credential helper to remove this warning. See 05:23:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:23:25 05:23:25 Login Succeeded 05:23:25 ---> docker-login.sh ends [Pipeline] } 05:23:25 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:23:25 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:23:26 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:23:26 ========================================================= 05:23:26 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 05:23:26 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:23:26 + 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 . 05:23:26 Sending build context to Docker daemon 3.351MB 05:23:26 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 05:23:26 Step 2/10 : FROM ${BASE} AS builder 05:23:27 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 05:23:27 af6eaf76a39c: Pulling fs layer 05:23:27 55522c791124: Pulling fs layer 05:23:27 ce5c4a1c91eb: Pulling fs layer 05:23:27 169dfbe0d373: Pulling fs layer 05:23:27 e1ff8fa3b103: Pulling fs layer 05:23:27 52ebb69f0ebf: Pulling fs layer 05:23:27 5abe8eddf0d5: Pulling fs layer 05:23:27 169dfbe0d373: Waiting 05:23:27 e1ff8fa3b103: Waiting 05:23:27 52ebb69f0ebf: Waiting 05:23:27 5abe8eddf0d5: Waiting 05:23:27 55522c791124: Verifying Checksum 05:23:27 55522c791124: Download complete 05:23:27 169dfbe0d373: Download complete 05:23:27 e1ff8fa3b103: Verifying Checksum 05:23:27 e1ff8fa3b103: Download complete 05:23:27 af6eaf76a39c: Download complete 05:23:28 af6eaf76a39c: Pull complete 05:23:28 5abe8eddf0d5: Verifying Checksum 05:23:28 5abe8eddf0d5: Download complete 05:23:28 55522c791124: Pull complete 05:23:28 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:23:29 52ebb69f0ebf: Verifying Checksum 05:23:29 52ebb69f0ebf: Download complete 05:23:29 ce5c4a1c91eb: Verifying Checksum 05:23:29 ce5c4a1c91eb: Download complete 05:23:38 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:23:38 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.014s coverage: 48.0% of statements 05:23:41 ce5c4a1c91eb: Pull complete 05:23:41 169dfbe0d373: Pull complete 05:23:41 e1ff8fa3b103: Pull complete 05:23:42 go vet ./... 05:23:46 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:23:46 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:23:46 ./bin/test-attribution-txt.sh [Pipeline] echo 05:23:46 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:23:46 $ docker stop --time=1 1dcc334dd0a23520851a47aff34c35eec6c5080149f6c986c0ab0200636cfb0a 05:23:47 52ebb69f0ebf: Pull complete 05:23:48 $ docker rm -f --volumes 1dcc334dd0a23520851a47aff34c35eec6c5080149f6c986c0ab0200636cfb0a [Pipeline] // withDockerContainer [Pipeline] sh 05:23:48 5abe8eddf0d5: Pull complete 05:23:48 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 05:23:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 05:23:48 ---> 6cb57ee374ae 05:23:48 Step 3/10 : ARG ADD_BUILD_TAGS="" 05:23:48 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:23:48 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 05:23:49 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:23:49 + ls -al . 05:23:49 total 180 05:23:49 drwxrwxr-x 10 jenkins jenkins 4096 Mar 21 05:23 . 05:23:49 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 05:22 .. 05:23:49 -rw-rw-r-- 1 jenkins jenkins 140 Mar 21 05:22 .dockerignore 05:23:49 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 05:22 .git 05:23:49 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 05:22 .github 05:23:49 -rw-rw-r-- 1 jenkins jenkins 331 Mar 21 05:22 .gitignore 05:23:49 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 05:22 .golangci.yml 05:23:49 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 05:22 .semver 05:23:49 -rw-rw-r-- 1 jenkins jenkins 10236 Mar 21 05:22 Attribution.txt 05:23:49 -rw-rw-r-- 1 jenkins jenkins 11576 Mar 21 05:22 CHANGELOG.md 05:23:49 -rw-rw-r-- 1 jenkins jenkins 1365 Mar 21 05:22 Dockerfile 05:23:49 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 05:22 GOVERNANCE.md 05:23:49 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 05:22 Jenkinsfile 05:23:49 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 05:22 LICENSE 05:23:49 -rw-rw-r-- 1 jenkins jenkins 1705 Mar 21 05:22 Makefile 05:23:49 -rw-rw-r-- 1 jenkins jenkins 622 Mar 21 05:22 OWNERS.md 05:23:49 -rw-rw-r-- 1 jenkins jenkins 4061 Mar 21 05:22 README.md 05:23:49 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 05:22 VERSION 05:23:49 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 05:22 bin 05:23:49 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 05:22 cmd 05:23:49 -rw-r--r-- 1 jenkins jenkins 23736 Mar 21 05:23 coverage.out 05:23:49 -rw-rw-r-- 1 jenkins jenkins 3497 Mar 21 05:22 go.mod 05:23:49 -rw-rw-r-- 1 jenkins jenkins 31641 Mar 21 05:22 go.sum 05:23:49 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 05:22 internal 05:23:49 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 05:22 simulator 05:23:49 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 05:22 snap 05:23:49 -rw-rw-r-- 1 jenkins jenkins 229 Mar 21 05:22 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:23:50 + 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=46775bb9762b1738260e2eefac696f1a9833a740 --label arch=amd64 --label version=0.0.0 . 05:23:50 Sending build context to Docker daemon 6.421MB 05:23:50 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 05:23:50 Step 2/22 : FROM ${BASE} AS builder 05:23:50 ---> 7cab9f0123c7 05:23:50 Step 3/22 : ARG ADD_BUILD_TAGS="" 05:23:50 ---> Running in 5797a05c41df 05:23:50 Removing intermediate container 5797a05c41df 05:23:50 ---> c3f051890517 05:23:50 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:23:50 ---> Running in 9c4b2da48fa2 05:23:50 Removing intermediate container 9c4b2da48fa2 05:23:50 ---> 218ce5fb03f4 05:23:50 Step 5/22 : RUN apk add --update --no-cache make git openssh 05:23:50 ---> Running in 0ab54486d20a 05:23:50 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 05:23:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 05:23:51 OK: 270 MiB in 61 packages 05:23:51 Removing intermediate container 0ab54486d20a 05:23:51 ---> 23459b193956 05:23:51 Step 6/22 : WORKDIR /device-modbus-go 05:23:51 ---> Running in 52be28343c77 05:23:51 Removing intermediate container 52be28343c77 05:23:51 ---> 94afd39054a5 05:23:51 Step 7/22 : COPY go.mod vendor* ./ 05:23:51 ---> 4e59caadf6bf 05:23:51 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:23:51 ---> Running in 44e7d7fcfd3a 05:23:52 Removing intermediate container 44e7d7fcfd3a 05:23:52 ---> e6626fc63f82 05:23:52 Step 9/22 : COPY . . 05:23:53 ---> b49c71f342f8 05:23:53 Step 10/22 : RUN ${MAKE} 05:23:53 ---> Running in c7d0220be55f 05:23: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 05:23:54 ---> Running in a9d4cce14b47 05:23:54 Removing intermediate container a9d4cce14b47 05:23:54 ---> f71313ea4676 05:23:54 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:23:54 ---> Running in e46512970148 05:23:54 Removing intermediate container e46512970148 05:23:54 ---> 1b857c0bb5e1 05:23:54 Step 5/10 : RUN apk add --update --no-cache make git openssh 05:23:54 ---> Running in d5dd4f276786 05:23:55 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 05:23:56 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 05:23:57 (1/8) Installing openssh-keygen (9.1_p1-r2) 05:23:57 (2/8) Installing libedit (20221030.3.1-r0) 05:23:57 (3/8) Installing openssh-client-common (9.1_p1-r2) 05:23:57 (4/8) Installing openssh-client-default (9.1_p1-r2) 05:23:57 (5/8) Installing openssh-sftp-server (9.1_p1-r2) 05:23:57 (6/8) Installing openssh-server-common (9.1_p1-r2) 05:23:57 (7/8) Installing openssh-server (9.1_p1-r2) 05:23:57 (8/8) Installing openssh (9.1_p1-r2) 05:23:57 Executing busybox-1.35.0-r29.trigger 05:23:57 OK: 270 MiB in 61 packages 05:23:58 Removing intermediate container d5dd4f276786 05:23:58 ---> 4329ac6ebc1b 05:23:58 Step 6/10 : WORKDIR /device-modbus-go 05:23:58 ---> Running in 40f094088eb7 05:23:58 Removing intermediate container 40f094088eb7 05:23:58 ---> 42a22b03f86d 05:23:58 Step 7/10 : COPY go.mod vendor* ./ 05:23:59 ---> 4aed5b75c762 05:23:59 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:23:59 ---> Running in cfeb0de42ad3 05:24:11 Removing intermediate container c7d0220be55f 05:24:11 ---> c6dc6b035bea 05:24:11 Step 11/22 : FROM alpine:3.17 05:24:11 3.17: Pulling from library/alpine 05:24:11 63b65145d645: Already exists 05:24:11 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 05:24:11 Status: Downloaded newer image for alpine:3.17 05:24:11 ---> b2aa39c304c2 05:24:11 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:24:11 ---> Running in bf4d1c9a449a 05:24:11 Removing intermediate container bf4d1c9a449a 05:24:11 ---> 41b5794efa34 05:24:11 Step 13/22 : RUN apk add --update --no-cache dumb-init 05:24:11 ---> Running in 779687a18845 05:24:11 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 05:24:11 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 05:24:11 (1/1) Installing dumb-init (1.2.5-r2) 05:24:11 Executing busybox-1.35.0-r29.trigger 05:24:11 OK: 7 MiB in 16 packages 05:24:11 Removing intermediate container 779687a18845 05:24:11 ---> 4acf3c9d55d4 05:24:11 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 05:24:11 ---> 37f01459bca9 05:24:11 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 05:24:11 ---> 92fd2aab81a7 05:24:11 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:24:11 ---> 53820bf6a978 05:24:11 Step 17/22 : EXPOSE 59901 05:24:11 ---> Running in dbc51896b7f3 05:24:11 Removing intermediate container dbc51896b7f3 05:24:11 ---> 119e829266d3 05:24:11 Step 18/22 : ENTRYPOINT ["/device-modbus"] 05:24:11 ---> Running in 9f206e3177d4 05:24:11 Removing intermediate container 9f206e3177d4 05:24:11 ---> e0362f6665b9 05:24:11 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:24:11 ---> Running in d8b5745efcd8 05:24:12 Removing intermediate container d8b5745efcd8 05:24:12 ---> caaac43861c3 05:24:12 Step 20/22 : LABEL arch=amd64 05:24:12 ---> Running in d7b2b442c57d 05:24:12 Removing intermediate container d7b2b442c57d 05:24:12 ---> 5eb3c5a4ce55 05:24:12 Step 21/22 : LABEL git_sha=46775bb9762b1738260e2eefac696f1a9833a740 05:24:12 ---> Running in 129407190e8d 05:24:12 Removing intermediate container 129407190e8d 05:24:12 ---> 3c03fc878151 05:24:12 Step 22/22 : LABEL version=0.0.0 05:24:12 ---> Running in 570736ed5e9b 05:24:12 Removing intermediate container 570736ed5e9b 05:24:12 ---> 4308dafefcbc 05:24:12 [Warning] One or more build-args [ARCH] were not consumed 05:24:12 Successfully built 4308dafefcbc 05:24:12 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 05:24:13 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:24:13 05:24:13 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:24:13 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:24:13 latest: Pulling from edgex-lftools-log-publisher 05:24:13 5eb5b503b376: Pulling fs layer 05:24:13 5c69ac0246d0: Pulling fs layer 05:24:13 ec43610c2a17: Pulling fs layer 05:24:13 3a2ae6a8a46f: Pulling fs layer 05:24:13 33b1e0a273af: Pulling fs layer 05:24:13 5d3b04190fa2: Pulling fs layer 05:24:13 2f39f015ded8: Pulling fs layer 05:24:13 5d3b04190fa2: Waiting 05:24:13 3a2ae6a8a46f: Waiting 05:24:13 2f39f015ded8: Waiting 05:24:13 33b1e0a273af: Waiting 05:24:13 5c69ac0246d0: Download complete 05:24:13 3a2ae6a8a46f: Download complete 05:24:13 33b1e0a273af: Verifying Checksum 05:24:13 33b1e0a273af: Download complete 05:24:14 5d3b04190fa2: Verifying Checksum 05:24:14 5d3b04190fa2: Download complete 05:24:14 ec43610c2a17: Download complete 05:24:14 5eb5b503b376: Verifying Checksum 05:24:14 5eb5b503b376: Download complete 05:24:14 2f39f015ded8: Download complete 05:24:15 5eb5b503b376: Pull complete 05:24:15 5c69ac0246d0: Pull complete 05:24:15 ec43610c2a17: Pull complete 05:24:15 3a2ae6a8a46f: Pull complete 05:24:16 33b1e0a273af: Pull complete 05:24:16 5d3b04190fa2: Pull complete 05:24:20 2f39f015ded8: Pull complete 05:24:20 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 05:24:20 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:24:20 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:24:20 prd-ubuntu20.04-docker-8c-8g-4729 does not seem to be running inside a container 05:24:20 $ 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-434 -v /w/workspace/xfoundry_device-modbus-go_PR-434:/w/workspace/xfoundry_device-modbus-go_PR-434:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-434@tmp:/w/workspace/xfoundry_device-modbus-go_PR-434@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:24:22 $ docker top e1b3e9d23b06a7d3e237444e55c9bd569c28cae8333f193ed3f73f971eefae62 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:24:22 ---> job-cost.sh 05:24:22 lf-activate-venv: SKIPPING 05:24:22 INFO: No Stack... 05:24:22 INFO: Retrieving Pricing Info for: v3-standard-8 05:24:23 INFO: Archiving Costs [Pipeline] sh 05:24:23 + cat /w/workspace/xfoundry_device-modbus-go_PR-434/archives/cost.csv 05:24:23 + cut -d, -f6 [Pipeline] lock 05:24:23 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-434-1-stack-cost] 05:24:23 Resource [jenkins-edgexfoundry-device-modbus-go-PR-434-1-stack-cost] did not exist. Created. 05:24:23 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-434-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:24:24 + echo total: 0.2199999988079071 [Pipeline] stash 05:24:24 Stashed 1 file(s) [Pipeline] } 05:24:24 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-434-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:24:24 $ docker stop --time=1 e1b3e9d23b06a7d3e237444e55c9bd569c28cae8333f193ed3f73f971eefae62 05:24:25 $ docker rm -f --volumes e1b3e9d23b06a7d3e237444e55c9bd569c28cae8333f193ed3f73f971eefae62 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 05:25:06 Removing intermediate container cfeb0de42ad3 05:25:06 ---> 8c681137efbe 05:25:06 Step 9/10 : COPY . . 05:25:06 ---> 413ca96a574c 05:25:06 Step 10/10 : RUN ${MAKE} 05:25:06 ---> Running in f491072443e8 05:25:06 noop 05:25:06 Removing intermediate container f491072443e8 05:25:06 ---> ce94a58e6d01 05:25:06 Successfully built ce94a58e6d01 05:25:06 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:25:07 + docker inspect -f . ci-base-image-arm64 05:25:07 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:25:07 prd-ubuntu20.04-docker-arm64-4c-16g-4735 does not seem to be running inside a container 05:25:07 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:25:08 $ docker top 8949ff265d61dbaf87c31f98d521e40cbbd4278b2d883e7421d304941136c424 -eo pid,comm [Pipeline] { [Pipeline] sh 05:25:09 + go version 05:25:09 go version go1.20.2 linux/arm64 [Pipeline] } 05:25:09 $ docker stop --time=1 8949ff265d61dbaf87c31f98d521e40cbbd4278b2d883e7421d304941136c424 05:25:11 $ docker rm -f --volumes 8949ff265d61dbaf87c31f98d521e40cbbd4278b2d883e7421d304941136c424 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:25:12 + docker inspect -f . ci-base-image-arm64 05:25:12 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:25:12 prd-ubuntu20.04-docker-arm64-4c-16g-4735 does not seem to be running inside a container 05:25: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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:25:13 $ docker top ae6998c8037bb92b2f00d4e85d290168b38f38c6eb018c42872c0b2238d67d16 -eo pid,comm [Pipeline] { [Pipeline] sh 05:25:13 + git config --global --add safe.directory /w/workspace/device-modbus-go/1 [Pipeline] fileExists [Pipeline] sh 05:25:14 + make test 05:25:14 go test ./... -coverprofile=coverage.out 05:25:46 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:27:38 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:27:38 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.067s coverage: 48.0% of statements 05:27:38 WARNING: Linting skipped (not on x86_64 or linter not installed) 05:27:38 go vet ./... 05:27:53 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:27:53 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:27:53 ./bin/test-attribution-txt.sh [Pipeline] echo 05:27:54 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:27:54 $ docker stop --time=1 ae6998c8037bb92b2f00d4e85d290168b38f38c6eb018c42872c0b2238d67d16 05:27:55 $ docker rm -f --volumes ae6998c8037bb92b2f00d4e85d290168b38f38c6eb018c42872c0b2238d67d16 [Pipeline] // withDockerContainer [Pipeline] sh 05:27:56 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:27:57 Warning: overwriting stash ‘coverage-report’ 05:27:57 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 05:27:58 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:27:58 + ls -al . 05:27:58 total 176 05:27:58 drwxrwxr-x 9 jenkins jenkins 4096 Mar 21 05:25 . 05:27:58 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 05:22 .. 05:27:58 -rw-rw-r-- 1 jenkins jenkins 140 Mar 21 05:22 .dockerignore 05:27:58 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 05:22 .git 05:27:58 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 05:22 .github 05:27:58 -rw-rw-r-- 1 jenkins jenkins 331 Mar 21 05:22 .gitignore 05:27:58 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 05:22 .golangci.yml 05:27:58 -rw-rw-r-- 1 jenkins jenkins 10236 Mar 21 05:22 Attribution.txt 05:27:58 -rw-rw-r-- 1 jenkins jenkins 11576 Mar 21 05:22 CHANGELOG.md 05:27:58 -rw-rw-r-- 1 jenkins jenkins 1365 Mar 21 05:22 Dockerfile 05:27:58 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 05:22 GOVERNANCE.md 05:27:58 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 05:22 Jenkinsfile 05:27:58 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 05:22 LICENSE 05:27:58 -rw-rw-r-- 1 jenkins jenkins 1705 Mar 21 05:22 Makefile 05:27:58 -rw-rw-r-- 1 jenkins jenkins 622 Mar 21 05:22 OWNERS.md 05:27:58 -rw-rw-r-- 1 jenkins jenkins 4061 Mar 21 05:22 README.md 05:27:58 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 05:22 VERSION 05:27:58 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 05:22 bin 05:27:58 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 05:22 cmd 05:27:58 -rw-r--r-- 1 jenkins jenkins 23736 Mar 21 05:27 coverage.out 05:27:58 -rw-rw-r-- 1 jenkins jenkins 3497 Mar 21 05:22 go.mod 05:27:58 -rw-rw-r-- 1 jenkins jenkins 31641 Mar 21 05:22 go.sum 05:27:58 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 05:22 internal 05:27:58 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 05:22 simulator 05:27:58 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 05:22 snap 05:27:58 -rw-rw-r-- 1 jenkins jenkins 229 Mar 21 05:22 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:27:58 + 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=46775bb9762b1738260e2eefac696f1a9833a740 --label arch=arm64 --label version=0.0.0 . 05:27:59 Sending build context to Docker daemon 3.375MB 05:27:59 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 05:27:59 Step 2/22 : FROM ${BASE} AS builder 05:27:59 ---> ce94a58e6d01 05:27:59 Step 3/22 : ARG ADD_BUILD_TAGS="" 05:27:59 ---> Running in c6680f5beb7e 05:27:59 Removing intermediate container c6680f5beb7e 05:27:59 ---> 7b7d27ae54f4 05:27:59 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:27:59 ---> Running in a0785747f58f 05:27:59 Removing intermediate container a0785747f58f 05:27:59 ---> 1abd80f6f2b3 05:27:59 Step 5/22 : RUN apk add --update --no-cache make git openssh 05:27:59 ---> Running in 851cdd8a84e0 05:28:00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 05:28:01 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 05:28:02 OK: 270 MiB in 61 packages 05:28:03 Removing intermediate container 851cdd8a84e0 05:28:03 ---> 9626c3ccd84f 05:28:03 Step 6/22 : WORKDIR /device-modbus-go 05:28:03 ---> Running in bef4110c907a 05:28:03 Removing intermediate container bef4110c907a 05:28:03 ---> 1a93cb3f8676 05:28:03 Step 7/22 : COPY go.mod vendor* ./ 05:28:03 ---> 8220c95829e2 05:28:03 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:28:03 ---> Running in 80c902a6f060 05:28:07 Removing intermediate container 80c902a6f060 05:28:07 ---> 2dd53c8ecb72 05:28:07 Step 9/22 : COPY . . 05:28:07 ---> 1bdbde4477dc 05:28:07 Step 10/22 : RUN ${MAKE} 05:28:07 ---> Running in 752812190a67 05:28:08 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 05:30:30 Removing intermediate container 752812190a67 05:30:30 ---> 6dafba526dd1 05:30:30 Step 11/22 : FROM alpine:3.17 05:30:30 3.17: Pulling from library/alpine 05:30:30 af6eaf76a39c: Already exists 05:30:30 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 05:30:30 Status: Downloaded newer image for alpine:3.17 05:30:30 ---> d74e625d9115 05:30:30 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:30:30 ---> Running in 0fe7b8fe17f3 05:30:30 Removing intermediate container 0fe7b8fe17f3 05:30:30 ---> c0d442ededb9 05:30:30 Step 13/22 : RUN apk add --update --no-cache dumb-init 05:30:30 ---> Running in e72fdc357052 05:30:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 05:30:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 05:30:30 (1/1) Installing dumb-init (1.2.5-r2) 05:30:30 Executing busybox-1.35.0-r29.trigger 05:30:30 OK: 8 MiB in 16 packages 05:30:30 Removing intermediate container e72fdc357052 05:30:30 ---> e1397b727f82 05:30:30 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 05:30:30 ---> 6763a7ef8b49 05:30:30 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 05:30:30 ---> 4a805315b854 05:30:30 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:30:30 ---> 1d438222169f 05:30:30 Step 17/22 : EXPOSE 59901 05:30:30 ---> Running in 8936c5e1f00a 05:30:30 Removing intermediate container 8936c5e1f00a 05:30:30 ---> afd0166305fb 05:30:30 Step 18/22 : ENTRYPOINT ["/device-modbus"] 05:30:30 ---> Running in 3b23a4ecd264 05:30:30 Removing intermediate container 3b23a4ecd264 05:30:30 ---> 54cadc559bd9 05:30:30 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:30:30 ---> Running in 2fe73391596d 05:30:30 Removing intermediate container 2fe73391596d 05:30:30 ---> 92586dc48368 05:30:30 Step 20/22 : LABEL arch=arm64 05:30:30 ---> Running in 7dc3245a5650 05:30:30 Removing intermediate container 7dc3245a5650 05:30:30 ---> d45bbdca81b4 05:30:30 Step 21/22 : LABEL git_sha=46775bb9762b1738260e2eefac696f1a9833a740 05:30:30 ---> Running in 62c860208c93 05:30:30 Removing intermediate container 62c860208c93 05:30:30 ---> 194cec63d19f 05:30:30 Step 22/22 : LABEL version=0.0.0 05:30:30 ---> Running in 1ac4adccdfcb 05:30:30 Removing intermediate container 1ac4adccdfcb 05:30:30 ---> 63d5b2686900 05:30:30 [Warning] One or more build-args [ARCH] were not consumed 05:30:30 Successfully built 63d5b2686900 05:30: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 05:30:31 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:30:31 05:30:31 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:30:31 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:30:31 arm64: Pulling from edgex-lftools-log-publisher 05:30:31 8998bd30e6a1: Pulling fs layer 05:30:31 04944245beec: Pulling fs layer 05:30:31 699f458cf7ca: Pulling fs layer 05:30:31 765212b225bb: Pulling fs layer 05:30:31 f23df028b6ca: Pulling fs layer 05:30:31 d65c8cfc05b1: Pulling fs layer 05:30:31 2437ff75d9bd: Pulling fs layer 05:30:31 765212b225bb: Waiting 05:30:31 f23df028b6ca: Waiting 05:30:31 d65c8cfc05b1: Waiting 05:30:31 2437ff75d9bd: Waiting 05:30:31 04944245beec: Verifying Checksum 05:30:31 04944245beec: Download complete 05:30:31 765212b225bb: Verifying Checksum 05:30:31 765212b225bb: Download complete 05:30:31 f23df028b6ca: Verifying Checksum 05:30:31 f23df028b6ca: Download complete 05:30:31 d65c8cfc05b1: Verifying Checksum 05:30:31 d65c8cfc05b1: Download complete 05:30:32 699f458cf7ca: Verifying Checksum 05:30:32 699f458cf7ca: Download complete 05:30:32 8998bd30e6a1: Verifying Checksum 05:30:32 8998bd30e6a1: Download complete 05:30:35 2437ff75d9bd: Verifying Checksum 05:30:35 2437ff75d9bd: Download complete 05:30:36 8998bd30e6a1: Pull complete 05:30:37 04944245beec: Pull complete 05:30:38 699f458cf7ca: Pull complete 05:30:38 765212b225bb: Pull complete 05:30:39 f23df028b6ca: Pull complete 05:30:39 d65c8cfc05b1: Pull complete 05:30:54 2437ff75d9bd: Pull complete 05:30:54 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 05:30:54 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:30:54 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:30:54 prd-ubuntu20.04-docker-arm64-4c-16g-4735 does not seem to be running inside a container 05:30:54 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 05:30:57 $ docker top 6fb2a606931ebaad546bc478f169ad16d7d6f40d3b0df4ce635345384ff732be -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:30:58 ---> job-cost.sh 05:30:58 lf-activate-venv: SKIPPING 05:30:58 INFO: No Stack... 05:30:59 INFO: Retrieving Pricing Info for: v3-standard-4 05:30:59 INFO: Archiving Costs [Pipeline] sh 05:31:00 + cat /w/workspace/device-modbus-go/1/archives/cost.csv 05:31:00 + cut -d, -f6 [Pipeline] lock 05:31:00 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-434-1-stack-cost] 05:31:00 Resource [jenkins-edgexfoundry-device-modbus-go-PR-434-1-stack-cost] did not exist. Created. 05:31:00 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-434-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:31:01 /w/workspace/device-modbus-go/1@tmp/durable-6ce1f956/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 05:31:01 + echo total: 0.10999999940395355 [Pipeline] stash 05:31:01 Warning: overwriting stash ‘stack-cost’ 05:31:01 Stashed 1 file(s) [Pipeline] } 05:31:01 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-434-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:31:01 $ docker stop --time=1 6fb2a606931ebaad546bc478f169ad16d7d6f40d3b0df4ce635345384ff732be 05:31:03 $ docker rm -f --volumes 6fb2a606931ebaad546bc478f169ad16d7d6f40d3b0df4ce635345384ff732be [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 05:31:04 provisioning config files... 05:31:04 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-434@tmp/config14956641481941324118tmp [Pipeline] { [Pipeline] sh 05:31:04 + set +x 05:31:04 + bash -s -- 05:31:04 + curl -s https://codecov.io/bash 05:31:04 05:31:04 _____ _ 05:31:04 / ____| | | 05:31:04 | | ___ __| | ___ ___ _____ __ 05:31:04 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 05:31:04 | |___| (_) | (_| | __/ (_| (_) \ V / 05:31:04 \_____\___/ \__,_|\___|\___\___/ \_/ 05:31:04 Bash-1.0.6 05:31:04 05:31:04 05:31:04 ==> git version 2.25.1 found 05:31:04 ==> 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 05:31:04 Release-Date: 2020-01-08 05:31:04 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 05:31:04 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 05:31:04 ==> Jenkins CI detected. 05:31:04 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-434 05:31:04 project root: . 05:31:04 --> token set from env 05:31:04 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 05:31:04 ==> Running gcov in . (disable via -X gcov) 05:31:04 ==> Python coveragepy not found 05:31:04 ==> Searching for coverage reports in: 05:31:04 + . 05:31:04 -> Found 1 reports 05:31:04 ==> Detecting git/mercurial file structure 05:31:04 ==> Reading reports 05:31:04 + ./coverage.out bytes=23736 05:31:04 ==> Appending adjustments 05:31:04 https://docs.codecov.io/docs/fixing-reports 05:31:05 + Found adjustments 05:31:05 ==> Gzipping contents 05:31:05 4.0K /tmp/codecov.VhJ8c4.gz 05:31:05 ==> Uploading reports 05:31:05 url: https://codecov.io 05:31:05 query: branch=PR-434&commit=46775bb9762b1738260e2eefac696f1a9833a740&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-434%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=434&job=&cmd_args= 05:31:05 -> Pinging Codecov 05:31:05 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-434&commit=46775bb9762b1738260e2eefac696f1a9833a740&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-434%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=434&job=&cmd_args= 05:31:05 -> Uploading to 05:31:05 https://storage.googleapis.com/codecov/v4/raw/2023-03-21/55DBCA73C666E3227836607328DD7E49/46775bb9762b1738260e2eefac696f1a9833a740/4e1c26e5-bdca-4606-bf3d-7f5a146452b4.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230321%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230321T053105Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a90d08a0582f08b09f6164ce71ef531bf262bc1c443577af78767c07661cf0f2 05:31:05 % Total % Received % Xferd Average Speed Time Time Time Current 05:31:05 Dload Upload Total Spent Left Speed 05:31:05 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3909 0 0 100 3909 0 19256 --:--:-- --:--:-- --:--:-- 19161 100 3909 0 0 100 3909 0 15955 --:--:-- --:--:-- --:--:-- 15890 05:31:05 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/46775bb9762b1738260e2eefac696f1a9833a740 [Pipeline] } 05:31:05 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 05:31:07 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-434/archives ] 05:31:07 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-434/archives 05:31:07 total 16 05:31:07 drwxr-xr-x 3 root root 4096 Mar 21 05:24 . 05:31:07 drwxrwxr-x 11 jenkins jenkins 4096 Mar 21 05:24 .. 05:31:07 drwxr-xr-x 2 root root 4096 Mar 21 05:24 cost 05:31:07 -rw-r--r-- 1 root root 89 Mar 21 05:24 cost.csv 05:31:07 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-434/archives 05:31:07 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-434/archives 05:31:07 total 16 05:31:07 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 05:24 . 05:31:07 drwxrwxr-x 11 jenkins jenkins 4096 Mar 21 05:24 .. 05:31:07 drwxr-xr-x 2 jenkins jenkins 4096 Mar 21 05:24 cost 05:31:07 -rw-r--r-- 1 jenkins jenkins 89 Mar 21 05:24 cost.csv [Pipeline] libraryResource [Pipeline] sh 05:31:07 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 05:31:08 ---> package-listing.sh 05:31:08 ++ tr '[:upper:]' '[:lower:]' 05:31:08 ++ facter osfamily 05:31:09 + OS_FAMILY=debian 05:31:09 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-434 05:31:09 + START_PACKAGES=/tmp/packages_start.txt 05:31:09 + END_PACKAGES=/tmp/packages_end.txt 05:31:09 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:31:09 + PACKAGES=/tmp/packages_start.txt 05:31:09 + '[' /w/workspace/xfoundry_device-modbus-go_PR-434 ']' 05:31:09 + PACKAGES=/tmp/packages_end.txt 05:31:09 + case "${OS_FAMILY}" in 05:31:09 + dpkg -l 05:31:09 + grep '^ii' 05:31:09 + '[' -f /tmp/packages_start.txt ']' 05:31:09 + '[' -f /tmp/packages_end.txt ']' 05:31:09 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:31:09 + '[' /w/workspace/xfoundry_device-modbus-go_PR-434 ']' 05:31:09 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-434/archives/ 05:31:09 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-434/archives/ [Pipeline] echo 05:31:09 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-434/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 05:31:09 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:31:09 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:31:09 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:31:10 prd-ubuntu20.04-docker-8c-8g-4729 does not seem to be running inside a container 05:31:10 $ 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-434/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-434 -v /w/workspace/xfoundry_device-modbus-go_PR-434:/w/workspace/xfoundry_device-modbus-go_PR-434:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-434@tmp:/w/workspace/xfoundry_device-modbus-go_PR-434@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:31:10 $ docker top 5a737d00b5beb2d397256daed5c5553657eeb2264f3cbb86169c1222d0c6d0b0 -eo pid,comm [Pipeline] { [Pipeline] sh 05:31:10 + touch /tmp/pre-build-complete [Pipeline] sh 05:31:11 + mkdir -p /var/log/sysstat [Pipeline] sh 05:31:11 + ls /var/log/sa-host 05:31:11 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:31:11 provisioning config files... 05:31:11 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-434@tmp/config586029860903665679tmp [Pipeline] { [Pipeline] echo 05:31:11 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 05:31:11 ---> create-netrc.sh [Pipeline] } 05:31:12 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 05:31:12 ---> python-tools-install.sh [Pipeline] echo 05:31:12 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 05:31:12 ---> sudo-logs.sh 05:31:12 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 05:31:12 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 05:31:13 ---> job-cost.sh 05:31:13 lf-activate-venv: SKIPPING 05:31:13 DEBUG: total: 0.2199999988079071 05:31:13 INFO: Retrieving Stack Cost... 05:31:13 INFO: Retrieving Pricing Info for: v3-standard-8 05:31:13 INFO: Archiving Costs [Pipeline] echo 05:31:13 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 05:31:14 ---> logs-deploy.sh 05:31:14 lf-activate-venv: SKIPPING 05:31:14 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-434/1 05:31:14 INFO: archiving workspace using pattern(s): 05:31:14 Archives upload complete. 05:31:14 INFO: archiving logs to Nexus