Pull request #347 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from b6f2afc8615472008126876bd7a4b2d206b00462+73bea07d0c9b5090e1f6a3014a45db50fae0ec58 (3e2e66d46d60de857f9d00bdd283f790082dc994) 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-ssh17823180938479514905.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision e143027787c0ac28563f7e92b6cefc600d3b7107 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-ssh6241897094853902732.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 e143027787c0ac28563f7e92b6cefc600d3b7107 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-347/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-347/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh2104348994283420153.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-347/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh8491421968641175268.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision e143027787c0ac28563f7e92b6cefc600d3b7107 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f e143027787c0ac28563f7e92b6cefc600d3b7107 # timeout=10 Commit message: "Merge pull request #442 from ernestojeda/golang-1.21" > 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-ssh16006117361189360138.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-347/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-347/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh2873119055885284203.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 e143027787c0ac28563f7e92b6cefc600d3b7107 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.21 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 All nodes of label ‘ubuntu20.04-docker-8c-8g’ are offline Running on prd-ubuntu20.04-docker-8c-8g-8068 in /w/workspace/gexfoundry_device-rest-go_PR-347 [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-347 # 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 Merging remotes/origin/main commit 73bea07d0c9b5090e1f6a3014a45db50fae0ec58 into PR head commit b6f2afc8615472008126876bd7a4b2d206b00462 Merge succeeded, producing b6f2afc8615472008126876bd7a4b2d206b00462 Checking out Revision b6f2afc8615472008126876bd7a4b2d206b00462 (PR-347) 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 e143027787c0ac28563f7e92b6cefc600d3b7107 [Pipeline] } > 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/347/head:refs/remotes/origin/PR-347 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b6f2afc8615472008126876bd7a4b2d206b00462 # 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 73bea07d0c9b5090e1f6a3014a45db50fae0ec58 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b6f2afc8615472008126876bd7a4b2d206b00462 # timeout=10 [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:43:17 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:43:17 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:43:17 ========================================================= 20:43:17 EdgeX Global Pipelines Version Info 20:43:17 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:43:18 ------------------- 20:43:18 stable info: 20:43:18 ------------------- 20:43:18 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:43:18 Commit SHA: e143027787c0ac28563f7e92b6cefc600d3b7107 20:43:18 Message: update stable to v1.0.254 20:43:18 ------------------- 20:43:18 experimental info: 20:43:18 ------------------- 20:43:18 Commited By: **** collab-it+edgex@linuxfoundation.org 20:43:18 Commit SHA: e143027787c0ac28563f7e92b6cefc600d3b7107 20:43:18 Message: update experimental to v1.0.254 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:43:18 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:43:18 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.21 [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:43:19 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:43:20 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:43:20 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 20:43:20 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-347 [Pipeline] echo 20:43:20 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-347 [Pipeline] echo 20:43:20 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-347 [Pipeline] echo 20:43:20 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b6f2afc8615472008126876bd7a4b2d206b00462 [Pipeline] echo 20:43:20 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b6f2afc [Pipeline] echo 20:43:20 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:43:20 provisioning config files... 20:43:20 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-347@tmp/config4271290390963703409tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:43:20 ---> docker-login.sh 20:43:20 nexus3.edgexfoundry.org:10001 20:43:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:43:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:43:21 Configure a credential helper to remove this warning. See 20:43:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:43:21 20:43:21 Login Succeeded 20:43:21 nexus3.edgexfoundry.org:10002 20:43:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:43:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:43:21 Configure a credential helper to remove this warning. See 20:43:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:43:21 20:43:21 Login Succeeded 20:43:21 nexus3.edgexfoundry.org:10003 20:43:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:43:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:43:21 Configure a credential helper to remove this warning. See 20:43:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:43:21 20:43:21 Login Succeeded 20:43:21 nexus3.edgexfoundry.org:10004 20:43:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:43:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:43:21 Configure a credential helper to remove this warning. See 20:43:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:43:21 20:43:21 Login Succeeded 20:43:21 docker.io 20:43:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:43:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:43:21 Configure a credential helper to remove this warning. See 20:43:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:43:21 20:43:21 Login Succeeded 20:43:21 ---> docker-login.sh ends [Pipeline] } 20:43:21 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:43:22 + git rev-list -1 --merges b6f2afc8615472008126876bd7a4b2d206b00462~1..b6f2afc8615472008126876bd7a4b2d206b00462 [Pipeline] echo 20:43:22 -----------> git rev-list -1 --merges b6f2afc8615472008126876bd7a4b2d206b00462~1..b6f2afc8615472008126876bd7a4b2d206b00462 b6f2afc8615472008126876bd7a4b2d206b00462 [false] [Pipeline] sh 20:43:22 + git log --format=format:%s -1 b6f2afc8615472008126876bd7a4b2d206b00462 [Pipeline] echo 20:43:22 ========================================================= 20:43:22 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:43:22 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:43:23 + git log --format=format:%s -1 b6f2afc8615472008126876bd7a4b2d206b00462 [Pipeline] echo 20:43:23 [semverPrep] GIT_COMMIT: b6f2afc8615472008126876bd7a4b2d206b00462, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3 [Pipeline] echo 20:43:23 [semverPrep] This is not a build commit. [Pipeline] sh 20:43:23 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:43:23 + grep -v github /etc/ssh/ssh_known_hosts 20:43:23 + [ -e /tmp/ssh_known_hosts ] 20:43:23 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:43:23 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:43:23 + sudo tee -a /etc/ssh/ssh_known_hosts 20:43:23 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:43:24 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:43:24 20:43:24 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:43:24 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:43:24 0.1.4: Pulling from edgex-devops/py-git-semver 20:43:24 b85a868b505f: Pulling fs layer 20:43:24 e2be974225ed: Pulling fs layer 20:43:24 339a4e72a1f5: Pulling fs layer 20:43:24 988bab9f4d93: Pulling fs layer 20:43:24 1469e6f7b9e6: Pulling fs layer 20:43:24 988bab9f4d93: Waiting 20:43:24 eaf3925da568: Pulling fs layer 20:43:24 bab4dde63d76: Pulling fs layer 20:43:24 eaf3925da568: Waiting 20:43:24 bab4dde63d76: Waiting 20:43:24 bde34c3a00c8: Pulling fs layer 20:43:24 b352a97aabf1: Pulling fs layer 20:43:24 1469e6f7b9e6: Waiting 20:43:24 bde34c3a00c8: Waiting 20:43:24 b352a97aabf1: Waiting 20:43:24 4872d77fe225: Pulling fs layer 20:43:24 5851b861e8e6: Pulling fs layer 20:43:24 4872d77fe225: Waiting 20:43:24 5851b861e8e6: Waiting 20:43:24 e2be974225ed: Verifying Checksum 20:43:24 e2be974225ed: Download complete 20:43:24 1469e6f7b9e6: Verifying Checksum 20:43:24 1469e6f7b9e6: Download complete 20:43:24 eaf3925da568: Download complete 20:43:24 339a4e72a1f5: Verifying Checksum 20:43:24 339a4e72a1f5: Download complete 20:43:24 bde34c3a00c8: Download complete 20:43:24 b352a97aabf1: Verifying Checksum 20:43:24 b352a97aabf1: Download complete 20:43:24 4872d77fe225: Download complete 20:43:24 5851b861e8e6: Download complete 20:43:24 b85a868b505f: Verifying Checksum 20:43:24 b85a868b505f: Download complete 20:43:25 bab4dde63d76: Verifying Checksum 20:43:25 bab4dde63d76: Download complete 20:43:26 b85a868b505f: Pull complete 20:43:26 e2be974225ed: Pull complete 20:43:27 339a4e72a1f5: Pull complete 20:43:27 988bab9f4d93: Pull complete 20:43:27 1469e6f7b9e6: Pull complete 20:43:27 eaf3925da568: Pull complete 20:43:29 bab4dde63d76: Pull complete 20:43:29 bde34c3a00c8: Pull complete 20:43:29 b352a97aabf1: Pull complete 20:43:29 4872d77fe225: Pull complete 20:43:29 5851b861e8e6: Pull complete 20:43:29 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 20:43:29 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:43:29 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:43:30 prd-ubuntu20.04-docker-8c-8g-8068 does not seem to be running inside a container 20:43:30 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-347 -v /w/workspace/gexfoundry_device-rest-go_PR-347:/w/workspace/gexfoundry_device-rest-go_PR-347:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-347@tmp:/w/workspace/gexfoundry_device-rest-go_PR-347@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 20:43:33 $ docker top bd40a03d8528fa4a515d7b16024ab83fa158987160cebc659d77de94f49dcc0e -eo pid,comm 20:43:33 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). 20:43:33 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:43:33 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:43:33 [ssh-agent] Looking for ssh-agent implementation... 20:43:33 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:43:33 $ docker exec bd40a03d8528fa4a515d7b16024ab83fa158987160cebc659d77de94f49dcc0e ssh-agent 20:43:34 SSH_AUTH_SOCK=/tmp/ssh-1yy0RIZi6Vh0/agent.33 20:43:34 SSH_AGENT_PID=39 20:43:34 Running ssh-add (command line suppressed) 20:43:34 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-347@tmp/private_key_14017030250098812615.key (/w/workspace/gexfoundry_device-rest-go_PR-347@tmp/private_key_14017030250098812615.key) 20:43:34 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:43:34 + git tag --points-at HEAD [Pipeline] } 20:43:34 $ docker exec --env ******** --env ******** bd40a03d8528fa4a515d7b16024ab83fa158987160cebc659d77de94f49dcc0e ssh-agent -k 20:43:34 unset SSH_AUTH_SOCK; 20:43:34 unset SSH_AGENT_PID; 20:43:34 echo Agent pid 39 killed; 20:43:34 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:43:34 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:43:34 [ssh-agent] Looking for ssh-agent implementation... 20:43:34 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:43:34 $ docker exec bd40a03d8528fa4a515d7b16024ab83fa158987160cebc659d77de94f49dcc0e ssh-agent 20:43:34 SSH_AUTH_SOCK=/tmp/ssh-gSpyKptjKdnX/agent.71 20:43:34 SSH_AGENT_PID=76 20:43:34 Running ssh-add (command line suppressed) 20:43:35 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-347@tmp/private_key_1825780865124611347.key (/w/workspace/gexfoundry_device-rest-go_PR-347@tmp/private_key_1825780865124611347.key) 20:43:35 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:43:35 + git semver init 20:43:35 2023-09-27 20:43:35,577 [run_init] DEBUG init version:0.0.0 force:False 20:43:35 2023-09-27 20:43:35,578 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-347/.semver 20:43:35 2023-09-27 20:43:35,578 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-347/.semver 20:43:35 2023-09-27 20:43:35,578 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-347/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-347, universal_newlines=False, shell=None, istream=None) 20:43:37 2023-09-27 20:43:36,802 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-347/.git/info/exclude 20:43:37 2023-09-27 20:43:36,803 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-347/.semver/PR-347 with force:False 20:43:37 2023-09-27 20:43:36,803 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-347/.semver/PR-347 20:43:37 2023-09-27 20:43:36,807 [execute] INFO git cat-file --batch-check 20:43:37 2023-09-27 20:43:36,807 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-347/.semver, universal_newlines=False, shell=None, istream=) 20:43:37 2023-09-27 20:43:36,813 [execute] INFO git cat-file --batch 20:43:37 2023-09-27 20:43:36,814 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-347/.semver, universal_newlines=False, shell=None, istream=) 20:43:37 2023-09-27 20:43:36,819 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-347/.semver/PR-347 20:43:37 0.0.0 [Pipeline] } 20:43:37 $ docker exec --env ******** --env ******** bd40a03d8528fa4a515d7b16024ab83fa158987160cebc659d77de94f49dcc0e ssh-agent -k 20:43:37 unset SSH_AUTH_SOCK; 20:43:37 unset SSH_AGENT_PID; 20:43:37 echo Agent pid 76 killed; 20:43:37 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:43:37 + git semver [Pipeline] } 20:43:37 $ docker stop --time=1 bd40a03d8528fa4a515d7b16024ab83fa158987160cebc659d77de94f49dcc0e 20:43:39 $ docker rm -f --volumes bd40a03d8528fa4a515d7b16024ab83fa158987160cebc659d77de94f49dcc0e [Pipeline] // withDockerContainer [Pipeline] sh 20:43:39 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:43:39 Stashed 1 file(s) [Pipeline] echo 20:43:39 [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 20:43:40 provisioning config files... 20:43:40 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-347@tmp/config15185755328350781658tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:43:40 ---> docker-login.sh 20:43:40 nexus3.edgexfoundry.org:10001 20:43:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:43:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:43:40 Configure a credential helper to remove this warning. See 20:43:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:43:40 20:43:40 Login Succeeded 20:43:40 nexus3.edgexfoundry.org:10002 20:43:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:43:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:43:40 Configure a credential helper to remove this warning. See 20:43:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:43:40 20:43:40 Login Succeeded 20:43:40 nexus3.edgexfoundry.org:10003 20:43:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:43:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:43:41 Configure a credential helper to remove this warning. See 20:43:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:43:41 20:43:41 Login Succeeded 20:43:41 nexus3.edgexfoundry.org:10004 20:43:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:43:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:43:41 Configure a credential helper to remove this warning. See 20:43:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:43:41 20:43:41 Login Succeeded 20:43:41 docker.io 20:43:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:43:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:43:41 Configure a credential helper to remove this warning. See 20:43:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:43:41 20:43:41 Login Succeeded 20:43:41 ---> docker-login.sh ends [Pipeline] } 20:43:41 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:43:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:43:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:43:41 ========================================================= 20:43:41 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine] 20:43:41 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:43:42 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine --build-arg MAKE=echo noop --target=builder . 20:43:42 Sending build context to Docker daemon 10.92MB 20:43:42 Step 1/12 : ARG BASE=golang:1.21-alpine3.18 20:43:42 Step 2/12 : FROM ${BASE} AS builder 20:43:42 1.21-alpine: Pulling from edgex-devops/edgex-golang-base 20:43:42 7264a8db6415: Pulling fs layer 20:43:42 c4d48a809fc2: Pulling fs layer 20:43:42 4f1c88b9dad5: Pulling fs layer 20:43:42 ad3a456e5733: Pulling fs layer 20:43:42 33e27b845d1e: Pulling fs layer 20:43:42 c68163c4e522: Pulling fs layer 20:43:42 50da416c3ac9: Pulling fs layer 20:43:42 23d2d4c4bb30: Pulling fs layer 20:43:42 c68163c4e522: Waiting 20:43:42 33e27b845d1e: Waiting 20:43:42 ad3a456e5733: Waiting 20:43:42 23d2d4c4bb30: Waiting 20:43:42 50da416c3ac9: Waiting 20:43:42 c4d48a809fc2: Download complete 20:43:42 ad3a456e5733: Verifying Checksum 20:43:42 ad3a456e5733: Download complete 20:43:42 33e27b845d1e: Verifying Checksum 20:43:42 33e27b845d1e: Download complete 20:43:42 7264a8db6415: Verifying Checksum 20:43:42 7264a8db6415: Download complete 20:43:42 c68163c4e522: Verifying Checksum 20:43:42 c68163c4e522: Download complete 20:43:42 7264a8db6415: Pull complete 20:43:42 c4d48a809fc2: Pull complete 20:43:42 23d2d4c4bb30: Verifying Checksum 20:43:42 23d2d4c4bb30: Download complete 20:43:42 4f1c88b9dad5: Verifying Checksum 20:43:42 4f1c88b9dad5: Download complete 20:43:43 50da416c3ac9: Verifying Checksum 20:43:43 50da416c3ac9: Download complete 20:43:46 4f1c88b9dad5: Pull complete 20:43:46 ad3a456e5733: Pull complete 20:43:46 33e27b845d1e: Pull complete 20:43:46 c68163c4e522: Pull complete 20:43:49 50da416c3ac9: Pull complete 20:43:49 23d2d4c4bb30: Pull complete 20:43:49 Digest: sha256:869f8081a9cc57a47d9be3c92245bb8518e7edea9beab93563b77b0fbed5fa8c 20:43:49 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine 20:43:49 ---> 0786185ac409 20:43:49 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:43:54 ---> Running in 3136062f1a1a 20:43:54 Removing intermediate container 3136062f1a1a 20:43:54 ---> a452c55ee9e8 20:43:54 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:43:54 ---> Running in 1c670078c21e 20:43:54 Removing intermediate container 1c670078c21e 20:43:54 ---> b1e5ba754556 20:43:54 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:43:54 ---> Running in 284abad71e95 20:43:54 Removing intermediate container 284abad71e95 20:43:54 ---> cd7e78a98501 20:43:54 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:43:54 ---> Running in 8f0855aea5fe 20:43:54 Removing intermediate container 8f0855aea5fe 20:43:54 ---> ae0cf582c713 20:43:54 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:43:54 ---> Running in 17302be1d5cb 20:43:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 20:43:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 20:43:54 (1/4) Installing openssh-keygen (9.3_p2-r0) 20:43:54 (2/4) Installing libedit (20221030.3.1-r1) 20:43:54 (3/4) Installing openssh-client-common (9.3_p2-r0) 20:43:54 (4/4) Installing openssh-client-default (9.3_p2-r0) 20:43:54 Executing busybox-1.36.1-r2.trigger 20:43:54 OK: 268 MiB in 56 packages 20:43:55 Still waiting to schedule task 20:43:55 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 20:43:55 Removing intermediate container 17302be1d5cb 20:43:55 ---> 7dc8bfb34c77 20:43:55 Step 8/12 : WORKDIR /device-rest-go 20:43:55 ---> Running in bed143870b31 20:43:55 Removing intermediate container bed143870b31 20:43:55 ---> 015f06a2b7a5 20:43:55 Step 9/12 : COPY go.mod vendor* ./ 20:43:55 ---> 9751aa8745d6 20:43:55 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:43:55 ---> Running in 76880b7a40f0 20:44:42 Removing intermediate container 76880b7a40f0 20:44:42 ---> d9e51e224e99 20:44:42 Step 11/12 : COPY . . 20:44:42 ---> a07f7f9bdb36 20:44:42 Step 12/12 : RUN $MAKE 20:44:42 ---> Running in b5fb1e2ff298 20:44:42 noop 20:44:42 Removing intermediate container b5fb1e2ff298 20:44:42 ---> 13303899fb6f 20:44:42 Successfully built 13303899fb6f 20:44:42 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:44:42 + docker inspect -f . ci-base-image-x86_64 20:44:42 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:44:42 prd-ubuntu20.04-docker-8c-8g-8068 does not seem to be running inside a container 20:44:43 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-347 -v /w/workspace/gexfoundry_device-rest-go_PR-347:/w/workspace/gexfoundry_device-rest-go_PR-347:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-347@tmp:/w/workspace/gexfoundry_device-rest-go_PR-347@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 20:44:43 $ docker top 9cab9a953e3eb272eaa2f2c8579d4a856b26f115eda120863d20cbfff9c18b8c -eo pid,comm [Pipeline] { [Pipeline] sh 20:44:43 + go version 20:44:43 go version go1.21.0 linux/amd64 [Pipeline] } 20:44:43 $ docker stop --time=1 9cab9a953e3eb272eaa2f2c8579d4a856b26f115eda120863d20cbfff9c18b8c 20:44:45 $ docker rm -f --volumes 9cab9a953e3eb272eaa2f2c8579d4a856b26f115eda120863d20cbfff9c18b8c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:44:45 + docker inspect -f . ci-base-image-x86_64 20:44:45 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:44:45 prd-ubuntu20.04-docker-8c-8g-8068 does not seem to be running inside a container 20:44:45 $ 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-347 -v /w/workspace/gexfoundry_device-rest-go_PR-347:/w/workspace/gexfoundry_device-rest-go_PR-347:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-347@tmp:/w/workspace/gexfoundry_device-rest-go_PR-347@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 20:44:46 $ docker top 5161be986b93ebf64331c5220d0c12411ea67099736e2ca204f583d5181410d7 -eo pid,comm [Pipeline] { [Pipeline] sh 20:44:46 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-347 [Pipeline] fileExists [Pipeline] sh 20:44:46 + make test 20:44:46 go test ./... -coverprofile=coverage.out ./... 20:44:48 ? github.com/edgexfoundry/device-rest-go [no test files] 20:44:58 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:44:58 ok github.com/edgexfoundry/device-rest-go/driver 0.016s coverage: 33.2% of statements 20:45:04 go vet ./... 20:45:09 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:45:09 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:45:09 ./bin/test-attribution-txt.sh [Pipeline] echo 20:45:09 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:45:09 $ docker stop --time=1 5161be986b93ebf64331c5220d0c12411ea67099736e2ca204f583d5181410d7 20:45:11 $ docker rm -f --volumes 5161be986b93ebf64331c5220d0c12411ea67099736e2ca204f583d5181410d7 [Pipeline] // withDockerContainer [Pipeline] sh 20:45:12 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:45:12 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:45:13 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:45:13 + ls -al . 20:45:13 total 188 20:45:13 drwxrwxr-x 9 jenkins jenkins 4096 Sep 27 20:44 . 20:45:13 drwxrwxr-x 4 jenkins jenkins 4096 Sep 27 20:43 .. 20:45:13 -rw-rw-r-- 1 jenkins jenkins 151 Sep 27 20:43 .dockerignore 20:45:13 drwxrwxr-x 8 jenkins jenkins 4096 Sep 27 20:44 .git 20:45:13 drwxrwxr-x 3 jenkins jenkins 4096 Sep 27 20:43 .github 20:45:13 -rw-rw-r-- 1 jenkins jenkins 329 Sep 27 20:43 .gitignore 20:45:13 -rw-rw-r-- 1 jenkins jenkins 41 Sep 27 20:43 .golangci.yml 20:45:13 drwxr-xr-x 3 jenkins jenkins 4096 Sep 27 20:43 .semver 20:45:13 -rw-rw-r-- 1 jenkins jenkins 10300 Sep 27 20:43 Attribution.txt 20:45:13 -rw-rw-r-- 1 jenkins jenkins 15709 Sep 27 20:43 CHANGELOG.md 20:45:13 -rw-rw-r-- 1 jenkins jenkins 1578 Sep 27 20:43 Dockerfile 20:45:13 -rw-rw-r-- 1 jenkins jenkins 677 Sep 27 20:43 GOVERNANCE.md 20:45:13 -rw-rw-r-- 1 jenkins jenkins 680 Sep 27 20:43 Jenkinsfile 20:45:13 -rw-rw-r-- 1 jenkins jenkins 11340 Sep 27 20:43 LICENSE 20:45:13 -rw-rw-r-- 1 jenkins jenkins 2010 Sep 27 20:43 Makefile 20:45:13 -rw-rw-r-- 1 jenkins jenkins 620 Sep 27 20:43 OWNERS.md 20:45:13 -rw-rw-r-- 1 jenkins jenkins 15827 Sep 27 20:43 README.md 20:45:13 -rw-rw-r-- 1 jenkins jenkins 5 Sep 27 20:43 VERSION 20:45:13 drwxrwxr-x 2 jenkins jenkins 4096 Sep 27 20:43 bin 20:45:13 drwxrwxr-x 3 jenkins jenkins 4096 Sep 27 20:43 cmd 20:45:13 -rw-r--r-- 1 jenkins jenkins 14499 Sep 27 20:44 coverage.out 20:45:13 drwxrwxr-x 2 jenkins jenkins 4096 Sep 27 20:43 driver 20:45:13 -rw-rw-r-- 1 jenkins jenkins 3890 Sep 27 20:43 go.mod 20:45:13 -rw-rw-r-- 1 jenkins jenkins 35623 Sep 27 20:43 go.sum 20:45:13 drwxrwxr-x 4 jenkins jenkins 4096 Sep 27 20:43 snap 20:45:13 -rw-rw-r-- 1 jenkins jenkins 713 Sep 27 20:43 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:45:14 + 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=b6f2afc8615472008126876bd7a4b2d206b00462 --label arch=amd64 --label version=0.0.0 . 20:45:14 Sending build context to Docker daemon 10.94MB 20:45:14 Step 1/25 : ARG BASE=golang:1.21-alpine3.18 20:45:14 Step 2/25 : FROM ${BASE} AS builder 20:45:14 ---> 13303899fb6f 20:45:14 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:45:14 ---> Running in ae0aa03085e2 20:45:14 Removing intermediate container ae0aa03085e2 20:45:14 ---> b4321b1935d7 20:45:14 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:45:14 ---> Running in 85abc9cb7c1f 20:45:14 Removing intermediate container 85abc9cb7c1f 20:45:14 ---> e0575c25f7cc 20:45:14 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:45:14 ---> Running in bac34ca31393 20:45:14 Removing intermediate container bac34ca31393 20:45:14 ---> 01089b6beb38 20:45:14 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:45:14 ---> Running in 4e4c28ea3f3e 20:45:14 Removing intermediate container 4e4c28ea3f3e 20:45:14 ---> 50cf42904a64 20:45:14 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:45:14 ---> Running in db6c436d5198 20:45:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 20:45:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 20:45:15 OK: 268 MiB in 56 packages 20:45:15 Removing intermediate container db6c436d5198 20:45:15 ---> b642e3950710 20:45:15 Step 8/25 : WORKDIR /device-rest-go 20:45:15 ---> Running in d9ef452ff1bb 20:45:15 Removing intermediate container d9ef452ff1bb 20:45:15 ---> 9a095eee8232 20:45:15 Step 9/25 : COPY go.mod vendor* ./ 20:45:15 ---> 143540899965 20:45:15 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:45:16 ---> Running in 7c49d1ae18b9 20:45:16 Removing intermediate container 7c49d1ae18b9 20:45:16 ---> 5b2a22eb0df3 20:45:16 Step 11/25 : COPY . . 20:45:17 ---> 763c6d3c1875 20:45:17 Step 12/25 : RUN $MAKE 20:45:17 ---> Running in 2c53c7275666 20:45:17 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0 -X github.com/edgexfoundry/device-sdk-go/v3/internal/common.SDKVersion=v3.1.0-dev.32" -trimpath -mod=readonly -o cmd/device-rest ./cmd 20:45:28 Running on prd-ubuntu20.04-docker-arm64-4c-16g-8069 in /w/workspace/gexfoundry_device-rest-go_PR-347 [Pipeline] { [Pipeline] ws 20:45:29 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 20:45:29 The recommended git tool is: git 20:45:34 using credential edgex-jenkins-ssh 20:45:34 Cloning the remote Git repository 20:45:34 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:45:34 > git init /w/workspace/device-rest-go/1 # timeout=10 20:45:34 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:45:34 > git --version # timeout=10 20:45:34 > git --version # 'git version 2.25.1' 20:45:34 using GIT_SSH to set credentials SSH Credentials for GitHub 20:45:34 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:45:36 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:45:36 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:45:37 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:45:37 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:45:37 using GIT_SSH to set credentials SSH Credentials for GitHub 20:45:37 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/347/head:refs/remotes/origin/PR-347 +refs/heads/main:refs/remotes/origin/main # timeout=10 20:45:38 Merging remotes/origin/main commit 73bea07d0c9b5090e1f6a3014a45db50fae0ec58 into PR head commit b6f2afc8615472008126876bd7a4b2d206b00462 20:45:38 Merge succeeded, producing b6f2afc8615472008126876bd7a4b2d206b00462 20:45:38 Checking out Revision b6f2afc8615472008126876bd7a4b2d206b00462 (PR-347) 20:45:38 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 20:45:38 > git --version # timeout=10 20:45:38 > git --version # 'git version 2.25.1' 20:45:38 fatal: bad object e143027787c0ac28563f7e92b6cefc600d3b7107 20:45:38 > git config core.sparsecheckout # timeout=10 20:45:38 > git checkout -f b6f2afc8615472008126876bd7a4b2d206b00462 # timeout=10 20:45:38 > git remote # timeout=10 20:45:38 > git config --get remote.origin.url # timeout=10 20:45:38 using GIT_SSH to set credentials SSH Credentials for GitHub 20:45:38 > git merge 73bea07d0c9b5090e1f6a3014a45db50fae0ec58 # timeout=10 20:45:38 > git rev-parse HEAD^{commit} # timeout=10 20:45:38 > git config core.sparsecheckout # timeout=10 20:45:38 > git checkout -f b6f2afc8615472008126876bd7a4b2d206b00462 # timeout=10 20:45:39 Removing intermediate container 2c53c7275666 20:45:39 ---> 65ba7348eb86 20:45:39 Step 13/25 : FROM alpine:3.18 20:45:39 3.18: Pulling from library/alpine 20:45:39 7264a8db6415: Already exists 20:45:39 Digest: sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a 20:45:39 Status: Downloaded newer image for alpine:3.18 20:45:39 ---> 7e01a0d0a1dc 20:45:39 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2023: Intel' 20:45:39 ---> Running in 2411cd019811 20:45:39 Removing intermediate container 2411cd019811 20:45:39 ---> 05f108c2700c 20:45:39 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:45:39 ---> Running in e91ab9b9fa3b 20:45:39 Removing intermediate container e91ab9b9fa3b 20:45:39 ---> d5ee0cdb151e 20:45:39 Step 16/25 : RUN apk add --update --no-cache dumb-init 20:45:39 ---> Running in fea515d46808 20:45:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 20:45:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 20:45:39 (1/1) Installing dumb-init (1.2.5-r2) 20:45:39 Executing busybox-1.36.1-r2.trigger 20:45:39 OK: 7 MiB in 16 packages [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:45:39 Removing intermediate container fea515d46808 20:45:39 ---> 0b714892e6d8 20:45:39 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:45:40 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 20:45:40 % Total % Received % Xferd Average Speed Time Time Time Current 20:45:40 Dload Upload Total Spent Left Speed 20:45:40 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 95872 0 --:--:-- --:--:-- --:--:-- 95872 [Pipeline] sh 20:45:40 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json 20:45:40 ---> 031f5d67d4c8 20:45:40 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:45:40 ---> 8758cc772438 20:45:40 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:45:40 ---> eaa4b01a8faa 20:45:40 Step 20/25 : EXPOSE 59986 20:45:40 ---> Running in 3943b767d4fe [Pipeline] sh 20:45:41 Removing intermediate container 3943b767d4fe 20:45:41 ---> 52e77b46bc5b 20:45:41 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:45:41 ---> Running in bd31e19db240 20:45:41 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 20:45:41 + sudo tee /etc/docker/daemon.new 20:45:41 { 20:45:41 "registry-mirrors": [ 20:45:41 "https://nexus3.edgexfoundry.org:10001" 20:45:41 ], 20:45:41 "bip": "10.250.0.254/24", 20:45:41 "hosts": [ 20:45:41 "tcp://0.0.0.0:5555", 20:45:41 "unix:///var/run/docker.sock" 20:45:41 ], 20:45:41 "mtu": 1458, 20:45:41 "selinux-enabled": true, 20:45:41 "seccomp-profile": "/etc/docker/seccomp.json" 20:45:41 } [Pipeline] sh 20:45:41 Removing intermediate container bd31e19db240 20:45:41 ---> 4266dd1b1a45 20:45:41 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 20:45:41 ---> Running in a0f9c9970b89 20:45:41 Removing intermediate container a0f9c9970b89 20:45:41 ---> 6c7b42652a0b 20:45:41 Step 23/25 : LABEL arch=amd64 20:45:41 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 20:45:41 ---> Running in 869b3a75988c 20:45:41 + sudo service docker restart 20:45:41 Removing intermediate container 869b3a75988c 20:45:41 ---> 4fbfa2dfc5d5 20:45:41 Step 24/25 : LABEL git_sha=b6f2afc8615472008126876bd7a4b2d206b00462 20:45:42 ---> Running in 36c911137abc 20:45:42 Removing intermediate container 36c911137abc 20:45:42 ---> d1b401571fee 20:45:42 Step 25/25 : LABEL version=0.0.0 20:45:42 ---> Running in ed69f72e5dd3 20:45:42 Removing intermediate container ed69f72e5dd3 20:45:42 ---> 13ab96995359 20:45:42 [Warning] One or more build-args [ARCH] were not consumed 20:45:42 Successfully built 13ab96995359 20:45:42 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:45:43 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:45:43 20:45:43 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:45:43 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:45:43 latest: Pulling from edgex-lftools-log-publisher 20:45:43 5eb5b503b376: Pulling fs layer 20:45:43 5c69ac0246d0: Pulling fs layer 20:45:43 ec43610c2a17: Pulling fs layer 20:45:43 3a2ae6a8a46f: Pulling fs layer 20:45:43 33b1e0a273af: Pulling fs layer 20:45:43 5d3b04190fa2: Pulling fs layer 20:45:43 2f39f015ded8: Pulling fs layer 20:45:43 33b1e0a273af: Waiting 20:45:43 5d3b04190fa2: Waiting 20:45:43 2f39f015ded8: Waiting 20:45:43 3a2ae6a8a46f: Waiting 20:45:43 5c69ac0246d0: Verifying Checksum 20:45:43 5c69ac0246d0: Download complete 20:45:43 3a2ae6a8a46f: Verifying Checksum 20:45:43 3a2ae6a8a46f: Download complete 20:45:43 33b1e0a273af: Verifying Checksum 20:45:43 33b1e0a273af: Download complete 20:45:43 5d3b04190fa2: Verifying Checksum 20:45:43 5d3b04190fa2: Download complete 20:45:43 ec43610c2a17: Verifying Checksum 20:45:43 ec43610c2a17: Download complete 20:45:43 5eb5b503b376: Verifying Checksum 20:45:43 5eb5b503b376: Download complete 20:45:44 2f39f015ded8: Download complete 20:45:45 5eb5b503b376: Pull complete 20:45:45 5c69ac0246d0: Pull complete 20:45:45 ec43610c2a17: Pull complete 20:45:45 3a2ae6a8a46f: Pull complete 20:45:45 33b1e0a273af: Pull complete 20:45:46 5d3b04190fa2: Pull complete 20:45:50 2f39f015ded8: Pull complete 20:45:50 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 20:45:50 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:45:50 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:45:50 prd-ubuntu20.04-docker-8c-8g-8068 does not seem to be running inside a container 20:45:50 $ 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-347 -v /w/workspace/gexfoundry_device-rest-go_PR-347:/w/workspace/gexfoundry_device-rest-go_PR-347:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-347@tmp:/w/workspace/gexfoundry_device-rest-go_PR-347@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 20:45:58 $ docker top bceda9a15ef9d4d105cab85ab27559eea1ac976dc91e93a2ef077437f02c63c9 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:45:59 ---> job-cost.sh 20:45:59 lf-activate-venv: SKIPPING 20:45:59 INFO: No Stack... 20:45:59 INFO: Retrieving Pricing Info for: v3-standard-8 20:45:59 INFO: Archiving Costs [Pipeline] sh 20:45:59 + + cut -d, -f6 20:45:59 cat /w/workspace/gexfoundry_device-rest-go_PR-347/archives/cost.csv [Pipeline] lock 20:45:59 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-347-1-stack-cost] 20:45:59 Resource [jenkins-edgexfoundry-device-rest-go-PR-347-1-stack-cost] did not exist. Created. 20:45:59 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-347-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:46:00 provisioning config files... 20:46:00 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config13864973680010203857tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:46:00 + echo total: 0.2199999988079071 [Pipeline] stash 20:46:00 Stashed 1 file(s) [Pipeline] } 20:46:00 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-347-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:46:00 $ docker stop --time=1 bceda9a15ef9d4d105cab85ab27559eea1ac976dc91e93a2ef077437f02c63c9 20:46:00 ---> docker-login.sh 20:46:00 nexus3.edgexfoundry.org:10001 20:46:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:46:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:46:01 Configure a credential helper to remove this warning. See 20:46:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:46:01 20:46:01 Login Succeeded 20:46:01 nexus3.edgexfoundry.org:10002 20:46:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:46:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:46:01 Configure a credential helper to remove this warning. See 20:46:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:46:01 20:46:01 Login Succeeded 20:46:01 nexus3.edgexfoundry.org:10003 20:46:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:46:01 $ docker rm -f --volumes bceda9a15ef9d4d105cab85ab27559eea1ac976dc91e93a2ef077437f02c63c9 [Pipeline] // withDockerContainer [Pipeline] } 20:46:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:46:01 Configure a credential helper to remove this warning. See 20:46:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:46:01 20:46:01 Login Succeeded 20:46:01 nexus3.edgexfoundry.org:10004 [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 20:46:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:46:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:46:02 Configure a credential helper to remove this warning. See 20:46:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:46:02 20:46:02 Login Succeeded 20:46:02 docker.io 20:46:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:46:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:46:02 Configure a credential helper to remove this warning. See 20:46:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:46:02 20:46:02 Login Succeeded 20:46:02 ---> docker-login.sh ends [Pipeline] } 20:46:02 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:46:03 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:46:03 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:46:03 ========================================================= 20:46:03 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine] 20:46:03 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:46:03 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine --build-arg MAKE=echo noop --target=builder . 20:46:03 Sending build context to Docker daemon 144.4kB 20:46:04 Step 1/12 : ARG BASE=golang:1.21-alpine3.18 20:46:04 Step 2/12 : FROM ${BASE} AS builder 20:46:04 1.21-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 20:46:04 9fda8d8052c6: Pulling fs layer 20:46:04 5d54e960e981: Pulling fs layer 20:46:04 c4a7e357bf2a: Pulling fs layer 20:46:04 f0e02332f6b5: Pulling fs layer 20:46:04 cefa15bbcfad: Pulling fs layer 20:46:04 17808c966233: Pulling fs layer 20:46:04 f4c1fc716caa: Pulling fs layer 20:46:04 cefa15bbcfad: Waiting 20:46:04 17808c966233: Waiting 20:46:04 f0e02332f6b5: Waiting 20:46:04 f4c1fc716caa: Waiting 20:46:04 5d54e960e981: Verifying Checksum 20:46:04 5d54e960e981: Download complete 20:46:04 f0e02332f6b5: Verifying Checksum 20:46:04 f0e02332f6b5: Download complete 20:46:04 cefa15bbcfad: Verifying Checksum 20:46:04 cefa15bbcfad: Download complete 20:46:04 9fda8d8052c6: Verifying Checksum 20:46:04 9fda8d8052c6: Download complete 20:46:04 f4c1fc716caa: Download complete 20:46:04 9fda8d8052c6: Pull complete 20:46:06 17808c966233: Verifying Checksum 20:46:06 17808c966233: Download complete 20:46:07 5d54e960e981: Pull complete 20:46:08 c4a7e357bf2a: Verifying Checksum 20:46:08 c4a7e357bf2a: Download complete 20:46:20 c4a7e357bf2a: Pull complete 20:46:20 f0e02332f6b5: Pull complete 20:46:21 cefa15bbcfad: Pull complete 20:46:28 17808c966233: Pull complete 20:46:29 f4c1fc716caa: Pull complete 20:46:29 Digest: sha256:f9b5da702465edd0a2564459334de068a24595700ad6c8d0b85b07445f0b3000 20:46:29 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine 20:46:29 ---> ea914061e18c 20:46:29 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:46:31 ---> Running in 6e2b47cfcbf9 20:46:31 Removing intermediate container 6e2b47cfcbf9 20:46:31 ---> 6a64cf599587 20:46:31 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:46:31 ---> Running in 580b615a5d4c 20:46:31 Removing intermediate container 580b615a5d4c 20:46:31 ---> e5f38fac29ef 20:46:31 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:46:32 ---> Running in 02f40384de5d 20:46:32 Removing intermediate container 02f40384de5d 20:46:32 ---> 043f83309e0d 20:46:32 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:46:32 ---> Running in 8a2f118f866f 20:46:32 Removing intermediate container 8a2f118f866f 20:46:32 ---> 1a84a4a11d0d 20:46:32 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:46:32 ---> Running in 97ebf1776904 20:46:33 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 20:46:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 20:46:35 (1/4) Installing openssh-keygen (9.3_p2-r0) 20:46:35 (2/4) Installing libedit (20221030.3.1-r1) 20:46:35 (3/4) Installing openssh-client-common (9.3_p2-r0) 20:46:35 (4/4) Installing openssh-client-default (9.3_p2-r0) 20:46:35 Executing busybox-1.36.1-r2.trigger 20:46:35 OK: 270 MiB in 56 packages 20:46:36 Removing intermediate container 97ebf1776904 20:46:36 ---> b88f0e661e45 20:46:36 Step 8/12 : WORKDIR /device-rest-go 20:46:36 ---> Running in 98c3f3e84eac 20:46:36 Removing intermediate container 98c3f3e84eac 20:46:36 ---> d86d8887e74d 20:46:36 Step 9/12 : COPY go.mod vendor* ./ 20:46:37 ---> 15b60d33fc2d 20:46:37 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:46:37 ---> Running in 7a864ed621ce 20:47:45 Removing intermediate container 7a864ed621ce 20:47:45 ---> aca44466c693 20:47:45 Step 11/12 : COPY . . 20:47:45 ---> 8468c6525f36 20:47:45 Step 12/12 : RUN $MAKE 20:47:45 ---> Running in 78a619e340d3 20:47:45 noop 20:47:45 Removing intermediate container 78a619e340d3 20:47:45 ---> 53fa28d85eca 20:47:45 Successfully built 53fa28d85eca 20:47:45 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:47:45 + docker inspect -f . ci-base-image-arm64 20:47:45 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:47:46 prd-ubuntu20.04-docker-arm64-4c-16g-8069 does not seem to be running inside a container 20:47:46 $ 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 20:47:47 $ docker top a7bb44d8c8a6b0ba7882e036258490332f147e3b9a2897a38a6a4058d1b7e70b -eo pid,comm [Pipeline] { [Pipeline] sh 20:47:48 + go version 20:47:48 go version go1.21.0 linux/arm64 [Pipeline] } 20:47:48 $ docker stop --time=1 a7bb44d8c8a6b0ba7882e036258490332f147e3b9a2897a38a6a4058d1b7e70b 20:47:49 $ docker rm -f --volumes a7bb44d8c8a6b0ba7882e036258490332f147e3b9a2897a38a6a4058d1b7e70b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:47:50 + docker inspect -f . ci-base-image-arm64 20:47:50 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:47:51 prd-ubuntu20.04-docker-arm64-4c-16g-8069 does not seem to be running inside a container 20:47:51 $ 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 20:47:52 $ docker top 019ff10af5c3c3a2d5b5d7602ba8b1b5d85d7743dd42eeba5b513a68d0151e5f -eo pid,comm [Pipeline] { [Pipeline] sh 20:47:52 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 20:47:53 + make test 20:47:53 go test ./... -coverprofile=coverage.out ./... 20:47:58 ? github.com/edgexfoundry/device-rest-go [no test files] 20:49:35 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:49:35 ok github.com/edgexfoundry/device-rest-go/driver 0.049s coverage: 33.2% of statements 20:49:35 WARNING: Linting skipped (not on x86_64 or linter not installed) 20:49:35 go vet ./... 20:49:43 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:49:43 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:49:43 ./bin/test-attribution-txt.sh [Pipeline] echo 20:49:43 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:49:43 $ docker stop --time=1 019ff10af5c3c3a2d5b5d7602ba8b1b5d85d7743dd42eeba5b513a68d0151e5f 20:49:45 $ docker rm -f --volumes 019ff10af5c3c3a2d5b5d7602ba8b1b5d85d7743dd42eeba5b513a68d0151e5f [Pipeline] // withDockerContainer [Pipeline] sh 20:49:47 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:49:47 Warning: overwriting stash ‘coverage-report’ 20:49:47 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:49:48 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:49:48 + ls -al . 20:49:48 total 184 20:49:48 drwxrwxr-x 8 jenkins jenkins 4096 Sep 27 20:47 . 20:49:48 drwxrwxr-x 4 jenkins jenkins 4096 Sep 27 20:45 .. 20:49:48 -rw-rw-r-- 1 jenkins jenkins 151 Sep 27 20:45 .dockerignore 20:49:48 drwxrwxr-x 8 jenkins jenkins 4096 Sep 27 20:45 .git 20:49:48 drwxrwxr-x 3 jenkins jenkins 4096 Sep 27 20:45 .github 20:49:48 -rw-rw-r-- 1 jenkins jenkins 329 Sep 27 20:45 .gitignore 20:49:48 -rw-rw-r-- 1 jenkins jenkins 41 Sep 27 20:45 .golangci.yml 20:49:48 -rw-rw-r-- 1 jenkins jenkins 10300 Sep 27 20:45 Attribution.txt 20:49:48 -rw-rw-r-- 1 jenkins jenkins 15709 Sep 27 20:45 CHANGELOG.md 20:49:48 -rw-rw-r-- 1 jenkins jenkins 1578 Sep 27 20:45 Dockerfile 20:49:48 -rw-rw-r-- 1 jenkins jenkins 677 Sep 27 20:45 GOVERNANCE.md 20:49:48 -rw-rw-r-- 1 jenkins jenkins 680 Sep 27 20:45 Jenkinsfile 20:49:48 -rw-rw-r-- 1 jenkins jenkins 11340 Sep 27 20:45 LICENSE 20:49:48 -rw-rw-r-- 1 jenkins jenkins 2010 Sep 27 20:45 Makefile 20:49:48 -rw-rw-r-- 1 jenkins jenkins 620 Sep 27 20:45 OWNERS.md 20:49:48 -rw-rw-r-- 1 jenkins jenkins 15827 Sep 27 20:45 README.md 20:49:48 -rw-rw-r-- 1 jenkins jenkins 5 Sep 27 20:43 VERSION 20:49:48 drwxrwxr-x 2 jenkins jenkins 4096 Sep 27 20:45 bin 20:49:48 drwxrwxr-x 3 jenkins jenkins 4096 Sep 27 20:45 cmd 20:49:48 -rw-r--r-- 1 jenkins jenkins 14499 Sep 27 20:49 coverage.out 20:49:48 drwxrwxr-x 2 jenkins jenkins 4096 Sep 27 20:45 driver 20:49:48 -rw-rw-r-- 1 jenkins jenkins 3890 Sep 27 20:45 go.mod 20:49:48 -rw-rw-r-- 1 jenkins jenkins 35623 Sep 27 20:45 go.sum 20:49:48 drwxrwxr-x 4 jenkins jenkins 4096 Sep 27 20:45 snap 20:49:48 -rw-rw-r-- 1 jenkins jenkins 713 Sep 27 20:45 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:49:48 + 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=b6f2afc8615472008126876bd7a4b2d206b00462 --label arch=arm64 --label version=0.0.0 . 20:49:48 Sending build context to Docker daemon 159.7kB 20:49:49 Step 1/25 : ARG BASE=golang:1.21-alpine3.18 20:49:49 Step 2/25 : FROM ${BASE} AS builder 20:49:49 ---> 53fa28d85eca 20:49:49 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:49:49 ---> Running in 8bc818e89e46 20:49:50 Removing intermediate container 8bc818e89e46 20:49:50 ---> 875e3aee62d3 20:49:50 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:49:50 ---> Running in 3d629758fe49 20:49:51 Removing intermediate container 3d629758fe49 20:49:51 ---> 22db3762e7fa 20:49:51 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:49:51 ---> Running in 4d6158fcffa5 20:49:51 Removing intermediate container 4d6158fcffa5 20:49:51 ---> 93bc9924fa81 20:49:51 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:49:51 ---> Running in 9d14b3f1d867 20:49:51 Removing intermediate container 9d14b3f1d867 20:49:51 ---> d625bf866322 20:49:51 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:49:51 ---> Running in d78ff9734905 20:49:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 20:49:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 20:49:54 OK: 270 MiB in 56 packages 20:49:55 Removing intermediate container d78ff9734905 20:49:55 ---> b9c69b357ba8 20:49:55 Step 8/25 : WORKDIR /device-rest-go 20:49:55 ---> Running in 75fb074304ca 20:49:55 Removing intermediate container 75fb074304ca 20:49:55 ---> fb368a3fd452 20:49:55 Step 9/25 : COPY go.mod vendor* ./ 20:49:56 ---> f7aa32fed46c 20:49:56 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:49:56 ---> Running in ed0dc557cf9a 20:49:58 Removing intermediate container ed0dc557cf9a 20:49:58 ---> ce63756ef2b6 20:49:58 Step 11/25 : COPY . . 20:49:59 ---> d9932ca0338f 20:49:59 Step 12/25 : RUN $MAKE 20:49:59 ---> Running in afd9c336b0d9 20:50:00 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0 -X github.com/edgexfoundry/device-sdk-go/v3/internal/common.SDKVersion=v3.1.0-dev.32" -trimpath -mod=readonly -o cmd/device-rest ./cmd 20:52:07 Removing intermediate container afd9c336b0d9 20:52:07 ---> a81ab90f05c3 20:52:07 Step 13/25 : FROM alpine:3.18 20:52:07 3.18: Pulling from library/alpine 20:52:07 9fda8d8052c6: Already exists 20:52:07 Digest: sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a 20:52:07 Status: Downloaded newer image for alpine:3.18 20:52:07 ---> f6648c04cd6c 20:52:07 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2023: Intel' 20:52:07 ---> Running in ef424d265fe8 20:52:07 Removing intermediate container ef424d265fe8 20:52:07 ---> a5aaa7640a30 20:52:07 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:52:07 ---> Running in 42a95402b4db 20:52:07 Removing intermediate container 42a95402b4db 20:52:07 ---> 9a0188c7c077 20:52:07 Step 16/25 : RUN apk add --update --no-cache dumb-init 20:52:07 ---> Running in 20fe15cc461e 20:52:07 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 20:52:07 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 20:52:07 (1/1) Installing dumb-init (1.2.5-r2) 20:52:07 Executing busybox-1.36.1-r2.trigger 20:52:07 OK: 8 MiB in 16 packages 20:52:07 Removing intermediate container 20fe15cc461e 20:52:07 ---> e9c7e241f63f 20:52:07 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:52:07 ---> 05a5fb20f97d 20:52:07 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:52:07 ---> 5d5fbbf3ba06 20:52:07 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:52:07 ---> bd7918246a5c 20:52:07 Step 20/25 : EXPOSE 59986 20:52:07 ---> Running in 39713dfe487c 20:52:07 Removing intermediate container 39713dfe487c 20:52:07 ---> d41e241874a5 20:52:07 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:52:07 ---> Running in d516ac10e26b 20:52:07 Removing intermediate container d516ac10e26b 20:52:07 ---> ebd398fe7726 20:52:07 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 20:52:07 ---> Running in fb083cc69776 20:52:07 Removing intermediate container fb083cc69776 20:52:07 ---> b6c74e024327 20:52:07 Step 23/25 : LABEL arch=arm64 20:52:07 ---> Running in cde23ed9472f 20:52:07 Removing intermediate container cde23ed9472f 20:52:07 ---> b662f0f6651c 20:52:07 Step 24/25 : LABEL git_sha=b6f2afc8615472008126876bd7a4b2d206b00462 20:52:07 ---> Running in 8ae4adf4fbf1 20:52:07 Removing intermediate container 8ae4adf4fbf1 20:52:07 ---> 5a4cb3430af5 20:52:07 Step 25/25 : LABEL version=0.0.0 20:52:07 ---> Running in eb9b2f759706 20:52:07 Removing intermediate container eb9b2f759706 20:52:07 ---> 0ed8124b98a8 20:52:07 [Warning] One or more build-args [ARCH] were not consumed 20:52:07 Successfully built 0ed8124b98a8 20:52:07 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 20:52:08 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:52:08 20:52:08 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:52:08 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:52:08 arm64: Pulling from edgex-lftools-log-publisher 20:52:08 8998bd30e6a1: Pulling fs layer 20:52:08 04944245beec: Pulling fs layer 20:52:08 699f458cf7ca: Pulling fs layer 20:52:08 765212b225bb: Pulling fs layer 20:52:08 f23df028b6ca: Pulling fs layer 20:52:08 d65c8cfc05b1: Pulling fs layer 20:52:08 2437ff75d9bd: Pulling fs layer 20:52:08 f23df028b6ca: Waiting 20:52:08 d65c8cfc05b1: Waiting 20:52:08 2437ff75d9bd: Waiting 20:52:08 765212b225bb: Waiting 20:52:08 04944245beec: Verifying Checksum 20:52:08 04944245beec: Download complete 20:52:08 765212b225bb: Verifying Checksum 20:52:08 765212b225bb: Download complete 20:52:08 f23df028b6ca: Verifying Checksum 20:52:08 f23df028b6ca: Download complete 20:52:08 d65c8cfc05b1: Verifying Checksum 20:52:08 d65c8cfc05b1: Download complete 20:52:08 699f458cf7ca: Verifying Checksum 20:52:08 699f458cf7ca: Download complete 20:52:09 8998bd30e6a1: Verifying Checksum 20:52:09 8998bd30e6a1: Download complete 20:52:11 2437ff75d9bd: Verifying Checksum 20:52:11 2437ff75d9bd: Download complete 20:52:13 8998bd30e6a1: Pull complete 20:52:13 04944245beec: Pull complete 20:52:15 699f458cf7ca: Pull complete 20:52:15 765212b225bb: Pull complete 20:52:15 f23df028b6ca: Pull complete 20:52:15 d65c8cfc05b1: Pull complete 20:52:30 2437ff75d9bd: Pull complete 20:52:30 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 20:52:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:52:30 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:52:31 prd-ubuntu20.04-docker-arm64-4c-16g-8069 does not seem to be running inside a container 20:52:31 $ 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 20:52:33 $ docker top 4a57e0a08f201cf22316cb2da5cc696873cdd4879ccb9ec964bab5ec5ec8da07 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:52:34 ---> job-cost.sh 20:52:34 lf-activate-venv: SKIPPING 20:52:34 INFO: No Stack... 20:52:34 INFO: Retrieving Pricing Info for: v3-standard-4 20:52:35 INFO: Archiving Costs [Pipeline] sh 20:52:36 + cat /w/workspace/device-rest-go/1/archives/cost.csv 20:52:36 + cut -d, -f6 [Pipeline] lock 20:52:36 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-347-1-stack-cost] 20:52:36 Resource [jenkins-edgexfoundry-device-rest-go-PR-347-1-stack-cost] did not exist. Created. 20:52:36 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-347-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:52:36 /w/workspace/device-rest-go/1@tmp/durable-c6ef29ad/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 20:52:37 + echo total: 0.10999999940395355 [Pipeline] stash 20:52:37 Warning: overwriting stash ‘stack-cost’ 20:52:37 Stashed 1 file(s) [Pipeline] } 20:52:37 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-347-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:52:37 $ docker stop --time=1 4a57e0a08f201cf22316cb2da5cc696873cdd4879ccb9ec964bab5ec5ec8da07 20:52:38 $ docker rm -f --volumes 4a57e0a08f201cf22316cb2da5cc696873cdd4879ccb9ec964bab5ec5ec8da07 [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 20:52:39 provisioning config files... 20:52:39 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-347@tmp/config12789066287779055239tmp [Pipeline] { [Pipeline] sh 20:52:40 + set +x 20:52:40 + bash -s -- 20:52:40 + curl -s https://codecov.io/bash 20:52:40 20:52:40 _____ _ 20:52:40 / ____| | | 20:52:40 | | ___ __| | ___ ___ _____ __ 20:52:40 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 20:52:40 | |___| (_) | (_| | __/ (_| (_) \ V / 20:52:40 \_____\___/ \__,_|\___|\___\___/ \_/ 20:52:40 Bash-1.0.6 20:52:40 20:52:40 20:52:40 ==> git version 2.25.1 found 20:52:40 ==> 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 20:52:40 Release-Date: 2020-01-08 20:52:40 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 20:52:40 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 20:52:40 ==> Jenkins CI detected. 20:52:40 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-347 20:52:40 project root: . 20:52:40 --> token set from env 20:52:40 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 20:52:40 ==> Running gcov in . (disable via -X gcov) 20:52:40 ==> Python coveragepy not found 20:52:40 ==> Searching for coverage reports in: 20:52:40 + . 20:52:40 -> Found 1 reports 20:52:40 ==> Detecting git/mercurial file structure 20:52:40 ==> Reading reports 20:52:40 + ./coverage.out bytes=14499 20:52:40 ==> Appending adjustments 20:52:40 https://docs.codecov.io/docs/fixing-reports 20:52:40 + Found adjustments 20:52:40 ==> Gzipping contents 20:52:40 4.0K /tmp/codecov.tIJ523.gz 20:52:40 ==> Uploading reports 20:52:40 url: https://codecov.io 20:52:40 query: branch=PR-347&commit=b6f2afc8615472008126876bd7a4b2d206b00462&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-347%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=347&job=&cmd_args= 20:52:40 -> Pinging Codecov 20:52:40 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-347&commit=b6f2afc8615472008126876bd7a4b2d206b00462&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-347%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=347&job=&cmd_args= 20:52:40 -> Uploading to 20:52:40 https://storage.googleapis.com/codecov/v4/raw/2023-09-27/4E5D53B4F1F92C436F7061BF334D961C/b6f2afc8615472008126876bd7a4b2d206b00462/7a0e8b6b-2348-4a12-a90a-ab981de799b6.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230927%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230927T205240Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=63955e53d55373ca3315b2e5a89622ab5d36e8f1915d14c2ce8408e0dcd573ae 20:52:40 % Total % Received % Xferd Average Speed Time Time Time Current 20:52:40 Dload Upload Total Spent Left Speed 20:52:40 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2493 0 0 100 2493 0 9233 --:--:-- --:--:-- --:--:-- 9233 20:52:40 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/b6f2afc8615472008126876bd7a4b2d206b00462 [Pipeline] } 20:52:40 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 20:52:42 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-347/archives ] 20:52:42 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-347/archives 20:52:42 total 16 20:52:42 drwxr-xr-x 3 root root 4096 Sep 27 20:45 . 20:52:42 drwxrwxr-x 10 jenkins jenkins 4096 Sep 27 20:46 .. 20:52:42 drwxr-xr-x 2 root root 4096 Sep 27 20:45 cost 20:52:42 -rw-r--r-- 1 root root 86 Sep 27 20:45 cost.csv 20:52:42 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-347/archives 20:52:42 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-347/archives 20:52:42 total 16 20:52:42 drwxr-xr-x 3 jenkins jenkins 4096 Sep 27 20:45 . 20:52:42 drwxrwxr-x 10 jenkins jenkins 4096 Sep 27 20:46 .. 20:52:42 drwxr-xr-x 2 jenkins jenkins 4096 Sep 27 20:45 cost 20:52:42 -rw-r--r-- 1 jenkins jenkins 86 Sep 27 20:45 cost.csv [Pipeline] libraryResource [Pipeline] sh 20:52:43 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:52:43 ---> package-listing.sh 20:52:43 ++ facter osfamily 20:52:43 ++ tr '[:upper:]' '[:lower:]' 20:52:44 + OS_FAMILY=debian 20:52:44 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-347 20:52:44 + START_PACKAGES=/tmp/packages_start.txt 20:52:44 + END_PACKAGES=/tmp/packages_end.txt 20:52:44 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:52:44 + PACKAGES=/tmp/packages_start.txt 20:52:44 + '[' /w/workspace/gexfoundry_device-rest-go_PR-347 ']' 20:52:44 + PACKAGES=/tmp/packages_end.txt 20:52:44 + case "${OS_FAMILY}" in 20:52:44 + dpkg -l 20:52:44 + grep '^ii' 20:52:44 + '[' -f /tmp/packages_start.txt ']' 20:52:44 + '[' -f /tmp/packages_end.txt ']' 20:52:44 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:52:44 + '[' /w/workspace/gexfoundry_device-rest-go_PR-347 ']' 20:52:44 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-347/archives/ 20:52:44 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-347/archives/ [Pipeline] echo 20:52:44 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-347/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 20:52:44 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:52:45 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:52:45 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:52:45 prd-ubuntu20.04-docker-8c-8g-8068 does not seem to be running inside a container 20:52:45 $ 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-347/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-347 -v /w/workspace/gexfoundry_device-rest-go_PR-347:/w/workspace/gexfoundry_device-rest-go_PR-347:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-347@tmp:/w/workspace/gexfoundry_device-rest-go_PR-347@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 20:52:46 $ docker top 1efe65be5715e8df2b7b5b162d71dc4f6717f57b5b9a04718470f1c0bad82056 -eo pid,comm [Pipeline] { [Pipeline] sh 20:52:46 + touch /tmp/pre-build-complete [Pipeline] sh 20:52:46 + mkdir -p /var/log/sysstat [Pipeline] sh 20:52:47 + ls /var/log/sa-host 20:52:47 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:52:47 provisioning config files... 20:52:47 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-347@tmp/config9180754001527596994tmp [Pipeline] { [Pipeline] echo 20:52:47 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:52:47 ---> create-netrc.sh [Pipeline] } 20:52:47 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 20:52:48 ---> python-tools-install.sh [Pipeline] echo 20:52:48 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 20:52:48 ---> sudo-logs.sh 20:52:48 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 20:52:48 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 20:52:49 ---> job-cost.sh 20:52:49 lf-activate-venv: SKIPPING 20:52:49 DEBUG: total: 0.2199999988079071 20:52:49 INFO: Retrieving Stack Cost... 20:52:49 INFO: Retrieving Pricing Info for: v3-standard-8 20:52:49 INFO: Archiving Costs [Pipeline] echo 20:52:49 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:52:50 ---> logs-deploy.sh 20:52:50 lf-activate-venv: SKIPPING 20:52:50 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-347/1 20:52:50 INFO: archiving workspace using pattern(s): 20:52:51 Archives upload complete. 20:52:51 INFO: archiving logs to Nexus