Pull request #481 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from b81855801eaf6f518da4c24f49e07fc4228b461e+4df1e9a0db8d3469b5d00d5da879e0598a7c9d1c (f2630740317617ae234215e444511d309bbadda0) 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-ssh16761419313418051058.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh6028736595359906221.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-481/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-481/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh13466344228081078211.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-481/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh15895673637101042090.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 4fc256d9079ed2258907e613f84b1b8da264a4bd (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 4fc256d9079ed2258907e613f84b1b8da264a4bd # timeout=10 Commit message: "Merge pull request #430 from ernestojeda/release-lock" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh4363884595145253884.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-481/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-481/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh7474189546322767085.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-modbus-go, buildSnap:false] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-modbus-go-settings PROJECT: device-modbus-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.20 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-modbus DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-15538 in /w/workspace/xfoundry_device-modbus-go_PR-481 [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-481 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/481/head:refs/remotes/origin/PR-481 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 4df1e9a0db8d3469b5d00d5da879e0598a7c9d1c into PR head commit b81855801eaf6f518da4c24f49e07fc4228b461e Merge succeeded, producing b81855801eaf6f518da4c24f49e07fc4228b461e Checking out Revision b81855801eaf6f518da4c24f49e07fc4228b461e (PR-481) Commit message: "build(deps): Bump github.com/canonical/edgex-snap-hooks/v3" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 09:54:35 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { > git config core.sparsecheckout # timeout=10 > git checkout -f b81855801eaf6f518da4c24f49e07fc4228b461e # 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 4df1e9a0db8d3469b5d00d5da879e0598a7c9d1c # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b81855801eaf6f518da4c24f49e07fc4228b461e # timeout=10 [Pipeline] withCredentials 09:54:35 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 09:54:35 ========================================================= 09:54:35 EdgeX Global Pipelines Version Info 09:54:35 ========================================================= [Pipeline] libraryResource [Pipeline] sh 09:54:36 ------------------- 09:54:36 stable info: 09:54:36 ------------------- 09:54:36 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 09:54:36 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 09:54:36 Message: update stable to v1.0.249 09:54:36 ------------------- 09:54:36 experimental info: 09:54:36 ------------------- 09:54:36 Commited By: **** collab-it+edgex@linuxfoundation.org 09:54:36 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 09:54:36 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 09:54:37 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 09:54:38 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 09:54:38 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 09:54:38 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 09:54:38 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-481 [Pipeline] echo 09:54:38 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-481 [Pipeline] echo 09:54:38 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-481 [Pipeline] echo 09:54:38 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b81855801eaf6f518da4c24f49e07fc4228b461e [Pipeline] echo 09:54:38 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b818558 [Pipeline] echo 09:54:38 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:54:38 provisioning config files... 09:54:38 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-481@tmp/config15107441300470648498tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:54:38 ---> docker-login.sh 09:54:38 nexus3.edgexfoundry.org:10001 09:54:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:54:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:54:39 Configure a credential helper to remove this warning. See 09:54:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:54:39 09:54:39 Login Succeeded 09:54:39 nexus3.edgexfoundry.org:10002 09:54:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:54:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:54:39 Configure a credential helper to remove this warning. See 09:54:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:54:39 09:54:39 Login Succeeded 09:54:39 nexus3.edgexfoundry.org:10003 09:54:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:54:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:54:39 Configure a credential helper to remove this warning. See 09:54:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:54:39 09:54:39 Login Succeeded 09:54:39 nexus3.edgexfoundry.org:10004 09:54:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:54:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:54:39 Configure a credential helper to remove this warning. See 09:54:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:54:39 09:54:39 Login Succeeded 09:54:39 docker.io 09:54:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:54:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:54:39 Configure a credential helper to remove this warning. See 09:54:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:54:39 09:54:39 Login Succeeded 09:54:39 ---> docker-login.sh ends [Pipeline] } 09:54:39 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 09:54:40 + git rev-list -1 --merges b81855801eaf6f518da4c24f49e07fc4228b461e~1..b81855801eaf6f518da4c24f49e07fc4228b461e [Pipeline] echo 09:54:40 -----------> git rev-list -1 --merges b81855801eaf6f518da4c24f49e07fc4228b461e~1..b81855801eaf6f518da4c24f49e07fc4228b461e b81855801eaf6f518da4c24f49e07fc4228b461e [false] [Pipeline] sh 09:54:40 + git log --format=format:%s -1 b81855801eaf6f518da4c24f49e07fc4228b461e [Pipeline] echo 09:54:40 ========================================================= 09:54:40 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 09:54:40 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 09:54:41 + git log --format=format:%s -1 b81855801eaf6f518da4c24f49e07fc4228b461e [Pipeline] echo 09:54:41 [semverPrep] GIT_COMMIT: b81855801eaf6f518da4c24f49e07fc4228b461e, Commit Message: build(deps): Bump github.com/canonical/edgex-snap-hooks/v3 [Pipeline] echo 09:54:41 [semverPrep] This is not a build commit. [Pipeline] sh 09:54:41 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 09:54:41 + grep -v github /etc/ssh/ssh_known_hosts 09:54:41 + [ -e /tmp/ssh_known_hosts ] 09:54:41 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 09:54:41 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 09:54:41 + sudo tee -a /etc/ssh/ssh_known_hosts 09:54:41 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:54:42 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 09:54:42 09:54:42 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:54:42 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 09:54:42 0.1.4: Pulling from edgex-devops/py-git-semver 09:54:42 b85a868b505f: Pulling fs layer 09:54:42 e2be974225ed: Pulling fs layer 09:54:42 339a4e72a1f5: Pulling fs layer 09:54:42 988bab9f4d93: Pulling fs layer 09:54:42 1469e6f7b9e6: Pulling fs layer 09:54:42 eaf3925da568: Pulling fs layer 09:54:42 bab4dde63d76: Pulling fs layer 09:54:42 bde34c3a00c8: Pulling fs layer 09:54:42 b352a97aabf1: Pulling fs layer 09:54:42 4872d77fe225: Pulling fs layer 09:54:42 5851b861e8e6: Pulling fs layer 09:54:42 988bab9f4d93: Waiting 09:54:42 1469e6f7b9e6: Waiting 09:54:42 eaf3925da568: Waiting 09:54:42 bab4dde63d76: Waiting 09:54:42 bde34c3a00c8: Waiting 09:54:42 b352a97aabf1: Waiting 09:54:42 4872d77fe225: Waiting 09:54:42 5851b861e8e6: Waiting 09:54:42 e2be974225ed: Verifying Checksum 09:54:42 e2be974225ed: Download complete 09:54:42 988bab9f4d93: Verifying Checksum 09:54:42 988bab9f4d93: Download complete 09:54:42 339a4e72a1f5: Verifying Checksum 09:54:42 339a4e72a1f5: Download complete 09:54:42 1469e6f7b9e6: Verifying Checksum 09:54:42 1469e6f7b9e6: Download complete 09:54:42 eaf3925da568: Verifying Checksum 09:54:42 eaf3925da568: Download complete 09:54:42 bde34c3a00c8: Verifying Checksum 09:54:42 bde34c3a00c8: Download complete 09:54:42 b352a97aabf1: Verifying Checksum 09:54:42 b352a97aabf1: Download complete 09:54:42 4872d77fe225: Download complete 09:54:42 5851b861e8e6: Download complete 09:54:42 b85a868b505f: Verifying Checksum 09:54:42 b85a868b505f: Download complete 09:54:43 bab4dde63d76: Verifying Checksum 09:54:43 bab4dde63d76: Download complete 09:54:43 b85a868b505f: Pull complete 09:54:44 e2be974225ed: Pull complete 09:54:44 339a4e72a1f5: Pull complete 09:54:44 988bab9f4d93: Pull complete 09:54:45 1469e6f7b9e6: Pull complete 09:54:45 eaf3925da568: Pull complete 09:54:46 bab4dde63d76: Pull complete 09:54:46 bde34c3a00c8: Pull complete 09:54:46 b352a97aabf1: Pull complete 09:54:46 4872d77fe225: Pull complete 09:54:47 5851b861e8e6: Pull complete 09:54:47 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 09:54:47 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 09:54:47 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:54:47 prd-ubuntu20.04-docker-8c-8g-15538 does not seem to be running inside a container 09:54:47 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-481 -v /w/workspace/xfoundry_device-modbus-go_PR-481:/w/workspace/xfoundry_device-modbus-go_PR-481:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-481@tmp:/w/workspace/xfoundry_device-modbus-go_PR-481@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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 09:54:51 $ docker top 342398c1d8511a5e9b911656fb260333e73fb90bb414b33ad4b72c8f3ee7fef8 -eo pid,comm 09:54:51 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 09:54:51 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 09:54:51 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 09:54:51 [ssh-agent] Looking for ssh-agent implementation... 09:54:51 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:54:51 $ docker exec 342398c1d8511a5e9b911656fb260333e73fb90bb414b33ad4b72c8f3ee7fef8 ssh-agent 09:54:51 SSH_AUTH_SOCK=/tmp/ssh-DIig3CP2Mm6X/agent.32 09:54:51 SSH_AGENT_PID=38 09:54:51 Running ssh-add (command line suppressed) 09:54:51 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-481@tmp/private_key_8273909971708828933.key (/w/workspace/xfoundry_device-modbus-go_PR-481@tmp/private_key_8273909971708828933.key) 09:54:51 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 09:54:52 + git tag --points-at HEAD [Pipeline] } 09:54:52 $ docker exec --env ******** --env ******** 342398c1d8511a5e9b911656fb260333e73fb90bb414b33ad4b72c8f3ee7fef8 ssh-agent -k 09:54:52 unset SSH_AUTH_SOCK; 09:54:52 unset SSH_AGENT_PID; 09:54:52 echo Agent pid 38 killed; 09:54:52 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 09:54:52 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 09:54:52 [ssh-agent] Looking for ssh-agent implementation... 09:54:52 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:54:52 $ docker exec 342398c1d8511a5e9b911656fb260333e73fb90bb414b33ad4b72c8f3ee7fef8 ssh-agent 09:54:52 SSH_AUTH_SOCK=/tmp/ssh-CAalrCX2Ui1T/agent.70 09:54:52 SSH_AGENT_PID=76 09:54:52 Running ssh-add (command line suppressed) 09:54:52 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-481@tmp/private_key_8492242403512089080.key (/w/workspace/xfoundry_device-modbus-go_PR-481@tmp/private_key_8492242403512089080.key) 09:54:52 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 09:54:53 + git semver init 09:54:53 2023-05-16 09:54:53,186 [run_init] DEBUG init version:0.0.0 force:False 09:54:53 2023-05-16 09:54:53,187 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-481/.semver 09:54:53 2023-05-16 09:54:53,189 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-481/.semver 09:54:53 2023-05-16 09:54:53,189 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-481/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-481, universal_newlines=False, shell=None, istream=None) 09:54:54 2023-05-16 09:54:54,035 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-481/.git/info/exclude 09:54:54 2023-05-16 09:54:54,035 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-481/.semver/PR-481 with force:False 09:54:54 2023-05-16 09:54:54,036 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-481/.semver/PR-481 09:54:54 2023-05-16 09:54:54,040 [execute] INFO git cat-file --batch-check 09:54:54 2023-05-16 09:54:54,040 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-481/.semver, universal_newlines=False, shell=None, istream=) 09:54:54 2023-05-16 09:54:54,046 [execute] INFO git cat-file --batch 09:54:54 2023-05-16 09:54:54,046 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-481/.semver, universal_newlines=False, shell=None, istream=) 09:54:54 2023-05-16 09:54:54,051 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-481/.semver/PR-481 09:54:54 0.0.0 [Pipeline] } 09:54:54 $ docker exec --env ******** --env ******** 342398c1d8511a5e9b911656fb260333e73fb90bb414b33ad4b72c8f3ee7fef8 ssh-agent -k 09:54:54 unset SSH_AUTH_SOCK; 09:54:54 unset SSH_AGENT_PID; 09:54:54 echo Agent pid 76 killed; 09:54:54 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 09:54:54 + git semver [Pipeline] } 09:54:55 $ docker stop --time=1 342398c1d8511a5e9b911656fb260333e73fb90bb414b33ad4b72c8f3ee7fef8 09:54:56 $ docker rm -f --volumes 342398c1d8511a5e9b911656fb260333e73fb90bb414b33ad4b72c8f3ee7fef8 [Pipeline] // withDockerContainer [Pipeline] sh 09:54:56 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 09:54:56 Stashed 1 file(s) [Pipeline] echo 09:54:56 [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 09:54:57 provisioning config files... 09:54:57 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-481@tmp/config15738832925439136194tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:54:57 ---> docker-login.sh 09:54:57 nexus3.edgexfoundry.org:10001 09:54:57 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:54:57 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:54:57 Configure a credential helper to remove this warning. See 09:54:57 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:54:57 09:54:57 Login Succeeded 09:54:57 nexus3.edgexfoundry.org:10002 09:54:57 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:54:57 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:54:57 Configure a credential helper to remove this warning. See 09:54:57 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:54:57 09:54:57 Login Succeeded 09:54:57 nexus3.edgexfoundry.org:10003 09:54:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:54:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:54:58 Configure a credential helper to remove this warning. See 09:54:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:54:58 09:54:58 Login Succeeded 09:54:58 nexus3.edgexfoundry.org:10004 09:54:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:54:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:54:58 Configure a credential helper to remove this warning. See 09:54:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:54:58 09:54:58 Login Succeeded 09:54:58 docker.io 09:54:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:54:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:54:58 Configure a credential helper to remove this warning. See 09:54:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:54:58 09:54:58 Login Succeeded 09:54:58 ---> docker-login.sh ends [Pipeline] } 09:54:58 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 09:54:58 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:54:58 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:54:58 ========================================================= 09:54:58 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 09:54:58 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:54:59 + 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 . 09:54:59 Sending build context to Docker daemon 6.531MB 09:54:59 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 09:54:59 Step 2/10 : FROM ${BASE} AS builder 09:54:59 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 09:54:59 f56be85fc22e: Pulling fs layer 09:54:59 85791d961cd3: Pulling fs layer 09:54:59 d694b5ae8c79: Pulling fs layer 09:54:59 9f32a84ed3da: Pulling fs layer 09:54:59 4d19c01a9841: Pulling fs layer 09:54:59 9325e15d5711: Pulling fs layer 09:54:59 556b6ee489ea: Pulling fs layer 09:54:59 c5a4b2cf53e6: Pulling fs layer 09:54:59 9f32a84ed3da: Waiting 09:54:59 556b6ee489ea: Waiting 09:54:59 4d19c01a9841: Waiting 09:54:59 c5a4b2cf53e6: Waiting 09:54:59 9325e15d5711: Waiting 09:54:59 85791d961cd3: Verifying Checksum 09:54:59 85791d961cd3: Download complete 09:54:59 9f32a84ed3da: Verifying Checksum 09:54:59 9f32a84ed3da: Download complete 09:54:59 4d19c01a9841: Verifying Checksum 09:54:59 4d19c01a9841: Download complete 09:54:59 f56be85fc22e: Verifying Checksum 09:54:59 f56be85fc22e: Download complete 09:54:59 9325e15d5711: Verifying Checksum 09:54:59 9325e15d5711: Download complete 09:54:59 f56be85fc22e: Pull complete 09:54:59 85791d961cd3: Pull complete 09:55:00 c5a4b2cf53e6: Verifying Checksum 09:55:00 d694b5ae8c79: Verifying Checksum 09:55:00 d694b5ae8c79: Download complete 09:55:00 556b6ee489ea: Verifying Checksum 09:55:00 556b6ee489ea: Download complete 09:55:03 d694b5ae8c79: Pull complete 09:55:03 9f32a84ed3da: Pull complete 09:55:03 4d19c01a9841: Pull complete 09:55:03 9325e15d5711: Pull complete 09:55:05 556b6ee489ea: Pull complete 09:55:06 c5a4b2cf53e6: Pull complete 09:55:06 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 09:55:06 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 09:55:06 ---> c4be618373d6 09:55:06 Step 3/10 : ARG ADD_BUILD_TAGS="" 09:55:12 Still waiting to schedule task 09:55:12 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 09:55:13 ---> Running in 278927fc7f9d 09:55:13 Removing intermediate container 278927fc7f9d 09:55:13 ---> aae84175af10 09:55:13 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 09:55:13 ---> Running in 5533b77ad1f7 09:55:13 Removing intermediate container 5533b77ad1f7 09:55:13 ---> 76a3a885bc40 09:55:13 Step 5/10 : RUN apk add --update --no-cache make git openssh 09:55:13 ---> Running in ccd8cabf7353 09:55:13 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 09:55:13 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 09:55:13 (1/8) Installing openssh-keygen (9.1_p1-r3) 09:55:13 (2/8) Installing libedit (20221030.3.1-r0) 09:55:13 (3/8) Installing openssh-client-common (9.1_p1-r3) 09:55:13 (4/8) Installing openssh-client-default (9.1_p1-r3) 09:55:13 (5/8) Installing openssh-sftp-server (9.1_p1-r3) 09:55:13 (6/8) Installing openssh-server-common (9.1_p1-r3) 09:55:13 (7/8) Installing openssh-server (9.1_p1-r3) 09:55:13 (8/8) Installing openssh (9.1_p1-r3) 09:55:13 Executing busybox-1.35.0-r29.trigger 09:55:13 OK: 270 MiB in 61 packages 09:55:13 Removing intermediate container ccd8cabf7353 09:55:13 ---> 7413093c0fd1 09:55:13 Step 6/10 : WORKDIR /device-modbus-go 09:55:13 ---> Running in a48435798f24 09:55:13 Removing intermediate container a48435798f24 09:55:13 ---> da8f8f03e0f0 09:55:13 Step 7/10 : COPY go.mod vendor* ./ 09:55:13 ---> cc54648418f3 09:55:13 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:55:13 ---> Running in 44e7a4d000c8 09:55:46 Removing intermediate container 44e7a4d000c8 09:55:46 ---> 16af0a1bc892 09:55:46 Step 9/10 : COPY . . 09:55:46 ---> 0438fc64942c 09:55:46 Step 10/10 : RUN ${MAKE} 09:55:46 ---> Running in 38b4f50a6182 09:55:46 noop 09:55:46 Removing intermediate container 38b4f50a6182 09:55:46 ---> 5532d29b93db 09:55:46 Successfully built 5532d29b93db 09:55:46 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:55:46 + docker inspect -f . ci-base-image-x86_64 09:55:46 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:55:46 prd-ubuntu20.04-docker-8c-8g-15538 does not seem to be running inside a container 09:55:46 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-481 -v /w/workspace/xfoundry_device-modbus-go_PR-481:/w/workspace/xfoundry_device-modbus-go_PR-481:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-481@tmp:/w/workspace/xfoundry_device-modbus-go_PR-481@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 ******** ci-base-image-x86_64 cat 09:55:47 $ docker top 37951489a486c4eef56da1c6c79817cf4394c0489ac0415a96fe27337ce7066c -eo pid,comm [Pipeline] { [Pipeline] sh 09:55:47 + go version 09:55:47 go version go1.20.2 linux/amd64 [Pipeline] } 09:55:47 $ docker stop --time=1 37951489a486c4eef56da1c6c79817cf4394c0489ac0415a96fe27337ce7066c 09:55:48 $ docker rm -f --volumes 37951489a486c4eef56da1c6c79817cf4394c0489ac0415a96fe27337ce7066c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:55:49 + docker inspect -f . ci-base-image-x86_64 09:55:49 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:55:49 prd-ubuntu20.04-docker-8c-8g-15538 does not seem to be running inside a container 09:55:49 $ 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-481 -v /w/workspace/xfoundry_device-modbus-go_PR-481:/w/workspace/xfoundry_device-modbus-go_PR-481:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-481@tmp:/w/workspace/xfoundry_device-modbus-go_PR-481@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 ******** ci-base-image-x86_64 cat 09:55:50 $ docker top 30e9b0577112057521d68b1052c4338c2c5820e9d5083a3919faa319d1ebd29a -eo pid,comm [Pipeline] { [Pipeline] sh 09:55:50 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-481 [Pipeline] fileExists [Pipeline] sh 09:55:50 + make test 09:55:50 go test ./... -coverprofile=coverage.out 09:55:56 ? github.com/edgexfoundry/device-modbus-go [no test files] 09:56:06 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 09:56:06 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.012s coverage: 47.4% of statements 09:56:12 go vet ./... 09:56:16 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 09:56:16 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 09:56:16 ./bin/test-attribution-txt.sh [Pipeline] echo 09:56:16 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 09:56:17 $ docker stop --time=1 30e9b0577112057521d68b1052c4338c2c5820e9d5083a3919faa319d1ebd29a 09:56:21 $ docker rm -f --volumes 30e9b0577112057521d68b1052c4338c2c5820e9d5083a3919faa319d1ebd29a [Pipeline] // withDockerContainer [Pipeline] sh 09:56:21 + sudo chown -R jenkins:jenkins . [Pipeline] stash 09:56:21 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 09:56:22 + sudo chown -R jenkins:jenkins . [Pipeline] sh 09:56:22 + ls -al . 09:56:22 total 184 09:56:22 drwxrwxr-x 10 jenkins jenkins 4096 May 16 09:55 . 09:56:22 drwxrwxr-x 4 jenkins jenkins 4096 May 16 09:54 .. 09:56:22 -rw-rw-r-- 1 jenkins jenkins 140 May 16 09:54 .dockerignore 09:56:22 drwxrwxr-x 8 jenkins jenkins 4096 May 16 09:54 .git 09:56:22 drwxrwxr-x 3 jenkins jenkins 4096 May 16 09:54 .github 09:56:22 -rw-rw-r-- 1 jenkins jenkins 331 May 16 09:54 .gitignore 09:56:22 -rw-rw-r-- 1 jenkins jenkins 41 May 16 09:54 .golangci.yml 09:56:22 drwxr-xr-x 3 jenkins jenkins 4096 May 16 09:54 .semver 09:56:22 -rw-rw-r-- 1 jenkins jenkins 10132 May 16 09:54 Attribution.txt 09:56:22 -rw-rw-r-- 1 jenkins jenkins 11576 May 16 09:54 CHANGELOG.md 09:56:22 -rw-rw-r-- 1 jenkins jenkins 1365 May 16 09:54 Dockerfile 09:56:22 -rw-rw-r-- 1 jenkins jenkins 677 May 16 09:54 GOVERNANCE.md 09:56:22 -rw-rw-r-- 1 jenkins jenkins 680 May 16 09:54 Jenkinsfile 09:56:22 -rw-rw-r-- 1 jenkins jenkins 11340 May 16 09:54 LICENSE 09:56:22 -rw-rw-r-- 1 jenkins jenkins 1705 May 16 09:54 Makefile 09:56:22 -rw-rw-r-- 1 jenkins jenkins 622 May 16 09:54 OWNERS.md 09:56:22 -rw-rw-r-- 1 jenkins jenkins 4554 May 16 09:54 README.md 09:56:22 -rw-rw-r-- 1 jenkins jenkins 5 May 16 09:54 VERSION 09:56:22 drwxrwxr-x 2 jenkins jenkins 4096 May 16 09:54 bin 09:56:22 drwxrwxr-x 3 jenkins jenkins 4096 May 16 09:54 cmd 09:56:22 -rw-r--r-- 1 jenkins jenkins 24160 May 16 09:56 coverage.out 09:56:22 -rw-rw-r-- 1 jenkins jenkins 3453 May 16 09:54 go.mod 09:56:22 -rw-rw-r-- 1 jenkins jenkins 31670 May 16 09:54 go.sum 09:56:22 drwxrwxr-x 3 jenkins jenkins 4096 May 16 09:54 internal 09:56:22 drwxrwxr-x 2 jenkins jenkins 4096 May 16 09:54 simulator 09:56:22 drwxrwxr-x 4 jenkins jenkins 4096 May 16 09:54 snap 09:56:22 -rw-rw-r-- 1 jenkins jenkins 229 May 16 09:54 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:56:23 + 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=b81855801eaf6f518da4c24f49e07fc4228b461e --label arch=amd64 --label version=0.0.0 . 09:56:23 Sending build context to Docker daemon 6.556MB 09:56:23 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 09:56:23 Step 2/22 : FROM ${BASE} AS builder 09:56:23 ---> 5532d29b93db 09:56:23 Step 3/22 : ARG ADD_BUILD_TAGS="" 09:56:23 ---> Running in 531eba447def 09:56:23 Removing intermediate container 531eba447def 09:56:23 ---> f48cd865c58e 09:56:23 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 09:56:23 ---> Running in 10f81bb34db5 09:56:23 Removing intermediate container 10f81bb34db5 09:56:23 ---> 8c19597dc785 09:56:23 Step 5/22 : RUN apk add --update --no-cache make git openssh 09:56:23 ---> Running in e9c000fbf886 09:56:23 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 09:56:23 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 09:56:24 OK: 270 MiB in 61 packages 09:56:24 Removing intermediate container e9c000fbf886 09:56:24 ---> 381584e257f6 09:56:24 Step 6/22 : WORKDIR /device-modbus-go 09:56:24 ---> Running in b0fb709de506 09:56:24 Removing intermediate container b0fb709de506 09:56:24 ---> dd71c3096f9f 09:56:24 Step 7/22 : COPY go.mod vendor* ./ 09:56:24 ---> c2358e97e94c 09:56:24 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:56:24 ---> Running in cd1d3f963921 09:56:25 Removing intermediate container cd1d3f963921 09:56:25 ---> b457e99cbe53 09:56:25 Step 9/22 : COPY . . 09:56:25 ---> 0758965b4ad5 09:56:25 Step 10/22 : RUN ${MAKE} 09:56:25 ---> Running in d2b994ad2366 09:56:26 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 09:56:48 Removing intermediate container d2b994ad2366 09:56:48 ---> b924e3077e72 09:56:48 Step 11/22 : FROM alpine:3.17 09:56:48 3.17: Pulling from library/alpine 09:56:48 f56be85fc22e: Already exists 09:56:48 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 09:56:48 Status: Downloaded newer image for alpine:3.17 09:56:48 ---> 9ed4aefc74f6 09:56:48 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 09:56:48 ---> Running in 06b79bbdd049 09:56:48 Removing intermediate container 06b79bbdd049 09:56:48 ---> b40204703360 09:56:48 Step 13/22 : RUN apk add --update --no-cache dumb-init 09:56:48 ---> Running in b20326612772 09:56:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 09:56:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 09:56:48 (1/1) Installing dumb-init (1.2.5-r2) 09:56:48 Executing busybox-1.35.0-r29.trigger 09:56:48 OK: 7 MiB in 16 packages 09:56:48 Removing intermediate container b20326612772 09:56:48 ---> 1d6011f00116 09:56:48 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 09:56:48 ---> fa701215f2eb 09:56:48 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 09:56:48 ---> 820105553852 09:56:48 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 09:56:48 ---> fa619d0f69e4 09:56:48 Step 17/22 : EXPOSE 59901 09:56:48 ---> Running in a34e84480c74 09:56:49 Removing intermediate container a34e84480c74 09:56:49 ---> f6b2b8706816 09:56:49 Step 18/22 : ENTRYPOINT ["/device-modbus"] 09:56:49 ---> Running in 5e6593970f42 09:56:49 Removing intermediate container 5e6593970f42 09:56:49 ---> 9775a40302de 09:56:49 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 09:56:49 ---> Running in 85adbabf07d3 09:56:49 Removing intermediate container 85adbabf07d3 09:56:49 ---> 35c183eec86c 09:56:49 Step 20/22 : LABEL arch=amd64 09:56:49 ---> Running in 6f2c74a7a122 09:56:49 Removing intermediate container 6f2c74a7a122 09:56:49 ---> 79c9e4208aec 09:56:49 Step 21/22 : LABEL git_sha=b81855801eaf6f518da4c24f49e07fc4228b461e 09:56:49 ---> Running in c586b2101f5d 09:56:49 Removing intermediate container c586b2101f5d 09:56:49 ---> 4b19ca31975c 09:56:49 Step 22/22 : LABEL version=0.0.0 09:56:49 ---> Running in 60471a25023c 09:56:49 Removing intermediate container 60471a25023c 09:56:49 ---> 290d21f8a571 09:56:49 [Warning] One or more build-args [ARCH] were not consumed 09:56:49 Successfully built 290d21f8a571 09:56:49 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 09:56:50 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:56:50 09:56:50 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:56:50 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:56:50 latest: Pulling from edgex-lftools-log-publisher 09:56:50 5eb5b503b376: Pulling fs layer 09:56:50 5c69ac0246d0: Pulling fs layer 09:56:50 ec43610c2a17: Pulling fs layer 09:56:50 3a2ae6a8a46f: Pulling fs layer 09:56:50 33b1e0a273af: Pulling fs layer 09:56:50 5d3b04190fa2: Pulling fs layer 09:56:50 2f39f015ded8: Pulling fs layer 09:56:50 5d3b04190fa2: Waiting 09:56:50 2f39f015ded8: Waiting 09:56:50 3a2ae6a8a46f: Waiting 09:56:50 33b1e0a273af: Waiting 09:56:50 5c69ac0246d0: Verifying Checksum 09:56:50 5c69ac0246d0: Download complete 09:56:50 3a2ae6a8a46f: Verifying Checksum 09:56:50 3a2ae6a8a46f: Download complete 09:56:50 33b1e0a273af: Verifying Checksum 09:56:50 33b1e0a273af: Download complete 09:56:50 ec43610c2a17: Verifying Checksum 09:56:50 ec43610c2a17: Download complete 09:56:50 5d3b04190fa2: Verifying Checksum 09:56:50 5d3b04190fa2: Download complete 09:56:51 5eb5b503b376: Verifying Checksum 09:56:51 5eb5b503b376: Download complete 09:56:51 2f39f015ded8: Download complete 09:56:52 5eb5b503b376: Pull complete 09:56:52 5c69ac0246d0: Pull complete 09:56:53 ec43610c2a17: Pull complete 09:56:53 3a2ae6a8a46f: Pull complete 09:56:53 33b1e0a273af: Pull complete 09:56:53 5d3b04190fa2: Pull complete 09:56:58 2f39f015ded8: Pull complete 09:56:58 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 09:56:58 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:56:58 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:56:58 prd-ubuntu20.04-docker-8c-8g-15538 does not seem to be running inside a container 09:56:58 $ 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-481 -v /w/workspace/xfoundry_device-modbus-go_PR-481:/w/workspace/xfoundry_device-modbus-go_PR-481:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-481@tmp:/w/workspace/xfoundry_device-modbus-go_PR-481@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 09:57:04 $ docker top d6478dbb74e8e4fa83cc88630a7307896e5c750a14e8c4615242293274f6990d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:57:04 ---> job-cost.sh 09:57:04 lf-activate-venv: SKIPPING 09:57:04 INFO: No Stack... 09:57:05 INFO: Retrieving Pricing Info for: v3-standard-8 09:57:05 INFO: Archiving Costs [Pipeline] sh 09:57:06 + cat /w/workspace/xfoundry_device-modbus-go_PR-481/archives/cost.csv 09:57:06 + cut -d, -f6 [Pipeline] lock 09:57:06 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-481-1-stack-cost] 09:57:06 Resource [jenkins-edgexfoundry-device-modbus-go-PR-481-1-stack-cost] did not exist. Created. 09:57:06 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-481-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 09:57:06 + echo total: 0.2199999988079071 [Pipeline] stash 09:57:06 Stashed 1 file(s) [Pipeline] } 09:57:06 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-481-1-stack-cost] [Pipeline] // lock [Pipeline] } 09:57:06 $ docker stop --time=1 d6478dbb74e8e4fa83cc88630a7307896e5c750a14e8c4615242293274f6990d 09:57:07 $ docker rm -f --volumes d6478dbb74e8e4fa83cc88630a7307896e5c750a14e8c4615242293274f6990d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 09:58:00 Running on prd-ubuntu20.04-docker-arm64-4c-16g-15545 in /w/workspace/xfoundry_device-modbus-go_PR-481 [Pipeline] { [Pipeline] ws 09:58:00 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 09:58:00 Selected Git installation does not exist. Using Default 09:58:00 The recommended git tool is: NONE 09:58:08 using credential edgex-jenkins-ssh 09:58:08 Cloning the remote Git repository 09:58:08 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 09:58:08 > git init /w/workspace/device-modbus-go/1 # timeout=10 09:58:08 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 09:58:08 > git --version # timeout=10 09:58:08 > git --version # 'git version 2.25.1' 09:58:08 using GIT_SSH to set credentials SSH Credentials for GitHub 09:58:08 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 09:58:10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 09:58:10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 09:58:11 Merging remotes/origin/main commit 4df1e9a0db8d3469b5d00d5da879e0598a7c9d1c into PR head commit b81855801eaf6f518da4c24f49e07fc4228b461e 09:58:12 Merge succeeded, producing b81855801eaf6f518da4c24f49e07fc4228b461e 09:58:12 Checking out Revision b81855801eaf6f518da4c24f49e07fc4228b461e (PR-481) 09:58:11 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 09:58:11 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 09:58:11 using GIT_SSH to set credentials SSH Credentials for GitHub 09:58:11 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/481/head:refs/remotes/origin/PR-481 +refs/heads/main:refs/remotes/origin/main # timeout=10 09:58:12 > git config core.sparsecheckout # timeout=10 09:58:12 > git checkout -f b81855801eaf6f518da4c24f49e07fc4228b461e # timeout=10 09:58:12 > git remote # timeout=10 09:58:12 > git config --get remote.origin.url # timeout=10 09:58:12 using GIT_SSH to set credentials SSH Credentials for GitHub 09:58:12 > git merge 4df1e9a0db8d3469b5d00d5da879e0598a7c9d1c # timeout=10 09:58:12 > git rev-parse HEAD^{commit} # timeout=10 09:58:12 > git config core.sparsecheckout # timeout=10 09:58:12 > git checkout -f b81855801eaf6f518da4c24f49e07fc4228b461e # timeout=10 09:58:12 Commit message: "build(deps): Bump github.com/canonical/edgex-snap-hooks/v3" 09:58:13 > git --version # timeout=10 09:58:13 > git --version # 'git version 2.25.1' 09:58:13 fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 09:58:14 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 09:58:14 % Total % Received % Xferd Average Speed Time Time Time Current 09:58:14 Dload Upload Total Spent Left Speed 09:58:14 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 200k 0 --:--:-- --:--:-- --:--:-- 204k [Pipeline] sh 09:58:14 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 09:58:15 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 09:58:15 + sudo tee /etc/docker/daemon.new 09:58:15 { 09:58:15 "registry-mirrors": [ 09:58:15 "https://nexus3.edgexfoundry.org:10001" 09:58:15 ], 09:58:15 "bip": "10.250.0.254/24", 09:58:15 "hosts": [ 09:58:15 "tcp://0.0.0.0:5555", 09:58:15 "unix:///var/run/docker.sock" 09:58:15 ], 09:58:15 "mtu": 1458, 09:58:15 "selinux-enabled": true, 09:58:15 "seccomp-profile": "/etc/docker/seccomp.json" 09:58:15 } [Pipeline] sh 09:58:15 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 09:58:16 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:58:34 provisioning config files... 09:58:34 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config5295777864028945453tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:58:34 ---> docker-login.sh 09:58:34 nexus3.edgexfoundry.org:10001 09:58:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:58:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:58:35 Configure a credential helper to remove this warning. See 09:58:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:58:35 09:58:35 Login Succeeded 09:58:35 nexus3.edgexfoundry.org:10002 09:58:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:58:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:58:36 Configure a credential helper to remove this warning. See 09:58:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:58:36 09:58:36 Login Succeeded 09:58:36 nexus3.edgexfoundry.org:10003 09:58:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:58:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:58:36 Configure a credential helper to remove this warning. See 09:58:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:58:36 09:58:36 Login Succeeded 09:58:36 nexus3.edgexfoundry.org:10004 09:58:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:58:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:58:36 Configure a credential helper to remove this warning. See 09:58:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:58:36 09:58:36 Login Succeeded 09:58:36 docker.io 09:58:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:58:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:58:37 Configure a credential helper to remove this warning. See 09:58:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:58:37 09:58:37 Login Succeeded 09:58:37 ---> docker-login.sh ends [Pipeline] } 09:58:37 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 09:58:38 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:58:38 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:58:38 ========================================================= 09:58:38 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 09:58:38 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:58:38 + 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 . 09:58:39 Sending build context to Docker daemon 3.417MB 09:58:39 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 09:58:39 Step 2/10 : FROM ${BASE} AS builder 09:58:39 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 09:58:39 c41833b44d91: Pulling fs layer 09:58:39 ed15518f5707: Pulling fs layer 09:58:39 feae8fd75edb: Pulling fs layer 09:58:39 242c74f7c9fa: Pulling fs layer 09:58:39 3cdef696dda3: Pulling fs layer 09:58:39 2ced38df9373: Pulling fs layer 09:58:39 58f1dce35555: Pulling fs layer 09:58:39 242c74f7c9fa: Waiting 09:58:39 3cdef696dda3: Waiting 09:58:39 2ced38df9373: Waiting 09:58:39 58f1dce35555: Waiting 09:58:39 ed15518f5707: Verifying Checksum 09:58:39 ed15518f5707: Download complete 09:58:39 242c74f7c9fa: Verifying Checksum 09:58:39 242c74f7c9fa: Download complete 09:58:39 3cdef696dda3: Download complete 09:58:39 c41833b44d91: Verifying Checksum 09:58:39 c41833b44d91: Download complete 09:58:40 c41833b44d91: Pull complete 09:58:40 58f1dce35555: Verifying Checksum 09:58:40 58f1dce35555: Download complete 09:58:41 ed15518f5707: Pull complete 09:58:42 feae8fd75edb: Verifying Checksum 09:58:42 feae8fd75edb: Download complete 09:58:42 2ced38df9373: Verifying Checksum 09:58:42 2ced38df9373: Download complete 09:58:54 feae8fd75edb: Pull complete 09:58:55 242c74f7c9fa: Pull complete 09:58:55 3cdef696dda3: Pull complete 09:59:03 2ced38df9373: Pull complete 09:59:08 58f1dce35555: Pull complete 09:59:08 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 09:59:08 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 09:59:08 ---> fadd8f120f05 09:59:08 Step 3/10 : ARG ADD_BUILD_TAGS="" 09:59:09 ---> Running in 4ffa8754fade 09:59:09 Removing intermediate container 4ffa8754fade 09:59:09 ---> 8d8014740234 09:59:09 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 09:59:09 ---> Running in 69d4baeab2ca 09:59:10 Removing intermediate container 69d4baeab2ca 09:59:10 ---> 8bde47de0615 09:59:10 Step 5/10 : RUN apk add --update --no-cache make git openssh 09:59:10 ---> Running in e7f8145c5e6b 09:59:11 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 09:59:12 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 09:59:13 (1/8) Installing openssh-keygen (9.1_p1-r3) 09:59:13 (2/8) Installing libedit (20221030.3.1-r0) 09:59:13 (3/8) Installing openssh-client-common (9.1_p1-r3) 09:59:13 (4/8) Installing openssh-client-default (9.1_p1-r3) 09:59:13 (5/8) Installing openssh-sftp-server (9.1_p1-r3) 09:59:13 (6/8) Installing openssh-server-common (9.1_p1-r3) 09:59:13 (7/8) Installing openssh-server (9.1_p1-r3) 09:59:13 (8/8) Installing openssh (9.1_p1-r3) 09:59:13 Executing busybox-1.35.0-r29.trigger 09:59:13 OK: 270 MiB in 61 packages 09:59:15 Removing intermediate container e7f8145c5e6b 09:59:15 ---> 5da55512c4a8 09:59:15 Step 6/10 : WORKDIR /device-modbus-go 09:59:15 ---> Running in b123ae634902 09:59:15 Removing intermediate container b123ae634902 09:59:15 ---> b4e798b01ea4 09:59:15 Step 7/10 : COPY go.mod vendor* ./ 09:59:16 ---> 3c3bf0acb8c9 09:59:16 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:59:16 ---> Running in d3076806182a 10:00:26 Removing intermediate container d3076806182a 10:00:26 ---> b3eda11ce24e 10:00:26 Step 9/10 : COPY . . 10:00:26 ---> b4bd818f965f 10:00:26 Step 10/10 : RUN ${MAKE} 10:00:26 ---> Running in d7be5e35dbae 10:00:26 noop 10:00:26 Removing intermediate container d7be5e35dbae 10:00:26 ---> 5a22fce0593d 10:00:26 Successfully built 5a22fce0593d 10:00:26 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 10:00:27 + docker inspect -f . ci-base-image-arm64 10:00:27 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 10:00:27 prd-ubuntu20.04-docker-arm64-4c-16g-15545 does not seem to be running inside a container 10:00:27 $ 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 ******** ci-base-image-arm64 cat 10:00:29 $ docker top 341bd1a040ab7e748d4383a9ae2beb2073aa8c8e0ed7cdf33644cb52d5b99ca6 -eo pid,comm [Pipeline] { [Pipeline] sh 10:00:30 + go version 10:00:30 go version go1.20.2 linux/arm64 [Pipeline] } 10:00:30 $ docker stop --time=1 341bd1a040ab7e748d4383a9ae2beb2073aa8c8e0ed7cdf33644cb52d5b99ca6 10:00:34 $ docker rm -f --volumes 341bd1a040ab7e748d4383a9ae2beb2073aa8c8e0ed7cdf33644cb52d5b99ca6 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 10:00:35 + docker inspect -f . ci-base-image-arm64 10:00:35 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 10:00:35 prd-ubuntu20.04-docker-arm64-4c-16g-15545 does not seem to be running inside a container 10:00:35 $ 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 ******** ci-base-image-arm64 cat 10:00:37 $ docker top 3771d6e1dcdcf9f347825c55e2c5c4886f8e2623cf04772bb03cd370c1388266 -eo pid,comm [Pipeline] { [Pipeline] sh 10:00:38 + git config --global --add safe.directory /w/workspace/device-modbus-go/1 [Pipeline] fileExists [Pipeline] sh 10:00:38 + make test 10:00:38 go test ./... -coverprofile=coverage.out 10:01:17 ? github.com/edgexfoundry/device-modbus-go [no test files] 10:04:09 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 10:04:09 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.091s coverage: 47.4% of statements 10:04:09 WARNING: Linting skipped (not on x86_64 or linter not installed) 10:04:09 go vet ./... 10:04:42 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 10:04:42 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 10:04:42 ./bin/test-attribution-txt.sh [Pipeline] echo 10:04:42 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 10:04:42 $ docker stop --time=1 3771d6e1dcdcf9f347825c55e2c5c4886f8e2623cf04772bb03cd370c1388266 10:04:44 $ docker rm -f --volumes 3771d6e1dcdcf9f347825c55e2c5c4886f8e2623cf04772bb03cd370c1388266 [Pipeline] // withDockerContainer [Pipeline] sh 10:04:45 + sudo chown -R jenkins:jenkins . [Pipeline] stash 10:04:45 Warning: overwriting stash ‘coverage-report’ 10:04:46 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 10:04:47 + sudo chown -R jenkins:jenkins . [Pipeline] sh 10:04:47 + ls -al . 10:04:47 total 180 10:04:47 drwxrwxr-x 9 jenkins jenkins 4096 May 16 10:00 . 10:04:47 drwxrwxr-x 4 jenkins jenkins 4096 May 16 09:58 .. 10:04:47 -rw-rw-r-- 1 jenkins jenkins 140 May 16 09:58 .dockerignore 10:04:47 drwxrwxr-x 8 jenkins jenkins 4096 May 16 09:58 .git 10:04:47 drwxrwxr-x 3 jenkins jenkins 4096 May 16 09:58 .github 10:04:47 -rw-rw-r-- 1 jenkins jenkins 331 May 16 09:58 .gitignore 10:04:47 -rw-rw-r-- 1 jenkins jenkins 41 May 16 09:58 .golangci.yml 10:04:47 -rw-rw-r-- 1 jenkins jenkins 10132 May 16 09:58 Attribution.txt 10:04:47 -rw-rw-r-- 1 jenkins jenkins 11576 May 16 09:58 CHANGELOG.md 10:04:47 -rw-rw-r-- 1 jenkins jenkins 1365 May 16 09:58 Dockerfile 10:04:47 -rw-rw-r-- 1 jenkins jenkins 677 May 16 09:58 GOVERNANCE.md 10:04:47 -rw-rw-r-- 1 jenkins jenkins 680 May 16 09:58 Jenkinsfile 10:04:47 -rw-rw-r-- 1 jenkins jenkins 11340 May 16 09:58 LICENSE 10:04:47 -rw-rw-r-- 1 jenkins jenkins 1705 May 16 09:58 Makefile 10:04:47 -rw-rw-r-- 1 jenkins jenkins 622 May 16 09:58 OWNERS.md 10:04:47 -rw-rw-r-- 1 jenkins jenkins 4554 May 16 09:58 README.md 10:04:47 -rw-rw-r-- 1 jenkins jenkins 5 May 16 09:54 VERSION 10:04:47 drwxrwxr-x 2 jenkins jenkins 4096 May 16 09:58 bin 10:04:47 drwxrwxr-x 3 jenkins jenkins 4096 May 16 09:58 cmd 10:04:47 -rw-r--r-- 1 jenkins jenkins 24160 May 16 10:04 coverage.out 10:04:47 -rw-rw-r-- 1 jenkins jenkins 3453 May 16 09:58 go.mod 10:04:47 -rw-rw-r-- 1 jenkins jenkins 31670 May 16 09:58 go.sum 10:04:47 drwxrwxr-x 3 jenkins jenkins 4096 May 16 09:58 internal 10:04:47 drwxrwxr-x 2 jenkins jenkins 4096 May 16 09:58 simulator 10:04:47 drwxrwxr-x 4 jenkins jenkins 4096 May 16 09:58 snap 10:04:47 -rw-rw-r-- 1 jenkins jenkins 229 May 16 09:58 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 10:04:47 + 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=b81855801eaf6f518da4c24f49e07fc4228b461e --label arch=arm64 --label version=0.0.0 . 10:04:48 Sending build context to Docker daemon 3.442MB 10:04:48 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 10:04:48 Step 2/22 : FROM ${BASE} AS builder 10:04:48 ---> 5a22fce0593d 10:04:48 Step 3/22 : ARG ADD_BUILD_TAGS="" 10:04:48 ---> Running in e8f3bd6f5ef0 10:04:49 Removing intermediate container e8f3bd6f5ef0 10:04:49 ---> 5f9be09010c6 10:04:49 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 10:04:49 ---> Running in 1172f997e0dd 10:04:49 Removing intermediate container 1172f997e0dd 10:04:49 ---> 2c0846277fd8 10:04:49 Step 5/22 : RUN apk add --update --no-cache make git openssh 10:04:49 ---> Running in dbb8652e9b5c 10:04:50 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 10:04:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 10:04:53 OK: 270 MiB in 61 packages 10:04:54 Removing intermediate container dbb8652e9b5c 10:04:54 ---> 09e301221f3c 10:04:54 Step 6/22 : WORKDIR /device-modbus-go 10:04:54 ---> Running in fc94866c266d 10:04:54 Removing intermediate container fc94866c266d 10:04:54 ---> 1d391637e8cf 10:04:54 Step 7/22 : COPY go.mod vendor* ./ 10:04:55 ---> 6d28f5fde005 10:04:55 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 10:04:55 ---> Running in 20090b8854e8 10:05:00 Removing intermediate container 20090b8854e8 10:05:00 ---> 9b1da484c9cf 10:05:00 Step 9/22 : COPY . . 10:05:00 ---> 13417accd28e 10:05:00 Step 10/22 : RUN ${MAKE} 10:05:00 ---> Running in e12826edf492 10:05:02 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 10:07:39 Removing intermediate container e12826edf492 10:07:39 ---> 6a9c78291533 10:07:39 Step 11/22 : FROM alpine:3.17 10:07:39 3.17: Pulling from library/alpine 10:07:39 c41833b44d91: Already exists 10:07:39 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 10:07:39 Status: Downloaded newer image for alpine:3.17 10:07:39 ---> 51e60588ff2c 10:07:39 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 10:07:39 ---> Running in 7076c7472f8b 10:07:39 Removing intermediate container 7076c7472f8b 10:07:39 ---> f2e28b84e136 10:07:39 Step 13/22 : RUN apk add --update --no-cache dumb-init 10:07:39 ---> Running in 8a8f5dff8397 10:07:40 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 10:07:40 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 10:07:42 (1/1) Installing dumb-init (1.2.5-r2) 10:07:42 Executing busybox-1.35.0-r29.trigger 10:07:42 OK: 8 MiB in 16 packages 10:07:44 Removing intermediate container 8a8f5dff8397 10:07:44 ---> ad2b427e1603 10:07:44 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 10:07:45 ---> a91080d9c8cd 10:07:45 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 10:07:46 ---> 6b2a81e685c3 10:07:46 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 10:07:46 ---> 24c8ae38ace1 10:07:46 Step 17/22 : EXPOSE 59901 10:07:46 ---> Running in 0ed09b123a52 10:07:47 Removing intermediate container 0ed09b123a52 10:07:47 ---> b507367ec5fb 10:07:47 Step 18/22 : ENTRYPOINT ["/device-modbus"] 10:07:47 ---> Running in b0f1b0871c77 10:07:47 Removing intermediate container b0f1b0871c77 10:07:47 ---> da279a4ba96c 10:07:47 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 10:07:47 ---> Running in edd8a37b16ff 10:07:48 Removing intermediate container edd8a37b16ff 10:07:48 ---> 52ad620f6426 10:07:48 Step 20/22 : LABEL arch=arm64 10:07:48 ---> Running in 91bfdd43481f 10:07:48 Removing intermediate container 91bfdd43481f 10:07:48 ---> d64502eb7e01 10:07:48 Step 21/22 : LABEL git_sha=b81855801eaf6f518da4c24f49e07fc4228b461e 10:07:48 ---> Running in 4a3eb52c2c93 10:07:48 Removing intermediate container 4a3eb52c2c93 10:07:48 ---> 36b9fc93ac71 10:07:48 Step 22/22 : LABEL version=0.0.0 10:07:48 ---> Running in 2533b9a0730e 10:07:49 Removing intermediate container 2533b9a0730e 10:07:49 ---> 8019fe0d1c0e 10:07:49 [Warning] One or more build-args [ARCH] were not consumed 10:07:49 Successfully built 8019fe0d1c0e 10:07:49 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 10:07:50 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 10:07:50 10:07:50 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 10:07:50 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 10:07:51 arm64: Pulling from edgex-lftools-log-publisher 10:07:51 8998bd30e6a1: Pulling fs layer 10:07:51 04944245beec: Pulling fs layer 10:07:51 699f458cf7ca: Pulling fs layer 10:07:51 765212b225bb: Pulling fs layer 10:07:51 f23df028b6ca: Pulling fs layer 10:07:51 d65c8cfc05b1: Pulling fs layer 10:07:51 2437ff75d9bd: Pulling fs layer 10:07:51 765212b225bb: Waiting 10:07:51 f23df028b6ca: Waiting 10:07:51 d65c8cfc05b1: Waiting 10:07:51 2437ff75d9bd: Waiting 10:07:51 04944245beec: Verifying Checksum 10:07:51 04944245beec: Download complete 10:07:51 765212b225bb: Download complete 10:07:51 f23df028b6ca: Verifying Checksum 10:07:51 f23df028b6ca: Download complete 10:07:51 d65c8cfc05b1: Verifying Checksum 10:07:51 d65c8cfc05b1: Download complete 10:07:51 699f458cf7ca: Verifying Checksum 10:07:51 8998bd30e6a1: Verifying Checksum 10:07:51 8998bd30e6a1: Download complete 10:07:54 2437ff75d9bd: Verifying Checksum 10:07:54 2437ff75d9bd: Download complete 10:07:56 8998bd30e6a1: Pull complete 10:07:57 04944245beec: Pull complete 10:07:58 699f458cf7ca: Pull complete 10:07:58 765212b225bb: Pull complete 10:07:59 f23df028b6ca: Pull complete 10:07:59 d65c8cfc05b1: Pull complete 10:08:14 2437ff75d9bd: Pull complete 10:08:14 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 10:08:14 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 10:08:14 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 10:08:15 prd-ubuntu20.04-docker-arm64-4c-16g-15545 does not seem to be running inside a container 10:08:15 $ 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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 10:08:18 $ docker top 435e44a232a0cfc34f5b3dea74756c71954a827570319ac6c8ad234179b144c5 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 10:08:18 ---> job-cost.sh 10:08:18 lf-activate-venv: SKIPPING 10:08:18 INFO: No Stack... 10:08:19 INFO: Retrieving Pricing Info for: v3-standard-4 10:08:20 INFO: Archiving Costs [Pipeline] sh 10:08:21 + cut -d, -f6+ 10:08:21 cat /w/workspace/device-modbus-go/1/archives/cost.csv [Pipeline] lock 10:08:21 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-481-1-stack-cost] 10:08:21 Resource [jenkins-edgexfoundry-device-modbus-go-PR-481-1-stack-cost] did not exist. Created. 10:08:21 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-481-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 10:08:22 /w/workspace/device-modbus-go/1@tmp/durable-817a60ef/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 10:08:22 + echo total: 0.10999999940395355 [Pipeline] stash 10:08:22 Warning: overwriting stash ‘stack-cost’ 10:08:22 Stashed 1 file(s) [Pipeline] } 10:08:22 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-481-1-stack-cost] [Pipeline] // lock [Pipeline] } 10:08:22 $ docker stop --time=1 435e44a232a0cfc34f5b3dea74756c71954a827570319ac6c8ad234179b144c5 10:08:24 $ docker rm -f --volumes 435e44a232a0cfc34f5b3dea74756c71954a827570319ac6c8ad234179b144c5 [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 10:08:25 provisioning config files... 10:08:25 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-481@tmp/config3471179637779726030tmp [Pipeline] { [Pipeline] sh 10:08:26 + set +x 10:08:26 + curl -s https://codecov.io/bash 10:08:26 + bash -s -- 10:08:26 10:08:26 _____ _ 10:08:26 / ____| | | 10:08:26 | | ___ __| | ___ ___ _____ __ 10:08:26 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 10:08:26 | |___| (_) | (_| | __/ (_| (_) \ V / 10:08:26 \_____\___/ \__,_|\___|\___\___/ \_/ 10:08:26 Bash-1.0.6 10:08:26 10:08:26 10:08:26 ==> git version 2.25.1 found 10:08:26 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 10:08:26 Release-Date: 2020-01-08 10:08:26 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 10:08:26 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 10:08:26 ==> Jenkins CI detected. 10:08:26 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-481 10:08:26 project root: . 10:08:26 --> token set from env 10:08:26 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 10:08:26 ==> Running gcov in . (disable via -X gcov) 10:08:26 ==> Python coveragepy not found 10:08:26 ==> Searching for coverage reports in: 10:08:26 + . 10:08:26 -> Found 1 reports 10:08:26 ==> Detecting git/mercurial file structure 10:08:26 ==> Reading reports 10:08:26 + ./coverage.out bytes=24160 10:08:26 ==> Appending adjustments 10:08:26 https://docs.codecov.io/docs/fixing-reports 10:08:26 + Found adjustments 10:08:26 ==> Gzipping contents 10:08:26 4.0K /tmp/codecov.zc6seP.gz 10:08:26 ==> Uploading reports 10:08:26 url: https://codecov.io 10:08:26 query: branch=PR-481&commit=b81855801eaf6f518da4c24f49e07fc4228b461e&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-481%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=481&job=&cmd_args= 10:08:26 -> Pinging Codecov 10:08:26 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-481&commit=b81855801eaf6f518da4c24f49e07fc4228b461e&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-481%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=481&job=&cmd_args= 10:08:26 -> Uploading to 10:08:26 https://storage.googleapis.com/codecov/v4/raw/2023-05-16/55DBCA73C666E3227836607328DD7E49/b81855801eaf6f518da4c24f49e07fc4228b461e/cdf61543-8236-4452-8338-afdfa12f8694.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230516%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230516T100826Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ab9fd3c6e152d1fff1b7b2ef9719192dfe2f9e6d0a2f77d3c40175937679f0bb 10:08:26 % Total % Received % Xferd Average Speed Time Time Time Current 10:08:26 Dload Upload Total Spent Left Speed 10:08:26 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3924 0 0 100 3924 0 20226 --:--:-- --:--:-- --:--:-- 20123 10:08:26 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/b81855801eaf6f518da4c24f49e07fc4228b461e [Pipeline] } 10:08:26 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 10:08:29 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-481/archives ] 10:08:29 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-481/archives 10:08:29 total 16 10:08:29 drwxr-xr-x 3 root root 4096 May 16 09:57 . 10:08:29 drwxrwxr-x 11 jenkins jenkins 4096 May 16 09:57 .. 10:08:29 drwxr-xr-x 2 root root 4096 May 16 09:57 cost 10:08:29 -rw-r--r-- 1 root root 88 May 16 09:57 cost.csv 10:08:29 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-481/archives 10:08:29 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-481/archives 10:08:29 total 16 10:08:29 drwxr-xr-x 3 jenkins jenkins 4096 May 16 09:57 . 10:08:29 drwxrwxr-x 11 jenkins jenkins 4096 May 16 09:57 .. 10:08:29 drwxr-xr-x 2 jenkins jenkins 4096 May 16 09:57 cost 10:08:29 -rw-r--r-- 1 jenkins jenkins 88 May 16 09:57 cost.csv [Pipeline] libraryResource [Pipeline] sh 10:08:29 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 10:08:30 ---> package-listing.sh 10:08:30 ++ facter osfamily 10:08:30 ++ tr '[:upper:]' '[:lower:]' 10:08:31 + OS_FAMILY=debian 10:08:31 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-481 10:08:31 + START_PACKAGES=/tmp/packages_start.txt 10:08:31 + END_PACKAGES=/tmp/packages_end.txt 10:08:31 + DIFF_PACKAGES=/tmp/packages_diff.txt 10:08:31 + PACKAGES=/tmp/packages_start.txt 10:08:31 + '[' /w/workspace/xfoundry_device-modbus-go_PR-481 ']' 10:08:31 + PACKAGES=/tmp/packages_end.txt 10:08:31 + case "${OS_FAMILY}" in 10:08:31 + dpkg -l 10:08:31 + grep '^ii' 10:08:31 + '[' -f /tmp/packages_start.txt ']' 10:08:31 + '[' -f /tmp/packages_end.txt ']' 10:08:31 + diff /tmp/packages_start.txt /tmp/packages_end.txt 10:08:31 + '[' /w/workspace/xfoundry_device-modbus-go_PR-481 ']' 10:08:31 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-481/archives/ 10:08:31 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-481/archives/ [Pipeline] echo 10:08:31 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-481/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 10:08:31 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 10:08:32 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 10:08:32 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 10:08:32 prd-ubuntu20.04-docker-8c-8g-15538 does not seem to be running inside a container 10:08:32 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/xfoundry_device-modbus-go_PR-481/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-481 -v /w/workspace/xfoundry_device-modbus-go_PR-481:/w/workspace/xfoundry_device-modbus-go_PR-481:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-481@tmp:/w/workspace/xfoundry_device-modbus-go_PR-481@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 10:08:33 $ docker top a3e0a4306d27b194dd3b11cedaee2fd1b4da76f82c92e9adbbb03ba92d70892f -eo pid,comm [Pipeline] { [Pipeline] sh 10:08:33 + touch /tmp/pre-build-complete [Pipeline] sh 10:08:33 + mkdir -p /var/log/sysstat [Pipeline] sh 10:08:34 + ls /var/log/sa-host 10:08:34 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 10:08:34 provisioning config files... 10:08:34 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-481@tmp/config1105028314278017458tmp [Pipeline] { [Pipeline] echo 10:08:34 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 10:08:34 ---> create-netrc.sh [Pipeline] } 10:08:35 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 10:08:35 ---> python-tools-install.sh [Pipeline] echo 10:08:35 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 10:08:35 ---> sudo-logs.sh 10:08:35 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 10:08:35 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 10:08:36 ---> job-cost.sh 10:08:36 lf-activate-venv: SKIPPING 10:08:36 DEBUG: total: 0.2199999988079071 10:08:36 INFO: Retrieving Stack Cost... 10:08:36 INFO: Retrieving Pricing Info for: v3-standard-8 10:08:37 INFO: Archiving Costs [Pipeline] echo 10:08:37 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 10:08:37 ---> logs-deploy.sh 10:08:37 lf-activate-venv: SKIPPING 10:08:37 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-481/1 10:08:37 INFO: archiving workspace using pattern(s): 10:08:38 Archives upload complete. 10:08:38 INFO: archiving logs to Nexus