Pull request #318 event Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from b9c48caf18051205e53a4f46e0f602ec610cbd73+55c123e92a81b52ef904480be8a3eb69bc416b29 (ccd037d50989a2f40e0df42e030b45797292accd) 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-ssh16921313220160900904.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh9858720513550253672.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-318/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82/.git # timeout=10 Fetching changes from the remote Git repository > 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 > 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-318/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh12404474172994923141.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 4fc256d9079ed2258907e613f84b1b8da264a4bd (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 4fc256d9079ed2258907e613f84b1b8da264a4bd # timeout=10 Commit message: "Merge pull request #430 from ernestojeda/release-lock" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 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-ssh8137510868415011331.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-318/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags 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-318/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh15848139499658329770.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 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 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.20 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task ‘prd-centos7-blackbox-4c-2g-16172’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-8c-8g-16367’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16368’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16370’ is offline Running on prd-ubuntu20.04-docker-8c-8g-16373 in /w/workspace/gexfoundry_device-rest-go_PR-318 [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-318 # 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 55c123e92a81b52ef904480be8a3eb69bc416b29 into PR head commit b9c48caf18051205e53a4f46e0f602ec610cbd73 Merge succeeded, producing b9c48caf18051205e53a4f46e0f602ec610cbd73 Checking out Revision b9c48caf18051205e53a4f46e0f602ec610cbd73 (PR-318) Commit message: "build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1" First time build. Skipping changelog. > 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/318/head:refs/remotes/origin/PR-318 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b9c48caf18051205e53a4f46e0f602ec610cbd73 # 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 55c123e92a81b52ef904480be8a3eb69bc416b29 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b9c48caf18051205e53a4f46e0f602ec610cbd73 # timeout=10 > git rev-list --no-walk 5406a81bc14e35dea807788b8be977acec42db7e # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 21:38:13 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 21:38:13 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 21:38:13 ========================================================= 21:38:13 EdgeX Global Pipelines Version Info 21:38:13 ========================================================= [Pipeline] libraryResource [Pipeline] sh 21:38:13 ------------------- 21:38:13 stable info: 21:38:13 ------------------- 21:38:13 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 21:38:13 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 21:38:13 Message: update stable to v1.0.249 21:38:14 ------------------- 21:38:14 experimental info: 21:38:14 ------------------- 21:38:14 Commited By: **** collab-it+edgex@linuxfoundation.org 21:38:14 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 21:38:14 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 21:38:14 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 21:38:15 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 21:38:15 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-318 [Pipeline] echo 21:38:15 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-318 [Pipeline] echo 21:38:15 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-318 [Pipeline] echo 21:38:15 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b9c48caf18051205e53a4f46e0f602ec610cbd73 [Pipeline] echo 21:38:15 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b9c48ca [Pipeline] echo 21:38:15 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 21:38:15 provisioning config files... 21:38:15 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/config16898527592561647923tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:38:15 ---> docker-login.sh 21:38:15 nexus3.edgexfoundry.org:10001 21:38:15 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:38:15 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:38:15 Configure a credential helper to remove this warning. See 21:38:15 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:38:15 21:38:15 Login Succeeded 21:38:15 nexus3.edgexfoundry.org:10002 21:38:15 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:38:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:38:16 Configure a credential helper to remove this warning. See 21:38:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:38:16 21:38:16 Login Succeeded 21:38:16 nexus3.edgexfoundry.org:10003 21:38:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:38:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:38:16 Configure a credential helper to remove this warning. See 21:38:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:38:16 21:38:16 Login Succeeded 21:38:16 nexus3.edgexfoundry.org:10004 21:38:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:38:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:38:16 Configure a credential helper to remove this warning. See 21:38:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:38:16 21:38:16 Login Succeeded 21:38:16 docker.io 21:38:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:38:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:38:16 Configure a credential helper to remove this warning. See 21:38:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:38:16 21:38:16 Login Succeeded 21:38:16 ---> docker-login.sh ends [Pipeline] } 21:38:16 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 21:38:16 + git rev-list -1 --merges b9c48caf18051205e53a4f46e0f602ec610cbd73~1..b9c48caf18051205e53a4f46e0f602ec610cbd73 [Pipeline] echo 21:38:16 -----------> git rev-list -1 --merges b9c48caf18051205e53a4f46e0f602ec610cbd73~1..b9c48caf18051205e53a4f46e0f602ec610cbd73 b9c48caf18051205e53a4f46e0f602ec610cbd73 [false] [Pipeline] sh 21:38:17 + git log --format=format:%s -1 b9c48caf18051205e53a4f46e0f602ec610cbd73 [Pipeline] echo 21:38:17 ========================================================= 21:38:17 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 21:38:17 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 21:38:17 + git log --format=format:%s -1 b9c48caf18051205e53a4f46e0f602ec610cbd73 [Pipeline] echo 21:38:17 [semverPrep] GIT_COMMIT: b9c48caf18051205e53a4f46e0f602ec610cbd73, Commit Message: build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1 [Pipeline] echo 21:38:17 [semverPrep] This is not a build commit. [Pipeline] sh 21:38:18 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 21:38:18 + grep -v github /etc/ssh/ssh_known_hosts 21:38:18 + [ -e /tmp/ssh_known_hosts ] 21:38:18 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 21:38:18 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 21:38:18 + sudo tee -a /etc/ssh/ssh_known_hosts 21:38:18 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:38:18 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 21:38:18 21:38:18 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:38:18 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 21:38:18 0.1.4: Pulling from edgex-devops/py-git-semver 21:38:18 b85a868b505f: Pulling fs layer 21:38:18 e2be974225ed: Pulling fs layer 21:38:18 339a4e72a1f5: Pulling fs layer 21:38:18 988bab9f4d93: Pulling fs layer 21:38:18 1469e6f7b9e6: Pulling fs layer 21:38:18 eaf3925da568: Pulling fs layer 21:38:18 bab4dde63d76: Pulling fs layer 21:38:18 bde34c3a00c8: Pulling fs layer 21:38:18 b352a97aabf1: Pulling fs layer 21:38:18 4872d77fe225: Pulling fs layer 21:38:18 5851b861e8e6: Pulling fs layer 21:38:18 1469e6f7b9e6: Waiting 21:38:18 bde34c3a00c8: Waiting 21:38:18 b352a97aabf1: Waiting 21:38:18 eaf3925da568: Waiting 21:38:18 bab4dde63d76: Waiting 21:38:18 4872d77fe225: Waiting 21:38:18 5851b861e8e6: Waiting 21:38:18 988bab9f4d93: Waiting 21:38:18 e2be974225ed: Verifying Checksum 21:38:18 e2be974225ed: Download complete 21:38:18 988bab9f4d93: Verifying Checksum 21:38:18 988bab9f4d93: Download complete 21:38:19 339a4e72a1f5: Verifying Checksum 21:38:19 339a4e72a1f5: Download complete 21:38:19 1469e6f7b9e6: Verifying Checksum 21:38:19 1469e6f7b9e6: Download complete 21:38:19 eaf3925da568: Download complete 21:38:19 bde34c3a00c8: Verifying Checksum 21:38:19 bde34c3a00c8: Download complete 21:38:19 b352a97aabf1: Download complete 21:38:19 4872d77fe225: Verifying Checksum 21:38:19 4872d77fe225: Download complete 21:38:19 5851b861e8e6: Verifying Checksum 21:38:19 5851b861e8e6: Download complete 21:38:19 b85a868b505f: Verifying Checksum 21:38:19 b85a868b505f: Download complete 21:38:19 bab4dde63d76: Verifying Checksum 21:38:19 bab4dde63d76: Download complete 21:38:20 b85a868b505f: Pull complete 21:38:20 e2be974225ed: Pull complete 21:38:20 339a4e72a1f5: Pull complete 21:38:21 988bab9f4d93: Pull complete 21:38:21 1469e6f7b9e6: Pull complete 21:38:21 eaf3925da568: Pull complete 21:38:23 bab4dde63d76: Pull complete 21:38:23 bde34c3a00c8: Pull complete 21:38:23 b352a97aabf1: Pull complete 21:38:23 4872d77fe225: Pull complete 21:38:23 5851b861e8e6: Pull complete 21:38:23 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 21:38:23 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 21:38:23 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:38:24 prd-ubuntu20.04-docker-8c-8g-16373 does not seem to be running inside a container 21:38:24 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-318 -v /w/workspace/gexfoundry_device-rest-go_PR-318:/w/workspace/gexfoundry_device-rest-go_PR-318:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-318@tmp:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 21:38:26 $ docker top 636b0827bc3c1ac141ecf1d25a252f83aced3e4681a2f16f8c01ac9b7ecdb25a -eo pid,comm 21:38:26 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). 21:38:26 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 21:38:26 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 21:38:26 [ssh-agent] Looking for ssh-agent implementation... 21:38:27 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 21:38:27 $ docker exec 636b0827bc3c1ac141ecf1d25a252f83aced3e4681a2f16f8c01ac9b7ecdb25a ssh-agent 21:38:27 SSH_AUTH_SOCK=/tmp/ssh-BtVoBF39cAJ9/agent.32 21:38:27 SSH_AGENT_PID=38 21:38:27 Running ssh-add (command line suppressed) 21:38:27 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-318@tmp/private_key_15766400578799075823.key (/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/private_key_15766400578799075823.key) 21:38:27 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 21:38:27 + git tag --points-at HEAD [Pipeline] } 21:38:27 $ docker exec --env ******** --env ******** 636b0827bc3c1ac141ecf1d25a252f83aced3e4681a2f16f8c01ac9b7ecdb25a ssh-agent -k 21:38:27 unset SSH_AUTH_SOCK; 21:38:27 unset SSH_AGENT_PID; 21:38:27 echo Agent pid 38 killed; 21:38:27 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 21:38:27 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 21:38:27 [ssh-agent] Looking for ssh-agent implementation... 21:38:27 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 21:38:27 $ docker exec 636b0827bc3c1ac141ecf1d25a252f83aced3e4681a2f16f8c01ac9b7ecdb25a ssh-agent 21:38:28 SSH_AUTH_SOCK=/tmp/ssh-QC76L8esAY2P/agent.70 21:38:28 SSH_AGENT_PID=76 21:38:28 Running ssh-add (command line suppressed) 21:38:28 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-318@tmp/private_key_11016525878454421469.key (/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/private_key_11016525878454421469.key) 21:38:28 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 21:38:28 + git semver init 21:38:28 2023-05-22 21:38:28,668 [run_init] DEBUG init version:0.0.0 force:False 21:38:28 2023-05-22 21:38:28,669 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-318/.semver 21:38:28 2023-05-22 21:38:28,670 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-318/.semver 21:38:28 2023-05-22 21:38:28,670 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-318/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-318, universal_newlines=False, shell=None, istream=None) 21:38:29 2023-05-22 21:38:29,675 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-318/.git/info/exclude 21:38:29 2023-05-22 21:38:29,675 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-318/.semver/PR-318 with force:False 21:38:29 2023-05-22 21:38:29,676 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-318/.semver/PR-318 21:38:29 2023-05-22 21:38:29,680 [execute] INFO git cat-file --batch-check 21:38:29 2023-05-22 21:38:29,681 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-318/.semver, universal_newlines=False, shell=None, istream=) 21:38:29 2023-05-22 21:38:29,688 [execute] INFO git cat-file --batch 21:38:29 2023-05-22 21:38:29,688 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-318/.semver, universal_newlines=False, shell=None, istream=) 21:38:29 2023-05-22 21:38:29,694 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-318/.semver/PR-318 21:38:29 0.0.0 [Pipeline] } 21:38:29 $ docker exec --env ******** --env ******** 636b0827bc3c1ac141ecf1d25a252f83aced3e4681a2f16f8c01ac9b7ecdb25a ssh-agent -k 21:38:30 unset SSH_AUTH_SOCK; 21:38:30 unset SSH_AGENT_PID; 21:38:30 echo Agent pid 76 killed; 21:38:30 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 21:38:30 + git semver [Pipeline] } 21:38:30 $ docker stop --time=1 636b0827bc3c1ac141ecf1d25a252f83aced3e4681a2f16f8c01ac9b7ecdb25a 21:38:31 $ docker rm -f --volumes 636b0827bc3c1ac141ecf1d25a252f83aced3e4681a2f16f8c01ac9b7ecdb25a [Pipeline] // withDockerContainer [Pipeline] sh 21:38:32 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 21:38:32 Stashed 1 file(s) [Pipeline] echo 21:38:32 [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 21:38:32 provisioning config files... 21:38:32 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/config10468132761176826266tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:38:32 ---> docker-login.sh 21:38:32 nexus3.edgexfoundry.org:10001 21:38:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:38:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:38:32 Configure a credential helper to remove this warning. See 21:38:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:38:32 21:38:32 Login Succeeded 21:38:32 nexus3.edgexfoundry.org:10002 21:38:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:38:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:38:32 Configure a credential helper to remove this warning. See 21:38:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:38:32 21:38:32 Login Succeeded 21:38:32 nexus3.edgexfoundry.org:10003 21:38:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:38:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:38:33 Configure a credential helper to remove this warning. See 21:38:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:38:33 21:38:33 Login Succeeded 21:38:33 nexus3.edgexfoundry.org:10004 21:38:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:38:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:38:33 Configure a credential helper to remove this warning. See 21:38:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:38:33 21:38:33 Login Succeeded 21:38:33 docker.io 21:38:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:38:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:38:33 Configure a credential helper to remove this warning. See 21:38:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:38:33 21:38:33 Login Succeeded 21:38:33 ---> docker-login.sh ends [Pipeline] } 21:38:33 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 21:38:33 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:38:33 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:38:33 ========================================================= 21:38:33 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 21:38:33 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:38:34 + 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 . 21:38:34 Sending build context to Docker daemon 10.93MB 21:38:34 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 21:38:34 Step 2/12 : FROM ${BASE} AS builder 21:38:34 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 21:38:34 f56be85fc22e: Pulling fs layer 21:38:34 85791d961cd3: Pulling fs layer 21:38:34 d694b5ae8c79: Pulling fs layer 21:38:34 9f32a84ed3da: Pulling fs layer 21:38:34 4d19c01a9841: Pulling fs layer 21:38:34 9325e15d5711: Pulling fs layer 21:38:34 9f32a84ed3da: Waiting 21:38:34 4d19c01a9841: Waiting 21:38:34 556b6ee489ea: Pulling fs layer 21:38:34 c5a4b2cf53e6: Pulling fs layer 21:38:34 c5a4b2cf53e6: Waiting 21:38:34 85791d961cd3: Download complete 21:38:34 9f32a84ed3da: Verifying Checksum 21:38:34 9f32a84ed3da: Download complete 21:38:34 4d19c01a9841: Download complete 21:38:34 f56be85fc22e: Verifying Checksum 21:38:34 f56be85fc22e: Download complete 21:38:34 9325e15d5711: Verifying Checksum 21:38:34 9325e15d5711: Download complete 21:38:34 f56be85fc22e: Pull complete 21:38:34 85791d961cd3: Pull complete 21:38:34 d694b5ae8c79: Verifying Checksum 21:38:34 d694b5ae8c79: Download complete 21:38:34 c5a4b2cf53e6: Verifying Checksum 21:38:34 c5a4b2cf53e6: Download complete 21:38:35 556b6ee489ea: Verifying Checksum 21:38:35 556b6ee489ea: Download complete 21:38:38 d694b5ae8c79: Pull complete 21:38:38 9f32a84ed3da: Pull complete 21:38:38 4d19c01a9841: Pull complete 21:38:38 9325e15d5711: Pull complete 21:38:41 556b6ee489ea: Pull complete 21:38:42 c5a4b2cf53e6: Pull complete 21:38:42 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 21:38:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 21:38:42 ---> c4be618373d6 21:38:42 Step 3/12 : ARG ADD_BUILD_TAGS="" 21:38:46 ---> Running in 0d81a73f0700 21:38:46 Removing intermediate container 0d81a73f0700 21:38:46 ---> 01bd533415d6 21:38:46 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:38:46 ---> Running in b26e9c0b79e0 21:38:46 Removing intermediate container b26e9c0b79e0 21:38:46 ---> 16b27b1c857b 21:38:46 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:38:46 ---> Running in 97b6c22a1646 21:38:46 Removing intermediate container 97b6c22a1646 21:38:46 ---> 969c7ed2a1e6 21:38:46 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 21:38:46 ---> Running in d892607d9bd5 21:38:46 Removing intermediate container d892607d9bd5 21:38:46 ---> 7703bc78ba84 21:38:46 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:38:46 ---> Running in f9b9bd2fbb19 21:38:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 21:38:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 21:38:47 (1/4) Installing openssh-keygen (9.1_p1-r3) 21:38:47 (2/4) Installing libedit (20221030.3.1-r0) 21:38:47 (3/4) Installing openssh-client-common (9.1_p1-r3) 21:38:47 Still waiting to schedule task 21:38:47 ‘prd-centos7-blackbox-4c-2g-16172’ doesn’t have label ‘ubuntu20.04-docker-arm64-4c-16g’ 21:38:47 ‘prd-ubuntu20.04-docker-8c-8g-16356’ doesn’t have label ‘ubuntu20.04-docker-arm64-4c-16g’ 21:38:47 ‘prd-ubuntu20.04-docker-arm64-4c-16g-16374’ is offline 21:38:47 ‘prd-ubuntu20.04-docker-arm64-4c-16g-16375’ is offline 21:38:47 (4/4) Installing openssh-client-default (9.1_p1-r3) 21:38:47 Executing busybox-1.35.0-r29.trigger 21:38:47 OK: 269 MiB in 57 packages 21:38:47 Removing intermediate container f9b9bd2fbb19 21:38:47 ---> e3adad8b1be7 21:38:47 Step 8/12 : WORKDIR /device-rest-go 21:38:48 ---> Running in 95616658331d 21:38:48 Removing intermediate container 95616658331d 21:38:48 ---> 4982852c22e7 21:38:48 Step 9/12 : COPY go.mod vendor* ./ 21:38:48 ---> 892e819ebb86 21:38:48 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:38:48 ---> Running in 6bde9fbec31b 21:39:20 Removing intermediate container 6bde9fbec31b 21:39:20 ---> 314e7bf0e120 21:39:20 Step 11/12 : COPY . . 21:39:20 ---> e700efe48aea 21:39:20 Step 12/12 : RUN $MAKE 21:39:20 ---> Running in d77b8bcdbbfb 21:39:20 noop 21:39:20 Removing intermediate container d77b8bcdbbfb 21:39:20 ---> 7f4c1f461339 21:39:20 Successfully built 7f4c1f461339 21:39:20 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:39:20 + docker inspect -f . ci-base-image-x86_64 21:39:20 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:39:20 prd-ubuntu20.04-docker-8c-8g-16373 does not seem to be running inside a container 21:39:20 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-318 -v /w/workspace/gexfoundry_device-rest-go_PR-318:/w/workspace/gexfoundry_device-rest-go_PR-318:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-318@tmp:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 21:39:21 $ docker top 4d7a8b434bcda337a000bca1d6df08575dfc92a3d9bf1f6a8e131c11546487f6 -eo pid,comm [Pipeline] { [Pipeline] sh 21:39:21 + go version 21:39:21 go version go1.20.2 linux/amd64 [Pipeline] } 21:39:21 $ docker stop --time=1 4d7a8b434bcda337a000bca1d6df08575dfc92a3d9bf1f6a8e131c11546487f6 21:39:22 $ docker rm -f --volumes 4d7a8b434bcda337a000bca1d6df08575dfc92a3d9bf1f6a8e131c11546487f6 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:39:23 + docker inspect -f . ci-base-image-x86_64 21:39:23 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:39:23 prd-ubuntu20.04-docker-8c-8g-16373 does not seem to be running inside a container 21:39:23 $ 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-318 -v /w/workspace/gexfoundry_device-rest-go_PR-318:/w/workspace/gexfoundry_device-rest-go_PR-318:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-318@tmp:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 21:39:23 $ docker top 5cf0ea98af34226942d52685ed99a8c907cad81a89e4ab6689c92799fa3a8272 -eo pid,comm [Pipeline] { [Pipeline] sh 21:39:23 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-318 [Pipeline] fileExists [Pipeline] sh 21:39:24 + make test 21:39:24 go test ./... -coverprofile=coverage.out ./... 21:39:29 ? github.com/edgexfoundry/device-rest-go [no test files] 21:39:39 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 21:39:39 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 32.2% of statements 21:39:46 go vet ./... 21:39:49 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 21:39:49 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 21:39:49 ./bin/test-attribution-txt.sh [Pipeline] echo 21:39:49 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 21:39:49 $ docker stop --time=1 5cf0ea98af34226942d52685ed99a8c907cad81a89e4ab6689c92799fa3a8272 21:39:50 Running on prd-ubuntu20.04-docker-arm64-4c-16g-16375 in /w/workspace/gexfoundry_device-rest-go_PR-318 21:39:52 $ docker rm -f --volumes 5cf0ea98af34226942d52685ed99a8c907cad81a89e4ab6689c92799fa3a8272 [Pipeline] // withDockerContainer [Pipeline] { [Pipeline] sh [Pipeline] ws 21:39:53 Running in /w/workspace/device-rest-go/8 [Pipeline] { [Pipeline] checkout 21:39:53 The recommended git tool is: git 21:39:53 + sudo chown -R jenkins:jenkins . [Pipeline] stash 21:39:53 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 21:39:53 + sudo chown -R jenkins:jenkins . [Pipeline] sh 21:39:54 + ls -al . 21:39:54 total 184 21:39:54 drwxrwxr-x 9 jenkins jenkins 4096 May 22 21:39 . 21:39:54 drwxrwxr-x 4 jenkins jenkins 4096 May 22 21:38 .. 21:39:54 -rw-rw-r-- 1 jenkins jenkins 151 May 22 21:38 .dockerignore 21:39:54 drwxrwxr-x 8 jenkins jenkins 4096 May 22 21:38 .git 21:39:54 drwxrwxr-x 3 jenkins jenkins 4096 May 22 21:38 .github 21:39:54 -rw-rw-r-- 1 jenkins jenkins 329 May 22 21:38 .gitignore 21:39:54 -rw-rw-r-- 1 jenkins jenkins 41 May 22 21:38 .golangci.yml 21:39:54 drwxr-xr-x 3 jenkins jenkins 4096 May 22 21:38 .semver 21:39:54 -rw-rw-r-- 1 jenkins jenkins 9331 May 22 21:38 Attribution.txt 21:39:54 -rw-rw-r-- 1 jenkins jenkins 13085 May 22 21:38 CHANGELOG.md 21:39:54 -rw-rw-r-- 1 jenkins jenkins 1578 May 22 21:38 Dockerfile 21:39:54 -rw-rw-r-- 1 jenkins jenkins 677 May 22 21:38 GOVERNANCE.md 21:39:54 -rw-rw-r-- 1 jenkins jenkins 680 May 22 21:38 Jenkinsfile 21:39:54 -rw-rw-r-- 1 jenkins jenkins 11340 May 22 21:38 LICENSE 21:39:54 -rw-rw-r-- 1 jenkins jenkins 1779 May 22 21:38 Makefile 21:39:54 -rw-rw-r-- 1 jenkins jenkins 620 May 22 21:38 OWNERS.md 21:39:54 -rw-rw-r-- 1 jenkins jenkins 15827 May 22 21:38 README.md 21:39:54 -rw-rw-r-- 1 jenkins jenkins 5 May 22 21:38 VERSION 21:39:54 drwxrwxr-x 2 jenkins jenkins 4096 May 22 21:38 bin 21:39:54 drwxrwxr-x 3 jenkins jenkins 4096 May 22 21:38 cmd 21:39:54 -rw-r--r-- 1 jenkins jenkins 14663 May 22 21:39 coverage.out 21:39:54 drwxrwxr-x 2 jenkins jenkins 4096 May 22 21:38 driver 21:39:54 -rw-rw-r-- 1 jenkins jenkins 3402 May 22 21:38 go.mod 21:39:54 -rw-rw-r-- 1 jenkins jenkins 31328 May 22 21:38 go.sum 21:39:54 drwxrwxr-x 4 jenkins jenkins 4096 May 22 21:38 snap 21:39:54 -rw-rw-r-- 1 jenkins jenkins 713 May 22 21:38 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:39:54 + 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=b9c48caf18051205e53a4f46e0f602ec610cbd73 --label arch=amd64 --label version=0.0.0 . 21:39:54 Sending build context to Docker daemon 10.95MB 21:39:54 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 21:39:54 Step 2/25 : FROM ${BASE} AS builder 21:39:54 ---> 7f4c1f461339 21:39:54 Step 3/25 : ARG ADD_BUILD_TAGS="" 21:39:54 ---> Running in 8d917bc4610c 21:39:54 Removing intermediate container 8d917bc4610c 21:39:54 ---> e0ef464c82ea 21:39:54 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:39:54 ---> Running in 38a1ef6b30a7 21:39:54 Removing intermediate container 38a1ef6b30a7 21:39:54 ---> 62304af5458e 21:39:54 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:39:54 ---> Running in 6b040a7aabaa 21:39:55 Removing intermediate container 6b040a7aabaa 21:39:55 ---> 3f02401c3dd6 21:39:55 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 21:39:55 ---> Running in 00b8a5c85983 21:39:55 Removing intermediate container 00b8a5c85983 21:39:55 ---> ecf3e8c0ecec 21:39:55 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:39:55 ---> Running in 9e4339af0eb1 21:39:55 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 21:39:55 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 21:39:55 OK: 269 MiB in 57 packages 21:39:56 Removing intermediate container 9e4339af0eb1 21:39:56 ---> 8ea660b1e781 21:39:56 Step 8/25 : WORKDIR /device-rest-go 21:39:56 ---> Running in 0026b0dddcaa 21:39:56 Removing intermediate container 0026b0dddcaa 21:39:56 ---> 2396cbbc6c3a 21:39:56 Step 9/25 : COPY go.mod vendor* ./ 21:39:56 ---> cceb5d43908d 21:39:56 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:39:56 ---> Running in 703ef92476a9 21:39:57 Removing intermediate container 703ef92476a9 21:39:57 ---> 8a390c5667ac 21:39:57 Step 11/25 : COPY . . 21:39:57 ---> 801dacd97264 21:39:57 Step 12/25 : RUN $MAKE 21:39:57 ---> Running in 3aeb100a7a14 21:39:57 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 21:40:03 using credential edgex-jenkins-ssh 21:40:03 Cloning the remote Git repository 21:40:03 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 21:40:03 > git init /w/workspace/device-rest-go/8 # timeout=10 21:40:03 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 21:40:03 > git --version # timeout=10 21:40:03 > git --version # 'git version 2.25.1' 21:40:03 using GIT_SSH to set credentials SSH Credentials for GitHub 21:40:04 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 21:40:06 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 21:40:06 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 21:40:08 Merging remotes/origin/main commit 55c123e92a81b52ef904480be8a3eb69bc416b29 into PR head commit b9c48caf18051205e53a4f46e0f602ec610cbd73 21:40:07 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 21:40:07 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 21:40:07 using GIT_SSH to set credentials SSH Credentials for GitHub 21:40:07 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/318/head:refs/remotes/origin/PR-318 +refs/heads/main:refs/remotes/origin/main # timeout=10 21:40:08 > git config core.sparsecheckout # timeout=10 21:40:08 > git checkout -f b9c48caf18051205e53a4f46e0f602ec610cbd73 # timeout=10 21:40:08 > git remote # timeout=10 21:40:08 > git config --get remote.origin.url # timeout=10 21:40:08 using GIT_SSH to set credentials SSH Credentials for GitHub 21:40:08 > git merge 55c123e92a81b52ef904480be8a3eb69bc416b29 # timeout=10 21:40:08 Merge succeeded, producing b9c48caf18051205e53a4f46e0f602ec610cbd73 21:40:08 Checking out Revision b9c48caf18051205e53a4f46e0f602ec610cbd73 (PR-318) 21:40:09 Commit message: "build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 21:40:08 > git rev-parse HEAD^{commit} # timeout=10 21:40:08 > git config core.sparsecheckout # timeout=10 21:40:08 > git checkout -f b9c48caf18051205e53a4f46e0f602ec610cbd73 # timeout=10 21:40:10 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 21:40:10 % Total % Received % Xferd Average Speed Time Time Time Current 21:40:10 Dload Upload Total Spent Left Speed 21:40:10 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 180k 0 --:--:-- --:--:-- --:--:-- 180k [Pipeline] sh 21:40:11 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 21:40:11 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 21:40:11 + sudo tee /etc/docker/daemon.new 21:40:11 { 21:40:11 "registry-mirrors": [ 21:40:11 "https://nexus3.edgexfoundry.org:10001" 21:40:11 ], 21:40:11 "bip": "10.250.0.254/24", 21:40:11 "hosts": [ 21:40:11 "tcp://0.0.0.0:5555", 21:40:11 "unix:///var/run/docker.sock" 21:40:11 ], 21:40:11 "mtu": 1458, 21:40:11 "selinux-enabled": true, 21:40:11 "seccomp-profile": "/etc/docker/seccomp.json" 21:40:11 } [Pipeline] sh 21:40:12 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 21:40:12 + sudo service docker restart 21:40:19 Removing intermediate container 3aeb100a7a14 21:40:19 ---> 9097b99d2f6c 21:40:19 Step 13/25 : FROM alpine:3.17 21:40:19 3.17: Pulling from library/alpine 21:40:19 f56be85fc22e: Already exists 21:40:19 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 21:40:19 Status: Downloaded newer image for alpine:3.17 21:40:19 ---> 9ed4aefc74f6 21:40:19 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 21:40:19 ---> Running in 4b7ffef13d21 21:40:19 Removing intermediate container 4b7ffef13d21 21:40:19 ---> 2df0925844cf 21:40:19 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 21:40:19 ---> Running in 936986f56a27 21:40:19 Removing intermediate container 936986f56a27 21:40:19 ---> edf6579e80a4 21:40:19 Step 16/25 : RUN apk add --update --no-cache dumb-init 21:40:19 ---> Running in 8549f8f914dd 21:40:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 21:40:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 21:40:19 (1/1) Installing dumb-init (1.2.5-r2) 21:40:19 Executing busybox-1.35.0-r29.trigger 21:40:19 OK: 7 MiB in 16 packages 21:40:19 Removing intermediate container 8549f8f914dd 21:40:19 ---> 779171a8ffe6 21:40:19 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 21:40:19 ---> 7bed721963c4 21:40:19 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 21:40:19 ---> a729b02c262d 21:40:19 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 21:40:19 ---> 9e0836f955de 21:40:19 Step 20/25 : EXPOSE 59986 21:40:19 ---> Running in 04f31be9e0e3 21:40:19 Removing intermediate container 04f31be9e0e3 21:40:19 ---> 02f4e9bcd9b7 21:40:19 Step 21/25 : ENTRYPOINT ["/device-rest"] 21:40:19 ---> Running in f8d929531965 21:40:19 Removing intermediate container f8d929531965 21:40:19 ---> 2a30e136a706 21:40:19 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 21:40:19 ---> Running in 36a58fbbfe79 21:40:19 Removing intermediate container 36a58fbbfe79 21:40:19 ---> fd1fecdef027 21:40:19 Step 23/25 : LABEL arch=amd64 21:40:19 ---> Running in 70a5ed25c095 21:40:19 Removing intermediate container 70a5ed25c095 21:40:19 ---> 8da2bd9304c1 21:40:19 Step 24/25 : LABEL git_sha=b9c48caf18051205e53a4f46e0f602ec610cbd73 21:40:19 ---> Running in 4973620ec905 21:40:19 Removing intermediate container 4973620ec905 21:40:19 ---> 73a32857ddd4 21:40:19 Step 25/25 : LABEL version=0.0.0 21:40:19 ---> Running in 81a1cd34539b 21:40:19 Removing intermediate container 81a1cd34539b 21:40:19 ---> c39e99cdd07a 21:40:19 [Warning] One or more build-args [ARCH] were not consumed 21:40:19 Successfully built c39e99cdd07a 21:40:19 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 21:40:19 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:40:19 21:40:19 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:40:20 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:40:20 latest: Pulling from edgex-lftools-log-publisher 21:40:20 5eb5b503b376: Pulling fs layer 21:40:20 5c69ac0246d0: Pulling fs layer 21:40:20 ec43610c2a17: Pulling fs layer 21:40:20 3a2ae6a8a46f: Pulling fs layer 21:40:20 33b1e0a273af: Pulling fs layer 21:40:20 5d3b04190fa2: Pulling fs layer 21:40:20 2f39f015ded8: Pulling fs layer 21:40:20 33b1e0a273af: Waiting 21:40:20 5d3b04190fa2: Waiting 21:40:20 2f39f015ded8: Waiting 21:40:20 3a2ae6a8a46f: Waiting 21:40:20 5c69ac0246d0: Download complete 21:40:20 3a2ae6a8a46f: Verifying Checksum 21:40:20 3a2ae6a8a46f: Download complete 21:40:20 33b1e0a273af: Verifying Checksum 21:40:20 33b1e0a273af: Download complete 21:40:20 5d3b04190fa2: Verifying Checksum 21:40:20 5d3b04190fa2: Download complete 21:40:20 ec43610c2a17: Verifying Checksum 21:40:20 ec43610c2a17: Download complete 21:40:20 5eb5b503b376: Verifying Checksum 21:40:20 5eb5b503b376: Download complete 21:40:21 2f39f015ded8: Download complete 21:40:21 5eb5b503b376: Pull complete 21:40:21 5c69ac0246d0: Pull complete 21:40:22 ec43610c2a17: Pull complete 21:40:22 3a2ae6a8a46f: Pull complete 21:40:22 33b1e0a273af: Pull complete 21:40:22 5d3b04190fa2: Pull complete 21:40:26 2f39f015ded8: Pull complete 21:40:26 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 21:40:26 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:40:26 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:40:26 prd-ubuntu20.04-docker-8c-8g-16373 does not seem to be running inside a container 21:40:26 $ 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-318 -v /w/workspace/gexfoundry_device-rest-go_PR-318:/w/workspace/gexfoundry_device-rest-go_PR-318:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-318@tmp:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 21:40:30 $ docker top 5a626b8861f668f455e3761d8b6d3d26539fb5ade9820856f976447be0d8c9f9 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [Pipeline] configFileProvider 21:40:31 provisioning config files... 21:40:31 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/8@tmp/config12461138666802252694tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:40:31 ---> job-cost.sh 21:40:31 lf-activate-venv: SKIPPING 21:40:31 INFO: No Stack... 21:40:31 ---> docker-login.sh 21:40:31 nexus3.edgexfoundry.org:10001 21:40:31 INFO: Retrieving Pricing Info for: v3-standard-8 21:40:31 INFO: Archiving Costs [Pipeline] sh 21:40:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:40:32 + cat /w/workspace/gexfoundry_device-rest-go_PR-318/archives/cost.csv 21:40:32 + cut -d, -f6 [Pipeline] lock 21:40:32 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-318-8-stack-cost] 21:40:32 Resource [jenkins-edgexfoundry-device-rest-go-PR-318-8-stack-cost] did not exist. Created. 21:40:32 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-318-8-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 21:40:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:40:32 Configure a credential helper to remove this warning. See 21:40:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:40:32 21:40:32 Login Succeeded 21:40:32 nexus3.edgexfoundry.org:10002 21:40:32 + echo total: 0.2199999988079071 [Pipeline] stash 21:40:32 Stashed 1 file(s) [Pipeline] } 21:40:32 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-318-8-stack-cost] [Pipeline] // lock [Pipeline] } 21:40:32 $ docker stop --time=1 5a626b8861f668f455e3761d8b6d3d26539fb5ade9820856f976447be0d8c9f9 21:40:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:40:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:40:32 Configure a credential helper to remove this warning. See 21:40:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:40:32 21:40:32 Login Succeeded 21:40:32 nexus3.edgexfoundry.org:10003 21:40:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:40:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:40:33 Configure a credential helper to remove this warning. See 21:40:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:40:33 21:40:33 Login Succeeded 21:40:33 nexus3.edgexfoundry.org:10004 21:40:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:40:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:40:33 Configure a credential helper to remove this warning. See 21:40:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:40:33 21:40:33 Login Succeeded 21:40:33 docker.io 21:40:33 $ docker rm -f --volumes 5a626b8861f668f455e3761d8b6d3d26539fb5ade9820856f976447be0d8c9f9 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 21:40:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:40:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:40:33 Configure a credential helper to remove this warning. See 21:40:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:40:33 21:40:33 Login Succeeded 21:40:33 ---> docker-login.sh ends [Pipeline] } 21:40:33 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 21:40:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:40:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:40:34 ========================================================= 21:40:34 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 21:40:34 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:40:34 + 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 . 21:40:34 Sending build context to Docker daemon 139.3kB 21:40:35 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 21:40:35 Step 2/12 : FROM ${BASE} AS builder 21:40:35 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 21:40:35 c41833b44d91: Pulling fs layer 21:40:35 ed15518f5707: Pulling fs layer 21:40:35 feae8fd75edb: Pulling fs layer 21:40:35 242c74f7c9fa: Pulling fs layer 21:40:35 3cdef696dda3: Pulling fs layer 21:40:35 2ced38df9373: Pulling fs layer 21:40:35 58f1dce35555: Pulling fs layer 21:40:35 3cdef696dda3: Waiting 21:40:35 2ced38df9373: Waiting 21:40:35 58f1dce35555: Waiting 21:40:35 242c74f7c9fa: Waiting 21:40:35 ed15518f5707: Verifying Checksum 21:40:35 ed15518f5707: Download complete 21:40:35 242c74f7c9fa: Verifying Checksum 21:40:35 242c74f7c9fa: Download complete 21:40:35 3cdef696dda3: Verifying Checksum 21:40:35 3cdef696dda3: Download complete 21:40:35 c41833b44d91: Download complete 21:40:36 c41833b44d91: Pull complete 21:40:36 58f1dce35555: Verifying Checksum 21:40:36 58f1dce35555: Download complete 21:40:37 ed15518f5707: Pull complete 21:40:38 feae8fd75edb: Verifying Checksum 21:40:38 feae8fd75edb: Download complete 21:40:38 2ced38df9373: Verifying Checksum 21:40:38 2ced38df9373: Download complete 21:40:50 feae8fd75edb: Pull complete 21:40:50 242c74f7c9fa: Pull complete 21:40:50 3cdef696dda3: Pull complete 21:40:56 2ced38df9373: Pull complete 21:40:58 58f1dce35555: Pull complete 21:40:58 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 21:40:58 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 21:40:58 ---> fadd8f120f05 21:40:58 Step 3/12 : ARG ADD_BUILD_TAGS="" 21:41:00 ---> Running in c74a5f587129 21:41:01 Removing intermediate container c74a5f587129 21:41:01 ---> ffcf9526cd16 21:41:01 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:41:01 ---> Running in 76213e73b137 21:41:01 Removing intermediate container 76213e73b137 21:41:01 ---> da9ab7af189d 21:41:01 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:41:01 ---> Running in 09008999957f 21:41:02 Removing intermediate container 09008999957f 21:41:02 ---> a1abcb61efff 21:41:02 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 21:41:02 ---> Running in d4fd1268e1a8 21:41:03 Removing intermediate container d4fd1268e1a8 21:41:03 ---> 9136e87a7511 21:41:03 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:41:03 ---> Running in 057fd3e2c152 21:41:05 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:41:05 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:41:07 (1/4) Installing openssh-keygen (9.1_p1-r3) 21:41:07 (2/4) Installing libedit (20221030.3.1-r0) 21:41:07 (3/4) Installing openssh-client-common (9.1_p1-r3) 21:41:07 (4/4) Installing openssh-client-default (9.1_p1-r3) 21:41:07 Executing busybox-1.35.0-r29.trigger 21:41:07 OK: 268 MiB in 57 packages 21:41:09 Removing intermediate container 057fd3e2c152 21:41:09 ---> d8e2cd6f0240 21:41:09 Step 8/12 : WORKDIR /device-rest-go 21:41:09 ---> Running in 8c61c967a950 21:41:09 Removing intermediate container 8c61c967a950 21:41:09 ---> 23b9f4c09d77 21:41:09 Step 9/12 : COPY go.mod vendor* ./ 21:41:09 ---> a3c10aad5e12 21:41:09 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:41:10 ---> Running in f1c048e5b536 21:42:17 Removing intermediate container f1c048e5b536 21:42:17 ---> 64764d9a79d5 21:42:17 Step 11/12 : COPY . . 21:42:17 ---> 5a7be2f91a3e 21:42:17 Step 12/12 : RUN $MAKE 21:42:17 ---> Running in e20a00aec6c0 21:42:17 noop 21:42:18 Removing intermediate container e20a00aec6c0 21:42:18 ---> 611f8141a135 21:42:18 Successfully built 611f8141a135 21:42:18 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:42:18 + docker inspect -f . ci-base-image-arm64 21:42:18 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:42:19 prd-ubuntu20.04-docker-arm64-4c-16g-16375 does not seem to be running inside a container 21:42:19 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/8 -v /w/workspace/device-rest-go/8:/w/workspace/device-rest-go/8:rw,z -v /w/workspace/device-rest-go/8@tmp:/w/workspace/device-rest-go/8@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 21:42:20 $ docker top 6828c925c5eba10c28f3cd2d140ca45d3b9044af96a15ae5b0413c73c1f2b3e0 -eo pid,comm [Pipeline] { [Pipeline] sh 21:42:21 + go version 21:42:21 go version go1.20.2 linux/arm64 [Pipeline] } 21:42:21 $ docker stop --time=1 6828c925c5eba10c28f3cd2d140ca45d3b9044af96a15ae5b0413c73c1f2b3e0 21:42:23 $ docker rm -f --volumes 6828c925c5eba10c28f3cd2d140ca45d3b9044af96a15ae5b0413c73c1f2b3e0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:42:23 + docker inspect -f . ci-base-image-arm64 21:42:23 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:42:23 prd-ubuntu20.04-docker-arm64-4c-16g-16375 does not seem to be running inside a container 21:42:24 $ 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/8 -v /w/workspace/device-rest-go/8:/w/workspace/device-rest-go/8:rw,z -v /w/workspace/device-rest-go/8@tmp:/w/workspace/device-rest-go/8@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 21:42:25 $ docker top 6b13ac2712b87d3ada6aa104b16e8ce5312ace02cbac3a85b5bdc57c2154b053 -eo pid,comm [Pipeline] { [Pipeline] sh 21:42:26 + git config --global --add safe.directory /w/workspace/device-rest-go/8 [Pipeline] fileExists [Pipeline] sh 21:42:27 + make test 21:42:27 go test ./... -coverprofile=coverage.out ./... 21:43:05 ? github.com/edgexfoundry/device-rest-go [no test files] 21:45:27 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 21:45:27 ok github.com/edgexfoundry/device-rest-go/driver 0.069s coverage: 32.2% of statements 21:45:27 WARNING: Linting skipped (not on x86_64 or linter not installed) 21:45:27 go vet ./... 21:45:50 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 21:45:50 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 21:45:50 ./bin/test-attribution-txt.sh [Pipeline] echo 21:45:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 21:45:50 $ docker stop --time=1 6b13ac2712b87d3ada6aa104b16e8ce5312ace02cbac3a85b5bdc57c2154b053 21:45:51 $ docker rm -f --volumes 6b13ac2712b87d3ada6aa104b16e8ce5312ace02cbac3a85b5bdc57c2154b053 [Pipeline] // withDockerContainer [Pipeline] sh 21:45:53 + sudo chown -R jenkins:jenkins . [Pipeline] stash 21:45:53 Warning: overwriting stash ‘coverage-report’ 21:45:53 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 21:45:54 + sudo chown -R jenkins:jenkins . [Pipeline] sh 21:45:54 + ls -al . 21:45:54 total 180 21:45:54 drwxrwxr-x 8 jenkins jenkins 4096 May 22 21:42 . 21:45:54 drwxrwxr-x 4 jenkins jenkins 4096 May 22 21:40 .. 21:45:54 -rw-rw-r-- 1 jenkins jenkins 151 May 22 21:40 .dockerignore 21:45:54 drwxrwxr-x 8 jenkins jenkins 4096 May 22 21:40 .git 21:45:54 drwxrwxr-x 3 jenkins jenkins 4096 May 22 21:40 .github 21:45:54 -rw-rw-r-- 1 jenkins jenkins 329 May 22 21:40 .gitignore 21:45:54 -rw-rw-r-- 1 jenkins jenkins 41 May 22 21:40 .golangci.yml 21:45:54 -rw-rw-r-- 1 jenkins jenkins 9331 May 22 21:40 Attribution.txt 21:45:54 -rw-rw-r-- 1 jenkins jenkins 13085 May 22 21:40 CHANGELOG.md 21:45:54 -rw-rw-r-- 1 jenkins jenkins 1578 May 22 21:40 Dockerfile 21:45:54 -rw-rw-r-- 1 jenkins jenkins 677 May 22 21:40 GOVERNANCE.md 21:45:54 -rw-rw-r-- 1 jenkins jenkins 680 May 22 21:40 Jenkinsfile 21:45:54 -rw-rw-r-- 1 jenkins jenkins 11340 May 22 21:40 LICENSE 21:45:54 -rw-rw-r-- 1 jenkins jenkins 1779 May 22 21:40 Makefile 21:45:54 -rw-rw-r-- 1 jenkins jenkins 620 May 22 21:40 OWNERS.md 21:45:54 -rw-rw-r-- 1 jenkins jenkins 15827 May 22 21:40 README.md 21:45:54 -rw-rw-r-- 1 jenkins jenkins 5 May 22 21:38 VERSION 21:45:54 drwxrwxr-x 2 jenkins jenkins 4096 May 22 21:40 bin 21:45:54 drwxrwxr-x 3 jenkins jenkins 4096 May 22 21:40 cmd 21:45:54 -rw-r--r-- 1 jenkins jenkins 14663 May 22 21:45 coverage.out 21:45:54 drwxrwxr-x 2 jenkins jenkins 4096 May 22 21:40 driver 21:45:54 -rw-rw-r-- 1 jenkins jenkins 3402 May 22 21:40 go.mod 21:45:54 -rw-rw-r-- 1 jenkins jenkins 31328 May 22 21:40 go.sum 21:45:54 drwxrwxr-x 4 jenkins jenkins 4096 May 22 21:40 snap 21:45:54 -rw-rw-r-- 1 jenkins jenkins 713 May 22 21:40 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:45:54 + 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=b9c48caf18051205e53a4f46e0f602ec610cbd73 --label arch=arm64 --label version=0.0.0 . 21:45:54 Sending build context to Docker daemon 154.6kB 21:45:55 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 21:45:55 Step 2/25 : FROM ${BASE} AS builder 21:45:55 ---> 611f8141a135 21:45:55 Step 3/25 : ARG ADD_BUILD_TAGS="" 21:45:55 ---> Running in 5fbdf2bb905c 21:45:55 Removing intermediate container 5fbdf2bb905c 21:45:55 ---> c14dcc8448eb 21:45:55 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:45:55 ---> Running in eafd740fce72 21:45:56 Removing intermediate container eafd740fce72 21:45:56 ---> ae6e32460dce 21:45:56 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:45:56 ---> Running in 8c7efe6b1010 21:45:56 Removing intermediate container 8c7efe6b1010 21:45:56 ---> cb15ad92468a 21:45:56 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 21:45:56 ---> Running in 83e1304e4edd 21:45:56 Removing intermediate container 83e1304e4edd 21:45:56 ---> 2a81d2df3b5c 21:45:56 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:45:56 ---> Running in 6354f08e1235 21:45:57 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:45:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:45:59 OK: 268 MiB in 57 packages 21:46:00 Removing intermediate container 6354f08e1235 21:46:00 ---> 789e35ed71e1 21:46:00 Step 8/25 : WORKDIR /device-rest-go 21:46:00 ---> Running in 0c89309a206a 21:46:00 Removing intermediate container 0c89309a206a 21:46:00 ---> 4306a5490bba 21:46:00 Step 9/25 : COPY go.mod vendor* ./ 21:46:01 ---> f33a81c65705 21:46:01 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:46:01 ---> Running in f2f97bd61b51 21:46:04 Removing intermediate container f2f97bd61b51 21:46:04 ---> b563b248a62c 21:46:04 Step 11/25 : COPY . . 21:46:04 ---> 8b8efea71b89 21:46:04 Step 12/25 : RUN $MAKE 21:46:05 ---> Running in 48273733afd1 21:46:05 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 21:48:42 Removing intermediate container 48273733afd1 21:48:42 ---> 166d0eb952bf 21:48:42 Step 13/25 : FROM alpine:3.17 21:48:42 3.17: Pulling from library/alpine 21:48:42 c41833b44d91: Already exists 21:48:42 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 21:48:42 Status: Downloaded newer image for alpine:3.17 21:48:42 ---> 51e60588ff2c 21:48:42 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 21:48:42 ---> Running in 79395074f097 21:48:42 Removing intermediate container 79395074f097 21:48:42 ---> 03243226a90f 21:48:42 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 21:48:42 ---> Running in 61bc0d35e2b7 21:48:42 Removing intermediate container 61bc0d35e2b7 21:48:42 ---> 766366dc9815 21:48:42 Step 16/25 : RUN apk add --update --no-cache dumb-init 21:48:42 ---> Running in 40a6f428cfeb 21:48:42 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:48:42 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:48:42 (1/1) Installing dumb-init (1.2.5-r2) 21:48:42 Executing busybox-1.35.0-r29.trigger 21:48:42 OK: 8 MiB in 16 packages 21:48:42 Removing intermediate container 40a6f428cfeb 21:48:42 ---> 7829255b2e86 21:48:42 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 21:48:42 ---> ae3e7bc75226 21:48:42 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 21:48:42 ---> 8ac47f589bd7 21:48:42 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 21:48:42 ---> ffe5b4da9290 21:48:42 Step 20/25 : EXPOSE 59986 21:48:42 ---> Running in 6dddd52e5288 21:48:42 Removing intermediate container 6dddd52e5288 21:48:42 ---> d579f06b9cf9 21:48:42 Step 21/25 : ENTRYPOINT ["/device-rest"] 21:48:42 ---> Running in 6ad64e64d7a7 21:48:42 Removing intermediate container 6ad64e64d7a7 21:48:42 ---> 1f4d7197bfd7 21:48:42 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 21:48:42 ---> Running in 02ebea18979e 21:48:42 Removing intermediate container 02ebea18979e 21:48:42 ---> 684e0785b6ca 21:48:42 Step 23/25 : LABEL arch=arm64 21:48:42 ---> Running in da7622719d61 21:48:42 Removing intermediate container da7622719d61 21:48:42 ---> b25849b43c53 21:48:42 Step 24/25 : LABEL git_sha=b9c48caf18051205e53a4f46e0f602ec610cbd73 21:48:42 ---> Running in 6e24cbe33c30 21:48:42 Removing intermediate container 6e24cbe33c30 21:48:42 ---> 482eaa7ceeab 21:48:42 Step 25/25 : LABEL version=0.0.0 21:48:42 ---> Running in c075d89f32a4 21:48:42 Removing intermediate container c075d89f32a4 21:48:42 ---> e34ff8b97695 21:48:42 [Warning] One or more build-args [ARCH] were not consumed 21:48:42 Successfully built e34ff8b97695 21:48:42 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 21:48:43 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:48:43 21:48:43 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:48:43 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:48:43 arm64: Pulling from edgex-lftools-log-publisher 21:48:43 8998bd30e6a1: Pulling fs layer 21:48:43 04944245beec: Pulling fs layer 21:48:43 699f458cf7ca: Pulling fs layer 21:48:43 765212b225bb: Pulling fs layer 21:48:43 f23df028b6ca: Pulling fs layer 21:48:43 d65c8cfc05b1: Pulling fs layer 21:48:43 2437ff75d9bd: Pulling fs layer 21:48:43 f23df028b6ca: Waiting 21:48:43 d65c8cfc05b1: Waiting 21:48:43 2437ff75d9bd: Waiting 21:48:43 765212b225bb: Waiting 21:48:43 04944245beec: Verifying Checksum 21:48:43 04944245beec: Download complete 21:48:43 765212b225bb: Verifying Checksum 21:48:43 765212b225bb: Download complete 21:48:43 f23df028b6ca: Verifying Checksum 21:48:43 f23df028b6ca: Download complete 21:48:43 d65c8cfc05b1: Verifying Checksum 21:48:43 d65c8cfc05b1: Download complete 21:48:44 699f458cf7ca: Download complete 21:48:44 8998bd30e6a1: Verifying Checksum 21:48:44 8998bd30e6a1: Download complete 21:48:46 2437ff75d9bd: Verifying Checksum 21:48:46 2437ff75d9bd: Download complete 21:48:48 8998bd30e6a1: Pull complete 21:48:49 04944245beec: Pull complete 21:48:50 699f458cf7ca: Pull complete 21:48:50 765212b225bb: Pull complete 21:48:51 f23df028b6ca: Pull complete 21:48:51 d65c8cfc05b1: Pull complete 21:49:06 2437ff75d9bd: Pull complete 21:49:06 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 21:49:06 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:49:06 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:49:07 prd-ubuntu20.04-docker-arm64-4c-16g-16375 does not seem to be running inside a container 21:49:07 $ 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/8 -v /w/workspace/device-rest-go/8:/w/workspace/device-rest-go/8:rw,z -v /w/workspace/device-rest-go/8@tmp:/w/workspace/device-rest-go/8@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 21:49:10 $ docker top 8e2faf9f53c7f7fd79a044298d356e14efff6d54965a1ad79580586a0435edd0 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:49:10 ---> job-cost.sh 21:49:10 lf-activate-venv: SKIPPING 21:49:10 INFO: No Stack... 21:49:11 INFO: Retrieving Pricing Info for: v3-standard-4 21:49:12 INFO: Archiving Costs [Pipeline] sh 21:49:13 + cat /w/workspace/device-rest-go/8/archives/cost.csv 21:49:13 + cut -d, -f6 [Pipeline] lock 21:49:13 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-318-8-stack-cost] 21:49:13 Resource [jenkins-edgexfoundry-device-rest-go-PR-318-8-stack-cost] did not exist. Created. 21:49:13 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-318-8-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 21:49:13 /w/workspace/device-rest-go/8@tmp/durable-5273738f/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 21:49:14 + echo total: 0.10999999940395355 [Pipeline] stash 21:49:14 Warning: overwriting stash ‘stack-cost’ 21:49:14 Stashed 1 file(s) [Pipeline] } 21:49:14 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-318-8-stack-cost] [Pipeline] // lock [Pipeline] } 21:49:14 $ docker stop --time=1 8e2faf9f53c7f7fd79a044298d356e14efff6d54965a1ad79580586a0435edd0 21:49:16 $ docker rm -f --volumes 8e2faf9f53c7f7fd79a044298d356e14efff6d54965a1ad79580586a0435edd0 [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 21:49:16 provisioning config files... 21:49:16 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/config10296950477714583245tmp [Pipeline] { [Pipeline] sh 21:49:16 + set +x 21:49:16 + curl -s https://codecov.io/bash 21:49:16 + bash -s -- 21:49:16 21:49:16 _____ _ 21:49:16 / ____| | | 21:49:16 | | ___ __| | ___ ___ _____ __ 21:49:16 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 21:49:16 | |___| (_) | (_| | __/ (_| (_) \ V / 21:49:16 \_____\___/ \__,_|\___|\___\___/ \_/ 21:49:16 Bash-1.0.6 21:49:16 21:49:16 21:49:16 ==> git version 2.25.1 found 21:49:16 ==> 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 21:49:16 Release-Date: 2020-01-08 21:49:16 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 21:49:16 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 21:49:16 ==> Jenkins CI detected. 21:49:16 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-318 21:49:16 project root: . 21:49:16 --> token set from env 21:49:16 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 21:49:16 ==> Running gcov in . (disable via -X gcov) 21:49:16 ==> Python coveragepy not found 21:49:16 ==> Searching for coverage reports in: 21:49:16 + . 21:49:16 -> Found 1 reports 21:49:16 ==> Detecting git/mercurial file structure 21:49:16 ==> Reading reports 21:49:16 + ./coverage.out bytes=14663 21:49:16 ==> Appending adjustments 21:49:16 https://docs.codecov.io/docs/fixing-reports 21:49:17 + Found adjustments 21:49:17 ==> Gzipping contents 21:49:17 4.0K /tmp/codecov.RUtnMK.gz 21:49:17 ==> Uploading reports 21:49:17 url: https://codecov.io 21:49:17 query: branch=PR-318&commit=b9c48caf18051205e53a4f46e0f602ec610cbd73&build=8&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-318%2F8%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=318&job=&cmd_args= 21:49:17 -> Pinging Codecov 21:49:17 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-318&commit=b9c48caf18051205e53a4f46e0f602ec610cbd73&build=8&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-318%2F8%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=318&job=&cmd_args= 21:49:17 -> Uploading to 21:49:17 https://storage.googleapis.com/codecov/v4/raw/2023-05-22/4E5D53B4F1F92C436F7061BF334D961C/b9c48caf18051205e53a4f46e0f602ec610cbd73/95567aa2-04c8-4c07-bd04-8678e6b8b1cd.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230522%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230522T214917Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=d3b196b681c6ec435e74fd2bfb9a5346c672274a6e088c8ce000059a41760e2a 21:49:17 % Total % Received % Xferd Average Speed Time Time Time Current 21:49:17 Dload Upload Total Spent Left Speed 21:49:17 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 12741 --:--:-- --:--:-- --:--:-- 12741 21:49:17 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/b9c48caf18051205e53a4f46e0f602ec610cbd73 [Pipeline] } 21:49:17 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 21:49:18 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-318/archives ] 21:49:18 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-318/archives 21:49:18 total 16 21:49:18 drwxr-xr-x 3 root root 4096 May 22 21:40 . 21:49:18 drwxrwxr-x 10 jenkins jenkins 4096 May 22 21:40 .. 21:49:18 drwxr-xr-x 2 root root 4096 May 22 21:40 cost 21:49:18 -rw-r--r-- 1 root root 86 May 22 21:40 cost.csv 21:49:18 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-318/archives 21:49:18 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-318/archives 21:49:18 total 16 21:49:18 drwxr-xr-x 3 jenkins jenkins 4096 May 22 21:40 . 21:49:18 drwxrwxr-x 10 jenkins jenkins 4096 May 22 21:40 .. 21:49:18 drwxr-xr-x 2 jenkins jenkins 4096 May 22 21:40 cost 21:49:18 -rw-r--r-- 1 jenkins jenkins 86 May 22 21:40 cost.csv [Pipeline] libraryResource [Pipeline] sh 21:49:18 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 21:49:19 ---> package-listing.sh 21:49:19 ++ facter osfamily 21:49:19 ++ tr '[:upper:]' '[:lower:]' 21:49:19 + OS_FAMILY=debian 21:49:19 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-318 21:49:19 + START_PACKAGES=/tmp/packages_start.txt 21:49:19 + END_PACKAGES=/tmp/packages_end.txt 21:49:19 + DIFF_PACKAGES=/tmp/packages_diff.txt 21:49:19 + PACKAGES=/tmp/packages_start.txt 21:49:19 + '[' /w/workspace/gexfoundry_device-rest-go_PR-318 ']' 21:49:19 + PACKAGES=/tmp/packages_end.txt 21:49:19 + case "${OS_FAMILY}" in 21:49:19 + dpkg -l 21:49:19 + grep '^ii' 21:49:19 + '[' -f /tmp/packages_start.txt ']' 21:49:19 + '[' -f /tmp/packages_end.txt ']' 21:49:19 + diff /tmp/packages_start.txt /tmp/packages_end.txt 21:49:19 + '[' /w/workspace/gexfoundry_device-rest-go_PR-318 ']' 21:49:19 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-318/archives/ 21:49:19 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-318/archives/ [Pipeline] echo 21:49:19 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-318/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 21:49:19 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:49:20 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:49:20 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:49:20 prd-ubuntu20.04-docker-8c-8g-16373 does not seem to be running inside a container 21:49:20 $ 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-318/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-318 -v /w/workspace/gexfoundry_device-rest-go_PR-318:/w/workspace/gexfoundry_device-rest-go_PR-318:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-318@tmp:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 21:49:20 $ docker top 46e368faf45dcaa02e4436bf708d39f4a0a15a35f2eda2277a197d08bc392597 -eo pid,comm [Pipeline] { [Pipeline] sh 21:49:21 + touch /tmp/pre-build-complete [Pipeline] sh 21:49:21 + mkdir -p /var/log/sysstat [Pipeline] sh 21:49:21 + ls /var/log/sa-host 21:49:21 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 21:49:21 provisioning config files... 21:49:21 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/config4112890160215128522tmp [Pipeline] { [Pipeline] echo 21:49:21 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 21:49:21 ---> create-netrc.sh [Pipeline] } 21:49:22 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 21:49:22 ---> python-tools-install.sh [Pipeline] echo 21:49:22 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 21:49:22 ---> sudo-logs.sh 21:49:22 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 21:49:22 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 21:49:22 ---> job-cost.sh 21:49:22 lf-activate-venv: SKIPPING 21:49:22 DEBUG: total: 0.2199999988079071 21:49:22 INFO: Retrieving Stack Cost... 21:49:23 INFO: Retrieving Pricing Info for: v3-standard-8 21:49:23 INFO: Archiving Costs [Pipeline] echo 21:49:23 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 21:49:24 ---> logs-deploy.sh 21:49:24 lf-activate-venv: SKIPPING 21:49:24 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-318/8 21:49:24 INFO: archiving workspace using pattern(s): 21:49:24 Archives upload complete. 21:49:24 INFO: archiving logs to Nexus