Pull request #299 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of MonicaisHer for edgexfoundry/device-rest-go Obtained Jenkinsfile from 34d263e190d02da8071ad4dd96196eccae48709b+f5cefbfc3079018690f325d1bed071e9846b5efb (5ae7d8ec0b4d0d2e1cfa262465e400739e6fd1df) 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-ssh10626075997873450588.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 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-ssh17274863835749107435.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 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 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-299/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-299/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh3721391891327233108.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-299/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh42026669420585213.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 # timeout=10 Commit message: "fix: bug with isLTS relying on env.GIT_BRANCH inside cd-management repo (#429)" > 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-ssh12569966442939953543.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-299/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-299/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh11294350875921430818.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 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.20 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task All nodes of label ‘ubuntu20.04-docker-8c-8g’ are offline Running on prd-ubuntu20.04-docker-8c-8g-9534 in /w/workspace/gexfoundry_device-rest-go_PR-299 [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-299 # 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 f5cefbfc3079018690f325d1bed071e9846b5efb into PR head commit 34d263e190d02da8071ad4dd96196eccae48709b Merge succeeded, producing 34d263e190d02da8071ad4dd96196eccae48709b Checking out Revision 34d263e190d02da8071ad4dd96196eccae48709b (PR-299) > 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/299/head:refs/remotes/origin/PR-299 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 34d263e190d02da8071ad4dd96196eccae48709b # 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 f5cefbfc3079018690f325d1bed071e9846b5efb # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 34d263e190d02da8071ad4dd96196eccae48709b # timeout=10 Commit message: "build(snap): Upgrade snap base to core22, remove deprecated plug" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 13:12:58 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 13:12:58 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 13:12:58 ========================================================= 13:12:58 EdgeX Global Pipelines Version Info 13:12:58 ========================================================= [Pipeline] libraryResource [Pipeline] sh 13:12:59 ------------------- 13:12:59 stable info: 13:12:59 ------------------- 13:12:59 Commited By: Bill Mahoney bill.mahoney@intel.com 13:12:59 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 13:12:59 Message: update stable to v1.0.248 13:12:59 ------------------- 13:12:59 experimental info: 13:12:59 ------------------- 13:12:59 Commited By: **** collab-it+edgex@linuxfoundation.org 13:12:59 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 13:12:59 Message: update experimental to v1.0.248 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 13:13:00 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-299 [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-299 [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-299 [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 34d263e190d02da8071ad4dd96196eccae48709b [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 34d263e [Pipeline] echo 13:13:01 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 13:13:01 provisioning config files... 13:13:01 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-299@tmp/config2473090915269145657tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 13:13:02 ---> docker-login.sh 13:13:02 nexus3.edgexfoundry.org:10001 13:13:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:13:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:13:02 Configure a credential helper to remove this warning. See 13:13:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:13:02 13:13:02 Login Succeeded 13:13:02 nexus3.edgexfoundry.org:10002 13:13:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:13:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:13:02 Configure a credential helper to remove this warning. See 13:13:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:13:02 13:13:02 Login Succeeded 13:13:02 nexus3.edgexfoundry.org:10003 13:13:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:13:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:13:02 Configure a credential helper to remove this warning. See 13:13:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:13:02 13:13:02 Login Succeeded 13:13:02 nexus3.edgexfoundry.org:10004 13:13:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:13:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:13:02 Configure a credential helper to remove this warning. See 13:13:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:13:02 13:13:02 Login Succeeded 13:13:02 docker.io 13:13:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:13:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:13:02 Configure a credential helper to remove this warning. See 13:13:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:13:02 13:13:02 Login Succeeded 13:13:02 ---> docker-login.sh ends [Pipeline] } 13:13:02 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 13:13:03 + git rev-list -1 --merges 34d263e190d02da8071ad4dd96196eccae48709b~1..34d263e190d02da8071ad4dd96196eccae48709b [Pipeline] echo 13:13:03 -----------> git rev-list -1 --merges 34d263e190d02da8071ad4dd96196eccae48709b~1..34d263e190d02da8071ad4dd96196eccae48709b 34d263e190d02da8071ad4dd96196eccae48709b [false] [Pipeline] sh 13:13:03 + git log --format=format:%s -1 34d263e190d02da8071ad4dd96196eccae48709b [Pipeline] echo 13:13:03 ========================================================= 13:13:03 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 13:13:03 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 13:13:04 + git log --format=format:%s -1 34d263e190d02da8071ad4dd96196eccae48709b [Pipeline] echo 13:13:04 [semverPrep] GIT_COMMIT: 34d263e190d02da8071ad4dd96196eccae48709b, Commit Message: build(snap): Upgrade snap base to core22, remove deprecated plug [Pipeline] echo 13:13:04 [semverPrep] This is not a build commit. [Pipeline] sh 13:13:04 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 13:13:04 + grep -v github /etc/ssh/ssh_known_hosts 13:13:04 + [ -e /tmp/ssh_known_hosts ] 13:13:04 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 13:13:04 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 13:13:04 + sudo tee -a /etc/ssh/ssh_known_hosts 13:13:04 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:13:05 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 13:13:05 13:13:05 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:13:05 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 13:13:05 0.1.4: Pulling from edgex-devops/py-git-semver 13:13:05 b85a868b505f: Pulling fs layer 13:13:05 e2be974225ed: Pulling fs layer 13:13:05 339a4e72a1f5: Pulling fs layer 13:13:05 988bab9f4d93: Pulling fs layer 13:13:05 1469e6f7b9e6: Pulling fs layer 13:13:05 eaf3925da568: Pulling fs layer 13:13:05 bab4dde63d76: Pulling fs layer 13:13:05 bde34c3a00c8: Pulling fs layer 13:13:05 b352a97aabf1: Pulling fs layer 13:13:05 4872d77fe225: Pulling fs layer 13:13:05 5851b861e8e6: Pulling fs layer 13:13:05 bab4dde63d76: Waiting 13:13:05 bde34c3a00c8: Waiting 13:13:05 b352a97aabf1: Waiting 13:13:05 988bab9f4d93: Waiting 13:13:05 4872d77fe225: Waiting 13:13:05 1469e6f7b9e6: Waiting 13:13:05 eaf3925da568: Waiting 13:13:05 5851b861e8e6: Waiting 13:13:05 e2be974225ed: Download complete 13:13:05 988bab9f4d93: Download complete 13:13:05 1469e6f7b9e6: Verifying Checksum 13:13:05 1469e6f7b9e6: Download complete 13:13:05 339a4e72a1f5: Verifying Checksum 13:13:05 339a4e72a1f5: Download complete 13:13:05 eaf3925da568: Verifying Checksum 13:13:05 eaf3925da568: Download complete 13:13:05 bde34c3a00c8: Verifying Checksum 13:13:05 bde34c3a00c8: Download complete 13:13:05 b352a97aabf1: Download complete 13:13:05 4872d77fe225: Download complete 13:13:05 5851b861e8e6: Verifying Checksum 13:13:05 5851b861e8e6: Download complete 13:13:05 b85a868b505f: Verifying Checksum 13:13:05 b85a868b505f: Download complete 13:13:06 bab4dde63d76: Verifying Checksum 13:13:06 bab4dde63d76: Download complete 13:13:07 b85a868b505f: Pull complete 13:13:07 e2be974225ed: Pull complete 13:13:07 339a4e72a1f5: Pull complete 13:13:07 988bab9f4d93: Pull complete 13:13:07 1469e6f7b9e6: Pull complete 13:13:07 eaf3925da568: Pull complete 13:13:09 bab4dde63d76: Pull complete 13:13:09 bde34c3a00c8: Pull complete 13:13:09 b352a97aabf1: Pull complete 13:13:09 4872d77fe225: Pull complete 13:13:09 5851b861e8e6: Pull complete 13:13:09 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 13:13:09 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 13:13:09 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 13:13:10 prd-ubuntu20.04-docker-8c-8g-9534 does not seem to be running inside a container 13:13:10 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-299 -v /w/workspace/gexfoundry_device-rest-go_PR-299:/w/workspace/gexfoundry_device-rest-go_PR-299:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-299@tmp:/w/workspace/gexfoundry_device-rest-go_PR-299@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-devops/py-git-semver:0.1.4 cat 13:13:13 $ docker top ad83a667f7a3eea91c338d18f9badafc7cf414695792d24313e06f15e29b1a89 -eo pid,comm 13:13:13 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). 13:13:13 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 13:13:13 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 13:13:13 [ssh-agent] Looking for ssh-agent implementation... 13:13:13 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 13:13:13 $ docker exec ad83a667f7a3eea91c338d18f9badafc7cf414695792d24313e06f15e29b1a89 ssh-agent 13:13:13 SSH_AUTH_SOCK=/tmp/ssh-dPM4QQuR10VG/agent.33 13:13:13 SSH_AGENT_PID=39 13:13:13 Running ssh-add (command line suppressed) 13:13:13 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-299@tmp/private_key_6984533057965788875.key (/w/workspace/gexfoundry_device-rest-go_PR-299@tmp/private_key_6984533057965788875.key) 13:13:13 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 13:13:14 + git tag --points-at HEAD [Pipeline] } 13:13:14 $ docker exec --env ******** --env ******** ad83a667f7a3eea91c338d18f9badafc7cf414695792d24313e06f15e29b1a89 ssh-agent -k 13:13:14 unset SSH_AUTH_SOCK; 13:13:14 unset SSH_AGENT_PID; 13:13:14 echo Agent pid 39 killed; 13:13:14 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 13:13:14 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 13:13:14 [ssh-agent] Looking for ssh-agent implementation... 13:13:14 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 13:13:14 $ docker exec ad83a667f7a3eea91c338d18f9badafc7cf414695792d24313e06f15e29b1a89 ssh-agent 13:13:14 SSH_AUTH_SOCK=/tmp/ssh-FJaigKLsEHgs/agent.71 13:13:14 SSH_AGENT_PID=77 13:13:14 Running ssh-add (command line suppressed) 13:13:14 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-299@tmp/private_key_17654696239161268133.key (/w/workspace/gexfoundry_device-rest-go_PR-299@tmp/private_key_17654696239161268133.key) 13:13:14 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 13:13:15 + git semver init 13:13:15 2023-04-24 13:13:15,377 [run_init] DEBUG init version:0.0.0 force:False 13:13:15 2023-04-24 13:13:15,377 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-299/.semver 13:13:15 2023-04-24 13:13:15,378 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-299/.semver 13:13:15 2023-04-24 13:13:15,378 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-299/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-299, universal_newlines=False, shell=None, istream=None) 13:13:16 2023-04-24 13:13:16,532 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-299/.git/info/exclude 13:13:16 2023-04-24 13:13:16,533 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-299/.semver/PR-299 with force:False 13:13:16 2023-04-24 13:13:16,533 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-299/.semver/PR-299 13:13:16 2023-04-24 13:13:16,537 [execute] INFO git cat-file --batch-check 13:13:16 2023-04-24 13:13:16,537 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-299/.semver, universal_newlines=False, shell=None, istream=) 13:13:16 2023-04-24 13:13:16,545 [execute] INFO git cat-file --batch 13:13:16 2023-04-24 13:13:16,545 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-299/.semver, universal_newlines=False, shell=None, istream=) 13:13:16 2023-04-24 13:13:16,550 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-299/.semver/PR-299 13:13:16 0.0.0 [Pipeline] } 13:13:16 $ docker exec --env ******** --env ******** ad83a667f7a3eea91c338d18f9badafc7cf414695792d24313e06f15e29b1a89 ssh-agent -k 13:13:16 unset SSH_AUTH_SOCK; 13:13:16 unset SSH_AGENT_PID; 13:13:16 echo Agent pid 77 killed; 13:13:17 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 13:13:17 + git semver [Pipeline] } 13:13:17 $ docker stop --time=1 ad83a667f7a3eea91c338d18f9badafc7cf414695792d24313e06f15e29b1a89 13:13:18 $ docker rm -f --volumes ad83a667f7a3eea91c338d18f9badafc7cf414695792d24313e06f15e29b1a89 [Pipeline] // withDockerContainer [Pipeline] sh 13:13:19 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 13:13:19 Stashed 1 file(s) [Pipeline] echo 13:13:19 [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 13:13:20 provisioning config files... 13:13:20 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-299@tmp/config10691708609486955495tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 13:13:20 ---> docker-login.sh 13:13:20 nexus3.edgexfoundry.org:10001 13:13:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:13:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:13:20 Configure a credential helper to remove this warning. See 13:13:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:13:20 13:13:20 Login Succeeded 13:13:20 nexus3.edgexfoundry.org:10002 13:13:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:13:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:13:20 Configure a credential helper to remove this warning. See 13:13:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:13:20 13:13:20 Login Succeeded 13:13:20 nexus3.edgexfoundry.org:10003 13:13:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:13:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:13:20 Configure a credential helper to remove this warning. See 13:13:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:13:20 13:13:20 Login Succeeded 13:13:20 nexus3.edgexfoundry.org:10004 13:13:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:13:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:13:20 Configure a credential helper to remove this warning. See 13:13:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:13:20 13:13:20 Login Succeeded 13:13:20 docker.io 13:13:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:13:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:13:21 Configure a credential helper to remove this warning. See 13:13:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:13:21 13:13:21 Login Succeeded 13:13:21 ---> docker-login.sh ends [Pipeline] } 13:13:21 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 13:13:21 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 13:13:21 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 13:13:21 ========================================================= 13:13:21 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 13:13:21 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:13:21 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine --build-arg MAKE=echo noop --target=builder . 13:13:21 Sending build context to Docker daemon 10.9MB 13:13:21 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 13:13:21 Step 2/12 : FROM ${BASE} AS builder 13:13:21 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 13:13:21 63b65145d645: Pulling fs layer 13:13:21 a2d21d5440eb: Pulling fs layer 13:13:21 935e6c44a52c: Pulling fs layer 13:13:21 94cc34f8dd06: Pulling fs layer 13:13:21 30dea6a524f1: Pulling fs layer 13:13:21 a2aff8979fd8: Pulling fs layer 13:13:21 6808be2612f2: Pulling fs layer 13:13:21 f25807f1079a: Pulling fs layer 13:13:21 94cc34f8dd06: Waiting 13:13:21 30dea6a524f1: Waiting 13:13:21 a2aff8979fd8: Waiting 13:13:21 6808be2612f2: Waiting 13:13:21 f25807f1079a: Waiting 13:13:22 a2d21d5440eb: Download complete 13:13:22 94cc34f8dd06: Verifying Checksum 13:13:22 94cc34f8dd06: Download complete 13:13:22 30dea6a524f1: Verifying Checksum 13:13:22 30dea6a524f1: Download complete 13:13:22 63b65145d645: Verifying Checksum 13:13:22 63b65145d645: Download complete 13:13:22 a2aff8979fd8: Verifying Checksum 13:13:22 a2aff8979fd8: Download complete 13:13:22 63b65145d645: Pull complete 13:13:22 a2d21d5440eb: Pull complete 13:13:22 f25807f1079a: Verifying Checksum 13:13:22 f25807f1079a: Download complete 13:13:22 935e6c44a52c: Verifying Checksum 13:13:22 935e6c44a52c: Download complete 13:13:22 6808be2612f2: Verifying Checksum 13:13:22 6808be2612f2: Download complete 13:13:26 935e6c44a52c: Pull complete 13:13:26 94cc34f8dd06: Pull complete 13:13:26 30dea6a524f1: Pull complete 13:13:26 a2aff8979fd8: Pull complete 13:13:28 6808be2612f2: Pull complete 13:13:28 f25807f1079a: Pull complete 13:13:28 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 13:13:28 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 13:13:28 ---> 3b553350e43f 13:13:28 Step 3/12 : ARG ADD_BUILD_TAGS="" 13:13:34 ---> Running in 59bfe8856e34 13:13:34 Removing intermediate container 59bfe8856e34 13:13:34 ---> 9a1bb0a68d4a 13:13:34 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 13:13:34 ---> Running in d912a74ae9f0 13:13:34 Removing intermediate container d912a74ae9f0 13:13:34 ---> f8b69d394155 13:13:34 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 13:13:34 ---> Running in 0db6f281e578 13:13:34 Removing intermediate container 0db6f281e578 13:13:34 ---> 4c43980892cd 13:13:34 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 13:13:34 ---> Running in 26764dad2632 13:13:34 Removing intermediate container 26764dad2632 13:13:34 ---> e958b1bf346f 13:13:34 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 13:13:34 ---> Running in 29cb53bea7c1 13:13:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 13:13:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 13:13:34 (1/4) Installing openssh-keygen (9.1_p1-r2) 13:13:34 (2/4) Installing libedit (20221030.3.1-r0) 13:13:34 (3/4) Installing openssh-client-common (9.1_p1-r2) 13:13:34 (4/4) Installing openssh-client-default (9.1_p1-r2) 13:13:34 Executing busybox-1.35.0-r29.trigger 13:13:34 OK: 269 MiB in 57 packages 13:13:35 Still waiting to schedule task 13:13:35 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 13:13:35 Removing intermediate container 29cb53bea7c1 13:13:35 ---> 8b313f5acfe6 13:13:35 Step 8/12 : WORKDIR /device-rest-go 13:13:35 ---> Running in 6bc54dc3392a 13:13:35 Removing intermediate container 6bc54dc3392a 13:13:35 ---> 8494aee40e03 13:13:35 Step 9/12 : COPY go.mod vendor* ./ 13:13:35 ---> 5a33a3445938 13:13:35 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 13:13:35 ---> Running in 6b96abbe343f 13:14:31 Removing intermediate container 6b96abbe343f 13:14:31 ---> 9fd1b6b65947 13:14:31 Step 11/12 : COPY . . 13:14:31 ---> e74eb83d9160 13:14:31 Step 12/12 : RUN $MAKE 13:14:31 ---> Running in 43a206b82d71 13:14:31 noop 13:14:31 Removing intermediate container 43a206b82d71 13:14:31 ---> d49d4d676790 13:14:31 Successfully built d49d4d676790 13:14:31 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:14:32 + docker inspect -f . ci-base-image-x86_64 13:14:32 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 13:14:32 prd-ubuntu20.04-docker-8c-8g-9534 does not seem to be running inside a container 13:14:32 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-299 -v /w/workspace/gexfoundry_device-rest-go_PR-299:/w/workspace/gexfoundry_device-rest-go_PR-299:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-299@tmp:/w/workspace/gexfoundry_device-rest-go_PR-299@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 13:14:33 $ docker top 80d8f6bac2f6c25e82f9560bd39f18e920d22f0cce110411e9ca0a1c789fa6e4 -eo pid,comm [Pipeline] { [Pipeline] sh 13:14:33 + go version 13:14:33 go version go1.20.2 linux/amd64 [Pipeline] } 13:14:33 $ docker stop --time=1 80d8f6bac2f6c25e82f9560bd39f18e920d22f0cce110411e9ca0a1c789fa6e4 13:14:35 $ docker rm -f --volumes 80d8f6bac2f6c25e82f9560bd39f18e920d22f0cce110411e9ca0a1c789fa6e4 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:14:35 + docker inspect -f . ci-base-image-x86_64 13:14:35 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 13:14:36 prd-ubuntu20.04-docker-8c-8g-9534 does not seem to be running inside a container 13:14:36 $ 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-299 -v /w/workspace/gexfoundry_device-rest-go_PR-299:/w/workspace/gexfoundry_device-rest-go_PR-299:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-299@tmp:/w/workspace/gexfoundry_device-rest-go_PR-299@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 13:14:36 $ docker top 049cf2916f333129b4bbc9edd8847b177daa64b72325d570fce9937d44d2aaa0 -eo pid,comm [Pipeline] { [Pipeline] sh 13:14:36 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-299 [Pipeline] fileExists [Pipeline] sh 13:14:37 + make test 13:14:37 go test ./... -coverprofile=coverage.out ./... 13:14:42 ? github.com/edgexfoundry/device-rest-go [no test files] 13:14:50 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 13:14:50 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 32.2% of statements 13:14:57 go vet ./... 13:14:59 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 13:14:59 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 13:14:59 ./bin/test-attribution-txt.sh [Pipeline] echo 13:14:59 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 13:14:59 $ docker stop --time=1 049cf2916f333129b4bbc9edd8847b177daa64b72325d570fce9937d44d2aaa0 13:15:03 $ docker rm -f --volumes 049cf2916f333129b4bbc9edd8847b177daa64b72325d570fce9937d44d2aaa0 [Pipeline] // withDockerContainer [Pipeline] sh 13:15:03 + sudo chown -R jenkins:jenkins . [Pipeline] stash 13:15:03 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 13:15:04 + sudo chown -R jenkins:jenkins . [Pipeline] sh 13:15:04 + ls -al . 13:15:04 total 184 13:15:04 drwxrwxr-x 9 jenkins jenkins 4096 Apr 24 13:14 . 13:15:04 drwxrwxr-x 4 jenkins jenkins 4096 Apr 24 13:12 .. 13:15:04 -rw-rw-r-- 1 jenkins jenkins 151 Apr 24 13:12 .dockerignore 13:15:04 drwxrwxr-x 8 jenkins jenkins 4096 Apr 24 13:13 .git 13:15:04 drwxrwxr-x 3 jenkins jenkins 4096 Apr 24 13:12 .github 13:15:04 -rw-rw-r-- 1 jenkins jenkins 329 Apr 24 13:12 .gitignore 13:15:04 -rw-rw-r-- 1 jenkins jenkins 41 Apr 24 13:12 .golangci.yml 13:15:04 drwxr-xr-x 3 jenkins jenkins 4096 Apr 24 13:13 .semver 13:15:04 -rw-rw-r-- 1 jenkins jenkins 9331 Apr 24 13:12 Attribution.txt 13:15:04 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 24 13:12 CHANGELOG.md 13:15:04 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 24 13:12 Dockerfile 13:15:04 -rw-rw-r-- 1 jenkins jenkins 677 Apr 24 13:12 GOVERNANCE.md 13:15:04 -rw-rw-r-- 1 jenkins jenkins 680 Apr 24 13:12 Jenkinsfile 13:15:04 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 24 13:12 LICENSE 13:15:04 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 24 13:12 Makefile 13:15:04 -rw-rw-r-- 1 jenkins jenkins 620 Apr 24 13:12 OWNERS.md 13:15:04 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 24 13:12 README.md 13:15:04 -rw-rw-r-- 1 jenkins jenkins 5 Apr 24 13:13 VERSION 13:15:04 drwxrwxr-x 2 jenkins jenkins 4096 Apr 24 13:12 bin 13:15:04 drwxrwxr-x 3 jenkins jenkins 4096 Apr 24 13:12 cmd 13:15:04 -rw-r--r-- 1 jenkins jenkins 14663 Apr 24 13:14 coverage.out 13:15:04 drwxrwxr-x 2 jenkins jenkins 4096 Apr 24 13:12 driver 13:15:04 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 24 13:12 go.mod 13:15:04 -rw-rw-r-- 1 jenkins jenkins 31443 Apr 24 13:12 go.sum 13:15:04 drwxrwxr-x 4 jenkins jenkins 4096 Apr 24 13:12 snap 13:15:04 -rw-rw-r-- 1 jenkins jenkins 713 Apr 24 13:12 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:15:05 + 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=34d263e190d02da8071ad4dd96196eccae48709b --label arch=amd64 --label version=0.0.0 . 13:15:05 Sending build context to Docker daemon 10.92MB 13:15:05 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 13:15:05 Step 2/25 : FROM ${BASE} AS builder 13:15:05 ---> d49d4d676790 13:15:05 Step 3/25 : ARG ADD_BUILD_TAGS="" 13:15:05 ---> Running in 24eb0b3d875a 13:15:05 Removing intermediate container 24eb0b3d875a 13:15:05 ---> f64d7f57683c 13:15:05 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 13:15:05 ---> Running in bb6b8e51e4f0 13:15:05 Removing intermediate container bb6b8e51e4f0 13:15:05 ---> 7a04425446f9 13:15:05 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 13:15:05 ---> Running in 79fe6dcd3170 13:15:05 Removing intermediate container 79fe6dcd3170 13:15:05 ---> 25c7bfaf3c5c 13:15:05 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 13:15:05 ---> Running in f3aa8bb35a60 13:15:05 Removing intermediate container f3aa8bb35a60 13:15:05 ---> 179c69ef6115 13:15:05 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 13:15:05 ---> Running in 5a9eec04d2b2 13:15:05 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 13:15:06 Running on prd-ubuntu20.04-docker-arm64-4c-16g-9535 in /w/workspace/gexfoundry_device-rest-go_PR-299 [Pipeline] { 13:15:06 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 13:15:06 OK: 269 MiB in 57 packages [Pipeline] ws 13:15:06 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 13:15:06 The recommended git tool is: git 13:15:06 Removing intermediate container 5a9eec04d2b2 13:15:06 ---> 0a8ef29fabe0 13:15:06 Step 8/25 : WORKDIR /device-rest-go 13:15:06 ---> Running in 59f382009dbc 13:15:06 Removing intermediate container 59f382009dbc 13:15:06 ---> 8151877a5ad5 13:15:06 Step 9/25 : COPY go.mod vendor* ./ 13:15:06 ---> b19b0eb19d7d 13:15:06 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 13:15:06 ---> Running in 3863d9a82ec1 13:15:07 Removing intermediate container 3863d9a82ec1 13:15:07 ---> 96b7a9a15a18 13:15:07 Step 11/25 : COPY . . 13:15:07 ---> 6471bfd07ccd 13:15:07 Step 12/25 : RUN $MAKE 13:15:07 ---> Running in b7d54e032d1e 13:15:08 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 13:15:11 using credential edgex-jenkins-ssh 13:15:11 Cloning the remote Git repository 13:15:11 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 13:15:12 > git init /w/workspace/device-rest-go/1 # timeout=10 13:15:12 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 13:15:12 > git --version # timeout=10 13:15:12 > git --version # 'git version 2.25.1' 13:15:12 using GIT_SSH to set credentials SSH Credentials for GitHub 13:15:12 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 13:15:14 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 13:15:14 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 13:15:15 Merging remotes/origin/main commit f5cefbfc3079018690f325d1bed071e9846b5efb into PR head commit 34d263e190d02da8071ad4dd96196eccae48709b 13:15:15 Merge succeeded, producing 34d263e190d02da8071ad4dd96196eccae48709b 13:15:15 Checking out Revision 34d263e190d02da8071ad4dd96196eccae48709b (PR-299) 13:15:15 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 13:15:15 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 13:15:15 using GIT_SSH to set credentials SSH Credentials for GitHub 13:15:15 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/299/head:refs/remotes/origin/PR-299 +refs/heads/main:refs/remotes/origin/main # timeout=10 13:15:15 > git config core.sparsecheckout # timeout=10 13:15:15 > git checkout -f 34d263e190d02da8071ad4dd96196eccae48709b # timeout=10 13:15:15 > git remote # timeout=10 13:15:15 > git config --get remote.origin.url # timeout=10 13:15:15 using GIT_SSH to set credentials SSH Credentials for GitHub 13:15:15 > git merge f5cefbfc3079018690f325d1bed071e9846b5efb # timeout=10 13:15:15 > git rev-parse HEAD^{commit} # timeout=10 13:15:15 > git config core.sparsecheckout # timeout=10 13:15:15 > git checkout -f 34d263e190d02da8071ad4dd96196eccae48709b # timeout=10 13:15:19 Commit message: "build(snap): Upgrade snap base to core22, remove deprecated plug" 13:15:19 > git --version # timeout=10 13:15:19 > git --version # 'git version 2.25.1' 13:15:19 fatal: bad object 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 13:15:20 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 13:15:20 % Total % Received % Xferd Average Speed Time Time Time Current 13:15:20 Dload Upload Total Spent Left Speed 13:15:20 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 99k 0 --:--:-- --:--:-- --:--:-- 100k [Pipeline] sh 13:15:21 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 13:15:21 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 13:15:21 + sudo tee /etc/docker/daemon.new 13:15:21 { 13:15:21 "registry-mirrors": [ 13:15:21 "https://nexus3.edgexfoundry.org:10001" 13:15:21 ], 13:15:21 "bip": "10.250.0.254/24", 13:15:21 "hosts": [ 13:15:21 "tcp://0.0.0.0:5555", 13:15:21 "unix:///var/run/docker.sock" 13:15:21 ], 13:15:21 "mtu": 1458, 13:15:21 "selinux-enabled": true, 13:15:21 "seccomp-profile": "/etc/docker/seccomp.json" 13:15:21 } [Pipeline] sh 13:15:22 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 13:15:22 + sudo service docker restart 13:15:30 Removing intermediate container b7d54e032d1e 13:15:30 ---> ccb93d62afdd 13:15:30 Step 13/25 : FROM alpine:3.17 13:15:30 3.17: Pulling from library/alpine 13:15:30 f56be85fc22e: Pulling fs layer 13:15:30 f56be85fc22e: Verifying Checksum 13:15:30 f56be85fc22e: Download complete 13:15:30 f56be85fc22e: Pull complete 13:15:30 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 13:15:30 Status: Downloaded newer image for alpine:3.17 13:15:30 ---> 9ed4aefc74f6 13:15:30 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 13:15:30 ---> Running in aae6943356c0 13:15:30 Removing intermediate container aae6943356c0 13:15:30 ---> 307bf7029cfd 13:15:30 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 13:15:30 ---> Running in 07c4bd664da9 13:15:30 Removing intermediate container 07c4bd664da9 13:15:30 ---> 9bc7e681a5e4 13:15:30 Step 16/25 : RUN apk add --update --no-cache dumb-init 13:15:30 ---> Running in ddd3e68db991 13:15:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 13:15:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 13:15:30 (1/1) Installing dumb-init (1.2.5-r2) 13:15:30 Executing busybox-1.35.0-r29.trigger 13:15:30 OK: 7 MiB in 16 packages 13:15:30 Removing intermediate container ddd3e68db991 13:15:30 ---> c3e639848685 13:15:30 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 13:15:30 ---> caa05b5c5541 13:15:30 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 13:15:30 ---> 4cca84b3e356 13:15:30 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 13:15:30 ---> 6a7d0f834739 13:15:30 Step 20/25 : EXPOSE 59986 13:15:30 ---> Running in 418fae937937 13:15:30 Removing intermediate container 418fae937937 13:15:30 ---> 9f0a4eb21252 13:15:30 Step 21/25 : ENTRYPOINT ["/device-rest"] 13:15:30 ---> Running in 5ae33d091092 13:15:30 Removing intermediate container 5ae33d091092 13:15:30 ---> 739454207266 13:15:30 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 13:15:30 ---> Running in 83ff3420629a 13:15:30 Removing intermediate container 83ff3420629a 13:15:30 ---> 47eaa916d506 13:15:30 Step 23/25 : LABEL arch=amd64 13:15:30 ---> Running in 9caaf91d15b8 13:15:30 Removing intermediate container 9caaf91d15b8 13:15:30 ---> f48aad0dc94b 13:15:30 Step 24/25 : LABEL git_sha=34d263e190d02da8071ad4dd96196eccae48709b 13:15:30 ---> Running in 123cbf713ccd 13:15:30 Removing intermediate container 123cbf713ccd 13:15:30 ---> 4569fe72f5ec 13:15:30 Step 25/25 : LABEL version=0.0.0 13:15:30 ---> Running in bc73e26f8133 13:15:30 Removing intermediate container bc73e26f8133 13:15:30 ---> 5824f29b0689 13:15:30 [Warning] One or more build-args [ARCH] were not consumed 13:15:30 Successfully built 5824f29b0689 13:15:30 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 13:15:31 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 13:15:31 13:15:31 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:15:32 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 13:15:32 latest: Pulling from edgex-lftools-log-publisher 13:15:32 5eb5b503b376: Pulling fs layer 13:15:32 5c69ac0246d0: Pulling fs layer 13:15:32 ec43610c2a17: Pulling fs layer 13:15:32 3a2ae6a8a46f: Pulling fs layer 13:15:32 33b1e0a273af: Pulling fs layer 13:15:32 5d3b04190fa2: Pulling fs layer 13:15:32 2f39f015ded8: Pulling fs layer 13:15:32 33b1e0a273af: Waiting 13:15:32 5d3b04190fa2: Waiting 13:15:32 2f39f015ded8: Waiting 13:15:32 3a2ae6a8a46f: Waiting 13:15:32 5c69ac0246d0: Download complete 13:15:32 3a2ae6a8a46f: Download complete 13:15:32 33b1e0a273af: Verifying Checksum 13:15:32 33b1e0a273af: Download complete 13:15:32 ec43610c2a17: Verifying Checksum 13:15:32 ec43610c2a17: Download complete 13:15:32 5d3b04190fa2: Download complete 13:15:32 5eb5b503b376: Verifying Checksum 13:15:32 5eb5b503b376: Download complete 13:15:33 2f39f015ded8: Verifying Checksum 13:15:33 2f39f015ded8: Download complete 13:15:33 5eb5b503b376: Pull complete 13:15:33 5c69ac0246d0: Pull complete 13:15:34 ec43610c2a17: Pull complete 13:15:34 3a2ae6a8a46f: Pull complete 13:15:34 33b1e0a273af: Pull complete 13:15:34 5d3b04190fa2: Pull complete 13:15:38 2f39f015ded8: Pull complete 13:15:38 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 13:15:38 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 13:15:38 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 13:15:39 prd-ubuntu20.04-docker-8c-8g-9534 does not seem to be running inside a container 13:15:39 $ 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-299 -v /w/workspace/gexfoundry_device-rest-go_PR-299:/w/workspace/gexfoundry_device-rest-go_PR-299:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-299@tmp:/w/workspace/gexfoundry_device-rest-go_PR-299@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 13:15:43 $ docker top 36634c346bf33ac20775f8fbe8df66d41bc3c0eba25d7f5915c64f35669465cc -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [Pipeline] configFileProvider 13:15:43 provisioning config files... 13:15:43 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config17675391532246594107tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 13:15:43 ---> job-cost.sh 13:15:43 lf-activate-venv: SKIPPING 13:15:43 INFO: No Stack... 13:15:43 ---> docker-login.sh 13:15:43 nexus3.edgexfoundry.org:10001 13:15:44 INFO: Retrieving Pricing Info for: v3-standard-8 13:15:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:15:44 INFO: Archiving Costs [Pipeline] sh 13:15:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:15:44 Configure a credential helper to remove this warning. See 13:15:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:15:44 13:15:44 Login Succeeded 13:15:44 nexus3.edgexfoundry.org:10002 13:15:44 + cat /w/workspace/gexfoundry_device-rest-go_PR-299/archives/cost.csv 13:15:44 + cut -d, -f6 [Pipeline] lock 13:15:44 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-299-1-stack-cost] 13:15:44 Resource [jenkins-edgexfoundry-device-rest-go-PR-299-1-stack-cost] did not exist. Created. 13:15:44 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-299-1-stack-cost] [Pipeline] { [Pipeline] unstash 13:15:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. [Pipeline] sh 13:15:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:15:45 Configure a credential helper to remove this warning. See 13:15:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:15:45 13:15:45 Login Succeeded 13:15:45 nexus3.edgexfoundry.org:10003 13:15:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:15:45 + echo total: 0.2199999988079071 [Pipeline] stash 13:15:45 Stashed 1 file(s) [Pipeline] } 13:15:45 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-299-1-stack-cost] [Pipeline] // lock [Pipeline] } 13:15:45 $ docker stop --time=1 36634c346bf33ac20775f8fbe8df66d41bc3c0eba25d7f5915c64f35669465cc 13:15:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:15:45 Configure a credential helper to remove this warning. See 13:15:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:15:45 13:15:45 Login Succeeded 13:15:45 nexus3.edgexfoundry.org:10004 13:15:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:15:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:15:45 Configure a credential helper to remove this warning. See 13:15:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:15:45 13:15:45 Login Succeeded 13:15:45 docker.io 13:15:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 13:15:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 13:15:46 Configure a credential helper to remove this warning. See 13:15:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 13:15:46 13:15:46 Login Succeeded 13:15:46 ---> docker-login.sh ends 13:15:46 $ docker rm -f --volumes 36634c346bf33ac20775f8fbe8df66d41bc3c0eba25d7f5915c64f35669465cc [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] } 13:15:46 Deleting 1 temporary files [Pipeline] // script [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] echo 13:15:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 13:15:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 13:15:47 ========================================================= 13:15:47 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 13:15:47 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:15:47 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine --build-arg MAKE=echo noop --target=builder . 13:15:47 Sending build context to Docker daemon 138.8kB 13:15:47 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 13:15:47 Step 2/12 : FROM ${BASE} AS builder 13:15:48 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 13:15:48 af6eaf76a39c: Pulling fs layer 13:15:48 55522c791124: Pulling fs layer 13:15:48 ce5c4a1c91eb: Pulling fs layer 13:15:48 169dfbe0d373: Pulling fs layer 13:15:48 e1ff8fa3b103: Pulling fs layer 13:15:48 52ebb69f0ebf: Pulling fs layer 13:15:48 5abe8eddf0d5: Pulling fs layer 13:15:48 169dfbe0d373: Waiting 13:15:48 e1ff8fa3b103: Waiting 13:15:48 5abe8eddf0d5: Waiting 13:15:48 52ebb69f0ebf: Waiting 13:15:48 55522c791124: Verifying Checksum 13:15:48 55522c791124: Download complete 13:15:48 169dfbe0d373: Verifying Checksum 13:15:48 169dfbe0d373: Download complete 13:15:48 e1ff8fa3b103: Verifying Checksum 13:15:48 e1ff8fa3b103: Download complete 13:15:48 af6eaf76a39c: Verifying Checksum 13:15:48 af6eaf76a39c: Download complete 13:15:49 af6eaf76a39c: Pull complete 13:15:49 5abe8eddf0d5: Verifying Checksum 13:15:49 5abe8eddf0d5: Download complete 13:15:49 55522c791124: Pull complete 13:15:50 ce5c4a1c91eb: Verifying Checksum 13:15:50 ce5c4a1c91eb: Download complete 13:15:50 52ebb69f0ebf: Verifying Checksum 13:15:50 52ebb69f0ebf: Download complete 13:16:03 ce5c4a1c91eb: Pull complete 13:16:03 169dfbe0d373: Pull complete 13:16:03 e1ff8fa3b103: Pull complete 13:16:09 52ebb69f0ebf: Pull complete 13:16:11 5abe8eddf0d5: Pull complete 13:16:11 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 13:16:11 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 13:16:11 ---> 6cb57ee374ae 13:16:11 Step 3/12 : ARG ADD_BUILD_TAGS="" 13:16:13 ---> Running in 22a0880f631f 13:16:13 Removing intermediate container 22a0880f631f 13:16:13 ---> 475dd935f751 13:16:13 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 13:16:13 ---> Running in 8b4e337cff1c 13:16:14 Removing intermediate container 8b4e337cff1c 13:16:14 ---> 6baa192f0320 13:16:14 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 13:16:14 ---> Running in 949b592f3618 13:16:14 Removing intermediate container 949b592f3618 13:16:14 ---> 4b5de1594c7f 13:16:14 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 13:16:14 ---> Running in 048b5283b058 13:16:14 Removing intermediate container 048b5283b058 13:16:14 ---> 8fbac343f6bc 13:16:14 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 13:16:14 ---> Running in 4e2bbea8a62e 13:16:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 13:16:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 13:16:17 (1/4) Installing openssh-keygen (9.1_p1-r2) 13:16:17 (2/4) Installing libedit (20221030.3.1-r0) 13:16:17 (3/4) Installing openssh-client-common (9.1_p1-r2) 13:16:17 (4/4) Installing openssh-client-default (9.1_p1-r2) 13:16:17 Executing busybox-1.35.0-r29.trigger 13:16:17 OK: 268 MiB in 57 packages 13:16:18 Removing intermediate container 4e2bbea8a62e 13:16:18 ---> dc1f996bec67 13:16:18 Step 8/12 : WORKDIR /device-rest-go 13:16:18 ---> Running in 8887fafe210f 13:16:18 Removing intermediate container 8887fafe210f 13:16:18 ---> c8a099ce8f98 13:16:18 Step 9/12 : COPY go.mod vendor* ./ 13:16:19 ---> 9c4091ccbed6 13:16:19 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 13:16:19 ---> Running in 910e83136392 13:17:27 Removing intermediate container 910e83136392 13:17:27 ---> 9c2bfaf3a97f 13:17:27 Step 11/12 : COPY . . 13:17:27 ---> 6ad6505374f0 13:17:27 Step 12/12 : RUN $MAKE 13:17:27 ---> Running in 6e03231152a7 13:17:27 noop 13:17:27 Removing intermediate container 6e03231152a7 13:17:27 ---> 046bbbe4d766 13:17:27 Successfully built 046bbbe4d766 13:17:27 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:17:28 + docker inspect -f . ci-base-image-arm64 13:17:28 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 13:17:28 prd-ubuntu20.04-docker-arm64-4c-16g-9535 does not seem to be running inside a container 13:17:28 $ 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 ******** -e ******** -e ******** ci-base-image-arm64 cat 13:17:29 $ docker top 0cb21ef1098a2eeb02f354656fe1fe03501d4165d17df5af10baac283105bb47 -eo pid,comm [Pipeline] { [Pipeline] sh 13:17:30 + go version 13:17:30 go version go1.20.2 linux/arm64 [Pipeline] } 13:17:30 $ docker stop --time=1 0cb21ef1098a2eeb02f354656fe1fe03501d4165d17df5af10baac283105bb47 13:17:32 $ docker rm -f --volumes 0cb21ef1098a2eeb02f354656fe1fe03501d4165d17df5af10baac283105bb47 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:17:33 + docker inspect -f . ci-base-image-arm64 13:17:33 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 13:17:33 prd-ubuntu20.04-docker-arm64-4c-16g-9535 does not seem to be running inside a container 13:17:33 $ 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 ******** -e ******** -e ******** ci-base-image-arm64 cat 13:17:34 $ docker top 4358a8a0f8de6b98dd089b68cd5a443b53b37c24359df0bcb063413e987f23ba -eo pid,comm [Pipeline] { [Pipeline] sh 13:17:35 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 13:17:35 + make test 13:17:35 go test ./... -coverprofile=coverage.out ./... 13:18:08 ? github.com/edgexfoundry/device-rest-go [no test files] 13:20:14 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 13:20:14 ok github.com/edgexfoundry/device-rest-go/driver 0.064s coverage: 32.2% of statements 13:20:14 WARNING: Linting skipped (not on x86_64 or linter not installed) 13:20:14 go vet ./... 13:20:33 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 13:20:33 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 13:20:33 ./bin/test-attribution-txt.sh [Pipeline] echo 13:20:33 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 13:20:33 $ docker stop --time=1 4358a8a0f8de6b98dd089b68cd5a443b53b37c24359df0bcb063413e987f23ba 13:20:34 $ docker rm -f --volumes 4358a8a0f8de6b98dd089b68cd5a443b53b37c24359df0bcb063413e987f23ba [Pipeline] // withDockerContainer [Pipeline] sh 13:20:36 + sudo chown -R jenkins:jenkins . [Pipeline] stash 13:20:36 Warning: overwriting stash ‘coverage-report’ 13:20:36 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 13:20:37 + sudo chown -R jenkins:jenkins . [Pipeline] sh 13:20:37 + ls -al . 13:20:37 total 180 13:20:37 drwxrwxr-x 8 jenkins jenkins 4096 Apr 24 13:17 . 13:20:37 drwxrwxr-x 4 jenkins jenkins 4096 Apr 24 13:15 .. 13:20:37 -rw-rw-r-- 1 jenkins jenkins 151 Apr 24 13:15 .dockerignore 13:20:37 drwxrwxr-x 8 jenkins jenkins 4096 Apr 24 13:15 .git 13:20:37 drwxrwxr-x 3 jenkins jenkins 4096 Apr 24 13:15 .github 13:20:37 -rw-rw-r-- 1 jenkins jenkins 329 Apr 24 13:15 .gitignore 13:20:37 -rw-rw-r-- 1 jenkins jenkins 41 Apr 24 13:15 .golangci.yml 13:20:37 -rw-rw-r-- 1 jenkins jenkins 9331 Apr 24 13:15 Attribution.txt 13:20:37 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 24 13:15 CHANGELOG.md 13:20:37 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 24 13:15 Dockerfile 13:20:37 -rw-rw-r-- 1 jenkins jenkins 677 Apr 24 13:15 GOVERNANCE.md 13:20:37 -rw-rw-r-- 1 jenkins jenkins 680 Apr 24 13:15 Jenkinsfile 13:20:37 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 24 13:15 LICENSE 13:20:37 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 24 13:15 Makefile 13:20:37 -rw-rw-r-- 1 jenkins jenkins 620 Apr 24 13:15 OWNERS.md 13:20:37 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 24 13:15 README.md 13:20:37 -rw-rw-r-- 1 jenkins jenkins 5 Apr 24 13:13 VERSION 13:20:37 drwxrwxr-x 2 jenkins jenkins 4096 Apr 24 13:15 bin 13:20:37 drwxrwxr-x 3 jenkins jenkins 4096 Apr 24 13:15 cmd 13:20:37 -rw-r--r-- 1 jenkins jenkins 14663 Apr 24 13:20 coverage.out 13:20:37 drwxrwxr-x 2 jenkins jenkins 4096 Apr 24 13:15 driver 13:20:37 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 24 13:15 go.mod 13:20:37 -rw-rw-r-- 1 jenkins jenkins 31443 Apr 24 13:15 go.sum 13:20:37 drwxrwxr-x 4 jenkins jenkins 4096 Apr 24 13:15 snap 13:20:37 -rw-rw-r-- 1 jenkins jenkins 713 Apr 24 13:15 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:20:38 + 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=34d263e190d02da8071ad4dd96196eccae48709b --label arch=arm64 --label version=0.0.0 . 13:20:38 Sending build context to Docker daemon 154.1kB 13:20:38 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 13:20:38 Step 2/25 : FROM ${BASE} AS builder 13:20:38 ---> 046bbbe4d766 13:20:38 Step 3/25 : ARG ADD_BUILD_TAGS="" 13:20:38 ---> Running in 792b4372474e 13:20:38 Removing intermediate container 792b4372474e 13:20:38 ---> fa81f268c8c8 13:20:38 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 13:20:38 ---> Running in b563838fdfa1 13:20:38 Removing intermediate container b563838fdfa1 13:20:38 ---> 3b5f83f18732 13:20:38 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 13:20:39 ---> Running in 9e327ef23b14 13:20:39 Removing intermediate container 9e327ef23b14 13:20:39 ---> 86cb17247453 13:20:39 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 13:20:39 ---> Running in 86309c666517 13:20:39 Removing intermediate container 86309c666517 13:20:39 ---> df4d70157c33 13:20:39 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 13:20:39 ---> Running in 5835b56b2462 13:20:40 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 13:20:41 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 13:20:42 OK: 268 MiB in 57 packages 13:20:43 Removing intermediate container 5835b56b2462 13:20:43 ---> 8533eca1b0ba 13:20:43 Step 8/25 : WORKDIR /device-rest-go 13:20:43 ---> Running in 099858e75351 13:20:43 Removing intermediate container 099858e75351 13:20:43 ---> 6d0a3c66a2a9 13:20:43 Step 9/25 : COPY go.mod vendor* ./ 13:20:44 ---> a6f8d020568d 13:20:44 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 13:20:44 ---> Running in ac1919a498af 13:20:48 Removing intermediate container ac1919a498af 13:20:48 ---> f7bc8f26b439 13:20:48 Step 11/25 : COPY . . 13:20:48 ---> c1fe1e241ab2 13:20:48 Step 12/25 : RUN $MAKE 13:20:48 ---> Running in 19b8d7b9b456 13:20:49 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 13:22:56 Removing intermediate container 19b8d7b9b456 13:22:56 ---> 1db76dc74004 13:22:56 Step 13/25 : FROM alpine:3.17 13:22:56 3.17: Pulling from library/alpine 13:22:56 c41833b44d91: Pulling fs layer 13:22:56 c41833b44d91: Verifying Checksum 13:22:56 c41833b44d91: Download complete 13:22:56 c41833b44d91: Pull complete 13:22:56 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 13:22:56 Status: Downloaded newer image for alpine:3.17 13:22:56 ---> 51e60588ff2c 13:22:56 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 13:22:56 ---> Running in 8084d8a02f64 13:22:56 Removing intermediate container 8084d8a02f64 13:22:56 ---> 751860740d37 13:22:56 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 13:22:56 ---> Running in 2791b986023f 13:22:56 Removing intermediate container 2791b986023f 13:22:56 ---> 34bfbe6b4c07 13:22:56 Step 16/25 : RUN apk add --update --no-cache dumb-init 13:22:56 ---> Running in 81f33ff25c67 13:22:56 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 13:22:57 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 13:22:58 (1/1) Installing dumb-init (1.2.5-r2) 13:22:58 Executing busybox-1.35.0-r29.trigger 13:22:58 OK: 8 MiB in 16 packages 13:22:59 Removing intermediate container 81f33ff25c67 13:22:59 ---> 0f0def5ffe71 13:22:59 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 13:23:01 ---> dc3a67d4c3ef 13:23:01 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 13:23:01 ---> 89e068f606da 13:23:01 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 13:23:02 ---> f938914e83f4 13:23:02 Step 20/25 : EXPOSE 59986 13:23:02 ---> Running in 716501d660b1 13:23:02 Removing intermediate container 716501d660b1 13:23:02 ---> d6392878d75a 13:23:02 Step 21/25 : ENTRYPOINT ["/device-rest"] 13:23:02 ---> Running in d8f01664bdfe 13:23:02 Removing intermediate container d8f01664bdfe 13:23:02 ---> d62ca9efe485 13:23:02 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 13:23:02 ---> Running in d381dac171cb 13:23:03 Removing intermediate container d381dac171cb 13:23:03 ---> 29609a57bb2f 13:23:03 Step 23/25 : LABEL arch=arm64 13:23:03 ---> Running in 53ed5157f2ca 13:23:03 Removing intermediate container 53ed5157f2ca 13:23:03 ---> 499e5a0b8157 13:23:03 Step 24/25 : LABEL git_sha=34d263e190d02da8071ad4dd96196eccae48709b 13:23:03 ---> Running in a6b9caf1e0a3 13:23:03 Removing intermediate container a6b9caf1e0a3 13:23:03 ---> 84b797f24d78 13:23:03 Step 25/25 : LABEL version=0.0.0 13:23:03 ---> Running in 5157de8738e5 13:23:03 Removing intermediate container 5157de8738e5 13:23:03 ---> 8fa6549206ab 13:23:03 [Warning] One or more build-args [ARCH] were not consumed 13:23:03 Successfully built 8fa6549206ab 13:23:03 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 13:23:04 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 13:23:04 13:23:04 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:23:05 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 13:23:05 arm64: Pulling from edgex-lftools-log-publisher 13:23:05 8998bd30e6a1: Pulling fs layer 13:23:05 04944245beec: Pulling fs layer 13:23:05 699f458cf7ca: Pulling fs layer 13:23:05 765212b225bb: Pulling fs layer 13:23:05 f23df028b6ca: Pulling fs layer 13:23:05 d65c8cfc05b1: Pulling fs layer 13:23:05 2437ff75d9bd: Pulling fs layer 13:23:05 f23df028b6ca: Waiting 13:23:05 d65c8cfc05b1: Waiting 13:23:05 2437ff75d9bd: Waiting 13:23:05 765212b225bb: Waiting 13:23:05 04944245beec: Verifying Checksum 13:23:05 04944245beec: Download complete 13:23:05 765212b225bb: Verifying Checksum 13:23:05 765212b225bb: Download complete 13:23:05 f23df028b6ca: Verifying Checksum 13:23:05 f23df028b6ca: Download complete 13:23:05 d65c8cfc05b1: Verifying Checksum 13:23:05 d65c8cfc05b1: Download complete 13:23:05 699f458cf7ca: Verifying Checksum 13:23:05 699f458cf7ca: Download complete 13:23:06 8998bd30e6a1: Verifying Checksum 13:23:06 8998bd30e6a1: Download complete 13:23:07 2437ff75d9bd: Verifying Checksum 13:23:07 2437ff75d9bd: Download complete 13:23:09 8998bd30e6a1: Pull complete 13:23:09 04944245beec: Pull complete 13:23:10 699f458cf7ca: Pull complete 13:23:11 765212b225bb: Pull complete 13:23:13 f23df028b6ca: Pull complete 13:23:13 d65c8cfc05b1: Pull complete 13:23:28 2437ff75d9bd: Pull complete 13:23:28 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 13:23:28 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 13:23:28 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 13:23:29 prd-ubuntu20.04-docker-arm64-4c-16g-9535 does not seem to be running inside a container 13:23:29 $ 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 ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 13:23:32 $ docker top e6c20e4370e16dd9747e627b0f7781368391b9b4439d8774adde63b68914cc65 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 13:23:32 ---> job-cost.sh 13:23:32 lf-activate-venv: SKIPPING 13:23:32 INFO: No Stack... 13:23:33 INFO: Retrieving Pricing Info for: v3-standard-4 13:23:34 INFO: Archiving Costs [Pipeline] sh 13:23:34 + cat /w/workspace/device-rest-go/1/archives/cost.csv 13:23:34 + cut -d, -f6 [Pipeline] lock 13:23:34 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-299-1-stack-cost] 13:23:34 Resource [jenkins-edgexfoundry-device-rest-go-PR-299-1-stack-cost] did not exist. Created. 13:23:34 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-299-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 13:23:35 /w/workspace/device-rest-go/1@tmp/durable-6c3dd1b7/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 13:23:35 + echo total: 0.10999999940395355 [Pipeline] stash 13:23:36 Warning: overwriting stash ‘stack-cost’ 13:23:36 Stashed 1 file(s) [Pipeline] } 13:23:36 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-299-1-stack-cost] [Pipeline] // lock [Pipeline] } 13:23:36 $ docker stop --time=1 e6c20e4370e16dd9747e627b0f7781368391b9b4439d8774adde63b68914cc65 13:23:37 $ docker rm -f --volumes e6c20e4370e16dd9747e627b0f7781368391b9b4439d8774adde63b68914cc65 [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 13:23:38 provisioning config files... 13:23:38 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-299@tmp/config14627651028734902620tmp [Pipeline] { [Pipeline] sh 13:23:39 + set +x 13:23:39 + + curlbash -s -s https://codecov.io/bash -- 13:23:39 13:23:39 13:23:39 _____ _ 13:23:39 / ____| | | 13:23:39 | | ___ __| | ___ ___ _____ __ 13:23:39 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 13:23:39 | |___| (_) | (_| | __/ (_| (_) \ V / 13:23:39 \_____\___/ \__,_|\___|\___\___/ \_/ 13:23:39 Bash-1.0.6 13:23:39 13:23:39 13:23:39 ==> git version 2.25.1 found 13:23:39 ==> 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 13:23:39 Release-Date: 2020-01-08 13:23:39 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 13:23:39 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 13:23:39 ==> Jenkins CI detected. 13:23:39 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-299 13:23:39 project root: . 13:23:39 --> token set from env 13:23:39 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 13:23:39 ==> Running gcov in . (disable via -X gcov) 13:23:39 ==> Python coveragepy not found 13:23:39 ==> Searching for coverage reports in: 13:23:39 + . 13:23:39 -> Found 1 reports 13:23:39 ==> Detecting git/mercurial file structure 13:23:39 ==> Reading reports 13:23:39 + ./coverage.out bytes=14663 13:23:39 ==> Appending adjustments 13:23:39 https://docs.codecov.io/docs/fixing-reports 13:23:39 + Found adjustments 13:23:39 ==> Gzipping contents 13:23:39 4.0K /tmp/codecov.zRKMhR.gz 13:23:39 ==> Uploading reports 13:23:39 url: https://codecov.io 13:23:39 query: branch=PR-299&commit=34d263e190d02da8071ad4dd96196eccae48709b&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-299%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=299&job=&cmd_args= 13:23:39 -> Pinging Codecov 13:23:39 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-299&commit=34d263e190d02da8071ad4dd96196eccae48709b&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-299%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=299&job=&cmd_args= 13:23:39 -> Uploading to 13:23:39 https://storage.googleapis.com/codecov/v4/raw/2023-04-24/4E5D53B4F1F92C436F7061BF334D961C/34d263e190d02da8071ad4dd96196eccae48709b/83d37fd0-6caf-4453-9e08-a9093f66f3ba.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230424%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230424T132339Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=92e5ff51ffe6b49d4a3a2895ed6f9126aad2d59e1cfa1c0b4d742dc5cb88ca68 13:23:39 % Total % Received % Xferd Average Speed Time Time Time Current 13:23:39 Dload Upload Total Spent Left Speed 13:23:39 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 11895 --:--:-- --:--:-- --:--:-- 11895 13:23:39 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/34d263e190d02da8071ad4dd96196eccae48709b [Pipeline] } 13:23:39 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 13:23:41 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-299/archives ] 13:23:41 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-299/archives 13:23:41 total 16 13:23:41 drwxr-xr-x 3 root root 4096 Apr 24 13:15 . 13:23:41 drwxrwxr-x 10 jenkins jenkins 4096 Apr 24 13:15 .. 13:23:41 drwxr-xr-x 2 root root 4096 Apr 24 13:15 cost 13:23:41 -rw-r--r-- 1 root root 86 Apr 24 13:15 cost.csv 13:23:41 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-299/archives 13:23:41 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-299/archives 13:23:41 total 16 13:23:41 drwxr-xr-x 3 jenkins jenkins 4096 Apr 24 13:15 . 13:23:41 drwxrwxr-x 10 jenkins jenkins 4096 Apr 24 13:15 .. 13:23:41 drwxr-xr-x 2 jenkins jenkins 4096 Apr 24 13:15 cost 13:23:41 -rw-r--r-- 1 jenkins jenkins 86 Apr 24 13:15 cost.csv [Pipeline] libraryResource [Pipeline] sh 13:23:41 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 13:23:42 ---> package-listing.sh 13:23:42 ++ facter osfamily 13:23:42 ++ tr '[:upper:]' '[:lower:]' 13:23:42 + OS_FAMILY=debian 13:23:42 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-299 13:23:42 + START_PACKAGES=/tmp/packages_start.txt 13:23:42 + END_PACKAGES=/tmp/packages_end.txt 13:23:42 + DIFF_PACKAGES=/tmp/packages_diff.txt 13:23:42 + PACKAGES=/tmp/packages_start.txt 13:23:42 + '[' /w/workspace/gexfoundry_device-rest-go_PR-299 ']' 13:23:42 + PACKAGES=/tmp/packages_end.txt 13:23:42 + case "${OS_FAMILY}" in 13:23:42 + dpkg -l 13:23:42 + grep '^ii' 13:23:42 + '[' -f /tmp/packages_start.txt ']' 13:23:42 + '[' -f /tmp/packages_end.txt ']' 13:23:42 + diff /tmp/packages_start.txt /tmp/packages_end.txt 13:23:42 + '[' /w/workspace/gexfoundry_device-rest-go_PR-299 ']' 13:23:42 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-299/archives/ 13:23:42 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-299/archives/ [Pipeline] echo 13:23:42 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-299/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 13:23:43 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 13:23:43 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 13:23:43 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 13:23:43 prd-ubuntu20.04-docker-8c-8g-9534 does not seem to be running inside a container 13:23:43 $ 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-299/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-299 -v /w/workspace/gexfoundry_device-rest-go_PR-299:/w/workspace/gexfoundry_device-rest-go_PR-299:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-299@tmp:/w/workspace/gexfoundry_device-rest-go_PR-299@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 13:23:43 $ docker top 6db6ca2b1d5ef960264018a4b5bb0d89fd7366baeab45802d02e40874f106c8e -eo pid,comm [Pipeline] { [Pipeline] sh 13:23:44 + touch /tmp/pre-build-complete [Pipeline] sh 13:23:44 + mkdir -p /var/log/sysstat [Pipeline] sh 13:23:44 + ls /var/log/sa-host 13:23:44 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 13:23:45 provisioning config files... 13:23:45 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-299@tmp/config365499073910592088tmp [Pipeline] { [Pipeline] echo 13:23:45 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 13:23:45 ---> create-netrc.sh [Pipeline] } 13:23:45 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 13:23:45 ---> python-tools-install.sh [Pipeline] echo 13:23:45 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 13:23:46 ---> sudo-logs.sh 13:23:46 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 13:23:46 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 13:23:46 ---> job-cost.sh 13:23:46 lf-activate-venv: SKIPPING 13:23:46 DEBUG: total: 0.2199999988079071 13:23:46 INFO: Retrieving Stack Cost... 13:23:46 INFO: Retrieving Pricing Info for: v3-standard-8 13:23:47 INFO: Archiving Costs [Pipeline] echo 13:23:47 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 13:23:47 ---> logs-deploy.sh 13:23:47 lf-activate-venv: SKIPPING 13:23:47 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-299/1 13:23:47 INFO: archiving workspace using pattern(s): 13:23:48 Archives upload complete. 13:23:48 INFO: archiving logs to Nexus