Pull request #478 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of lenny-intel for edgexfoundry/device-modbus-go Obtained Jenkinsfile from b665685e7969455f5fafdfddc5d3bc5fd8649751+a3185666607ac015ce8e2ed96cee91149733c6fa (a30e20772743b75114350a5c747e61c80b8c38dc) 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-ssh1138349197221148305.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-ssh1140402120394370564.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-478/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-478/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh13135234098969657769.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-478/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh12280264011762500069.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-ssh17594303907428394590.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-478/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-478/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh12188345836740751211.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-14982 in /w/workspace/xfoundry_device-modbus-go_PR-478 [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-478 # 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/478/head:refs/remotes/origin/PR-478 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit a3185666607ac015ce8e2ed96cee91149733c6fa into PR head commit b665685e7969455f5fafdfddc5d3bc5fd8649751 Merge succeeded, producing b665685e7969455f5fafdfddc5d3bc5fd8649751 Checking out Revision b665685e7969455f5fafdfddc5d3bc5fd8649751 (PR-478) > git config core.sparsecheckout # timeout=10 > git checkout -f b665685e7969455f5fafdfddc5d3bc5fd8649751 # 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 a3185666607ac015ce8e2ed96cee91149733c6fa # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b665685e7969455f5fafdfddc5d3bc5fd8649751 # timeout=10 Commit message: "docs: Add main branch Warning" 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 22:51:13 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 22:51:13 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 22:51:13 ========================================================= 22:51:13 EdgeX Global Pipelines Version Info 22:51:13 ========================================================= [Pipeline] libraryResource [Pipeline] sh 22:51:14 ------------------- 22:51:14 stable info: 22:51:14 ------------------- 22:51:14 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 22:51:14 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 22:51:14 Message: update stable to v1.0.249 22:51:14 ------------------- 22:51:14 experimental info: 22:51:14 ------------------- 22:51:14 Commited By: **** collab-it+edgex@linuxfoundation.org 22:51:14 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 22:51:14 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 22:51:14 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 22:51:14 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 22:51:14 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-478 [Pipeline] echo 22:51:15 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-478 [Pipeline] echo 22:51:16 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-478 [Pipeline] echo 22:51:16 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b665685e7969455f5fafdfddc5d3bc5fd8649751 [Pipeline] echo 22:51:16 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b665685 [Pipeline] echo 22:51:16 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 22:51:16 provisioning config files... 22:51:16 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-478@tmp/config9764617339705792825tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:51:16 ---> docker-login.sh 22:51:16 nexus3.edgexfoundry.org:10001 22:51:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:51:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:51:16 Configure a credential helper to remove this warning. See 22:51:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:51:16 22:51:16 Login Succeeded 22:51:16 nexus3.edgexfoundry.org:10002 22:51:17 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:51:17 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:51:17 Configure a credential helper to remove this warning. See 22:51:17 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:51:17 22:51:17 Login Succeeded 22:51:17 nexus3.edgexfoundry.org:10003 22:51:17 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:51:17 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:51:17 Configure a credential helper to remove this warning. See 22:51:17 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:51:17 22:51:17 Login Succeeded 22:51:17 nexus3.edgexfoundry.org:10004 22:51:17 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:51:17 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:51:17 Configure a credential helper to remove this warning. See 22:51:17 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:51:17 22:51:17 Login Succeeded 22:51:17 docker.io 22:51:17 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:51:17 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:51:17 Configure a credential helper to remove this warning. See 22:51:17 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:51:17 22:51:17 Login Succeeded 22:51:17 ---> docker-login.sh ends [Pipeline] } 22:51:17 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 22:51:18 + git rev-list -1 --merges b665685e7969455f5fafdfddc5d3bc5fd8649751~1..b665685e7969455f5fafdfddc5d3bc5fd8649751 [Pipeline] echo 22:51:18 -----------> git rev-list -1 --merges b665685e7969455f5fafdfddc5d3bc5fd8649751~1..b665685e7969455f5fafdfddc5d3bc5fd8649751 b665685e7969455f5fafdfddc5d3bc5fd8649751 [false] [Pipeline] sh 22:51:18 + git log --format=format:%s -1 b665685e7969455f5fafdfddc5d3bc5fd8649751 [Pipeline] echo 22:51:18 ========================================================= 22:51:18 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 22:51:18 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 22:51:19 + git log --format=format:%s -1 b665685e7969455f5fafdfddc5d3bc5fd8649751 [Pipeline] echo 22:51:19 [semverPrep] GIT_COMMIT: b665685e7969455f5fafdfddc5d3bc5fd8649751, Commit Message: docs: Add main branch Warning [Pipeline] echo 22:51:19 [semverPrep] This is not a build commit. [Pipeline] sh 22:51:19 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 22:51:19 + grep -v github /etc/ssh/ssh_known_hosts 22:51:19 + [ -e /tmp/ssh_known_hosts ] 22:51:19 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 22:51:19 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 22:51:19 + sudo tee -a /etc/ssh/ssh_known_hosts 22:51:19 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:51:20 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 22:51:20 22:51:20 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:51:20 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 22:51:20 0.1.4: Pulling from edgex-devops/py-git-semver 22:51:20 b85a868b505f: Pulling fs layer 22:51:20 e2be974225ed: Pulling fs layer 22:51:20 339a4e72a1f5: Pulling fs layer 22:51:20 988bab9f4d93: Pulling fs layer 22:51:20 1469e6f7b9e6: Pulling fs layer 22:51:20 eaf3925da568: Pulling fs layer 22:51:20 bab4dde63d76: Pulling fs layer 22:51:20 bde34c3a00c8: Pulling fs layer 22:51:20 b352a97aabf1: Pulling fs layer 22:51:20 4872d77fe225: Pulling fs layer 22:51:20 5851b861e8e6: Pulling fs layer 22:51:20 988bab9f4d93: Waiting 22:51:20 1469e6f7b9e6: Waiting 22:51:20 eaf3925da568: Waiting 22:51:20 bab4dde63d76: Waiting 22:51:20 bde34c3a00c8: Waiting 22:51:20 b352a97aabf1: Waiting 22:51:20 4872d77fe225: Waiting 22:51:20 5851b861e8e6: Waiting 22:51:20 e2be974225ed: Verifying Checksum 22:51:20 e2be974225ed: Download complete 22:51:20 988bab9f4d93: Verifying Checksum 22:51:20 988bab9f4d93: Download complete 22:51:20 1469e6f7b9e6: Verifying Checksum 22:51:20 1469e6f7b9e6: Download complete 22:51:20 eaf3925da568: Download complete 22:51:20 339a4e72a1f5: Verifying Checksum 22:51:20 339a4e72a1f5: Download complete 22:51:20 bde34c3a00c8: Download complete 22:51:20 b352a97aabf1: Download complete 22:51:20 4872d77fe225: Download complete 22:51:20 5851b861e8e6: Download complete 22:51:20 b85a868b505f: Download complete 22:51:21 bab4dde63d76: Verifying Checksum 22:51:21 bab4dde63d76: Download complete 22:51:21 b85a868b505f: Pull complete 22:51:22 e2be974225ed: Pull complete 22:51:22 339a4e72a1f5: Pull complete 22:51:22 988bab9f4d93: Pull complete 22:51:23 1469e6f7b9e6: Pull complete 22:51:23 eaf3925da568: Pull complete 22:51:24 bab4dde63d76: Pull complete 22:51:24 bde34c3a00c8: Pull complete 22:51:24 b352a97aabf1: Pull complete 22:51:24 4872d77fe225: Pull complete 22:51:24 5851b861e8e6: Pull complete 22:51:24 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 22:51:24 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 22:51:24 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:51:25 prd-ubuntu20.04-docker-8c-8g-14982 does not seem to be running inside a container 22:51:25 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-478 -v /w/workspace/xfoundry_device-modbus-go_PR-478:/w/workspace/xfoundry_device-modbus-go_PR-478:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-478@tmp:/w/workspace/xfoundry_device-modbus-go_PR-478@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 22:51:27 $ docker top eb0dffd20e07a7a80750af175b42035fcf0010698a89dd4f8591d6073083167c -eo pid,comm 22:51:27 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). 22:51:27 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 22:51:27 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 22:51:27 [ssh-agent] Looking for ssh-agent implementation... 22:51:27 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 22:51:27 $ docker exec eb0dffd20e07a7a80750af175b42035fcf0010698a89dd4f8591d6073083167c ssh-agent 22:51:27 SSH_AUTH_SOCK=/tmp/ssh-JMQ1ndc5spaI/agent.34 22:51:27 SSH_AGENT_PID=40 22:51:27 Running ssh-add (command line suppressed) 22:51:27 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-478@tmp/private_key_15921447967601371328.key (/w/workspace/xfoundry_device-modbus-go_PR-478@tmp/private_key_15921447967601371328.key) 22:51:27 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 22:51:28 + git tag --points-at HEAD [Pipeline] } 22:51:28 $ docker exec --env ******** --env ******** eb0dffd20e07a7a80750af175b42035fcf0010698a89dd4f8591d6073083167c ssh-agent -k 22:51:28 unset SSH_AUTH_SOCK; 22:51:28 unset SSH_AGENT_PID; 22:51:28 echo Agent pid 40 killed; 22:51:28 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 22:51:28 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 22:51:28 [ssh-agent] Looking for ssh-agent implementation... 22:51:28 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 22:51:28 $ docker exec eb0dffd20e07a7a80750af175b42035fcf0010698a89dd4f8591d6073083167c ssh-agent 22:51:28 SSH_AUTH_SOCK=/tmp/ssh-enoQTM8oemyL/agent.73 22:51:28 SSH_AGENT_PID=79 22:51:28 Running ssh-add (command line suppressed) 22:51:28 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-478@tmp/private_key_14865776600024826428.key (/w/workspace/xfoundry_device-modbus-go_PR-478@tmp/private_key_14865776600024826428.key) 22:51:28 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 22:51:29 + git semver init 22:51:29 2023-05-10 22:51:29,374 [run_init] DEBUG init version:0.0.0 force:False 22:51:29 2023-05-10 22:51:29,375 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-478/.semver 22:51:29 2023-05-10 22:51:29,375 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-478/.semver 22:51:29 2023-05-10 22:51:29,375 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-478/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-478, universal_newlines=False, shell=None, istream=None) 22:51:30 2023-05-10 22:51:30,109 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-478/.git/info/exclude 22:51:30 2023-05-10 22:51:30,110 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-478/.semver/PR-478 with force:False 22:51:30 2023-05-10 22:51:30,110 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-478/.semver/PR-478 22:51:30 2023-05-10 22:51:30,115 [execute] INFO git cat-file --batch-check 22:51:30 2023-05-10 22:51:30,115 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-478/.semver, universal_newlines=False, shell=None, istream=) 22:51:30 2023-05-10 22:51:30,122 [execute] INFO git cat-file --batch 22:51:30 2023-05-10 22:51:30,123 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-478/.semver, universal_newlines=False, shell=None, istream=) 22:51:30 2023-05-10 22:51:30,128 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-478/.semver/PR-478 22:51:30 0.0.0 [Pipeline] } 22:51:30 $ docker exec --env ******** --env ******** eb0dffd20e07a7a80750af175b42035fcf0010698a89dd4f8591d6073083167c ssh-agent -k 22:51:30 unset SSH_AUTH_SOCK; 22:51:30 unset SSH_AGENT_PID; 22:51:30 echo Agent pid 79 killed; 22:51:30 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 22:51:30 + git semver [Pipeline] } 22:51:31 $ docker stop --time=1 eb0dffd20e07a7a80750af175b42035fcf0010698a89dd4f8591d6073083167c 22:51:32 $ docker rm -f --volumes eb0dffd20e07a7a80750af175b42035fcf0010698a89dd4f8591d6073083167c [Pipeline] // withDockerContainer [Pipeline] sh 22:51:32 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 22:51:33 Stashed 1 file(s) [Pipeline] echo 22:51:33 [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 22:51:33 provisioning config files... 22:51:33 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-478@tmp/config9296499819926667005tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:51:34 ---> docker-login.sh 22:51:34 nexus3.edgexfoundry.org:10001 22:51:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:51:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:51:34 Configure a credential helper to remove this warning. See 22:51:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:51:34 22:51:34 Login Succeeded 22:51:34 nexus3.edgexfoundry.org:10002 22:51:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:51:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:51:34 Configure a credential helper to remove this warning. See 22:51:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:51:34 22:51:34 Login Succeeded 22:51:34 nexus3.edgexfoundry.org:10003 22:51:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:51:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:51:34 Configure a credential helper to remove this warning. See 22:51:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:51:34 22:51:34 Login Succeeded 22:51:34 nexus3.edgexfoundry.org:10004 22:51:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:51:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:51:34 Configure a credential helper to remove this warning. See 22:51:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:51:34 22:51:34 Login Succeeded 22:51:34 docker.io 22:51:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:51:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:51:34 Configure a credential helper to remove this warning. See 22:51:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:51:34 22:51:34 Login Succeeded 22:51:34 ---> docker-login.sh ends [Pipeline] } 22:51:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 22:51:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:51:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:51:34 ========================================================= 22:51:34 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 22:51:34 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:51:35 + 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 . 22:51:35 Sending build context to Docker daemon 6.523MB 22:51:35 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 22:51:35 Step 2/10 : FROM ${BASE} AS builder 22:51:35 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 22:51:35 f56be85fc22e: Pulling fs layer 22:51:35 85791d961cd3: Pulling fs layer 22:51:35 d694b5ae8c79: Pulling fs layer 22:51:35 9f32a84ed3da: Pulling fs layer 22:51:35 4d19c01a9841: Pulling fs layer 22:51:35 9325e15d5711: Pulling fs layer 22:51:35 556b6ee489ea: Pulling fs layer 22:51:35 c5a4b2cf53e6: Pulling fs layer 22:51:35 9f32a84ed3da: Waiting 22:51:35 556b6ee489ea: Waiting 22:51:35 4d19c01a9841: Waiting 22:51:35 9325e15d5711: Waiting 22:51:35 85791d961cd3: Verifying Checksum 22:51:35 85791d961cd3: Download complete 22:51:35 9f32a84ed3da: Verifying Checksum 22:51:35 9f32a84ed3da: Download complete 22:51:35 4d19c01a9841: Verifying Checksum 22:51:35 4d19c01a9841: Download complete 22:51:35 f56be85fc22e: Verifying Checksum 22:51:35 f56be85fc22e: Download complete 22:51:35 9325e15d5711: Verifying Checksum 22:51:35 9325e15d5711: Download complete 22:51:35 f56be85fc22e: Pull complete 22:51:35 85791d961cd3: Pull complete 22:51:36 c5a4b2cf53e6: Verifying Checksum 22:51:36 c5a4b2cf53e6: Download complete 22:51:36 d694b5ae8c79: Verifying Checksum 22:51:36 d694b5ae8c79: Download complete 22:51:36 556b6ee489ea: Verifying Checksum 22:51:36 556b6ee489ea: Download complete 22:51:39 d694b5ae8c79: Pull complete 22:51:39 9f32a84ed3da: Pull complete 22:51:39 4d19c01a9841: Pull complete 22:51:39 9325e15d5711: Pull complete 22:51:41 556b6ee489ea: Pull complete 22:51:42 c5a4b2cf53e6: Pull complete 22:51:42 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 22:51:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 22:51:42 ---> c4be618373d6 22:51:42 Step 3/10 : ARG ADD_BUILD_TAGS="" 22:51:45 ---> Running in 9dd83bb1804c 22:51:45 Removing intermediate container 9dd83bb1804c 22:51:45 ---> 7583cee3b462 22:51:45 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 22:51:45 ---> Running in 2c2ab6e2af66 22:51:45 Removing intermediate container 2c2ab6e2af66 22:51:45 ---> 3949f873be3c 22:51:45 Step 5/10 : RUN apk add --update --no-cache make git openssh 22:51:45 ---> Running in 4751507665b4 22:51:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 22:51:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 22:51:46 (1/8) Installing openssh-keygen (9.1_p1-r2) 22:51:46 (2/8) Installing libedit (20221030.3.1-r0) 22:51:46 (3/8) Installing openssh-client-common (9.1_p1-r2) 22:51:46 (4/8) Installing openssh-client-default (9.1_p1-r2) 22:51:46 (5/8) Installing openssh-sftp-server (9.1_p1-r2) 22:51:46 (6/8) Installing openssh-server-common (9.1_p1-r2) 22:51:46 (7/8) Installing openssh-server (9.1_p1-r2) 22:51:46 (8/8) Installing openssh (9.1_p1-r2) 22:51:46 Executing busybox-1.35.0-r29.trigger 22:51:46 OK: 270 MiB in 61 packages 22:51:46 Removing intermediate container 4751507665b4 22:51:46 ---> 3542e9d5bc32 22:51:46 Step 6/10 : WORKDIR /device-modbus-go 22:51:47 ---> Running in 1a252e3bde2f 22:51:47 Removing intermediate container 1a252e3bde2f 22:51:47 ---> daab3dc3505b 22:51:47 Step 7/10 : COPY go.mod vendor* ./ 22:51:47 ---> 243db12d9a61 22:51:47 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:51:47 ---> Running in b813c52774ef 22:51:48 Still waiting to schedule task 22:51:48 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 22:52:13 Removing intermediate container b813c52774ef 22:52:13 ---> db4aebc5d195 22:52:13 Step 9/10 : COPY . . 22:52:13 ---> 2538ca2ee928 22:52:13 Step 10/10 : RUN ${MAKE} 22:52:13 ---> Running in 00dc880fc403 22:52:13 noop 22:52:13 Removing intermediate container 00dc880fc403 22:52:13 ---> 3d69096b299f 22:52:13 Successfully built 3d69096b299f 22:52:13 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:52:14 + docker inspect -f . ci-base-image-x86_64 22:52:14 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:52:14 prd-ubuntu20.04-docker-8c-8g-14982 does not seem to be running inside a container 22:52:14 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-478 -v /w/workspace/xfoundry_device-modbus-go_PR-478:/w/workspace/xfoundry_device-modbus-go_PR-478:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-478@tmp:/w/workspace/xfoundry_device-modbus-go_PR-478@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 22:52:14 $ docker top 37478cf83f73eeb8e3377123c804a000c503986aa625037c679cc4a65755826e -eo pid,comm [Pipeline] { [Pipeline] sh 22:52:15 + go version 22:52:15 go version go1.20.2 linux/amd64 [Pipeline] } 22:52:15 $ docker stop --time=1 37478cf83f73eeb8e3377123c804a000c503986aa625037c679cc4a65755826e 22:52:16 $ docker rm -f --volumes 37478cf83f73eeb8e3377123c804a000c503986aa625037c679cc4a65755826e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:52:17 + docker inspect -f . ci-base-image-x86_64 22:52:17 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:52:17 prd-ubuntu20.04-docker-8c-8g-14982 does not seem to be running inside a container 22:52:17 $ 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-478 -v /w/workspace/xfoundry_device-modbus-go_PR-478:/w/workspace/xfoundry_device-modbus-go_PR-478:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-478@tmp:/w/workspace/xfoundry_device-modbus-go_PR-478@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 22:52:17 $ docker top 3057f5fdad42ac695c4ae5c581a6d5e54ead6e72e608e8777595e41fa32a1025 -eo pid,comm [Pipeline] { [Pipeline] sh 22:52:18 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-478 [Pipeline] fileExists [Pipeline] sh 22:52:18 + make test 22:52:18 go test ./... -coverprofile=coverage.out 22:52:23 ? github.com/edgexfoundry/device-modbus-go [no test files] 22:52:31 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 22:52:32 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.012s coverage: 47.4% of statements 22:52:38 go vet ./... 22:52:41 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 22:52:41 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 22:52:41 ./bin/test-attribution-txt.sh [Pipeline] echo 22:52:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 22:52:41 $ docker stop --time=1 3057f5fdad42ac695c4ae5c581a6d5e54ead6e72e608e8777595e41fa32a1025 22:52:44 $ docker rm -f --volumes 3057f5fdad42ac695c4ae5c581a6d5e54ead6e72e608e8777595e41fa32a1025 [Pipeline] // withDockerContainer [Pipeline] sh 22:52:44 + sudo chown -R jenkins:jenkins . [Pipeline] stash 22:52:45 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 22:52:45 + sudo chown -R jenkins:jenkins . [Pipeline] sh 22:52:46 + ls -al . 22:52:46 total 184 22:52:46 drwxrwxr-x 10 jenkins jenkins 4096 May 10 22:52 . 22:52:46 drwxrwxr-x 4 jenkins jenkins 4096 May 10 22:51 .. 22:52:46 -rw-rw-r-- 1 jenkins jenkins 140 May 10 22:51 .dockerignore 22:52:46 drwxrwxr-x 8 jenkins jenkins 4096 May 10 22:51 .git 22:52:46 drwxrwxr-x 3 jenkins jenkins 4096 May 10 22:51 .github 22:52:46 -rw-rw-r-- 1 jenkins jenkins 331 May 10 22:51 .gitignore 22:52:46 -rw-rw-r-- 1 jenkins jenkins 41 May 10 22:51 .golangci.yml 22:52:46 drwxr-xr-x 3 jenkins jenkins 4096 May 10 22:51 .semver 22:52:46 -rw-rw-r-- 1 jenkins jenkins 10132 May 10 22:51 Attribution.txt 22:52:46 -rw-rw-r-- 1 jenkins jenkins 11576 May 10 22:51 CHANGELOG.md 22:52:46 -rw-rw-r-- 1 jenkins jenkins 1365 May 10 22:51 Dockerfile 22:52:46 -rw-rw-r-- 1 jenkins jenkins 677 May 10 22:51 GOVERNANCE.md 22:52:46 -rw-rw-r-- 1 jenkins jenkins 680 May 10 22:51 Jenkinsfile 22:52:46 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 22:51 LICENSE 22:52:46 -rw-rw-r-- 1 jenkins jenkins 1705 May 10 22:51 Makefile 22:52:46 -rw-rw-r-- 1 jenkins jenkins 622 May 10 22:51 OWNERS.md 22:52:46 -rw-rw-r-- 1 jenkins jenkins 4554 May 10 22:51 README.md 22:52:46 -rw-rw-r-- 1 jenkins jenkins 5 May 10 22:51 VERSION 22:52:46 drwxrwxr-x 2 jenkins jenkins 4096 May 10 22:51 bin 22:52:46 drwxrwxr-x 3 jenkins jenkins 4096 May 10 22:51 cmd 22:52:46 -rw-r--r-- 1 jenkins jenkins 24160 May 10 22:52 coverage.out 22:52:46 -rw-rw-r-- 1 jenkins jenkins 3453 May 10 22:51 go.mod 22:52:46 -rw-rw-r-- 1 jenkins jenkins 31670 May 10 22:51 go.sum 22:52:46 drwxrwxr-x 3 jenkins jenkins 4096 May 10 22:51 internal 22:52:46 drwxrwxr-x 2 jenkins jenkins 4096 May 10 22:51 simulator 22:52:46 drwxrwxr-x 4 jenkins jenkins 4096 May 10 22:51 snap 22:52:46 -rw-rw-r-- 1 jenkins jenkins 229 May 10 22:51 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:52:46 + 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=b665685e7969455f5fafdfddc5d3bc5fd8649751 --label arch=amd64 --label version=0.0.0 . 22:52:46 Sending build context to Docker daemon 6.548MB 22:52:46 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 22:52:46 Step 2/22 : FROM ${BASE} AS builder 22:52:46 ---> 3d69096b299f 22:52:46 Step 3/22 : ARG ADD_BUILD_TAGS="" 22:52:46 ---> Running in e70762b33653 22:52:46 Removing intermediate container e70762b33653 22:52:46 ---> 513870191ba5 22:52:46 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 22:52:46 ---> Running in 524ea70b455e 22:52:46 Removing intermediate container 524ea70b455e 22:52:46 ---> 1c6447bb6e4f 22:52:46 Step 5/22 : RUN apk add --update --no-cache make git openssh 22:52:46 ---> Running in ff72eab3a682 22:52:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 22:52:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 22:52:47 OK: 270 MiB in 61 packages 22:52:47 Removing intermediate container ff72eab3a682 22:52:47 ---> acedee2fc54d 22:52:47 Step 6/22 : WORKDIR /device-modbus-go 22:52:47 ---> Running in c8cd634495fa 22:52:47 Removing intermediate container c8cd634495fa 22:52:47 ---> 29651f868eee 22:52:47 Step 7/22 : COPY go.mod vendor* ./ 22:52:47 ---> 12147dd1c83e 22:52:47 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:52:47 ---> Running in 5f45f6064658 22:52:48 Removing intermediate container 5f45f6064658 22:52:48 ---> f76c8d1c511f 22:52:48 Step 9/22 : COPY . . 22:52:49 ---> 3ff542cc3276 22:52:49 Step 10/22 : RUN ${MAKE} 22:52:49 ---> Running in b67694688b34 22:52:49 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 22:53:07 Removing intermediate container b67694688b34 22:53:07 ---> 625f614e8a51 22:53:07 Step 11/22 : FROM alpine:3.17 22:53:08 3.17: Pulling from library/alpine 22:53:08 f56be85fc22e: Already exists 22:53:08 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 22:53:08 Status: Downloaded newer image for alpine:3.17 22:53:08 ---> 9ed4aefc74f6 22:53:08 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 22:53:08 ---> Running in 7d2dc6cc22a0 22:53:08 Removing intermediate container 7d2dc6cc22a0 22:53:08 ---> cd8bee73889b 22:53:08 Step 13/22 : RUN apk add --update --no-cache dumb-init 22:53:08 ---> Running in 803659e31e37 22:53:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 22:53:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 22:53:08 (1/1) Installing dumb-init (1.2.5-r2) 22:53:08 Executing busybox-1.35.0-r29.trigger 22:53:08 OK: 7 MiB in 16 packages 22:53:09 Removing intermediate container 803659e31e37 22:53:09 ---> e065a94a260e 22:53:09 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 22:53:09 ---> 14af26b74cf6 22:53:09 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 22:53:09 ---> a64ff8ed44f6 22:53:09 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 22:53:10 ---> 335165744bb3 22:53:10 Step 17/22 : EXPOSE 59901 22:53:10 ---> Running in 7016ca5eea1c 22:53:10 Removing intermediate container 7016ca5eea1c 22:53:10 ---> ceb47ce1331e 22:53:10 Step 18/22 : ENTRYPOINT ["/device-modbus"] 22:53:10 ---> Running in d65848a26e6a 22:53:10 Removing intermediate container d65848a26e6a 22:53:10 ---> 3cc312056f68 22:53:10 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 22:53:10 ---> Running in 695d784189e2 22:53:10 Removing intermediate container 695d784189e2 22:53:10 ---> 6762939528b2 22:53:10 Step 20/22 : LABEL arch=amd64 22:53:10 ---> Running in e8e1bf95d845 22:53:10 Removing intermediate container e8e1bf95d845 22:53:10 ---> bee690f9adf8 22:53:10 Step 21/22 : LABEL git_sha=b665685e7969455f5fafdfddc5d3bc5fd8649751 22:53:10 ---> Running in 8549b9c9f8f7 22:53:10 Removing intermediate container 8549b9c9f8f7 22:53:10 ---> 0623fe49c7c6 22:53:10 Step 22/22 : LABEL version=0.0.0 22:53:10 ---> Running in d818766fdf76 22:53:10 Removing intermediate container d818766fdf76 22:53:10 ---> ec00e4a609eb 22:53:10 [Warning] One or more build-args [ARCH] were not consumed 22:53:10 Successfully built ec00e4a609eb 22:53:10 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 22:53:11 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:53:11 22:53:11 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:53:12 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:53:12 latest: Pulling from edgex-lftools-log-publisher 22:53:12 5eb5b503b376: Pulling fs layer 22:53:12 5c69ac0246d0: Pulling fs layer 22:53:12 ec43610c2a17: Pulling fs layer 22:53:12 3a2ae6a8a46f: Pulling fs layer 22:53:12 33b1e0a273af: Pulling fs layer 22:53:12 5d3b04190fa2: Pulling fs layer 22:53:12 2f39f015ded8: Pulling fs layer 22:53:12 3a2ae6a8a46f: Waiting 22:53:12 33b1e0a273af: Waiting 22:53:12 5d3b04190fa2: Waiting 22:53:12 2f39f015ded8: Waiting 22:53:12 5c69ac0246d0: Verifying Checksum 22:53:12 5c69ac0246d0: Download complete 22:53:12 3a2ae6a8a46f: Download complete 22:53:12 33b1e0a273af: Verifying Checksum 22:53:12 33b1e0a273af: Download complete 22:53:12 5d3b04190fa2: Download complete 22:53:12 ec43610c2a17: Verifying Checksum 22:53:12 ec43610c2a17: Download complete 22:53:12 5eb5b503b376: Download complete 22:53:12 2f39f015ded8: Download complete 22:53:13 5eb5b503b376: Pull complete 22:53:13 5c69ac0246d0: Pull complete 22:53:13 ec43610c2a17: Pull complete 22:53:13 3a2ae6a8a46f: Pull complete 22:53:14 33b1e0a273af: Pull complete 22:53:14 5d3b04190fa2: Pull complete 22:53:18 2f39f015ded8: Pull complete 22:53:18 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 22:53:18 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:53:18 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:53:18 prd-ubuntu20.04-docker-8c-8g-14982 does not seem to be running inside a container 22:53:18 $ 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-478 -v /w/workspace/xfoundry_device-modbus-go_PR-478:/w/workspace/xfoundry_device-modbus-go_PR-478:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-478@tmp:/w/workspace/xfoundry_device-modbus-go_PR-478@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 22:53:21 $ docker top 4704a58392bb5f674275f9bfb382d9e98563941cebb8039cd937f62cf16faad7 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:53:22 ---> job-cost.sh 22:53:22 lf-activate-venv: SKIPPING 22:53:22 INFO: No Stack... 22:53:22 INFO: Retrieving Pricing Info for: v3-standard-8 22:53:22 INFO: Archiving Costs [Pipeline] sh 22:53:23 + cat /w/workspace/xfoundry_device-modbus-go_PR-478/archives/cost.csv 22:53:23 + cut -d, -f6 [Pipeline] lock 22:53:23 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-478-1-stack-cost] 22:53:23 Resource [jenkins-edgexfoundry-device-modbus-go-PR-478-1-stack-cost] did not exist. Created. 22:53:23 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-478-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 22:53:23 + echo total: 0.2199999988079071 [Pipeline] stash 22:53:23 Stashed 1 file(s) [Pipeline] } 22:53:23 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-478-1-stack-cost] [Pipeline] // lock [Pipeline] } 22:53:23 $ docker stop --time=1 4704a58392bb5f674275f9bfb382d9e98563941cebb8039cd937f62cf16faad7 22:53:24 $ docker rm -f --volumes 4704a58392bb5f674275f9bfb382d9e98563941cebb8039cd937f62cf16faad7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 22:57:27 Running on prd-ubuntu20.04-docker-arm64-4c-16g-14995 in /w/workspace/xfoundry_device-modbus-go_PR-478 [Pipeline] { [Pipeline] ws 22:57:27 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 22:57:27 Selected Git installation does not exist. Using Default 22:57:27 The recommended git tool is: NONE 22:57:36 using credential edgex-jenkins-ssh 22:57:36 Cloning the remote Git repository 22:57:36 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 22:57:36 > git init /w/workspace/device-modbus-go/1 # timeout=10 22:57:36 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 22:57:36 > git --version # timeout=10 22:57:36 > git --version # 'git version 2.25.1' 22:57:36 using GIT_SSH to set credentials SSH Credentials for GitHub 22:57:37 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 22:57:38 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 22:57:38 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 22:57:39 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 22:57:39 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 22:57:39 using GIT_SSH to set credentials SSH Credentials for GitHub 22:57:39 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/478/head:refs/remotes/origin/PR-478 +refs/heads/main:refs/remotes/origin/main # timeout=10 22:57:39 Merging remotes/origin/main commit a3185666607ac015ce8e2ed96cee91149733c6fa into PR head commit b665685e7969455f5fafdfddc5d3bc5fd8649751 22:57:40 Merge succeeded, producing b665685e7969455f5fafdfddc5d3bc5fd8649751 22:57:40 Checking out Revision b665685e7969455f5fafdfddc5d3bc5fd8649751 (PR-478) 22:57:39 > git config core.sparsecheckout # timeout=10 22:57:40 > git checkout -f b665685e7969455f5fafdfddc5d3bc5fd8649751 # timeout=10 22:57:40 > git remote # timeout=10 22:57:40 > git config --get remote.origin.url # timeout=10 22:57:40 using GIT_SSH to set credentials SSH Credentials for GitHub 22:57:40 > git merge a3185666607ac015ce8e2ed96cee91149733c6fa # timeout=10 22:57:40 > git rev-parse HEAD^{commit} # timeout=10 22:57:40 > git config core.sparsecheckout # timeout=10 22:57:40 > git checkout -f b665685e7969455f5fafdfddc5d3bc5fd8649751 # timeout=10 22:57:43 Commit message: "docs: Add main branch Warning" 22:57:43 > git --version # timeout=10 22:57:43 > git --version # 'git version 2.25.1' 22:57:43 fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 22:57:45 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 22:57:45 % Total % Received % Xferd Average Speed Time Time Time Current 22:57:45 Dload Upload Total Spent Left Speed 22:57:45 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 89795 0 --:--:-- --:--:-- --:--:-- 89795 [Pipeline] sh 22:57:45 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 22:57:46 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 22:57:46 + sudo tee /etc/docker/daemon.new 22:57:46 { 22:57:46 "registry-mirrors": [ 22:57:46 "https://nexus3.edgexfoundry.org:10001" 22:57:46 ], 22:57:46 "bip": "10.250.0.254/24", 22:57:46 "hosts": [ 22:57:46 "tcp://0.0.0.0:5555", 22:57:46 "unix:///var/run/docker.sock" 22:57:46 ], 22:57:46 "mtu": 1458, 22:57:46 "selinux-enabled": true, 22:57:46 "seccomp-profile": "/etc/docker/seccomp.json" 22:57:46 } [Pipeline] sh 22:57:46 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 22:57:46 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 22:58:05 provisioning config files... 22:58:05 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config15180799437406801963tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:58:05 ---> docker-login.sh 22:58:05 nexus3.edgexfoundry.org:10001 22:58:06 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:58:06 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:58:06 Configure a credential helper to remove this warning. See 22:58:06 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:58:06 22:58:06 Login Succeeded 22:58:06 nexus3.edgexfoundry.org:10002 22:58:06 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:58:06 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:58:06 Configure a credential helper to remove this warning. See 22:58:06 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:58:06 22:58:06 Login Succeeded 22:58:06 nexus3.edgexfoundry.org:10003 22:58:06 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:58:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:58:07 Configure a credential helper to remove this warning. See 22:58:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:58:07 22:58:07 Login Succeeded 22:58:07 nexus3.edgexfoundry.org:10004 22:58:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:58:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:58:07 Configure a credential helper to remove this warning. See 22:58:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:58:07 22:58:07 Login Succeeded 22:58:07 docker.io 22:58:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:58:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:58:07 Configure a credential helper to remove this warning. See 22:58:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:58:07 22:58:07 Login Succeeded 22:58:07 ---> docker-login.sh ends [Pipeline] } 22:58:08 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 22:58:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:58:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:58:08 ========================================================= 22:58:08 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 22:58:08 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:58:09 + 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 . 22:58:09 Sending build context to Docker daemon 3.414MB 22:58:09 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 22:58:09 Step 2/10 : FROM ${BASE} AS builder 22:58:09 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 22:58:09 c41833b44d91: Pulling fs layer 22:58:09 ed15518f5707: Pulling fs layer 22:58:09 feae8fd75edb: Pulling fs layer 22:58:09 242c74f7c9fa: Pulling fs layer 22:58:09 3cdef696dda3: Pulling fs layer 22:58:09 2ced38df9373: Pulling fs layer 22:58:09 58f1dce35555: Pulling fs layer 22:58:09 3cdef696dda3: Waiting 22:58:09 242c74f7c9fa: Waiting 22:58:09 2ced38df9373: Waiting 22:58:09 58f1dce35555: Waiting 22:58:09 ed15518f5707: Verifying Checksum 22:58:09 ed15518f5707: Download complete 22:58:09 242c74f7c9fa: Verifying Checksum 22:58:09 242c74f7c9fa: Download complete 22:58:09 3cdef696dda3: Verifying Checksum 22:58:09 3cdef696dda3: Download complete 22:58:09 c41833b44d91: Verifying Checksum 22:58:09 c41833b44d91: Download complete 22:58:11 c41833b44d91: Pull complete 22:58:11 58f1dce35555: Verifying Checksum 22:58:11 58f1dce35555: Download complete 22:58:11 ed15518f5707: Pull complete 22:58:12 feae8fd75edb: Verifying Checksum 22:58:12 feae8fd75edb: Download complete 22:58:12 2ced38df9373: Download complete 22:58:22 feae8fd75edb: Pull complete 22:58:23 242c74f7c9fa: Pull complete 22:58:23 3cdef696dda3: Pull complete 22:58:29 2ced38df9373: Pull complete 22:58:31 58f1dce35555: Pull complete 22:58:34 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 22:58:34 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 22:58:34 ---> fadd8f120f05 22:58:34 Step 3/10 : ARG ADD_BUILD_TAGS="" 22:58:35 ---> Running in 23f84e28af8d 22:58:36 Removing intermediate container 23f84e28af8d 22:58:36 ---> 05285947388c 22:58:36 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 22:58:36 ---> Running in cab3f211a0e3 22:58:37 Removing intermediate container cab3f211a0e3 22:58:37 ---> 6ccb7ea1dda1 22:58:37 Step 5/10 : RUN apk add --update --no-cache make git openssh 22:58:37 ---> Running in 10218fa6985f 22:58:38 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 22:58:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 22:58:40 (1/8) Installing openssh-keygen (9.1_p1-r2) 22:58:40 (2/8) Installing libedit (20221030.3.1-r0) 22:58:40 (3/8) Installing openssh-client-common (9.1_p1-r2) 22:58:40 (4/8) Installing openssh-client-default (9.1_p1-r2) 22:58:40 (5/8) Installing openssh-sftp-server (9.1_p1-r2) 22:58:40 (6/8) Installing openssh-server-common (9.1_p1-r2) 22:58:40 (7/8) Installing openssh-server (9.1_p1-r2) 22:58:40 (8/8) Installing openssh (9.1_p1-r2) 22:58:40 Executing busybox-1.35.0-r29.trigger 22:58:40 OK: 270 MiB in 61 packages 22:58:41 Removing intermediate container 10218fa6985f 22:58:41 ---> 982db2e3bd8a 22:58:41 Step 6/10 : WORKDIR /device-modbus-go 22:58:41 ---> Running in 5a8a92bdd5d8 22:58:42 Removing intermediate container 5a8a92bdd5d8 22:58:42 ---> 3d992a5247e7 22:58:42 Step 7/10 : COPY go.mod vendor* ./ 22:58:42 ---> 3f76c2eb031a 22:58:42 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:58:42 ---> Running in a47209c36f13 22:59:50 Removing intermediate container a47209c36f13 22:59:50 ---> e8b69ecbe039 22:59:50 Step 9/10 : COPY . . 22:59:50 ---> 64ba4fdd7b93 22:59:50 Step 10/10 : RUN ${MAKE} 22:59:50 ---> Running in b278151aef2a 22:59:50 noop 22:59:50 Removing intermediate container b278151aef2a 22:59:50 ---> 22447c28e240 22:59:50 Successfully built 22447c28e240 22:59:50 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:59:51 + docker inspect -f . ci-base-image-arm64 22:59:51 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:59:51 prd-ubuntu20.04-docker-arm64-4c-16g-14995 does not seem to be running inside a container 22:59:51 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 22:59:52 $ docker top a65938f1ca939bf7d9ad0c3732c427c18225d28af6d83854e23f3b8895687bb7 -eo pid,comm [Pipeline] { [Pipeline] sh 22:59:53 + go version 22:59:53 go version go1.20.2 linux/arm64 [Pipeline] } 22:59:53 $ docker stop --time=1 a65938f1ca939bf7d9ad0c3732c427c18225d28af6d83854e23f3b8895687bb7 22:59:55 $ docker rm -f --volumes a65938f1ca939bf7d9ad0c3732c427c18225d28af6d83854e23f3b8895687bb7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:59:56 + docker inspect -f . ci-base-image-arm64 22:59:56 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:59:56 prd-ubuntu20.04-docker-arm64-4c-16g-14995 does not seem to be running inside a container 22:59:56 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 22:59:57 $ docker top 9a1426740c0fab28e31b02c78c8fd9ab70250886270980080ba5c609ffbb9b35 -eo pid,comm [Pipeline] { [Pipeline] sh 22:59:58 + git config --global --add safe.directory /w/workspace/device-modbus-go/1 [Pipeline] fileExists [Pipeline] sh 22:59:58 + make test 22:59:58 go test ./... -coverprofile=coverage.out 23:00:30 ? github.com/edgexfoundry/device-modbus-go [no test files] 23:02:22 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 23:02:22 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.076s coverage: 47.4% of statements 23:02:22 WARNING: Linting skipped (not on x86_64 or linter not installed) 23:02:22 go vet ./... 23:02:44 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 23:02:45 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 23:02:45 ./bin/test-attribution-txt.sh [Pipeline] echo 23:02:45 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 23:02:45 $ docker stop --time=1 9a1426740c0fab28e31b02c78c8fd9ab70250886270980080ba5c609ffbb9b35 23:02:47 $ docker rm -f --volumes 9a1426740c0fab28e31b02c78c8fd9ab70250886270980080ba5c609ffbb9b35 [Pipeline] // withDockerContainer [Pipeline] sh 23:02:48 + sudo chown -R jenkins:jenkins . [Pipeline] stash 23:02:48 Warning: overwriting stash ‘coverage-report’ 23:02:48 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 23:02:49 + sudo chown -R jenkins:jenkins . [Pipeline] sh 23:02:49 + ls -al . 23:02:49 total 180 23:02:49 drwxrwxr-x 9 jenkins jenkins 4096 May 10 23:00 . 23:02:49 drwxrwxr-x 4 jenkins jenkins 4096 May 10 22:57 .. 23:02:49 -rw-rw-r-- 1 jenkins jenkins 140 May 10 22:57 .dockerignore 23:02:49 drwxrwxr-x 8 jenkins jenkins 4096 May 10 22:57 .git 23:02:49 drwxrwxr-x 3 jenkins jenkins 4096 May 10 22:57 .github 23:02:49 -rw-rw-r-- 1 jenkins jenkins 331 May 10 22:57 .gitignore 23:02:49 -rw-rw-r-- 1 jenkins jenkins 41 May 10 22:57 .golangci.yml 23:02:49 -rw-rw-r-- 1 jenkins jenkins 10132 May 10 22:57 Attribution.txt 23:02:49 -rw-rw-r-- 1 jenkins jenkins 11576 May 10 22:57 CHANGELOG.md 23:02:49 -rw-rw-r-- 1 jenkins jenkins 1365 May 10 22:57 Dockerfile 23:02:49 -rw-rw-r-- 1 jenkins jenkins 677 May 10 22:57 GOVERNANCE.md 23:02:49 -rw-rw-r-- 1 jenkins jenkins 680 May 10 22:57 Jenkinsfile 23:02:49 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 22:57 LICENSE 23:02:49 -rw-rw-r-- 1 jenkins jenkins 1705 May 10 22:57 Makefile 23:02:49 -rw-rw-r-- 1 jenkins jenkins 622 May 10 22:57 OWNERS.md 23:02:49 -rw-rw-r-- 1 jenkins jenkins 4554 May 10 22:57 README.md 23:02:49 -rw-rw-r-- 1 jenkins jenkins 5 May 10 22:51 VERSION 23:02:49 drwxrwxr-x 2 jenkins jenkins 4096 May 10 22:57 bin 23:02:49 drwxrwxr-x 3 jenkins jenkins 4096 May 10 22:57 cmd 23:02:49 -rw-r--r-- 1 jenkins jenkins 24160 May 10 23:02 coverage.out 23:02:49 -rw-rw-r-- 1 jenkins jenkins 3453 May 10 22:57 go.mod 23:02:49 -rw-rw-r-- 1 jenkins jenkins 31670 May 10 22:57 go.sum 23:02:49 drwxrwxr-x 3 jenkins jenkins 4096 May 10 22:57 internal 23:02:49 drwxrwxr-x 2 jenkins jenkins 4096 May 10 22:57 simulator 23:02:49 drwxrwxr-x 4 jenkins jenkins 4096 May 10 22:57 snap 23:02:49 -rw-rw-r-- 1 jenkins jenkins 229 May 10 22:57 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:02:50 + 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=b665685e7969455f5fafdfddc5d3bc5fd8649751 --label arch=arm64 --label version=0.0.0 . 23:02:50 Sending build context to Docker daemon 3.439MB 23:02:50 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 23:02:50 Step 2/22 : FROM ${BASE} AS builder 23:02:50 ---> 22447c28e240 23:02:50 Step 3/22 : ARG ADD_BUILD_TAGS="" 23:02:52 ---> Running in 43236d213c0b 23:02:52 Removing intermediate container 43236d213c0b 23:02:52 ---> 2434c0ae99ea 23:02:52 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 23:02:53 ---> Running in 18baff14295a 23:02:53 Removing intermediate container 18baff14295a 23:02:53 ---> a65cd6d30ccc 23:02:53 Step 5/22 : RUN apk add --update --no-cache make git openssh 23:02:53 ---> Running in f069e62b0961 23:02:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 23:02:55 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 23:02:56 OK: 270 MiB in 61 packages 23:02:56 Removing intermediate container f069e62b0961 23:02:56 ---> 261740093449 23:02:56 Step 6/22 : WORKDIR /device-modbus-go 23:02:56 ---> Running in 6798151fd6e8 23:02:57 Removing intermediate container 6798151fd6e8 23:02:57 ---> 7dbdcbcbf30e 23:02:57 Step 7/22 : COPY go.mod vendor* ./ 23:02:57 ---> b4b0052e397f 23:02:57 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 23:02:57 ---> Running in 5d9aa83f19d0 23:03:00 Removing intermediate container 5d9aa83f19d0 23:03:00 ---> 7a1c3ed3796e 23:03:00 Step 9/22 : COPY . . 23:03:01 ---> 294bdd5819ad 23:03:01 Step 10/22 : RUN ${MAKE} 23:03:01 ---> Running in f03f5301a8a2 23:03: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 23:05:24 Removing intermediate container f03f5301a8a2 23:05:24 ---> 4c42d726a03b 23:05:24 Step 11/22 : FROM alpine:3.17 23:05:24 3.17: Pulling from library/alpine 23:05:24 c41833b44d91: Already exists 23:05:24 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 23:05:24 Status: Downloaded newer image for alpine:3.17 23:05:24 ---> 51e60588ff2c 23:05:24 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 23:05:24 ---> Running in 5fc3beb56373 23:05:24 Removing intermediate container 5fc3beb56373 23:05:24 ---> 45c5cbe85049 23:05:24 Step 13/22 : RUN apk add --update --no-cache dumb-init 23:05:24 ---> Running in dd8a7d9540cd 23:05:24 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 23:05:24 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 23:05:24 (1/1) Installing dumb-init (1.2.5-r2) 23:05:24 Executing busybox-1.35.0-r29.trigger 23:05:24 OK: 8 MiB in 16 packages 23:05:24 Removing intermediate container dd8a7d9540cd 23:05:24 ---> 7b08aa881d98 23:05:24 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 23:05:24 ---> 3158abb798c7 23:05:24 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 23:05:24 ---> 9f32e434dbc7 23:05:24 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 23:05:25 ---> 064e56e2b2fa 23:05:25 Step 17/22 : EXPOSE 59901 23:05:25 ---> Running in e47507c8c37f 23:05:25 Removing intermediate container e47507c8c37f 23:05:25 ---> 93ed19db1c0d 23:05:25 Step 18/22 : ENTRYPOINT ["/device-modbus"] 23:05:25 ---> Running in a2f71fc6f358 23:05:25 Removing intermediate container a2f71fc6f358 23:05:25 ---> f0683cbb6696 23:05:25 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 23:05:25 ---> Running in 7d79a7914de0 23:05:26 Removing intermediate container 7d79a7914de0 23:05:26 ---> 37e832ada275 23:05:26 Step 20/22 : LABEL arch=arm64 23:05:26 ---> Running in ea645b2f9377 23:05:26 Removing intermediate container ea645b2f9377 23:05:26 ---> 9bd727a54ad0 23:05:26 Step 21/22 : LABEL git_sha=b665685e7969455f5fafdfddc5d3bc5fd8649751 23:05:26 ---> Running in 3abc8ae1c467 23:05:26 Removing intermediate container 3abc8ae1c467 23:05:26 ---> 260288c69598 23:05:26 Step 22/22 : LABEL version=0.0.0 23:05:26 ---> Running in a437a04ca5a6 23:05:27 Removing intermediate container a437a04ca5a6 23:05:27 ---> f7ffd43d3a80 23:05:27 [Warning] One or more build-args [ARCH] were not consumed 23:05:27 Successfully built f7ffd43d3a80 23:05:27 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 23:05:28 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 23:05:28 23:05:28 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:05:28 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 23:05:28 arm64: Pulling from edgex-lftools-log-publisher 23:05:28 8998bd30e6a1: Pulling fs layer 23:05:28 04944245beec: Pulling fs layer 23:05:28 699f458cf7ca: Pulling fs layer 23:05:28 765212b225bb: Pulling fs layer 23:05:28 f23df028b6ca: Pulling fs layer 23:05:28 d65c8cfc05b1: Pulling fs layer 23:05:28 2437ff75d9bd: Pulling fs layer 23:05:28 f23df028b6ca: Waiting 23:05:28 2437ff75d9bd: Waiting 23:05:28 d65c8cfc05b1: Waiting 23:05:28 765212b225bb: Waiting 23:05:29 04944245beec: Verifying Checksum 23:05:29 04944245beec: Download complete 23:05:29 765212b225bb: Download complete 23:05:29 f23df028b6ca: Verifying Checksum 23:05:29 f23df028b6ca: Download complete 23:05:29 d65c8cfc05b1: Verifying Checksum 23:05:29 d65c8cfc05b1: Download complete 23:05:29 699f458cf7ca: Verifying Checksum 23:05:29 699f458cf7ca: Download complete 23:05:29 8998bd30e6a1: Verifying Checksum 23:05:29 8998bd30e6a1: Download complete 23:05:31 2437ff75d9bd: Verifying Checksum 23:05:31 2437ff75d9bd: Download complete 23:05:33 8998bd30e6a1: Pull complete 23:05:34 04944245beec: Pull complete 23:05:35 699f458cf7ca: Pull complete 23:05:35 765212b225bb: Pull complete 23:05:36 f23df028b6ca: Pull complete 23:05:36 d65c8cfc05b1: Pull complete 23:05:49 2437ff75d9bd: Pull complete 23:05:49 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 23:05:49 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 23:05:49 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 23:05:49 prd-ubuntu20.04-docker-arm64-4c-16g-14995 does not seem to be running inside a container 23:05:49 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 23:05:52 $ docker top 206d3acbf5e9957019383f4ed59068c7cbca0e1ad7990d635040c48eaa6ba357 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 23:05:53 ---> job-cost.sh 23:05:53 lf-activate-venv: SKIPPING 23:05:53 INFO: No Stack... 23:05:53 INFO: Retrieving Pricing Info for: v3-standard-4 23:05:54 INFO: Archiving Costs [Pipeline] sh 23:05:54 + cat /w/workspace/device-modbus-go/1/archives/cost.csv 23:05:54 + cut -d, -f6 [Pipeline] lock 23:05:54 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-478-1-stack-cost] 23:05:54 Resource [jenkins-edgexfoundry-device-modbus-go-PR-478-1-stack-cost] did not exist. Created. 23:05:54 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-478-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 23:05:55 /w/workspace/device-modbus-go/1@tmp/durable-9118ad68/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 23:05:56 + echo total: 0.10999999940395355 [Pipeline] stash 23:05:56 Warning: overwriting stash ‘stack-cost’ 23:05:56 Stashed 1 file(s) [Pipeline] } 23:05:56 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-478-1-stack-cost] [Pipeline] // lock [Pipeline] } 23:05:56 $ docker stop --time=1 206d3acbf5e9957019383f4ed59068c7cbca0e1ad7990d635040c48eaa6ba357 23:05:58 $ docker rm -f --volumes 206d3acbf5e9957019383f4ed59068c7cbca0e1ad7990d635040c48eaa6ba357 [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 23:05:59 provisioning config files... 23:05:59 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-478@tmp/config85081189073097299tmp [Pipeline] { [Pipeline] sh 23:05:59 + set +x 23:05:59 + curl -s https://codecov.io/bash 23:05:59 + bash -s -- 23:05:59 23:05:59 _____ _ 23:05:59 / ____| | | 23:05:59 | | ___ __| | ___ ___ _____ __ 23:05:59 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 23:05:59 | |___| (_) | (_| | __/ (_| (_) \ V / 23:05:59 \_____\___/ \__,_|\___|\___\___/ \_/ 23:05:59 Bash-1.0.6 23:05:59 23:05:59 23:05:59 ==> git version 2.25.1 found 23:05:59 ==> 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 23:05:59 Release-Date: 2020-01-08 23:05:59 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 23:05:59 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 23:05:59 ==> Jenkins CI detected. 23:05:59 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-478 23:05:59 project root: . 23:05:59 --> token set from env 23:05:59 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 23:05:59 ==> Running gcov in . (disable via -X gcov) 23:05:59 ==> Python coveragepy not found 23:05:59 ==> Searching for coverage reports in: 23:05:59 + . 23:05:59 -> Found 1 reports 23:05:59 ==> Detecting git/mercurial file structure 23:05:59 ==> Reading reports 23:05:59 + ./coverage.out bytes=24160 23:05:59 ==> Appending adjustments 23:05:59 https://docs.codecov.io/docs/fixing-reports 23:05:59 + Found adjustments 23:05:59 ==> Gzipping contents 23:05:59 4.0K /tmp/codecov.AaorxX.gz 23:05:59 ==> Uploading reports 23:05:59 url: https://codecov.io 23:05:59 query: branch=PR-478&commit=b665685e7969455f5fafdfddc5d3bc5fd8649751&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-478%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=478&job=&cmd_args= 23:05:59 -> Pinging Codecov 23:05:59 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-478&commit=b665685e7969455f5fafdfddc5d3bc5fd8649751&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-478%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=478&job=&cmd_args= 23:05:59 -> Uploading to 23:05:59 https://storage.googleapis.com/codecov/v4/raw/2023-05-10/55DBCA73C666E3227836607328DD7E49/b665685e7969455f5fafdfddc5d3bc5fd8649751/88cdbc5a-c775-4224-8bba-e172a7f5fc15.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230510%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230510T230559Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=4e815f8869dab8f5d54b41b2b5caecfa3cc92236fe2bef65a4aeb5f5e3cafc66 23:05:59 % Total % Received % Xferd Average Speed Time Time Time Current 23:05:59 Dload Upload Total Spent Left Speed 23:06:00 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3924 0 0 100 3924 0 13036 --:--:-- --:--:-- --:--:-- 13036 23:06:00 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/b665685e7969455f5fafdfddc5d3bc5fd8649751 [Pipeline] } 23:06:00 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 23:06:01 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-478/archives ] 23:06:01 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-478/archives 23:06:01 total 16 23:06:01 drwxr-xr-x 3 root root 4096 May 10 22:53 . 23:06:01 drwxrwxr-x 11 jenkins jenkins 4096 May 10 22:53 .. 23:06:01 drwxr-xr-x 2 root root 4096 May 10 22:53 cost 23:06:01 -rw-r--r-- 1 root root 88 May 10 22:53 cost.csv 23:06:01 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-478/archives 23:06:01 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-478/archives 23:06:01 total 16 23:06:01 drwxr-xr-x 3 jenkins jenkins 4096 May 10 22:53 . 23:06:01 drwxrwxr-x 11 jenkins jenkins 4096 May 10 22:53 .. 23:06:01 drwxr-xr-x 2 jenkins jenkins 4096 May 10 22:53 cost 23:06:01 -rw-r--r-- 1 jenkins jenkins 88 May 10 22:53 cost.csv [Pipeline] libraryResource [Pipeline] sh 23:06:02 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 23:06:03 ---> package-listing.sh 23:06:03 ++ facter osfamily 23:06:03 ++ tr '[:upper:]' '[:lower:]' 23:06:03 + OS_FAMILY=debian 23:06:03 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-478 23:06:03 + START_PACKAGES=/tmp/packages_start.txt 23:06:03 + END_PACKAGES=/tmp/packages_end.txt 23:06:03 + DIFF_PACKAGES=/tmp/packages_diff.txt 23:06:03 + PACKAGES=/tmp/packages_start.txt 23:06:03 + '[' /w/workspace/xfoundry_device-modbus-go_PR-478 ']' 23:06:03 + PACKAGES=/tmp/packages_end.txt 23:06:03 + case "${OS_FAMILY}" in 23:06:03 + dpkg -l 23:06:03 + grep '^ii' 23:06:03 + '[' -f /tmp/packages_start.txt ']' 23:06:03 + '[' -f /tmp/packages_end.txt ']' 23:06:03 + diff /tmp/packages_start.txt /tmp/packages_end.txt 23:06:03 + '[' /w/workspace/xfoundry_device-modbus-go_PR-478 ']' 23:06:03 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-478/archives/ 23:06:03 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-478/archives/ [Pipeline] echo 23:06:03 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-478/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 23:06:03 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:06:04 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 23:06:04 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 23:06:04 prd-ubuntu20.04-docker-8c-8g-14982 does not seem to be running inside a container 23:06:04 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/xfoundry_device-modbus-go_PR-478/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-478 -v /w/workspace/xfoundry_device-modbus-go_PR-478:/w/workspace/xfoundry_device-modbus-go_PR-478:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-478@tmp:/w/workspace/xfoundry_device-modbus-go_PR-478@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 23:06:04 $ docker top 1afeb09fc8e7822ecbf44557e1561a44d4514cca46c45c2747ecd10588c00a0c -eo pid,comm [Pipeline] { [Pipeline] sh 23:06:05 + touch /tmp/pre-build-complete [Pipeline] sh 23:06:05 + mkdir -p /var/log/sysstat [Pipeline] sh 23:06:05 + ls /var/log/sa-host 23:06:05 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 23:06:05 provisioning config files... 23:06:05 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-478@tmp/config7504250769546897740tmp [Pipeline] { [Pipeline] echo 23:06:05 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 23:06:06 ---> create-netrc.sh [Pipeline] } 23:06:06 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 23:06:06 ---> python-tools-install.sh [Pipeline] echo 23:06:06 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 23:06:07 ---> sudo-logs.sh 23:06:07 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 23:06:07 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 23:06:07 ---> job-cost.sh 23:06:07 lf-activate-venv: SKIPPING 23:06:07 DEBUG: total: 0.2199999988079071 23:06:07 INFO: Retrieving Stack Cost... 23:06:07 INFO: Retrieving Pricing Info for: v3-standard-8 23:06:08 INFO: Archiving Costs [Pipeline] echo 23:06:08 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 23:06:08 ---> logs-deploy.sh 23:06:08 lf-activate-venv: SKIPPING 23:06:08 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-478/1 23:06:08 INFO: archiving workspace using pattern(s): 23:06:09 Archives upload complete. 23:06:09 INFO: archiving logs to Nexus