Pull request #314 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from f2599b8404e96ca6d51fcf741083b5fab6a9bf6d+bb022d5e5ee314ea0b2e9403ec65a17609e45266 (612e3d0738d27cae6cbdf19006691bf3a2b43a56) 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-ssh5896712703811836440.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-ssh15915692338818967724.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-rest-go/branches/PR-314/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-rest-go/branches/PR-314/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh5301614805915682242.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-rest-go/branches/PR-314/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh7362958924241067565.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-ssh5871826110497806562.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-rest-go/branches/PR-314/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-rest-go/branches/PR-314/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh7982152708386327174.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-rest-go] ========================================================= [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-rest-go-settings PROJECT: device-rest-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-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task ‘prd-ubuntu20.04-docker-8c-8g-14812’ is offline Running on prd-ubuntu20.04-docker-8c-8g-14813 in /w/workspace/gexfoundry_device-rest-go_PR-314 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-rest-go.git > git init /w/workspace/gexfoundry_device-rest-go_PR-314 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-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-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-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-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/314/head:refs/remotes/origin/PR-314 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit bb022d5e5ee314ea0b2e9403ec65a17609e45266 into PR head commit f2599b8404e96ca6d51fcf741083b5fab6a9bf6d Merge succeeded, producing f2599b8404e96ca6d51fcf741083b5fab6a9bf6d Checking out Revision f2599b8404e96ca6d51fcf741083b5fab6a9bf6d (PR-314) Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 23:34:04 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) > git config core.sparsecheckout # timeout=10 > git checkout -f f2599b8404e96ca6d51fcf741083b5fab6a9bf6d # 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 bb022d5e5ee314ea0b2e9403ec65a17609e45266 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f f2599b8404e96ca6d51fcf741083b5fab6a9bf6d # timeout=10 [Pipeline] script [Pipeline] { [Pipeline] withCredentials 23:34:05 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 23:34:05 ========================================================= 23:34:05 EdgeX Global Pipelines Version Info 23:34:05 ========================================================= [Pipeline] libraryResource [Pipeline] sh 23:34:05 ------------------- 23:34:05 stable info: 23:34:05 ------------------- 23:34:05 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 23:34:05 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 23:34:05 Message: update stable to v1.0.249 23:34:06 ------------------- 23:34:06 experimental info: 23:34:06 ------------------- 23:34:06 Commited By: **** collab-it+edgex@linuxfoundation.org 23:34:06 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 23:34:06 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 23:34:06 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 23:34:06 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 23:34:06 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 23:34:06 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 23:34:06 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 23:34:07 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 23:34:08 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-314 [Pipeline] echo 23:34:08 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-314 [Pipeline] echo 23:34:08 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-314 [Pipeline] echo 23:34:08 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = f2599b8404e96ca6d51fcf741083b5fab6a9bf6d [Pipeline] echo 23:34:08 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = f2599b8 [Pipeline] echo 23:34:08 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 23:34:08 provisioning config files... 23:34:08 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-314@tmp/config8369457308208574569tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 23:34:08 ---> docker-login.sh 23:34:08 nexus3.edgexfoundry.org:10001 23:34:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:34:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:34:09 Configure a credential helper to remove this warning. See 23:34:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:34:09 23:34:09 Login Succeeded 23:34:09 nexus3.edgexfoundry.org:10002 23:34:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:34:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:34:09 Configure a credential helper to remove this warning. See 23:34:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:34:09 23:34:09 Login Succeeded 23:34:09 nexus3.edgexfoundry.org:10003 23:34:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:34:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:34:09 Configure a credential helper to remove this warning. See 23:34:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:34:09 23:34:09 Login Succeeded 23:34:09 nexus3.edgexfoundry.org:10004 23:34:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:34:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:34:09 Configure a credential helper to remove this warning. See 23:34:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:34:09 23:34:09 Login Succeeded 23:34:09 docker.io 23:34:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:34:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:34:10 Configure a credential helper to remove this warning. See 23:34:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:34:10 23:34:10 Login Succeeded 23:34:10 ---> docker-login.sh ends [Pipeline] } 23:34:10 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 23:34:10 + git rev-list -1 --merges f2599b8404e96ca6d51fcf741083b5fab6a9bf6d~1..f2599b8404e96ca6d51fcf741083b5fab6a9bf6d [Pipeline] echo 23:34:10 -----------> git rev-list -1 --merges f2599b8404e96ca6d51fcf741083b5fab6a9bf6d~1..f2599b8404e96ca6d51fcf741083b5fab6a9bf6d f2599b8404e96ca6d51fcf741083b5fab6a9bf6d [false] [Pipeline] sh 23:34:11 + git log --format=format:%s -1 f2599b8404e96ca6d51fcf741083b5fab6a9bf6d [Pipeline] echo 23:34:11 ========================================================= 23:34:11 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 23:34:11 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 23:34:11 + git log --format=format:%s -1 f2599b8404e96ca6d51fcf741083b5fab6a9bf6d [Pipeline] echo 23:34:11 [semverPrep] GIT_COMMIT: f2599b8404e96ca6d51fcf741083b5fab6a9bf6d, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3 [Pipeline] echo 23:34:11 [semverPrep] This is not a build commit. [Pipeline] sh 23:34:12 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 23:34:12 + grep -v github /etc/ssh/ssh_known_hosts 23:34:12 + [ -e /tmp/ssh_known_hosts ] 23:34:12 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 23:34:12 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 23:34:12 + sudo tee -a /etc/ssh/ssh_known_hosts 23:34:12 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:34:12 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 23:34:12 23:34:12 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:34:12 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 23:34:12 0.1.4: Pulling from edgex-devops/py-git-semver 23:34:12 b85a868b505f: Pulling fs layer 23:34:12 e2be974225ed: Pulling fs layer 23:34:12 339a4e72a1f5: Pulling fs layer 23:34:12 988bab9f4d93: Pulling fs layer 23:34:12 1469e6f7b9e6: Pulling fs layer 23:34:12 eaf3925da568: Pulling fs layer 23:34:12 bab4dde63d76: Pulling fs layer 23:34:12 bde34c3a00c8: Pulling fs layer 23:34:12 b352a97aabf1: Pulling fs layer 23:34:12 4872d77fe225: Pulling fs layer 23:34:12 5851b861e8e6: Pulling fs layer 23:34:12 1469e6f7b9e6: Waiting 23:34:12 eaf3925da568: Waiting 23:34:12 bab4dde63d76: Waiting 23:34:12 4872d77fe225: Waiting 23:34:12 e2be974225ed: Verifying Checksum 23:34:12 e2be974225ed: Download complete 23:34:12 988bab9f4d93: Verifying Checksum 23:34:12 988bab9f4d93: Download complete 23:34:12 1469e6f7b9e6: Download complete 23:34:13 eaf3925da568: Verifying Checksum 23:34:13 eaf3925da568: Download complete 23:34:13 339a4e72a1f5: Verifying Checksum 23:34:13 339a4e72a1f5: Download complete 23:34:13 bde34c3a00c8: Download complete 23:34:13 b352a97aabf1: Verifying Checksum 23:34:13 b352a97aabf1: Download complete 23:34:13 4872d77fe225: Verifying Checksum 23:34:13 4872d77fe225: Download complete 23:34:13 5851b861e8e6: Verifying Checksum 23:34:13 5851b861e8e6: Download complete 23:34:13 b85a868b505f: Download complete 23:34:13 bab4dde63d76: Verifying Checksum 23:34:13 bab4dde63d76: Download complete 23:34:14 b85a868b505f: Pull complete 23:34:14 e2be974225ed: Pull complete 23:34:15 339a4e72a1f5: Pull complete 23:34:15 988bab9f4d93: Pull complete 23:34:15 1469e6f7b9e6: Pull complete 23:34:15 eaf3925da568: Pull complete 23:34:17 bab4dde63d76: Pull complete 23:34:17 bde34c3a00c8: Pull complete 23:34:17 b352a97aabf1: Pull complete 23:34:17 4872d77fe225: Pull complete 23:34:17 5851b861e8e6: Pull complete 23:34:17 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 23:34:17 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 23:34:17 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 23:34:18 prd-ubuntu20.04-docker-8c-8g-14813 does not seem to be running inside a container 23:34:18 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-314 -v /w/workspace/gexfoundry_device-rest-go_PR-314:/w/workspace/gexfoundry_device-rest-go_PR-314:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-314@tmp:/w/workspace/gexfoundry_device-rest-go_PR-314@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 23:34:20 $ docker top 03e4d88e69d7cb171860bf697a13d5006f9b92528fd375f81c9d73cdf3087005 -eo pid,comm 23:34:20 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). 23:34:20 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 23:34:20 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 23:34:20 [ssh-agent] Looking for ssh-agent implementation... 23:34:20 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 23:34:20 $ docker exec 03e4d88e69d7cb171860bf697a13d5006f9b92528fd375f81c9d73cdf3087005 ssh-agent 23:34:20 SSH_AUTH_SOCK=/tmp/ssh-S8xtyQleuZCr/agent.32 23:34:20 SSH_AGENT_PID=37 23:34:20 Running ssh-add (command line suppressed) 23:34:21 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-314@tmp/private_key_5059957091139658145.key (/w/workspace/gexfoundry_device-rest-go_PR-314@tmp/private_key_5059957091139658145.key) 23:34:21 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 23:34:21 + git tag --points-at HEAD [Pipeline] } 23:34:21 $ docker exec --env ******** --env ******** 03e4d88e69d7cb171860bf697a13d5006f9b92528fd375f81c9d73cdf3087005 ssh-agent -k 23:34:21 unset SSH_AUTH_SOCK; 23:34:21 unset SSH_AGENT_PID; 23:34:21 echo Agent pid 37 killed; 23:34:21 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 23:34:21 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 23:34:21 [ssh-agent] Looking for ssh-agent implementation... 23:34:21 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 23:34:21 $ docker exec 03e4d88e69d7cb171860bf697a13d5006f9b92528fd375f81c9d73cdf3087005 ssh-agent 23:34:21 SSH_AUTH_SOCK=/tmp/ssh-cRe4p8IAlIZW/agent.69 23:34:21 SSH_AGENT_PID=75 23:34:21 Running ssh-add (command line suppressed) 23:34:22 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-314@tmp/private_key_9622939348771831810.key (/w/workspace/gexfoundry_device-rest-go_PR-314@tmp/private_key_9622939348771831810.key) 23:34:22 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 23:34:22 + git semver init 23:34:22 2023-05-09 23:34:22,557 [run_init] DEBUG init version:0.0.0 force:False 23:34:22 2023-05-09 23:34:22,557 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-314/.semver 23:34:22 2023-05-09 23:34:22,558 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-314/.semver 23:34:22 2023-05-09 23:34:22,558 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-314/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-314, universal_newlines=False, shell=None, istream=None) 23:34:23 2023-05-09 23:34:23,515 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-314/.git/info/exclude 23:34:23 2023-05-09 23:34:23,516 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-314/.semver/PR-314 with force:False 23:34:23 2023-05-09 23:34:23,516 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-314/.semver/PR-314 23:34:23 2023-05-09 23:34:23,520 [execute] INFO git cat-file --batch-check 23:34:23 2023-05-09 23:34:23,521 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-314/.semver, universal_newlines=False, shell=None, istream=) 23:34:23 2023-05-09 23:34:23,528 [execute] INFO git cat-file --batch 23:34:23 2023-05-09 23:34:23,528 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-314/.semver, universal_newlines=False, shell=None, istream=) 23:34:23 2023-05-09 23:34:23,534 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-314/.semver/PR-314 23:34:23 0.0.0 [Pipeline] } 23:34:23 $ docker exec --env ******** --env ******** 03e4d88e69d7cb171860bf697a13d5006f9b92528fd375f81c9d73cdf3087005 ssh-agent -k 23:34:23 unset SSH_AUTH_SOCK; 23:34:23 unset SSH_AGENT_PID; 23:34:23 echo Agent pid 75 killed; 23:34:23 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 23:34:24 + git semver [Pipeline] } 23:34:24 $ docker stop --time=1 03e4d88e69d7cb171860bf697a13d5006f9b92528fd375f81c9d73cdf3087005 23:34:25 $ docker rm -f --volumes 03e4d88e69d7cb171860bf697a13d5006f9b92528fd375f81c9d73cdf3087005 [Pipeline] // withDockerContainer [Pipeline] sh 23:34:26 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 23:34:26 Stashed 1 file(s) [Pipeline] echo 23:34:26 [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 23:34:27 provisioning config files... 23:34:27 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-314@tmp/config9363781330916894627tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 23:34:27 ---> docker-login.sh 23:34:27 nexus3.edgexfoundry.org:10001 23:34:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:34:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:34:27 Configure a credential helper to remove this warning. See 23:34:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:34:27 23:34:27 Login Succeeded 23:34:27 nexus3.edgexfoundry.org:10002 23:34:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:34:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:34:27 Configure a credential helper to remove this warning. See 23:34:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:34:27 23:34:27 Login Succeeded 23:34:27 nexus3.edgexfoundry.org:10003 23:34:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:34:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:34:27 Configure a credential helper to remove this warning. See 23:34:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:34:27 23:34:27 Login Succeeded 23:34:27 nexus3.edgexfoundry.org:10004 23:34:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:34:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:34:27 Configure a credential helper to remove this warning. See 23:34:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:34:27 23:34:27 Login Succeeded 23:34:27 docker.io 23:34:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:34:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:34:27 Configure a credential helper to remove this warning. See 23:34:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:34:27 23:34:27 Login Succeeded 23:34:27 ---> docker-login.sh ends [Pipeline] } 23:34:28 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 23:34:28 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 23:34:28 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 23:34:28 ========================================================= 23:34:28 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 23:34:28 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:34:28 + 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 . 23:34:28 Sending build context to Docker daemon 10.92MB 23:34:28 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 23:34:28 Step 2/12 : FROM ${BASE} AS builder 23:34:28 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 23:34:28 f56be85fc22e: Pulling fs layer 23:34:28 85791d961cd3: Pulling fs layer 23:34:28 d694b5ae8c79: Pulling fs layer 23:34:28 9f32a84ed3da: Pulling fs layer 23:34:28 4d19c01a9841: Pulling fs layer 23:34:28 9325e15d5711: Pulling fs layer 23:34:28 556b6ee489ea: Pulling fs layer 23:34:28 c5a4b2cf53e6: Pulling fs layer 23:34:28 9325e15d5711: Waiting 23:34:28 556b6ee489ea: Waiting 23:34:28 9f32a84ed3da: Waiting 23:34:28 4d19c01a9841: Waiting 23:34:28 c5a4b2cf53e6: Waiting 23:34:29 85791d961cd3: Download complete 23:34:29 9f32a84ed3da: Verifying Checksum 23:34:29 9f32a84ed3da: Download complete 23:34:29 4d19c01a9841: Verifying Checksum 23:34:29 4d19c01a9841: Download complete 23:34:29 f56be85fc22e: Verifying Checksum 23:34:29 f56be85fc22e: Download complete 23:34:29 9325e15d5711: Verifying Checksum 23:34:29 9325e15d5711: Download complete 23:34:29 f56be85fc22e: Pull complete 23:34:29 85791d961cd3: Pull complete 23:34:29 c5a4b2cf53e6: Verifying Checksum 23:34:29 c5a4b2cf53e6: Download complete 23:34:29 d694b5ae8c79: Verifying Checksum 23:34:29 d694b5ae8c79: Download complete 23:34:29 556b6ee489ea: Verifying Checksum 23:34:29 556b6ee489ea: Download complete 23:34:33 d694b5ae8c79: Pull complete 23:34:33 9f32a84ed3da: Pull complete 23:34:33 4d19c01a9841: Pull complete 23:34:33 9325e15d5711: Pull complete 23:34:35 556b6ee489ea: Pull complete 23:34:36 c5a4b2cf53e6: Pull complete 23:34:36 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 23:34:36 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 23:34:36 ---> c4be618373d6 23:34:36 Step 3/12 : ARG ADD_BUILD_TAGS="" 23:34:39 ---> Running in 4ca9243511a6 23:34:39 Removing intermediate container 4ca9243511a6 23:34:39 ---> b98094d2ca7b 23:34:39 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 23:34:39 ---> Running in 27aa15e73902 23:34:39 Removing intermediate container 27aa15e73902 23:34:39 ---> 27690f93c927 23:34:39 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 23:34:39 ---> Running in 6b3ff5856044 23:34:39 Removing intermediate container 6b3ff5856044 23:34:39 ---> 609ba3c80883 23:34:39 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 23:34:39 ---> Running in 24c4185901d1 23:34:39 Removing intermediate container 24c4185901d1 23:34:39 ---> aa48082d2634 23:34:39 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 23:34:39 ---> Running in ec85db387acf 23:34:40 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 23:34:40 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 23:34:40 (1/4) Installing openssh-keygen (9.1_p1-r2) 23:34:40 (2/4) Installing libedit (20221030.3.1-r0) 23:34:40 (3/4) Installing openssh-client-common (9.1_p1-r2) 23:34:40 (4/4) Installing openssh-client-default (9.1_p1-r2) 23:34:40 Executing busybox-1.35.0-r29.trigger 23:34:40 OK: 269 MiB in 57 packages 23:34:40 Removing intermediate container ec85db387acf 23:34:40 ---> f944c8e713a1 23:34:40 Step 8/12 : WORKDIR /device-rest-go 23:34:40 ---> Running in 44db8047a576 23:34:41 Removing intermediate container 44db8047a576 23:34:41 ---> 8d9a9057cade 23:34:41 Step 9/12 : COPY go.mod vendor* ./ 23:34:41 ---> c2fb902245e8 23:34:41 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 23:34:41 ---> Running in ee5d1f04136e 23:34:41 Still waiting to schedule task 23:34:41 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 23:35:13 Removing intermediate container ee5d1f04136e 23:35:13 ---> d3d18d8c09a5 23:35:13 Step 11/12 : COPY . . 23:35:13 ---> b62f406ea977 23:35:13 Step 12/12 : RUN $MAKE 23:35:13 ---> Running in 4ee383c91755 23:35:13 noop 23:35:13 Removing intermediate container 4ee383c91755 23:35:13 ---> 78bf4bfbb45d 23:35:13 Successfully built 78bf4bfbb45d 23:35:13 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:35:14 + docker inspect -f . ci-base-image-x86_64 23:35:14 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 23:35:14 prd-ubuntu20.04-docker-8c-8g-14813 does not seem to be running inside a container 23:35:14 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-314 -v /w/workspace/gexfoundry_device-rest-go_PR-314:/w/workspace/gexfoundry_device-rest-go_PR-314:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-314@tmp:/w/workspace/gexfoundry_device-rest-go_PR-314@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 23:35:14 $ docker top 896b0845af23848a420f4eb0cfdb61386881fa2a9b54e8ca4487769f4c668d6a -eo pid,comm [Pipeline] { [Pipeline] sh 23:35:15 + go version 23:35:15 go version go1.20.2 linux/amd64 [Pipeline] } 23:35:15 $ docker stop --time=1 896b0845af23848a420f4eb0cfdb61386881fa2a9b54e8ca4487769f4c668d6a 23:35:16 $ docker rm -f --volumes 896b0845af23848a420f4eb0cfdb61386881fa2a9b54e8ca4487769f4c668d6a [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:35:17 + docker inspect -f . ci-base-image-x86_64 23:35:17 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 23:35:17 prd-ubuntu20.04-docker-8c-8g-14813 does not seem to be running inside a container 23:35:17 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/gexfoundry_device-rest-go_PR-314 -v /w/workspace/gexfoundry_device-rest-go_PR-314:/w/workspace/gexfoundry_device-rest-go_PR-314:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-314@tmp:/w/workspace/gexfoundry_device-rest-go_PR-314@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 23:35:17 $ docker top 4b7c051f6ed4519ee77bdbe56e41a972dca13e3226aa3f86d311dbe868ef4154 -eo pid,comm [Pipeline] { [Pipeline] sh 23:35:18 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-314 [Pipeline] fileExists [Pipeline] sh 23:35:18 + make test 23:35:18 go test ./... -coverprofile=coverage.out ./... 23:35:24 ? github.com/edgexfoundry/device-rest-go [no test files] 23:35:33 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 23:35:33 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 32.2% of statements 23:35:40 go vet ./... 23:35:44 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 23:35:44 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 23:35:44 ./bin/test-attribution-txt.sh [Pipeline] echo 23:35:44 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 23:35:44 $ docker stop --time=1 4b7c051f6ed4519ee77bdbe56e41a972dca13e3226aa3f86d311dbe868ef4154 23:35:48 $ docker rm -f --volumes 4b7c051f6ed4519ee77bdbe56e41a972dca13e3226aa3f86d311dbe868ef4154 [Pipeline] // withDockerContainer [Pipeline] sh 23:35:49 + sudo chown -R jenkins:jenkins . [Pipeline] stash 23:35:49 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 23:35:50 + sudo chown -R jenkins:jenkins . [Pipeline] sh 23:35:50 + ls -al . 23:35:50 total 184 23:35:50 drwxrwxr-x 9 jenkins jenkins 4096 May 9 23:35 . 23:35:50 drwxrwxr-x 4 jenkins jenkins 4096 May 9 23:34 .. 23:35:50 -rw-rw-r-- 1 jenkins jenkins 151 May 9 23:34 .dockerignore 23:35:50 drwxrwxr-x 8 jenkins jenkins 4096 May 9 23:34 .git 23:35:50 drwxrwxr-x 3 jenkins jenkins 4096 May 9 23:34 .github 23:35:50 -rw-rw-r-- 1 jenkins jenkins 329 May 9 23:34 .gitignore 23:35:50 -rw-rw-r-- 1 jenkins jenkins 41 May 9 23:34 .golangci.yml 23:35:50 drwxr-xr-x 3 jenkins jenkins 4096 May 9 23:34 .semver 23:35:50 -rw-rw-r-- 1 jenkins jenkins 9331 May 9 23:34 Attribution.txt 23:35:50 -rw-rw-r-- 1 jenkins jenkins 13085 May 9 23:34 CHANGELOG.md 23:35:50 -rw-rw-r-- 1 jenkins jenkins 1578 May 9 23:34 Dockerfile 23:35:50 -rw-rw-r-- 1 jenkins jenkins 677 May 9 23:34 GOVERNANCE.md 23:35:50 -rw-rw-r-- 1 jenkins jenkins 680 May 9 23:34 Jenkinsfile 23:35:50 -rw-rw-r-- 1 jenkins jenkins 11340 May 9 23:34 LICENSE 23:35:50 -rw-rw-r-- 1 jenkins jenkins 1779 May 9 23:34 Makefile 23:35:50 -rw-rw-r-- 1 jenkins jenkins 620 May 9 23:34 OWNERS.md 23:35:50 -rw-rw-r-- 1 jenkins jenkins 15321 May 9 23:34 README.md 23:35:50 -rw-rw-r-- 1 jenkins jenkins 5 May 9 23:34 VERSION 23:35:50 drwxrwxr-x 2 jenkins jenkins 4096 May 9 23:34 bin 23:35:50 drwxrwxr-x 3 jenkins jenkins 4096 May 9 23:34 cmd 23:35:50 -rw-r--r-- 1 jenkins jenkins 14663 May 9 23:35 coverage.out 23:35:50 drwxrwxr-x 2 jenkins jenkins 4096 May 9 23:34 driver 23:35:50 -rw-rw-r-- 1 jenkins jenkins 3402 May 9 23:34 go.mod 23:35:50 -rw-rw-r-- 1 jenkins jenkins 31328 May 9 23:34 go.sum 23:35:50 drwxrwxr-x 4 jenkins jenkins 4096 May 9 23:34 snap 23:35:50 -rw-rw-r-- 1 jenkins jenkins 713 May 9 23:34 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:35:51 + docker build -t device-rest -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=f2599b8404e96ca6d51fcf741083b5fab6a9bf6d --label arch=amd64 --label version=0.0.0 . 23:35:51 Sending build context to Docker daemon 10.93MB 23:35:51 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 23:35:51 Step 2/25 : FROM ${BASE} AS builder 23:35:51 ---> 78bf4bfbb45d 23:35:51 Step 3/25 : ARG ADD_BUILD_TAGS="" 23:35:51 ---> Running in a7cc6630b3e6 23:35:51 Removing intermediate container a7cc6630b3e6 23:35:51 ---> e7d618a1f016 23:35:51 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 23:35:51 ---> Running in 1e72d489f8b1 23:35:51 Removing intermediate container 1e72d489f8b1 23:35:51 ---> d1ba8e1fa0aa 23:35:51 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 23:35:52 ---> Running in 31de778f669c 23:35:52 Removing intermediate container 31de778f669c 23:35:52 ---> 206c87494e74 23:35:52 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 23:35:52 ---> Running in 2e3ebe1342c9 23:35:52 Removing intermediate container 2e3ebe1342c9 23:35:52 ---> dc39744f914d 23:35:52 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 23:35:52 ---> Running in 2bedf307f192 23:35:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 23:35:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 23:35:53 OK: 269 MiB in 57 packages 23:35:54 Removing intermediate container 2bedf307f192 23:35:54 ---> 410d3011ede5 23:35:54 Step 8/25 : WORKDIR /device-rest-go 23:35:54 ---> Running in d41f3898548c 23:35:54 Removing intermediate container d41f3898548c 23:35:54 ---> 41c6b2c99008 23:35:54 Step 9/25 : COPY go.mod vendor* ./ 23:35:54 ---> 022231f143e0 23:35:54 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 23:35:54 ---> Running in e4d35b94063e 23:35:56 Removing intermediate container e4d35b94063e 23:35:56 ---> 07803cfabd4d 23:35:56 Step 11/25 : COPY . . 23:35:56 ---> dc2eb0495c17 23:35:56 Step 12/25 : RUN $MAKE 23:35:56 ---> Running in c7e2e8d65f5f 23:35:57 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 23:36:15 Running on prd-ubuntu20.04-docker-arm64-4c-16g-14814 in /w/workspace/gexfoundry_device-rest-go_PR-314 [Pipeline] { [Pipeline] ws 23:36:15 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 23:36:15 The recommended git tool is: git 23:36:21 using credential edgex-jenkins-ssh 23:36:21 Cloning the remote Git repository 23:36:21 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 23:36:21 > git init /w/workspace/device-rest-go/1 # timeout=10 23:36:21 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 23:36:21 > git --version # timeout=10 23:36:21 > git --version # 'git version 2.25.1' 23:36:21 using GIT_SSH to set credentials SSH Credentials for GitHub 23:36:21 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 23:36:23 Removing intermediate container c7e2e8d65f5f 23:36:23 ---> 8fd99c58820b 23:36:23 Step 13/25 : FROM alpine:3.17 23:36:23 3.17: Pulling from library/alpine 23:36:23 f56be85fc22e: Already exists 23:36:23 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 23:36:23 Status: Downloaded newer image for alpine:3.17 23:36:23 ---> 9ed4aefc74f6 23:36:23 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 23:36:23 ---> Running in 678da972753f 23:36:23 Removing intermediate container 678da972753f 23:36:23 ---> 8d6bfe496692 23:36:23 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 23:36:23 ---> Running in 75cc86e47f96 23:36:23 Removing intermediate container 75cc86e47f96 23:36:23 ---> a791427331ec 23:36:23 Step 16/25 : RUN apk add --update --no-cache dumb-init 23:36:23 ---> Running in abf9e4757c13 23:36:23 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 23:36:23 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 23:36:23 (1/1) Installing dumb-init (1.2.5-r2) 23:36:23 Executing busybox-1.35.0-r29.trigger 23:36:23 OK: 7 MiB in 16 packages 23:36:24 Removing intermediate container abf9e4757c13 23:36:24 ---> 0bfb431f90ca 23:36:24 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 23:36:23 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 23:36:23 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 23:36:24 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 23:36:24 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 23:36:24 using GIT_SSH to set credentials SSH Credentials for GitHub 23:36:24 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/314/head:refs/remotes/origin/PR-314 +refs/heads/main:refs/remotes/origin/main # timeout=10 23:36:25 Merging remotes/origin/main commit bb022d5e5ee314ea0b2e9403ec65a17609e45266 into PR head commit f2599b8404e96ca6d51fcf741083b5fab6a9bf6d 23:36:25 ---> 64bb266b769a 23:36:25 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 23:36:25 ---> 5a88d7106c02 23:36:25 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 23:36:25 Merge succeeded, producing f2599b8404e96ca6d51fcf741083b5fab6a9bf6d 23:36:25 Checking out Revision f2599b8404e96ca6d51fcf741083b5fab6a9bf6d (PR-314) 23:36:25 ---> 4606d78ee3f0 23:36:25 Step 20/25 : EXPOSE 59986 23:36:25 ---> Running in 64177f5980d1 23:36:25 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 23:36:25 Removing intermediate container 64177f5980d1 23:36:25 ---> b065772670ba 23:36:25 Step 21/25 : ENTRYPOINT ["/device-rest"] 23:36:25 > git config core.sparsecheckout # timeout=10 23:36:25 > git checkout -f f2599b8404e96ca6d51fcf741083b5fab6a9bf6d # timeout=10 23:36:25 > git remote # timeout=10 23:36:25 > git config --get remote.origin.url # timeout=10 23:36:25 using GIT_SSH to set credentials SSH Credentials for GitHub 23:36:25 > git merge bb022d5e5ee314ea0b2e9403ec65a17609e45266 # timeout=10 23:36:25 > git rev-parse HEAD^{commit} # timeout=10 23:36:25 > git config core.sparsecheckout # timeout=10 23:36:25 > git checkout -f f2599b8404e96ca6d51fcf741083b5fab6a9bf6d # timeout=10 23:36:25 > git --version # timeout=10 23:36:26 > git --version # 'git version 2.25.1' 23:36:26 fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd 23:36:26 ---> Running in d851e6c6f493 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { 23:36:26 Removing intermediate container d851e6c6f493 23:36:26 ---> 3b4c5747fdec 23:36:26 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 23:36:26 ---> Running in 3d2a26f9e509 23:36:27 Removing intermediate container 3d2a26f9e509 23:36:27 ---> 059cb2941928 23:36:27 Step 23/25 : LABEL arch=amd64 23:36:27 ---> Running in 6a869bab9f94 23:36:27 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 23:36:27 % Total % Received % Xferd Average Speed Time Time Time Current 23:36:27 Dload Upload Total Spent Left Speed 23:36:27 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 92398 0 --:--:-- --:--:-- --:--:-- 91733 23:36:27 Removing intermediate container 6a869bab9f94 23:36:27 ---> b8f824254a6a 23:36:27 Step 24/25 : LABEL git_sha=f2599b8404e96ca6d51fcf741083b5fab6a9bf6d 23:36:27 ---> Running in 8ce31112b667 [Pipeline] sh 23:36:27 Removing intermediate container 8ce31112b667 23:36:27 ---> c1f32d1cdd81 23:36:27 Step 25/25 : LABEL version=0.0.0 23:36:27 ---> Running in ab8969891bc5 23:36:27 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 23:36:27 Removing intermediate container ab8969891bc5 23:36:27 ---> 1f2b311d5f24 23:36:27 [Warning] One or more build-args [ARCH] were not consumed 23:36:27 Successfully built 1f2b311d5f24 23:36:27 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) 23:36:28 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 23:36:28 + sudo tee /etc/docker/daemon.new 23:36:28 { 23:36:28 "registry-mirrors": [ 23:36:28 "https://nexus3.edgexfoundry.org:10001" 23:36:28 ], 23:36:28 "bip": "10.250.0.254/24", 23:36:28 "hosts": [ 23:36:28 "tcp://0.0.0.0:5555", 23:36:28 "unix:///var/run/docker.sock" 23:36:28 ], 23:36:28 "mtu": 1458, 23:36:28 "selinux-enabled": true, 23:36:28 "seccomp-profile": "/etc/docker/seccomp.json" 23:36:28 } [Pipeline] sh 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 23:36:28 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] { [Pipeline] sh [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:36:28 + sudo service docker restart 23:36:28 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 23:36:28 23:36:28 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:36:29 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 23:36:29 latest: Pulling from edgex-lftools-log-publisher 23:36:29 5eb5b503b376: Pulling fs layer 23:36:29 5c69ac0246d0: Pulling fs layer 23:36:29 ec43610c2a17: Pulling fs layer 23:36:29 3a2ae6a8a46f: Pulling fs layer 23:36:29 33b1e0a273af: Pulling fs layer 23:36:29 5d3b04190fa2: Pulling fs layer 23:36:29 2f39f015ded8: Pulling fs layer 23:36:29 3a2ae6a8a46f: Waiting 23:36:29 5d3b04190fa2: Waiting 23:36:29 2f39f015ded8: Waiting 23:36:29 5c69ac0246d0: Verifying Checksum 23:36:29 5c69ac0246d0: Download complete 23:36:29 3a2ae6a8a46f: Verifying Checksum 23:36:29 3a2ae6a8a46f: Download complete 23:36:29 33b1e0a273af: Verifying Checksum 23:36:29 33b1e0a273af: Download complete 23:36:29 5d3b04190fa2: Verifying Checksum 23:36:29 5d3b04190fa2: Download complete 23:36:29 ec43610c2a17: Verifying Checksum 23:36:29 5eb5b503b376: Verifying Checksum 23:36:29 5eb5b503b376: Download complete 23:36:30 2f39f015ded8: Download complete 23:36:30 5eb5b503b376: Pull complete 23:36:30 5c69ac0246d0: Pull complete 23:36:31 ec43610c2a17: Pull complete 23:36:31 3a2ae6a8a46f: Pull complete 23:36:31 33b1e0a273af: Pull complete 23:36:31 5d3b04190fa2: Pull complete 23:36:35 2f39f015ded8: Pull complete 23:36:35 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 23:36:35 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 23:36:35 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 23:36:36 prd-ubuntu20.04-docker-8c-8g-14813 does not seem to be running inside a container 23:36:36 $ 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/gexfoundry_device-rest-go_PR-314 -v /w/workspace/gexfoundry_device-rest-go_PR-314:/w/workspace/gexfoundry_device-rest-go_PR-314:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-314@tmp:/w/workspace/gexfoundry_device-rest-go_PR-314@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 23:36:41 $ docker top b04c41f24d4d228fb3a813bf5309912027f207e4ed6258aee6a5476e1546b8a7 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 23:36:42 ---> job-cost.sh 23:36:42 lf-activate-venv: SKIPPING 23:36:42 INFO: No Stack... 23:36:43 INFO: Retrieving Pricing Info for: v3-standard-8 23:36:43 INFO: Archiving Costs [Pipeline] sh 23:36:43 + cat /w/workspace/gexfoundry_device-rest-go_PR-314/archives/cost.csv 23:36:43 + cut -d, -f6 [Pipeline] lock 23:36:43 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-314-1-stack-cost] 23:36:43 Resource [jenkins-edgexfoundry-device-rest-go-PR-314-1-stack-cost] did not exist. Created. 23:36:43 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-314-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 23:36:44 + echo total: 0.2199999988079071 [Pipeline] stash 23:36:44 Stashed 1 file(s) [Pipeline] } 23:36:44 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-314-1-stack-cost] [Pipeline] // lock [Pipeline] } 23:36:44 $ docker stop --time=1 b04c41f24d4d228fb3a813bf5309912027f207e4ed6258aee6a5476e1546b8a7 23:36:45 $ docker rm -f --volumes b04c41f24d4d228fb3a813bf5309912027f207e4ed6258aee6a5476e1546b8a7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 23:36:47 provisioning config files... 23:36:47 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config16982834408548442733tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 23:36:47 ---> docker-login.sh 23:36:47 nexus3.edgexfoundry.org:10001 23:36:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:36:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:36:48 Configure a credential helper to remove this warning. See 23:36:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:36:48 23:36:48 Login Succeeded 23:36:48 nexus3.edgexfoundry.org:10002 23:36:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:36:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:36:48 Configure a credential helper to remove this warning. See 23:36:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:36:48 23:36:48 Login Succeeded 23:36:48 nexus3.edgexfoundry.org:10003 23:36:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:36:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:36:49 Configure a credential helper to remove this warning. See 23:36:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:36:49 23:36:49 Login Succeeded 23:36:49 nexus3.edgexfoundry.org:10004 23:36:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:36:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:36:49 Configure a credential helper to remove this warning. See 23:36:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:36:49 23:36:49 Login Succeeded 23:36:49 docker.io 23:36:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:36:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:36:49 Configure a credential helper to remove this warning. See 23:36:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:36:49 23:36:49 Login Succeeded 23:36:49 ---> docker-login.sh ends [Pipeline] } 23:36:49 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 23:36:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 23:36:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 23:36:50 ========================================================= 23:36:50 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 23:36:50 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:36:50 + 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 . 23:36:50 Sending build context to Docker daemon 139.3kB 23:36:51 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 23:36:51 Step 2/12 : FROM ${BASE} AS builder 23:36:51 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 23:36:51 c41833b44d91: Pulling fs layer 23:36:51 ed15518f5707: Pulling fs layer 23:36:51 feae8fd75edb: Pulling fs layer 23:36:51 242c74f7c9fa: Pulling fs layer 23:36:51 3cdef696dda3: Pulling fs layer 23:36:51 2ced38df9373: Pulling fs layer 23:36:51 58f1dce35555: Pulling fs layer 23:36:51 242c74f7c9fa: Waiting 23:36:51 3cdef696dda3: Waiting 23:36:51 2ced38df9373: Waiting 23:36:51 58f1dce35555: Waiting 23:36:51 ed15518f5707: Download complete 23:36:51 242c74f7c9fa: Verifying Checksum 23:36:51 242c74f7c9fa: Download complete 23:36:51 3cdef696dda3: Verifying Checksum 23:36:51 3cdef696dda3: Download complete 23:36:51 c41833b44d91: Verifying Checksum 23:36:52 c41833b44d91: Pull complete 23:36:52 58f1dce35555: Verifying Checksum 23:36:52 58f1dce35555: Download complete 23:36:52 ed15518f5707: Pull complete 23:36:53 feae8fd75edb: Verifying Checksum 23:36:53 feae8fd75edb: Download complete 23:36:53 2ced38df9373: Verifying Checksum 23:36:53 2ced38df9373: Download complete 23:37:06 feae8fd75edb: Pull complete 23:37:06 242c74f7c9fa: Pull complete 23:37:06 3cdef696dda3: Pull complete 23:37:11 2ced38df9373: Pull complete 23:37:14 58f1dce35555: Pull complete 23:37:14 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 23:37:14 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 23:37:14 ---> fadd8f120f05 23:37:14 Step 3/12 : ARG ADD_BUILD_TAGS="" 23:37:16 ---> Running in 0042350f7a7b 23:37:16 Removing intermediate container 0042350f7a7b 23:37:16 ---> 17605496b2ef 23:37:16 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 23:37:16 ---> Running in 4db5c0738a6c 23:37:16 Removing intermediate container 4db5c0738a6c 23:37:16 ---> d19954e45251 23:37:16 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 23:37:16 ---> Running in c7fc0f249191 23:37:16 Removing intermediate container c7fc0f249191 23:37:16 ---> 15c1d8eb7632 23:37:16 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 23:37:17 ---> Running in 816efad7e72f 23:37:17 Removing intermediate container 816efad7e72f 23:37:17 ---> 43f0f2595d76 23:37:17 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 23:37:17 ---> Running in 31b652f35b06 23:37:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 23:37:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 23:37:19 (1/4) Installing openssh-keygen (9.1_p1-r2) 23:37:19 (2/4) Installing libedit (20221030.3.1-r0) 23:37:19 (3/4) Installing openssh-client-common (9.1_p1-r2) 23:37:19 (4/4) Installing openssh-client-default (9.1_p1-r2) 23:37:19 Executing busybox-1.35.0-r29.trigger 23:37:20 OK: 268 MiB in 57 packages 23:37:21 Removing intermediate container 31b652f35b06 23:37:21 ---> ca54e9eb6832 23:37:21 Step 8/12 : WORKDIR /device-rest-go 23:37:21 ---> Running in 5a585898b79e 23:37:21 Removing intermediate container 5a585898b79e 23:37:21 ---> 9b5a8c39dc42 23:37:21 Step 9/12 : COPY go.mod vendor* ./ 23:37:21 ---> af274f2e9f25 23:37:21 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 23:37:21 ---> Running in 9699f398deae 23:38:29 Removing intermediate container 9699f398deae 23:38:29 ---> 353d73bae36e 23:38:29 Step 11/12 : COPY . . 23:38:29 ---> 235d204151c8 23:38:29 Step 12/12 : RUN $MAKE 23:38:29 ---> Running in 4372985e193f 23:38:29 noop 23:38:29 Removing intermediate container 4372985e193f 23:38:29 ---> ccf06583b6f8 23:38:29 Successfully built ccf06583b6f8 23:38:29 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:38:30 + docker inspect -f . ci-base-image-arm64 23:38:30 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 23:38:30 prd-ubuntu20.04-docker-arm64-4c-16g-14814 does not seem to be running inside a container 23:38:30 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 23:38:31 $ docker top 21b3819def9a27e9f767f4d71607f0d3c6d82a9c5a8d093e8437ea5d582a209e -eo pid,comm [Pipeline] { [Pipeline] sh 23:38:32 + go version 23:38:32 go version go1.20.2 linux/arm64 [Pipeline] } 23:38:32 $ docker stop --time=1 21b3819def9a27e9f767f4d71607f0d3c6d82a9c5a8d093e8437ea5d582a209e 23:38:34 $ docker rm -f --volumes 21b3819def9a27e9f767f4d71607f0d3c6d82a9c5a8d093e8437ea5d582a209e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:38:35 + docker inspect -f . ci-base-image-arm64 23:38:35 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 23:38:35 prd-ubuntu20.04-docker-arm64-4c-16g-14814 does not seem to be running inside a container 23:38:35 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 23:38:36 $ docker top 57a26f24c835b3f47b569cf57eb65712e9b0ddf42dd23e4b92c90cac281ab3a9 -eo pid,comm [Pipeline] { [Pipeline] sh 23:38:37 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 23:38:38 + make test 23:38:38 go test ./... -coverprofile=coverage.out ./... 23:39:10 ? github.com/edgexfoundry/device-rest-go [no test files] 23:41:01 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 23:41:01 ok github.com/edgexfoundry/device-rest-go/driver 0.053s coverage: 32.2% of statements 23:41:02 WARNING: Linting skipped (not on x86_64 or linter not installed) 23:41:02 go vet ./... 23:41:41 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 23:41:41 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 23:41:41 ./bin/test-attribution-txt.sh [Pipeline] echo 23:41:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 23:41:41 $ docker stop --time=1 57a26f24c835b3f47b569cf57eb65712e9b0ddf42dd23e4b92c90cac281ab3a9 23:41:43 $ docker rm -f --volumes 57a26f24c835b3f47b569cf57eb65712e9b0ddf42dd23e4b92c90cac281ab3a9 [Pipeline] // withDockerContainer [Pipeline] sh 23:41:45 + sudo chown -R jenkins:jenkins . [Pipeline] stash 23:41:45 Warning: overwriting stash ‘coverage-report’ 23:41:45 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 23:41:46 + sudo chown -R jenkins:jenkins . [Pipeline] sh 23:41:46 + ls -al . 23:41:46 total 180 23:41:46 drwxrwxr-x 8 jenkins jenkins 4096 May 9 23:38 . 23:41:46 drwxrwxr-x 4 jenkins jenkins 4096 May 9 23:36 .. 23:41:46 -rw-rw-r-- 1 jenkins jenkins 151 May 9 23:36 .dockerignore 23:41:46 drwxrwxr-x 8 jenkins jenkins 4096 May 9 23:36 .git 23:41:46 drwxrwxr-x 3 jenkins jenkins 4096 May 9 23:36 .github 23:41:46 -rw-rw-r-- 1 jenkins jenkins 329 May 9 23:36 .gitignore 23:41:46 -rw-rw-r-- 1 jenkins jenkins 41 May 9 23:36 .golangci.yml 23:41:46 -rw-rw-r-- 1 jenkins jenkins 9331 May 9 23:36 Attribution.txt 23:41:46 -rw-rw-r-- 1 jenkins jenkins 13085 May 9 23:36 CHANGELOG.md 23:41:46 -rw-rw-r-- 1 jenkins jenkins 1578 May 9 23:36 Dockerfile 23:41:46 -rw-rw-r-- 1 jenkins jenkins 677 May 9 23:36 GOVERNANCE.md 23:41:46 -rw-rw-r-- 1 jenkins jenkins 680 May 9 23:36 Jenkinsfile 23:41:46 -rw-rw-r-- 1 jenkins jenkins 11340 May 9 23:36 LICENSE 23:41:46 -rw-rw-r-- 1 jenkins jenkins 1779 May 9 23:36 Makefile 23:41:46 -rw-rw-r-- 1 jenkins jenkins 620 May 9 23:36 OWNERS.md 23:41:46 -rw-rw-r-- 1 jenkins jenkins 15321 May 9 23:36 README.md 23:41:46 -rw-rw-r-- 1 jenkins jenkins 5 May 9 23:34 VERSION 23:41:46 drwxrwxr-x 2 jenkins jenkins 4096 May 9 23:36 bin 23:41:46 drwxrwxr-x 3 jenkins jenkins 4096 May 9 23:36 cmd 23:41:46 -rw-r--r-- 1 jenkins jenkins 14663 May 9 23:41 coverage.out 23:41:46 drwxrwxr-x 2 jenkins jenkins 4096 May 9 23:36 driver 23:41:46 -rw-rw-r-- 1 jenkins jenkins 3402 May 9 23:36 go.mod 23:41:46 -rw-rw-r-- 1 jenkins jenkins 31328 May 9 23:36 go.sum 23:41:46 drwxrwxr-x 4 jenkins jenkins 4096 May 9 23:36 snap 23:41:46 -rw-rw-r-- 1 jenkins jenkins 713 May 9 23:36 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:41:47 + docker build -t device-rest-arm64 -f Dockerfile --build-arg BASE=ci-base-image-arm64 --build-arg MAKE=make build --build-arg ARCH=arm64 --label git_sha=f2599b8404e96ca6d51fcf741083b5fab6a9bf6d --label arch=arm64 --label version=0.0.0 . 23:41:47 Sending build context to Docker daemon 154.6kB 23:41:47 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 23:41:47 Step 2/25 : FROM ${BASE} AS builder 23:41:47 ---> ccf06583b6f8 23:41:47 Step 3/25 : ARG ADD_BUILD_TAGS="" 23:41:47 ---> Running in 67ebd64662a8 23:41:47 Removing intermediate container 67ebd64662a8 23:41:47 ---> 80e6a961a733 23:41:47 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 23:41:47 ---> Running in 01ac08aef0f4 23:41:48 Removing intermediate container 01ac08aef0f4 23:41:48 ---> 901e909c3a99 23:41:48 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 23:41:48 ---> Running in 58fea0324103 23:41:48 Removing intermediate container 58fea0324103 23:41:48 ---> 8f63eaf03cee 23:41:48 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 23:41:48 ---> Running in a1b997b68484 23:41:49 Removing intermediate container a1b997b68484 23:41:49 ---> 9e1d12cd0a00 23:41:49 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 23:41:49 ---> Running in 1fae4d489b30 23:41:49 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 23:41:50 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 23:41:51 OK: 268 MiB in 57 packages 23:41:52 Removing intermediate container 1fae4d489b30 23:41:52 ---> b1d0b4aa2df7 23:41:52 Step 8/25 : WORKDIR /device-rest-go 23:41:52 ---> Running in fa12ac104187 23:41:52 Removing intermediate container fa12ac104187 23:41:52 ---> 77ac21f2f9ee 23:41:52 Step 9/25 : COPY go.mod vendor* ./ 23:41:53 ---> e88cb35def25 23:41:53 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 23:41:53 ---> Running in 4cdd85a8a263 23:41:56 Removing intermediate container 4cdd85a8a263 23:41:56 ---> 282840da2983 23:41:56 Step 11/25 : COPY . . 23:41:56 ---> 651317f79f98 23:41:56 Step 12/25 : RUN $MAKE 23:41:56 ---> Running in 8c1a5709eced 23:41:57 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 23:44:35 Removing intermediate container 8c1a5709eced 23:44:35 ---> 003b2bb3003a 23:44:35 Step 13/25 : FROM alpine:3.17 23:44:35 3.17: Pulling from library/alpine 23:44:35 c41833b44d91: Already exists 23:44:35 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 23:44:35 Status: Downloaded newer image for alpine:3.17 23:44:35 ---> 51e60588ff2c 23:44:35 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 23:44:35 ---> Running in bc965b1c7911 23:44:35 Removing intermediate container bc965b1c7911 23:44:35 ---> 1fd2581f5274 23:44:35 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 23:44:35 ---> Running in ed30652c6f33 23:44:35 Removing intermediate container ed30652c6f33 23:44:35 ---> 0998ab5cc4d2 23:44:35 Step 16/25 : RUN apk add --update --no-cache dumb-init 23:44:35 ---> Running in a0d310946e13 23:44:35 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 23:44:35 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 23:44:35 (1/1) Installing dumb-init (1.2.5-r2) 23:44:35 Executing busybox-1.35.0-r29.trigger 23:44:35 OK: 8 MiB in 16 packages 23:44:35 Removing intermediate container a0d310946e13 23:44:35 ---> cd9d7243e910 23:44:35 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 23:44:35 ---> 33f36cb93422 23:44:35 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 23:44:35 ---> e77a84d87e80 23:44:35 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 23:44:35 ---> 7544f96a2f6b 23:44:35 Step 20/25 : EXPOSE 59986 23:44:35 ---> Running in 07273ea6f367 23:44:35 Removing intermediate container 07273ea6f367 23:44:35 ---> 32d1286a61d9 23:44:35 Step 21/25 : ENTRYPOINT ["/device-rest"] 23:44:35 ---> Running in ec0a4154ecbd 23:44:35 Removing intermediate container ec0a4154ecbd 23:44:35 ---> 322f3bb25c8e 23:44:35 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 23:44:35 ---> Running in 8b0b6ad3a39c 23:44:35 Removing intermediate container 8b0b6ad3a39c 23:44:35 ---> 0892186dbe6b 23:44:35 Step 23/25 : LABEL arch=arm64 23:44:35 ---> Running in 58491afdde76 23:44:35 Removing intermediate container 58491afdde76 23:44:35 ---> 2687cccdda51 23:44:35 Step 24/25 : LABEL git_sha=f2599b8404e96ca6d51fcf741083b5fab6a9bf6d 23:44:35 ---> Running in d5a3d442396e 23:44:35 Removing intermediate container d5a3d442396e 23:44:35 ---> 951d5f0fee60 23:44:35 Step 25/25 : LABEL version=0.0.0 23:44:35 ---> Running in 4e3ce4815eee 23:44:35 Removing intermediate container 4e3ce4815eee 23:44:35 ---> 4fafe7e3b325 23:44:35 [Warning] One or more build-args [ARCH] were not consumed 23:44:35 Successfully built 4fafe7e3b325 23:44:35 Successfully tagged device-rest-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:44:35 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 23:44:35 23:44:35 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:44:36 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 23:44:36 arm64: Pulling from edgex-lftools-log-publisher 23:44:36 8998bd30e6a1: Pulling fs layer 23:44:36 04944245beec: Pulling fs layer 23:44:36 699f458cf7ca: Pulling fs layer 23:44:36 765212b225bb: Pulling fs layer 23:44:36 f23df028b6ca: Pulling fs layer 23:44:36 d65c8cfc05b1: Pulling fs layer 23:44:36 2437ff75d9bd: Pulling fs layer 23:44:36 f23df028b6ca: Waiting 23:44:36 765212b225bb: Waiting 23:44:36 d65c8cfc05b1: Waiting 23:44:36 2437ff75d9bd: Waiting 23:44:36 04944245beec: Verifying Checksum 23:44:36 04944245beec: Download complete 23:44:36 765212b225bb: Verifying Checksum 23:44:36 765212b225bb: Download complete 23:44:36 f23df028b6ca: Verifying Checksum 23:44:36 f23df028b6ca: Download complete 23:44:36 d65c8cfc05b1: Verifying Checksum 23:44:36 d65c8cfc05b1: Download complete 23:44:36 699f458cf7ca: Verifying Checksum 23:44:36 699f458cf7ca: Download complete 23:44:37 8998bd30e6a1: Verifying Checksum 23:44:37 8998bd30e6a1: Download complete 23:44:39 2437ff75d9bd: Verifying Checksum 23:44:39 2437ff75d9bd: Download complete 23:44:41 8998bd30e6a1: Pull complete 23:44:41 04944245beec: Pull complete 23:44:43 699f458cf7ca: Pull complete 23:44:43 765212b225bb: Pull complete 23:44:44 f23df028b6ca: Pull complete 23:44:44 d65c8cfc05b1: Pull complete 23:44:56 2437ff75d9bd: Pull complete 23:44:56 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 23:44:56 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 23:44:56 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 23:44:56 prd-ubuntu20.04-docker-arm64-4c-16g-14814 does not seem to be running inside a container 23:44:57 $ 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-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 23:44:59 $ docker top 289f0b4afc6979fc7ac208a46f993e92a18b811bfe2a1adb1af8d70588d5db8d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 23:45:00 ---> job-cost.sh 23:45:00 lf-activate-venv: SKIPPING 23:45:00 INFO: No Stack... 23:45:00 INFO: Retrieving Pricing Info for: v3-standard-4 23:45:01 INFO: Archiving Costs [Pipeline] sh 23:45:02 + cut -d, -f6 23:45:02 + cat /w/workspace/device-rest-go/1/archives/cost.csv [Pipeline] lock 23:45:02 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-314-1-stack-cost] 23:45:02 Resource [jenkins-edgexfoundry-device-rest-go-PR-314-1-stack-cost] did not exist. Created. 23:45:02 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-314-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 23:45:03 /w/workspace/device-rest-go/1@tmp/durable-b0c2f6a4/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 23:45:03 + echo total: 0.10999999940395355 [Pipeline] stash 23:45:03 Warning: overwriting stash ‘stack-cost’ 23:45:03 Stashed 1 file(s) [Pipeline] } 23:45:03 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-314-1-stack-cost] [Pipeline] // lock [Pipeline] } 23:45:03 $ docker stop --time=1 289f0b4afc6979fc7ac208a46f993e92a18b811bfe2a1adb1af8d70588d5db8d 23:45:05 $ docker rm -f --volumes 289f0b4afc6979fc7ac208a46f993e92a18b811bfe2a1adb1af8d70588d5db8d [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:45:06 provisioning config files... 23:45:06 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-314@tmp/config9885390430084299595tmp [Pipeline] { [Pipeline] sh 23:45:06 + set +x 23:45:06 + curl -s https://codecov.io/bash 23:45:06 + bash -s -- 23:45:06 23:45:06 _____ _ 23:45:06 / ____| | | 23:45:06 | | ___ __| | ___ ___ _____ __ 23:45:06 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 23:45:06 | |___| (_) | (_| | __/ (_| (_) \ V / 23:45:06 \_____\___/ \__,_|\___|\___\___/ \_/ 23:45:06 Bash-1.0.6 23:45:06 23:45:06 23:45:06 ==> git version 2.25.1 found 23:45:06 ==> 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:45:06 Release-Date: 2020-01-08 23:45:06 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:45:06 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 23:45:06 ==> Jenkins CI detected. 23:45:06 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-314 23:45:06 project root: . 23:45:06 --> token set from env 23:45:06 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 23:45:06 ==> Running gcov in . (disable via -X gcov) 23:45:06 ==> Python coveragepy not found 23:45:06 ==> Searching for coverage reports in: 23:45:06 + . 23:45:06 -> Found 1 reports 23:45:06 ==> Detecting git/mercurial file structure 23:45:06 ==> Reading reports 23:45:07 + ./coverage.out bytes=14663 23:45:07 ==> Appending adjustments 23:45:07 https://docs.codecov.io/docs/fixing-reports 23:45:07 + Found adjustments 23:45:07 ==> Gzipping contents 23:45:07 4.0K /tmp/codecov.Z0aGKL.gz 23:45:07 ==> Uploading reports 23:45:07 url: https://codecov.io 23:45:07 query: branch=PR-314&commit=f2599b8404e96ca6d51fcf741083b5fab6a9bf6d&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-314%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=314&job=&cmd_args= 23:45:07 -> Pinging Codecov 23:45:07 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-314&commit=f2599b8404e96ca6d51fcf741083b5fab6a9bf6d&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-314%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=314&job=&cmd_args= 23:45:07 -> Uploading to 23:45:07 https://storage.googleapis.com/codecov/v4/raw/2023-05-09/4E5D53B4F1F92C436F7061BF334D961C/f2599b8404e96ca6d51fcf741083b5fab6a9bf6d/ca167372-3d44-45ac-9707-eb65d9bb0526.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230509%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230509T234507Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=999058e55e648562c8641b5d6a426069cfb8b1d67a0696535613149494a151c3 23:45:07 % Total % Received % Xferd Average Speed Time Time Time Current 23:45:07 Dload Upload Total Spent Left Speed 23:45:07 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 12303 --:--:-- --:--:-- --:--:-- 12303 23:45:07 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/f2599b8404e96ca6d51fcf741083b5fab6a9bf6d [Pipeline] } 23:45:07 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:45:09 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-314/archives ] 23:45:09 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-314/archives 23:45:09 total 16 23:45:09 drwxr-xr-x 3 root root 4096 May 9 23:36 . 23:45:09 drwxrwxr-x 10 jenkins jenkins 4096 May 9 23:36 .. 23:45:09 drwxr-xr-x 2 root root 4096 May 9 23:36 cost 23:45:09 -rw-r--r-- 1 root root 86 May 9 23:36 cost.csv 23:45:09 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-314/archives 23:45:09 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-314/archives 23:45:09 total 16 23:45:09 drwxr-xr-x 3 jenkins jenkins 4096 May 9 23:36 . 23:45:09 drwxrwxr-x 10 jenkins jenkins 4096 May 9 23:36 .. 23:45:09 drwxr-xr-x 2 jenkins jenkins 4096 May 9 23:36 cost 23:45:09 -rw-r--r-- 1 jenkins jenkins 86 May 9 23:36 cost.csv [Pipeline] libraryResource [Pipeline] sh 23:45:09 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 23:45:10 ---> package-listing.sh 23:45:10 ++ facter osfamily 23:45:10 ++ tr '[:upper:]' '[:lower:]' 23:45:11 + OS_FAMILY=debian 23:45:11 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-314 23:45:11 + START_PACKAGES=/tmp/packages_start.txt 23:45:11 + END_PACKAGES=/tmp/packages_end.txt 23:45:11 + DIFF_PACKAGES=/tmp/packages_diff.txt 23:45:11 + PACKAGES=/tmp/packages_start.txt 23:45:11 + '[' /w/workspace/gexfoundry_device-rest-go_PR-314 ']' 23:45:11 + PACKAGES=/tmp/packages_end.txt 23:45:11 + case "${OS_FAMILY}" in 23:45:11 + dpkg -l 23:45:11 + grep '^ii' 23:45:11 + '[' -f /tmp/packages_start.txt ']' 23:45:11 + '[' -f /tmp/packages_end.txt ']' 23:45:11 + diff /tmp/packages_start.txt /tmp/packages_end.txt 23:45:11 + '[' /w/workspace/gexfoundry_device-rest-go_PR-314 ']' 23:45:11 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-314/archives/ 23:45:11 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-314/archives/ [Pipeline] echo 23:45:11 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-314/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 23:45:11 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 23:45:12 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 23:45:12 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 23:45:12 prd-ubuntu20.04-docker-8c-8g-14813 does not seem to be running inside a container 23:45:12 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-314/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-314 -v /w/workspace/gexfoundry_device-rest-go_PR-314:/w/workspace/gexfoundry_device-rest-go_PR-314:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-314@tmp:/w/workspace/gexfoundry_device-rest-go_PR-314@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 23:45:12 $ docker top 4bf88c731e6611706f6bb5436524f964621298b469f3fa66678b62ae4ff44a6d -eo pid,comm [Pipeline] { [Pipeline] sh 23:45:12 + touch /tmp/pre-build-complete [Pipeline] sh 23:45:13 + mkdir -p /var/log/sysstat [Pipeline] sh 23:45:13 + ls /var/log/sa-host 23:45:13 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 23:45:13 provisioning config files... 23:45:13 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-314@tmp/config14649708844024411317tmp [Pipeline] { [Pipeline] echo 23:45:13 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 23:45:14 ---> create-netrc.sh [Pipeline] } 23:45:14 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 23:45:14 ---> python-tools-install.sh [Pipeline] echo 23:45:14 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 23:45:15 ---> sudo-logs.sh 23:45:15 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 23:45:15 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 23:45:15 ---> job-cost.sh 23:45:15 lf-activate-venv: SKIPPING 23:45:15 DEBUG: total: 0.2199999988079071 23:45:15 INFO: Retrieving Stack Cost... 23:45:15 INFO: Retrieving Pricing Info for: v3-standard-8 23:45:15 INFO: Archiving Costs [Pipeline] echo 23:45:16 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 23:45:16 ---> logs-deploy.sh 23:45:16 lf-activate-venv: SKIPPING 23:45:16 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-314/1 23:45:16 INFO: archiving workspace using pattern(s): 23:45:17 Archives upload complete. 23:45:17 INFO: archiving logs to Nexus