Pull request #238 updated Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of farshidtz for edgexfoundry/device-rest-go Obtained Jenkinsfile from 87760132cb748e6c02fbbae85a5415a3b790d17f+6fa13eb64575055365d964780e4ff33f2e866ca2 (427c01ca2a1c77fb262f16c4e7560523d2c65692) 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-ssh3711210596688622223.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 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-ssh3029636442597283508.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 cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 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-238/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-238/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh6920120822584494705.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 # timeout=10 Commit message: "Merge pull request #420 from bill-mahoney/levski-update" > 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-ssh4015279167923299423.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-238/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-238/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh72950009040681960.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.18 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 Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-2243 in /w/workspace/gexfoundry_device-rest-go_PR-238 [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-238 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/238/head:refs/remotes/origin/PR-238 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 6fa13eb64575055365d964780e4ff33f2e866ca2 into PR head commit 87760132cb748e6c02fbbae85a5415a3b790d17f Merge succeeded, producing 87760132cb748e6c02fbbae85a5415a3b790d17f Checking out Revision 87760132cb748e6c02fbbae85a5415a3b790d17f (PR-238) > git config core.sparsecheckout # timeout=10 > git checkout -f 87760132cb748e6c02fbbae85a5415a3b790d17f # 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 6fa13eb64575055365d964780e4ff33f2e866ca2 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 87760132cb748e6c02fbbae85a5415a3b790d17f # timeout=10 Commit message: "fix: typo in install hook error message" > git rev-list --no-walk 0d3eec1d27d44da680434ec669f12479d9eb1b98 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 18:32:30 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 18:32:30 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 18:32:30 ========================================================= 18:32:30 EdgeX Global Pipelines Version Info 18:32:30 ========================================================= [Pipeline] libraryResource [Pipeline] sh 18:32:31 ------------------- 18:32:31 stable info: 18:32:31 ------------------- 18:32:31 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 18:32:31 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 18:32:31 Message: update stable to v1.0.244 18:32:31 ------------------- 18:32:31 experimental info: 18:32:31 ------------------- 18:32:31 Commited By: **** collab-it+edgex@linuxfoundation.org 18:32:31 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 18:32:31 Message: update experimental to v1.0.244 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 18:32:31 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.18 [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-238 [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-238 [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-238 [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 87760132cb748e6c02fbbae85a5415a3b790d17f [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 8776013 [Pipeline] echo 18:32:32 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 18:32:32 provisioning config files... 18:32:32 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-238@tmp/config994071937365896tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:32:32 ---> docker-login.sh 18:32:32 nexus3.edgexfoundry.org:10001 18:32:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:32:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:32:33 Configure a credential helper to remove this warning. See 18:32:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:32:33 18:32:33 Login Succeeded 18:32:33 nexus3.edgexfoundry.org:10002 18:32:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:32:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:32:33 Configure a credential helper to remove this warning. See 18:32:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:32:33 18:32:33 Login Succeeded 18:32:33 nexus3.edgexfoundry.org:10003 18:32:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:32:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:32:33 Configure a credential helper to remove this warning. See 18:32:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:32:33 18:32:33 Login Succeeded 18:32:33 nexus3.edgexfoundry.org:10004 18:32:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:32:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:32:33 Configure a credential helper to remove this warning. See 18:32:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:32:33 18:32:33 Login Succeeded 18:32:33 docker.io 18:32:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:32:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:32:33 Configure a credential helper to remove this warning. See 18:32:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:32:33 18:32:33 Login Succeeded 18:32:33 ---> docker-login.sh ends [Pipeline] } 18:32:33 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 18:32:34 + git rev-list -1 --merges 87760132cb748e6c02fbbae85a5415a3b790d17f~1..87760132cb748e6c02fbbae85a5415a3b790d17f [Pipeline] echo 18:32:34 -----------> git rev-list -1 --merges 87760132cb748e6c02fbbae85a5415a3b790d17f~1..87760132cb748e6c02fbbae85a5415a3b790d17f 87760132cb748e6c02fbbae85a5415a3b790d17f [false] [Pipeline] sh 18:32:34 + git log --format=format:%s -1 87760132cb748e6c02fbbae85a5415a3b790d17f [Pipeline] echo 18:32:34 ========================================================= 18:32:34 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 18:32:34 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 18:32:34 + git log --format=format:%s -1 87760132cb748e6c02fbbae85a5415a3b790d17f [Pipeline] echo 18:32:34 [semverPrep] GIT_COMMIT: 87760132cb748e6c02fbbae85a5415a3b790d17f, Commit Message: fix: typo in install hook error message [Pipeline] echo 18:32:34 [semverPrep] This is not a build commit. [Pipeline] sh 18:32:35 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 18:32:35 + grep -v github /etc/ssh/ssh_known_hosts 18:32:35 + [ -e /tmp/ssh_known_hosts ] 18:32:35 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 18:32:35 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 18:32:35 + sudo tee -a /etc/ssh/ssh_known_hosts 18:32:35 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:32:35 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 18:32:35 18:32:35 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:32:35 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 18:32:35 0.1.4: Pulling from edgex-devops/py-git-semver 18:32:35 b85a868b505f: Pulling fs layer 18:32:35 e2be974225ed: Pulling fs layer 18:32:35 339a4e72a1f5: Pulling fs layer 18:32:35 988bab9f4d93: Pulling fs layer 18:32:35 1469e6f7b9e6: Pulling fs layer 18:32:35 eaf3925da568: Pulling fs layer 18:32:35 1469e6f7b9e6: Waiting 18:32:35 988bab9f4d93: Waiting 18:32:35 bab4dde63d76: Pulling fs layer 18:32:35 bde34c3a00c8: Pulling fs layer 18:32:35 b352a97aabf1: Pulling fs layer 18:32:35 eaf3925da568: Waiting 18:32:35 bab4dde63d76: Waiting 18:32:35 bde34c3a00c8: Waiting 18:32:35 4872d77fe225: Pulling fs layer 18:32:35 b352a97aabf1: Waiting 18:32:35 5851b861e8e6: Pulling fs layer 18:32:35 4872d77fe225: Waiting 18:32:35 5851b861e8e6: Waiting 18:32:35 e2be974225ed: Download complete 18:32:35 988bab9f4d93: Verifying Checksum 18:32:35 988bab9f4d93: Download complete 18:32:36 1469e6f7b9e6: Verifying Checksum 18:32:36 1469e6f7b9e6: Download complete 18:32:36 eaf3925da568: Download complete 18:32:36 339a4e72a1f5: Verifying Checksum 18:32:36 339a4e72a1f5: Download complete 18:32:36 bde34c3a00c8: Download complete 18:32:36 b352a97aabf1: Download complete 18:32:36 4872d77fe225: Verifying Checksum 18:32:36 4872d77fe225: Download complete 18:32:36 5851b861e8e6: Download complete 18:32:36 b85a868b505f: Verifying Checksum 18:32:36 b85a868b505f: Download complete 18:32:36 bab4dde63d76: Verifying Checksum 18:32:36 bab4dde63d76: Download complete 18:32:37 b85a868b505f: Pull complete 18:32:37 e2be974225ed: Pull complete 18:32:38 339a4e72a1f5: Pull complete 18:32:38 988bab9f4d93: Pull complete 18:32:38 1469e6f7b9e6: Pull complete 18:32:38 eaf3925da568: Pull complete 18:32:40 bab4dde63d76: Pull complete 18:32:40 bde34c3a00c8: Pull complete 18:32:40 b352a97aabf1: Pull complete 18:32:40 4872d77fe225: Pull complete 18:32:40 5851b861e8e6: Pull complete 18:32:40 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 18:32:40 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 18:32:40 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:32:41 prd-ubuntu20.04-docker-8c-8g-2243 does not seem to be running inside a container 18:32:41 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-238 -v /w/workspace/gexfoundry_device-rest-go_PR-238:/w/workspace/gexfoundry_device-rest-go_PR-238:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-238@tmp:/w/workspace/gexfoundry_device-rest-go_PR-238@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-devops/py-git-semver:0.1.4 cat 18:32:42 $ docker top d3b818d440643be1ce15c30235e84c76315385185ec5c087ca752cc71c94bf0c -eo pid,comm 18:32:42 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). 18:32:42 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 18:32:42 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 18:32:42 [ssh-agent] Looking for ssh-agent implementation... 18:32:43 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 18:32:43 $ docker exec d3b818d440643be1ce15c30235e84c76315385185ec5c087ca752cc71c94bf0c ssh-agent 18:32:43 SSH_AUTH_SOCK=/tmp/ssh-pINHnk0q8iSk/agent.32 18:32:43 SSH_AGENT_PID=38 18:32:43 Running ssh-add (command line suppressed) 18:32:43 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-238@tmp/private_key_6863282284199055656.key (/w/workspace/gexfoundry_device-rest-go_PR-238@tmp/private_key_6863282284199055656.key) 18:32:43 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 18:32:43 + git tag --points-at HEAD [Pipeline] } 18:32:43 $ docker exec --env ******** --env ******** d3b818d440643be1ce15c30235e84c76315385185ec5c087ca752cc71c94bf0c ssh-agent -k 18:32:43 unset SSH_AUTH_SOCK; 18:32:43 unset SSH_AGENT_PID; 18:32:43 echo Agent pid 38 killed; 18:32:43 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 18:32:43 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 18:32:43 [ssh-agent] Looking for ssh-agent implementation... 18:32:43 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 18:32:43 $ docker exec d3b818d440643be1ce15c30235e84c76315385185ec5c087ca752cc71c94bf0c ssh-agent 18:32:44 SSH_AUTH_SOCK=/tmp/ssh-SVPCrmoo5vqF/agent.70 18:32:44 SSH_AGENT_PID=76 18:32:44 Running ssh-add (command line suppressed) 18:32:44 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-238@tmp/private_key_5122860221036445686.key (/w/workspace/gexfoundry_device-rest-go_PR-238@tmp/private_key_5122860221036445686.key) 18:32:44 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 18:32:44 + git semver init 18:32:44 2023-01-13 18:32:44,665 [run_init] DEBUG init version:0.0.0 force:False 18:32:44 2023-01-13 18:32:44,665 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-238/.semver 18:32:44 2023-01-13 18:32:44,666 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-238/.semver 18:32:44 2023-01-13 18:32:44,666 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-238/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-238, universal_newlines=False, shell=None, istream=None) 18:32:48 2023-01-13 18:32:48,192 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-238/.git/info/exclude 18:32:48 2023-01-13 18:32:48,192 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-238/.semver/PR-238 with force:False 18:32:48 2023-01-13 18:32:48,193 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-238/.semver/PR-238 18:32:48 2023-01-13 18:32:48,197 [execute] INFO git cat-file --batch-check 18:32:48 2023-01-13 18:32:48,198 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-238/.semver, universal_newlines=False, shell=None, istream=) 18:32:48 2023-01-13 18:32:48,205 [execute] INFO git cat-file --batch 18:32:48 2023-01-13 18:32:48,205 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-238/.semver, universal_newlines=False, shell=None, istream=) 18:32:48 2023-01-13 18:32:48,211 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-238/.semver/PR-238 18:32:48 0.0.0 [Pipeline] } 18:32:48 $ docker exec --env ******** --env ******** d3b818d440643be1ce15c30235e84c76315385185ec5c087ca752cc71c94bf0c ssh-agent -k 18:32:49 unset SSH_AUTH_SOCK; 18:32:49 unset SSH_AGENT_PID; 18:32:49 echo Agent pid 76 killed; 18:32:49 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 18:32:49 + git semver [Pipeline] } 18:32:49 $ docker stop --time=1 d3b818d440643be1ce15c30235e84c76315385185ec5c087ca752cc71c94bf0c 18:32:50 $ docker rm -f --volumes d3b818d440643be1ce15c30235e84c76315385185ec5c087ca752cc71c94bf0c [Pipeline] // withDockerContainer [Pipeline] sh 18:32:51 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 18:32:51 Stashed 1 file(s) [Pipeline] echo 18:32:51 [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 18:32:51 provisioning config files... 18:32:51 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-238@tmp/config4896775572702318180tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:32:51 ---> docker-login.sh 18:32:51 nexus3.edgexfoundry.org:10001 18:32:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:32:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:32:51 Configure a credential helper to remove this warning. See 18:32:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:32:51 18:32:51 Login Succeeded 18:32:51 nexus3.edgexfoundry.org:10002 18:32:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:32:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:32:51 Configure a credential helper to remove this warning. See 18:32:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:32:51 18:32:51 Login Succeeded 18:32:51 nexus3.edgexfoundry.org:10003 18:32:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:32:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:32:52 Configure a credential helper to remove this warning. See 18:32:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:32:52 18:32:52 Login Succeeded 18:32:52 nexus3.edgexfoundry.org:10004 18:32:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:32:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:32:52 Configure a credential helper to remove this warning. See 18:32:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:32:52 18:32:52 Login Succeeded 18:32:52 docker.io 18:32:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:32:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:32:52 Configure a credential helper to remove this warning. See 18:32:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:32:52 18:32:52 Login Succeeded 18:32:52 ---> docker-login.sh ends [Pipeline] } 18:32:52 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 18:32:52 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 18:32:52 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 18:32:52 ========================================================= 18:32:52 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine] 18:32:52 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:32:53 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine --build-arg MAKE=echo noop --target=builder . 18:32:53 Sending build context to Docker daemon 10.79MB 18:32:53 Step 1/12 : ARG BASE=golang:1.18-alpine3.16 18:32:53 Step 2/12 : FROM ${BASE} AS builder 18:32:53 1.18-alpine: Pulling from edgex-devops/edgex-golang-base 18:32:53 213ec9aee27d: Pulling fs layer 18:32:53 4583459ba037: Pulling fs layer 18:32:53 93c1e223e6f2: Pulling fs layer 18:32:53 53926ce57604: Pulling fs layer 18:32:53 21b2b0c7a3f4: Pulling fs layer 18:32:53 22ff95d597cd: Pulling fs layer 18:32:53 12d6caf4c0d1: Pulling fs layer 18:32:53 96b7cbca73a9: Pulling fs layer 18:32:53 a7acece74701: Pulling fs layer 18:32:53 22ff95d597cd: Waiting 18:32:53 12d6caf4c0d1: Waiting 18:32:53 53926ce57604: Waiting 18:32:53 96b7cbca73a9: Waiting 18:32:53 21b2b0c7a3f4: Waiting 18:32:53 a7acece74701: Waiting 18:32:53 93c1e223e6f2: Verifying Checksum 18:32:53 93c1e223e6f2: Download complete 18:32:53 4583459ba037: Verifying Checksum 18:32:53 4583459ba037: Download complete 18:32:53 21b2b0c7a3f4: Verifying Checksum 18:32:53 21b2b0c7a3f4: Download complete 18:32:53 22ff95d597cd: Verifying Checksum 18:32:53 22ff95d597cd: Download complete 18:32:53 213ec9aee27d: Verifying Checksum 18:32:53 213ec9aee27d: Download complete 18:32:53 12d6caf4c0d1: Verifying Checksum 18:32:53 12d6caf4c0d1: Download complete 18:32:53 213ec9aee27d: Pull complete 18:32:53 4583459ba037: Pull complete 18:32:53 93c1e223e6f2: Pull complete 18:32:53 a7acece74701: Verifying Checksum 18:32:53 a7acece74701: Download complete 18:32:54 53926ce57604: Verifying Checksum 18:32:54 53926ce57604: Download complete 18:32:54 96b7cbca73a9: Verifying Checksum 18:32:54 96b7cbca73a9: Download complete 18:32:58 53926ce57604: Pull complete 18:32:58 21b2b0c7a3f4: Pull complete 18:32:58 22ff95d597cd: Pull complete 18:32:58 12d6caf4c0d1: Pull complete 18:33:00 96b7cbca73a9: Pull complete 18:33:01 a7acece74701: Pull complete 18:33:01 Digest: sha256:f6a9ef70c52da88a2ff63a0c6767b24654f9f5185d1d85ca6cc3004fb48f6c2d 18:33:01 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine 18:33:01 ---> db6d94c90886 18:33:01 Step 3/12 : ARG ADD_BUILD_TAGS="" 18:33:04 ---> Running in 7b58820ea71b 18:33:04 Removing intermediate container 7b58820ea71b 18:33:04 ---> 5dc0ca90de94 18:33:04 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 18:33:04 ---> Running in 24940d3ec19c 18:33:04 Removing intermediate container 24940d3ec19c 18:33:04 ---> 8ee73f1cfd0d 18:33:04 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 18:33:04 ---> Running in 091f318eca27 18:33:04 Removing intermediate container 091f318eca27 18:33:04 ---> 464beb9de115 18:33:04 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 18:33:04 ---> Running in f7c15b0c3e24 18:33:04 Removing intermediate container f7c15b0c3e24 18:33:04 ---> bbeaa08cb72c 18:33:04 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 18:33:04 ---> Running in 92ceef27d737 18:33:04 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 18:33:04 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 18:33:05 (1/4) Installing openssh-keygen (9.0_p1-r2) 18:33:05 (2/4) Installing libedit (20210910.3.1-r0) 18:33:05 (3/4) Installing openssh-client-common (9.0_p1-r2) 18:33:05 (4/4) Installing openssh-client-default (9.0_p1-r2) 18:33:05 Executing busybox-1.35.0-r17.trigger 18:33:05 OK: 216 MiB in 55 packages 18:33:05 Removing intermediate container 92ceef27d737 18:33:05 ---> 04d772b211bf 18:33:05 Step 8/12 : WORKDIR /device-rest-go 18:33:05 ---> Running in 68f80af512be 18:33:05 Removing intermediate container 68f80af512be 18:33:05 ---> c8092afb34d7 18:33:05 Step 9/12 : COPY go.mod vendor* ./ 18:33:05 ---> 81b55ee2a661 18:33:05 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:33:05 ---> Running in 5878ba1233a1 18:33:06 Still waiting to schedule task 18:33:06 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-2242’ 18:33:27 Removing intermediate container 5878ba1233a1 18:33:27 ---> b563e1a69e25 18:33:27 Step 11/12 : COPY . . 18:33:27 ---> d7b91327f169 18:33:27 Step 12/12 : RUN $MAKE 18:33:27 ---> Running in 2cb5d608cb62 18:33:27 noop 18:33:27 Removing intermediate container 2cb5d608cb62 18:33:27 ---> a553949849f8 18:33:27 Successfully built a553949849f8 18:33:27 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:33:28 + docker inspect -f . ci-base-image-x86_64 18:33:28 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:33:28 prd-ubuntu20.04-docker-8c-8g-2243 does not seem to be running inside a container 18:33:28 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-238 -v /w/workspace/gexfoundry_device-rest-go_PR-238:/w/workspace/gexfoundry_device-rest-go_PR-238:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-238@tmp:/w/workspace/gexfoundry_device-rest-go_PR-238@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 ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 18:33:28 $ docker top 6f3198bc9551381ac356d65d503a9754b45fbc4e411f927150189ad8868dbc55 -eo pid,comm [Pipeline] { [Pipeline] sh 18:33:28 + go version 18:33:28 go version go1.18.7 linux/amd64 [Pipeline] } 18:33:28 $ docker stop --time=1 6f3198bc9551381ac356d65d503a9754b45fbc4e411f927150189ad8868dbc55 18:33:30 $ docker rm -f --volumes 6f3198bc9551381ac356d65d503a9754b45fbc4e411f927150189ad8868dbc55 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:33:30 + docker inspect -f . ci-base-image-x86_64 18:33:30 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:33:30 prd-ubuntu20.04-docker-8c-8g-2243 does not seem to be running inside a container 18:33:30 $ 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-238 -v /w/workspace/gexfoundry_device-rest-go_PR-238:/w/workspace/gexfoundry_device-rest-go_PR-238:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-238@tmp:/w/workspace/gexfoundry_device-rest-go_PR-238@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 ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 18:33:31 $ docker top 72aa882a9ed23f999cfe7f643e512ebaaed33f53041463ae86cbbaddef9c1bd3 -eo pid,comm [Pipeline] { [Pipeline] sh 18:33:31 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-238 [Pipeline] fileExists [Pipeline] sh 18:33:31 + make test 18:33:31 go test ./... -coverprofile=coverage.out ./... 18:33:31 ? github.com/edgexfoundry/device-rest-go [no test files] 18:33:41 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 18:33:41 ok github.com/edgexfoundry/device-rest-go/driver 0.011s coverage: 55.2% of statements 18:33:50 level=warning msg="[linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649." 18:33:50 go vet ./... 18:33:52 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 18:33:52 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 18:33:52 ./bin/test-attribution-txt.sh [Pipeline] echo 18:33:52 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 18:33:52 $ docker stop --time=1 72aa882a9ed23f999cfe7f643e512ebaaed33f53041463ae86cbbaddef9c1bd3 18:33:54 $ docker rm -f --volumes 72aa882a9ed23f999cfe7f643e512ebaaed33f53041463ae86cbbaddef9c1bd3 [Pipeline] // withDockerContainer [Pipeline] sh 18:33:55 + sudo chown -R jenkins:jenkins . [Pipeline] stash 18:33:55 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 18:33:55 + sudo chown -R jenkins:jenkins . [Pipeline] sh 18:33:55 + ls -al . 18:33:55 total 188 18:33:55 drwxrwxr-x 9 jenkins jenkins 4096 Jan 13 18:33 . 18:33:55 drwxrwxr-x 4 jenkins jenkins 4096 Jan 13 18:32 .. 18:33:55 -rw-rw-r-- 1 jenkins jenkins 151 Jan 13 18:32 .dockerignore 18:33:55 drwxrwxr-x 8 jenkins jenkins 4096 Jan 13 18:33 .git 18:33:55 drwxrwxr-x 3 jenkins jenkins 4096 Jan 13 18:32 .github 18:33:55 -rw-rw-r-- 1 jenkins jenkins 329 Jan 13 18:32 .gitignore 18:33:55 -rw-rw-r-- 1 jenkins jenkins 41 Jan 13 18:32 .golangci.yml 18:33:55 drwxr-xr-x 3 jenkins jenkins 4096 Jan 13 18:32 .semver 18:33:55 -rw-rw-r-- 1 jenkins jenkins 8996 Jan 13 18:32 Attribution.txt 18:33:55 -rw-rw-r-- 1 jenkins jenkins 13085 Jan 13 18:32 CHANGELOG.md 18:33:55 -rw-rw-r-- 1 jenkins jenkins 1578 Jan 13 18:32 Dockerfile 18:33:55 -rw-rw-r-- 1 jenkins jenkins 677 Jan 13 18:32 GOVERNANCE.md 18:33:55 -rw-rw-r-- 1 jenkins jenkins 680 Jan 13 18:32 Jenkinsfile 18:33:55 -rw-rw-r-- 1 jenkins jenkins 11340 Jan 13 18:32 LICENSE 18:33:55 -rw-rw-r-- 1 jenkins jenkins 1744 Jan 13 18:32 Makefile 18:33:55 -rw-rw-r-- 1 jenkins jenkins 620 Jan 13 18:32 OWNERS.md 18:33:55 -rw-rw-r-- 1 jenkins jenkins 8667 Jan 13 18:32 README.md 18:33:55 -rw-rw-r-- 1 jenkins jenkins 5 Jan 13 18:32 VERSION 18:33:55 drwxrwxr-x 2 jenkins jenkins 4096 Jan 13 18:32 bin 18:33:55 drwxrwxr-x 3 jenkins jenkins 4096 Jan 13 18:32 cmd 18:33:55 -rw-r--r-- 1 jenkins jenkins 9355 Jan 13 18:33 coverage.out 18:33:55 drwxrwxr-x 2 jenkins jenkins 4096 Jan 13 18:32 driver 18:33:55 -rw-rw-r-- 1 jenkins jenkins 3488 Jan 13 18:32 go.mod 18:33:55 -rw-rw-r-- 1 jenkins jenkins 45013 Jan 13 18:32 go.sum 18:33:55 drwxrwxr-x 4 jenkins jenkins 4096 Jan 13 18:32 snap 18:33:55 -rw-rw-r-- 1 jenkins jenkins 713 Jan 13 18:32 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:33:56 + 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=87760132cb748e6c02fbbae85a5415a3b790d17f --label arch=amd64 --label version=0.0.0 . 18:33:56 Sending build context to Docker daemon 10.8MB 18:33:56 Step 1/25 : ARG BASE=golang:1.18-alpine3.16 18:33:56 Step 2/25 : FROM ${BASE} AS builder 18:33:56 ---> a553949849f8 18:33:56 Step 3/25 : ARG ADD_BUILD_TAGS="" 18:33:56 ---> Running in aa4599730445 18:33:56 Removing intermediate container aa4599730445 18:33:56 ---> 84a026e7f825 18:33:56 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 18:33:56 ---> Running in e9827fe16a5f 18:33:56 Removing intermediate container e9827fe16a5f 18:33:56 ---> 4b2e96353441 18:33:56 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 18:33:56 ---> Running in fef239a87e91 18:33:56 Removing intermediate container fef239a87e91 18:33:56 ---> ec617d61c097 18:33:56 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 18:33:56 ---> Running in 27db5cfbd291 18:33:56 Removing intermediate container 27db5cfbd291 18:33:56 ---> 8c5f4cfab364 18:33:56 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 18:33:56 ---> Running in ae3b69941a6d 18:33:56 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 18:33:57 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 18:33:57 OK: 216 MiB in 55 packages 18:33:57 Removing intermediate container ae3b69941a6d 18:33:57 ---> ce0574ece62e 18:33:57 Step 8/25 : WORKDIR /device-rest-go 18:33:57 ---> Running in 19459b4889f9 18:33:57 Removing intermediate container 19459b4889f9 18:33:57 ---> c49ee4e94142 18:33:57 Step 9/25 : COPY go.mod vendor* ./ 18:33:58 ---> f8dcf77eddfe 18:33:58 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:33:58 ---> Running in 0db63322d190 18:33:58 Removing intermediate container 0db63322d190 18:33:58 ---> f0f5b85fd055 18:33:58 Step 11/25 : COPY . . 18:33:59 ---> f73ae703543c 18:33:59 Step 12/25 : RUN $MAKE 18:33:59 ---> Running in 28a229f82e2c 18:33:59 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 18:34:21 Removing intermediate container 28a229f82e2c 18:34:21 ---> 58fa747cef09 18:34:21 Step 13/25 : FROM alpine:3.16 18:34:21 3.16: Pulling from library/alpine 18:34:21 ca7dd9ec2225: Pulling fs layer 18:34:21 ca7dd9ec2225: Verifying Checksum 18:34:21 ca7dd9ec2225: Download complete 18:34:21 ca7dd9ec2225: Pull complete 18:34:21 Digest: sha256:b95359c2505145f16c6aa384f9cc74eeff78eb36d308ca4fd902eeeb0a0b161b 18:34:21 Status: Downloaded newer image for alpine:3.16 18:34:21 ---> bfe296a52501 18:34:21 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 18:34:21 ---> Running in 704b2086014b 18:34:21 Removing intermediate container 704b2086014b 18:34:21 ---> 14b7a74728f3 18:34:21 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 18:34:21 ---> Running in cd00bfee0b22 18:34:21 Removing intermediate container cd00bfee0b22 18:34:21 ---> 87faf1f1b7c7 18:34:21 Step 16/25 : RUN apk add --update --no-cache dumb-init 18:34:21 ---> Running in d23cf58d82b4 18:34:21 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 18:34:21 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 18:34:21 (1/1) Installing dumb-init (1.2.5-r1) 18:34:21 Executing busybox-1.35.0-r17.trigger 18:34:21 OK: 6 MiB in 15 packages 18:34:21 Removing intermediate container d23cf58d82b4 18:34:21 ---> c96baa5115f7 18:34:21 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 18:34:21 ---> 2f2fb8e10891 18:34:21 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 18:34:21 ---> a329c66815aa 18:34:21 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 18:34:21 ---> 029cae08c04f 18:34:21 Step 20/25 : EXPOSE 59986 18:34:21 ---> Running in 9352ff238922 18:34:21 Removing intermediate container 9352ff238922 18:34:21 ---> 945149aed8c7 18:34:21 Step 21/25 : ENTRYPOINT ["/device-rest"] 18:34:21 ---> Running in 9acfa93073c9 18:34:21 Removing intermediate container 9acfa93073c9 18:34:21 ---> 6f79b13ea374 18:34:21 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 18:34:21 ---> Running in ece2f3ec5349 18:34:21 Removing intermediate container ece2f3ec5349 18:34:21 ---> 1a17d6fef910 18:34:21 Step 23/25 : LABEL arch=amd64 18:34:21 ---> Running in 74ab86bcd558 18:34:21 Removing intermediate container 74ab86bcd558 18:34:21 ---> c92cddbc49d8 18:34:21 Step 24/25 : LABEL git_sha=87760132cb748e6c02fbbae85a5415a3b790d17f 18:34:21 ---> Running in cbe3198fbed4 18:34:22 Removing intermediate container cbe3198fbed4 18:34:22 ---> 2ff1b73aaa4e 18:34:22 Step 25/25 : LABEL version=0.0.0 18:34:22 ---> Running in d93c48bb8cb3 18:34:22 Removing intermediate container d93c48bb8cb3 18:34:22 ---> ef5930aa7cf4 18:34:22 [Warning] One or more build-args [ARCH] were not consumed 18:34:22 Successfully built ef5930aa7cf4 18:34:22 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 18:34:22 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:34:22 18:34:22 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:34:22 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:34:22 latest: Pulling from edgex-lftools-log-publisher 18:34:22 5eb5b503b376: Pulling fs layer 18:34:22 5c69ac0246d0: Pulling fs layer 18:34:22 ec43610c2a17: Pulling fs layer 18:34:22 3a2ae6a8a46f: Pulling fs layer 18:34:22 33b1e0a273af: Pulling fs layer 18:34:22 5d3b04190fa2: Pulling fs layer 18:34:22 2f39f015ded8: Pulling fs layer 18:34:22 5d3b04190fa2: Waiting 18:34:22 3a2ae6a8a46f: Waiting 18:34:22 33b1e0a273af: Waiting 18:34:22 2f39f015ded8: Waiting 18:34:22 5c69ac0246d0: Verifying Checksum 18:34:22 5c69ac0246d0: Download complete 18:34:22 3a2ae6a8a46f: Verifying Checksum 18:34:22 3a2ae6a8a46f: Download complete 18:34:23 33b1e0a273af: Verifying Checksum 18:34:23 33b1e0a273af: Download complete 18:34:23 ec43610c2a17: Verifying Checksum 18:34:23 ec43610c2a17: Download complete 18:34:23 5d3b04190fa2: Verifying Checksum 18:34:23 5d3b04190fa2: Download complete 18:34:23 5eb5b503b376: Verifying Checksum 18:34:23 5eb5b503b376: Download complete 18:34:23 2f39f015ded8: Download complete 18:34:24 5eb5b503b376: Pull complete 18:34:24 5c69ac0246d0: Pull complete 18:34:25 ec43610c2a17: Pull complete 18:34:25 3a2ae6a8a46f: Pull complete 18:34:25 33b1e0a273af: Pull complete 18:34:25 5d3b04190fa2: Pull complete 18:34:29 2f39f015ded8: Pull complete 18:34:29 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 18:34:29 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:34:29 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:34:29 prd-ubuntu20.04-docker-8c-8g-2243 does not seem to be running inside a container 18:34:29 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-238 -v /w/workspace/gexfoundry_device-rest-go_PR-238:/w/workspace/gexfoundry_device-rest-go_PR-238:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-238@tmp:/w/workspace/gexfoundry_device-rest-go_PR-238@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 ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 18:34:31 $ docker top 2715176706b6406fbc9ec81c97abbddc01a1e6cf87814499ad87e39add6ca467 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:34:32 ---> job-cost.sh 18:34:32 lf-activate-venv: SKIPPING 18:34:32 INFO: No Stack... 18:34:32 INFO: Retrieving Pricing Info for: v3-standard-8 18:34:32 INFO: Archiving Costs [Pipeline] sh 18:34:33 + cat /w/workspace/gexfoundry_device-rest-go_PR-238/archives/cost.csv 18:34:33 + cut -d, -f6 [Pipeline] lock 18:34:33 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-238-2-stack-cost] 18:34:33 Resource [jenkins-edgexfoundry-device-rest-go-PR-238-2-stack-cost] did not exist. Created. 18:34:33 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-238-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 18:34:33 + echo total: 0.2199999988079071 [Pipeline] stash 18:34:33 Stashed 1 file(s) [Pipeline] } 18:34:33 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-238-2-stack-cost] [Pipeline] // lock [Pipeline] } 18:34:33 $ docker stop --time=1 2715176706b6406fbc9ec81c97abbddc01a1e6cf87814499ad87e39add6ca467 18:34:34 $ docker rm -f --volumes 2715176706b6406fbc9ec81c97abbddc01a1e6cf87814499ad87e39add6ca467 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 18:36:18 Running on prd-ubuntu20.04-docker-arm64-4c-16g-2244 in /w/workspace/gexfoundry_device-rest-go_PR-238 [Pipeline] { [Pipeline] ws 18:36:18 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 18:36:18 The recommended git tool is: git 18:36:24 using credential edgex-jenkins-ssh 18:36:24 Cloning the remote Git repository 18:36:24 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 18:36:24 > git init /w/workspace/device-rest-go/2 # timeout=10 18:36:24 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 18:36:24 > git --version # timeout=10 18:36:24 > git --version # 'git version 2.25.1' 18:36:24 using GIT_SSH to set credentials SSH Credentials for GitHub 18:36:24 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 18:36:26 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 18:36:26 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 18:36:28 Merging remotes/origin/main commit 6fa13eb64575055365d964780e4ff33f2e866ca2 into PR head commit 87760132cb748e6c02fbbae85a5415a3b790d17f 18:36:27 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 18:36:27 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 18:36:27 using GIT_SSH to set credentials SSH Credentials for GitHub 18:36:27 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/238/head:refs/remotes/origin/PR-238 +refs/heads/main:refs/remotes/origin/main # timeout=10 18:36:28 > git config core.sparsecheckout # timeout=10 18:36:28 > git checkout -f 87760132cb748e6c02fbbae85a5415a3b790d17f # timeout=10 18:36:28 > git remote # timeout=10 18:36:28 > git config --get remote.origin.url # timeout=10 18:36:28 Merge succeeded, producing 87760132cb748e6c02fbbae85a5415a3b790d17f 18:36:28 Checking out Revision 87760132cb748e6c02fbbae85a5415a3b790d17f (PR-238) 18:36:28 using GIT_SSH to set credentials SSH Credentials for GitHub 18:36:28 > git merge 6fa13eb64575055365d964780e4ff33f2e866ca2 # timeout=10 18:36:28 > git rev-parse HEAD^{commit} # timeout=10 18:36:28 > git config core.sparsecheckout # timeout=10 18:36:28 > git checkout -f 87760132cb748e6c02fbbae85a5415a3b790d17f # timeout=10 18:36:32 Commit message: "fix: typo in install hook error message" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 18:36:33 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 18:36:33 % Total % Received % Xferd Average Speed Time Time Time Current 18:36:33 Dload Upload Total Spent Left Speed 18:36:33 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 197k 0 --:--:-- --:--:-- --:--:-- 197k [Pipeline] sh 18:36:33 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 18:36:34 + sudo tee /etc/docker/daemon.new 18:36:34 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 18:36:34 { 18:36:34 "registry-mirrors": [ 18:36:34 "https://nexus3.edgexfoundry.org:10001" 18:36:34 ], 18:36:34 "bip": "10.250.0.254/24", 18:36:34 "hosts": [ 18:36:34 "tcp://0.0.0.0:5555", 18:36:34 "unix:///var/run/docker.sock" 18:36:34 ], 18:36:34 "mtu": 1458, 18:36:34 "selinux-enabled": true, 18:36:34 "seccomp-profile": "/etc/docker/seccomp.json" 18:36:34 } [Pipeline] sh 18:36:34 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 18:36:35 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 18:36:53 provisioning config files... 18:36:53 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config347478797055214334tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:36:53 ---> docker-login.sh 18:36:53 nexus3.edgexfoundry.org:10001 18:36:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:36:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:36:54 Configure a credential helper to remove this warning. See 18:36:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:36:54 18:36:54 Login Succeeded 18:36:54 nexus3.edgexfoundry.org:10002 18:36:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:36:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:36:54 Configure a credential helper to remove this warning. See 18:36:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:36:54 18:36:54 Login Succeeded 18:36:54 nexus3.edgexfoundry.org:10003 18:36:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:36:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:36:55 Configure a credential helper to remove this warning. See 18:36:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:36:55 18:36:55 Login Succeeded 18:36:55 nexus3.edgexfoundry.org:10004 18:36:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:36:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:36:55 Configure a credential helper to remove this warning. See 18:36:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:36:55 18:36:55 Login Succeeded 18:36:55 docker.io 18:36:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:36:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:36:55 Configure a credential helper to remove this warning. See 18:36:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:36:55 18:36:55 Login Succeeded 18:36:55 ---> docker-login.sh ends [Pipeline] } 18:36:56 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 18:36:56 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 18:36:56 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 18:36:56 ========================================================= 18:36:56 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine] 18:36:56 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:36:56 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine --build-arg MAKE=echo noop --target=builder . 18:36:56 Sending build context to Docker daemon 127kB 18:36:56 Step 1/12 : ARG BASE=golang:1.18-alpine3.16 18:36:56 Step 2/12 : FROM ${BASE} AS builder 18:36:57 1.18-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 18:36:57 9b18e9b68314: Pulling fs layer 18:36:57 35d82f9e3411: Pulling fs layer 18:36:57 e16973657156: Pulling fs layer 18:36:57 fc693d55d65f: Pulling fs layer 18:36:57 7e9fc2657dce: Pulling fs layer 18:36:57 dda99020689f: Pulling fs layer 18:36:57 db1c61fa0a46: Pulling fs layer 18:36:57 891c053d2c06: Pulling fs layer 18:36:57 dda99020689f: Waiting 18:36:57 db1c61fa0a46: Waiting 18:36:57 891c053d2c06: Waiting 18:36:57 fc693d55d65f: Waiting 18:36:57 7e9fc2657dce: Waiting 18:36:57 e16973657156: Download complete 18:36:57 35d82f9e3411: Verifying Checksum 18:36:57 35d82f9e3411: Download complete 18:36:57 7e9fc2657dce: Verifying Checksum 18:36:57 7e9fc2657dce: Download complete 18:36:57 dda99020689f: Verifying Checksum 18:36:57 dda99020689f: Download complete 18:36:57 9b18e9b68314: Verifying Checksum 18:36:57 9b18e9b68314: Download complete 18:36:58 9b18e9b68314: Pull complete 18:36:58 891c053d2c06: Verifying Checksum 18:36:58 891c053d2c06: Download complete 18:36:59 35d82f9e3411: Pull complete 18:36:59 e16973657156: Pull complete 18:37:00 db1c61fa0a46: Verifying Checksum 18:37:00 db1c61fa0a46: Download complete 18:37:00 fc693d55d65f: Verifying Checksum 18:37:00 fc693d55d65f: Download complete 18:37:12 fc693d55d65f: Pull complete 18:37:12 7e9fc2657dce: Pull complete 18:37:12 dda99020689f: Pull complete 18:37:18 db1c61fa0a46: Pull complete 18:37:19 891c053d2c06: Pull complete 18:37:19 Digest: sha256:2cacf8bfc28650abd52610e42dcfc04852e818eb73900ea96edaef96a54d0b45 18:37:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine 18:37:19 ---> f96f9c87975a 18:37:19 Step 3/12 : ARG ADD_BUILD_TAGS="" 18:37:21 ---> Running in 24f36ba733c0 18:37:22 Removing intermediate container 24f36ba733c0 18:37:22 ---> c31a0bfd6561 18:37:22 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 18:37:22 ---> Running in 0311ce432126 18:37:22 Removing intermediate container 0311ce432126 18:37:22 ---> d8eead649162 18:37:22 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 18:37:22 ---> Running in bdddc56f132d 18:37:22 Removing intermediate container bdddc56f132d 18:37:22 ---> 98bfe3dcafe1 18:37:22 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 18:37:22 ---> Running in 3beda0c7b6bf 18:37:23 Removing intermediate container 3beda0c7b6bf 18:37:23 ---> 0903533ec28c 18:37:23 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 18:37:23 ---> Running in ee087845541e 18:37:24 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 18:37:24 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 18:37:25 (1/4) Installing openssh-keygen (9.0_p1-r2) 18:37:25 (2/4) Installing libedit (20210910.3.1-r0) 18:37:25 (3/4) Installing openssh-client-common (9.0_p1-r2) 18:37:25 (4/4) Installing openssh-client-default (9.0_p1-r2) 18:37:26 Executing busybox-1.35.0-r17.trigger 18:37:26 OK: 226 MiB in 55 packages 18:37:27 Removing intermediate container ee087845541e 18:37:27 ---> b54e60f5dfcb 18:37:27 Step 8/12 : WORKDIR /device-rest-go 18:37:27 ---> Running in 88b4e8a5e7e6 18:37:27 Removing intermediate container 88b4e8a5e7e6 18:37:27 ---> 2d604c9c0634 18:37:27 Step 9/12 : COPY go.mod vendor* ./ 18:37:27 ---> 0f0a61480e00 18:37:27 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:37:28 ---> Running in 5e815b129663 18:38:24 Removing intermediate container 5e815b129663 18:38:24 ---> 599d3ee98aeb 18:38:24 Step 11/12 : COPY . . 18:38:24 ---> f957c893227a 18:38:24 Step 12/12 : RUN $MAKE 18:38:24 ---> Running in 685fbf02f053 18:38:25 noop 18:38:25 Removing intermediate container 685fbf02f053 18:38:25 ---> 0f1fc2f90d2f 18:38:25 Successfully built 0f1fc2f90d2f 18:38:25 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:38:26 + docker inspect -f . ci-base-image-arm64 18:38:26 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:38:26 prd-ubuntu20.04-docker-arm64-4c-16g-2244 does not seem to be running inside a container 18:38:26 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 18:38:27 $ docker top f9013645f8a31cd36019716b367231f129a6bd7e7aab4a0a6e579edba24f269a -eo pid,comm [Pipeline] { [Pipeline] sh 18:38:28 + go version 18:38:28 go version go1.18.7 linux/arm64 [Pipeline] } 18:38:28 $ docker stop --time=1 f9013645f8a31cd36019716b367231f129a6bd7e7aab4a0a6e579edba24f269a 18:38:30 $ docker rm -f --volumes f9013645f8a31cd36019716b367231f129a6bd7e7aab4a0a6e579edba24f269a [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:38:30 + docker inspect -f . ci-base-image-arm64 18:38:30 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:38:31 prd-ubuntu20.04-docker-arm64-4c-16g-2244 does not seem to be running inside a container 18:38:31 $ 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/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 18:38:32 $ docker top 58cd29e9583ac15200bfdd240f9fe6512d0bbf3f46608ea521995da72bb7427f -eo pid,comm [Pipeline] { [Pipeline] sh 18:38:33 + git config --global --add safe.directory /w/workspace/device-rest-go/2 [Pipeline] fileExists [Pipeline] sh 18:38:33 + make test 18:38:33 go test ./... -coverprofile=coverage.out ./... 18:38:35 ? github.com/edgexfoundry/device-rest-go [no test files] 18:39:56 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 18:39:56 ok github.com/edgexfoundry/device-rest-go/driver 0.061s coverage: 55.2% of statements 18:39:56 WARNING: Linting skipped (not on x86_64 or linter not installed) 18:39:56 go vet ./... 18:40:19 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 18:40:19 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 18:40:19 ./bin/test-attribution-txt.sh [Pipeline] echo 18:40:19 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 18:40:19 $ docker stop --time=1 58cd29e9583ac15200bfdd240f9fe6512d0bbf3f46608ea521995da72bb7427f 18:40:20 $ docker rm -f --volumes 58cd29e9583ac15200bfdd240f9fe6512d0bbf3f46608ea521995da72bb7427f [Pipeline] // withDockerContainer [Pipeline] sh 18:40:21 + sudo chown -R jenkins:jenkins . [Pipeline] stash 18:40:21 Warning: overwriting stash ‘coverage-report’ 18:40:22 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 18:40:22 + sudo chown -R jenkins:jenkins . [Pipeline] sh 18:40:23 + ls -al . 18:40:23 total 184 18:40:23 drwxrwxr-x 8 jenkins jenkins 4096 Jan 13 18:38 . 18:40:23 drwxrwxr-x 4 jenkins jenkins 4096 Jan 13 18:36 .. 18:40:23 -rw-rw-r-- 1 jenkins jenkins 151 Jan 13 18:36 .dockerignore 18:40:23 drwxrwxr-x 8 jenkins jenkins 4096 Jan 13 18:36 .git 18:40:23 drwxrwxr-x 3 jenkins jenkins 4096 Jan 13 18:36 .github 18:40:23 -rw-rw-r-- 1 jenkins jenkins 329 Jan 13 18:36 .gitignore 18:40:23 -rw-rw-r-- 1 jenkins jenkins 41 Jan 13 18:36 .golangci.yml 18:40:23 -rw-rw-r-- 1 jenkins jenkins 8996 Jan 13 18:36 Attribution.txt 18:40:23 -rw-rw-r-- 1 jenkins jenkins 13085 Jan 13 18:36 CHANGELOG.md 18:40:23 -rw-rw-r-- 1 jenkins jenkins 1578 Jan 13 18:36 Dockerfile 18:40:23 -rw-rw-r-- 1 jenkins jenkins 677 Jan 13 18:36 GOVERNANCE.md 18:40:23 -rw-rw-r-- 1 jenkins jenkins 680 Jan 13 18:36 Jenkinsfile 18:40:23 -rw-rw-r-- 1 jenkins jenkins 11340 Jan 13 18:36 LICENSE 18:40:23 -rw-rw-r-- 1 jenkins jenkins 1744 Jan 13 18:36 Makefile 18:40:23 -rw-rw-r-- 1 jenkins jenkins 620 Jan 13 18:36 OWNERS.md 18:40:23 -rw-rw-r-- 1 jenkins jenkins 8667 Jan 13 18:36 README.md 18:40:23 -rw-rw-r-- 1 jenkins jenkins 5 Jan 13 18:32 VERSION 18:40:23 drwxrwxr-x 2 jenkins jenkins 4096 Jan 13 18:36 bin 18:40:23 drwxrwxr-x 3 jenkins jenkins 4096 Jan 13 18:36 cmd 18:40:23 -rw-r--r-- 1 jenkins jenkins 9355 Jan 13 18:39 coverage.out 18:40:23 drwxrwxr-x 2 jenkins jenkins 4096 Jan 13 18:36 driver 18:40:23 -rw-rw-r-- 1 jenkins jenkins 3488 Jan 13 18:36 go.mod 18:40:23 -rw-rw-r-- 1 jenkins jenkins 45013 Jan 13 18:36 go.sum 18:40:23 drwxrwxr-x 4 jenkins jenkins 4096 Jan 13 18:36 snap 18:40:23 -rw-rw-r-- 1 jenkins jenkins 713 Jan 13 18:36 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:40:23 + 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=87760132cb748e6c02fbbae85a5415a3b790d17f --label arch=arm64 --label version=0.0.0 . 18:40:23 Sending build context to Docker daemon 137.2kB 18:40:23 Step 1/25 : ARG BASE=golang:1.18-alpine3.16 18:40:23 Step 2/25 : FROM ${BASE} AS builder 18:40:23 ---> 0f1fc2f90d2f 18:40:23 Step 3/25 : ARG ADD_BUILD_TAGS="" 18:40:23 ---> Running in af02856a32e0 18:40:24 Removing intermediate container af02856a32e0 18:40:24 ---> 0bc0be7ed236 18:40:24 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 18:40:24 ---> Running in 17bd266e65ac 18:40:24 Removing intermediate container 17bd266e65ac 18:40:24 ---> 874223c358c7 18:40:24 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 18:40:24 ---> Running in 6578bc5e5c70 18:40:24 Removing intermediate container 6578bc5e5c70 18:40:24 ---> 4995cda44f11 18:40:24 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 18:40:24 ---> Running in ffa76cbc04ae 18:40:25 Removing intermediate container ffa76cbc04ae 18:40:25 ---> 2418da26ca39 18:40:25 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 18:40:25 ---> Running in f0ca4ea6b760 18:40:26 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 18:40:26 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 18:40:27 OK: 226 MiB in 55 packages 18:40:28 Removing intermediate container f0ca4ea6b760 18:40:28 ---> 8dc9730e8651 18:40:28 Step 8/25 : WORKDIR /device-rest-go 18:40:29 ---> Running in 00c11ccdd443 18:40:29 Removing intermediate container 00c11ccdd443 18:40:29 ---> 50031ec047ae 18:40:29 Step 9/25 : COPY go.mod vendor* ./ 18:40:30 ---> 04efaf7c23fc 18:40:30 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:40:30 ---> Running in 859c7ced29b5 18:40:32 Removing intermediate container 859c7ced29b5 18:40:32 ---> 467f49693f79 18:40:32 Step 11/25 : COPY . . 18:40:32 ---> 7c3f5db52742 18:40:32 Step 12/25 : RUN $MAKE 18:40:32 ---> Running in 423b46c9f26a 18:40:34 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 18:43:10 Removing intermediate container 423b46c9f26a 18:43:10 ---> 479878e83e18 18:43:10 Step 13/25 : FROM alpine:3.16 18:43:10 3.16: Pulling from library/alpine 18:43:10 6875df1f5354: Pulling fs layer 18:43:10 6875df1f5354: Verifying Checksum 18:43:10 6875df1f5354: Download complete 18:43:10 6875df1f5354: Pull complete 18:43:10 Digest: sha256:b95359c2505145f16c6aa384f9cc74eeff78eb36d308ca4fd902eeeb0a0b161b 18:43:10 Status: Downloaded newer image for alpine:3.16 18:43:10 ---> 2b4661558fb8 18:43:10 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 18:43:10 ---> Running in 9ecaae8f997c 18:43:10 Removing intermediate container 9ecaae8f997c 18:43:10 ---> df5753583e46 18:43:10 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 18:43:10 ---> Running in 4ea27979b39d 18:43:10 Removing intermediate container 4ea27979b39d 18:43:10 ---> 3ee9e733d342 18:43:10 Step 16/25 : RUN apk add --update --no-cache dumb-init 18:43:10 ---> Running in 649db7fb20bb 18:43:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 18:43:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 18:43:10 (1/1) Installing dumb-init (1.2.5-r1) 18:43:10 Executing busybox-1.35.0-r17.trigger 18:43:10 OK: 5 MiB in 15 packages 18:43:10 Removing intermediate container 649db7fb20bb 18:43:10 ---> 404a80192486 18:43:10 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 18:43:10 ---> c0d5df0ed3d6 18:43:10 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 18:43:10 ---> 48928b8b6d5b 18:43:10 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 18:43:10 ---> f16dfc7d6acb 18:43:10 Step 20/25 : EXPOSE 59986 18:43:10 ---> Running in ead4104bfe57 18:43:10 Removing intermediate container ead4104bfe57 18:43:10 ---> 86d06deac2e3 18:43:10 Step 21/25 : ENTRYPOINT ["/device-rest"] 18:43:10 ---> Running in ae86321d049f 18:43:10 Removing intermediate container ae86321d049f 18:43:10 ---> d4ed157598e2 18:43:10 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 18:43:10 ---> Running in 26e9b1313b68 18:43:11 Removing intermediate container 26e9b1313b68 18:43:11 ---> a863224f0a23 18:43:11 Step 23/25 : LABEL arch=arm64 18:43:11 ---> Running in fe840e71bd89 18:43:11 Removing intermediate container fe840e71bd89 18:43:11 ---> 6b0c9132b2bf 18:43:11 Step 24/25 : LABEL git_sha=87760132cb748e6c02fbbae85a5415a3b790d17f 18:43:11 ---> Running in 9c560c0bdca1 18:43:11 Removing intermediate container 9c560c0bdca1 18:43:11 ---> 1c6cef4311f5 18:43:11 Step 25/25 : LABEL version=0.0.0 18:43:11 ---> Running in 86cabe65377c 18:43:12 Removing intermediate container 86cabe65377c 18:43:12 ---> 7016d57a0347 18:43:12 [Warning] One or more build-args [ARCH] were not consumed 18:43:12 Successfully built 7016d57a0347 18:43:12 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 18:43:12 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:43:12 18:43:12 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:43:13 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:43:13 arm64: Pulling from edgex-lftools-log-publisher 18:43:13 8998bd30e6a1: Pulling fs layer 18:43:13 04944245beec: Pulling fs layer 18:43:13 699f458cf7ca: Pulling fs layer 18:43:13 765212b225bb: Pulling fs layer 18:43:13 f23df028b6ca: Pulling fs layer 18:43:13 d65c8cfc05b1: Pulling fs layer 18:43:13 2437ff75d9bd: Pulling fs layer 18:43:13 f23df028b6ca: Waiting 18:43:13 d65c8cfc05b1: Waiting 18:43:13 2437ff75d9bd: Waiting 18:43:13 765212b225bb: Waiting 18:43:13 04944245beec: Verifying Checksum 18:43:13 04944245beec: Download complete 18:43:13 765212b225bb: Verifying Checksum 18:43:13 765212b225bb: Download complete 18:43:13 f23df028b6ca: Verifying Checksum 18:43:13 f23df028b6ca: Download complete 18:43:13 d65c8cfc05b1: Verifying Checksum 18:43:13 d65c8cfc05b1: Download complete 18:43:13 699f458cf7ca: Download complete 18:43:14 8998bd30e6a1: Download complete 18:43:16 2437ff75d9bd: Verifying Checksum 18:43:16 2437ff75d9bd: Download complete 18:43:18 8998bd30e6a1: Pull complete 18:43:18 04944245beec: Pull complete 18:43:20 699f458cf7ca: Pull complete 18:43:20 765212b225bb: Pull complete 18:43:21 f23df028b6ca: Pull complete 18:43:21 d65c8cfc05b1: Pull complete 18:43:36 2437ff75d9bd: Pull complete 18:43:36 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 18:43:36 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:43:36 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:43:36 prd-ubuntu20.04-docker-arm64-4c-16g-2244 does not seem to be running inside a container 18:43:36 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@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 ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 18:43:39 $ docker top 13d2d774ba7c8ac20593e1b3b18a8e53e70cad8dc8740092c0354a301a3f5ae9 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:43:40 ---> job-cost.sh 18:43:40 lf-activate-venv: SKIPPING 18:43:40 INFO: No Stack... 18:43:41 INFO: Retrieving Pricing Info for: v3-standard-4 18:43:42 INFO: Archiving Costs [Pipeline] sh 18:43:42 + cut -d, -f6 18:43:42 + cat /w/workspace/device-rest-go/2/archives/cost.csv [Pipeline] lock 18:43:42 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-238-2-stack-cost] 18:43:42 Resource [jenkins-edgexfoundry-device-rest-go-PR-238-2-stack-cost] did not exist. Created. 18:43:42 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-238-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 18:43:43 /w/workspace/device-rest-go/2@tmp/durable-0fd7d30f/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 18:43:44 + echo total: 0.10999999940395355 [Pipeline] stash 18:43:44 Warning: overwriting stash ‘stack-cost’ 18:43:44 Stashed 1 file(s) [Pipeline] } 18:43:44 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-238-2-stack-cost] [Pipeline] // lock [Pipeline] } 18:43:44 $ docker stop --time=1 13d2d774ba7c8ac20593e1b3b18a8e53e70cad8dc8740092c0354a301a3f5ae9 18:43:45 $ docker rm -f --volumes 13d2d774ba7c8ac20593e1b3b18a8e53e70cad8dc8740092c0354a301a3f5ae9 [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 18:43:46 provisioning config files... 18:43:46 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-238@tmp/config11423500885475021545tmp [Pipeline] { [Pipeline] sh 18:43:46 + set +x 18:43:46 + curl+ -s https://codecov.io/bash 18:43:46 bash -s -- 18:43:46 18:43:46 _____ _ 18:43:46 / ____| | | 18:43:46 | | ___ __| | ___ ___ _____ __ 18:43:46 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 18:43:46 | |___| (_) | (_| | __/ (_| (_) \ V / 18:43:46 \_____\___/ \__,_|\___|\___\___/ \_/ 18:43:46 Bash-1.0.6 18:43:46 18:43:46 18:43:46 ==> git version 2.25.1 found 18:43:46 ==> 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 18:43:46 Release-Date: 2020-01-08 18:43:46 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 18:43:46 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 18:43:46 ==> Jenkins CI detected. 18:43:46 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-238 18:43:46 project root: . 18:43:46 --> token set from env 18:43:46 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 18:43:46 ==> Running gcov in . (disable via -X gcov) 18:43:46 ==> Python coveragepy not found 18:43:46 ==> Searching for coverage reports in: 18:43:46 + . 18:43:46 -> Found 1 reports 18:43:46 ==> Detecting git/mercurial file structure 18:43:46 ==> Reading reports 18:43:46 + ./coverage.out bytes=9355 18:43:46 ==> Appending adjustments 18:43:46 https://docs.codecov.io/docs/fixing-reports 18:43:46 + Found adjustments 18:43:46 ==> Gzipping contents 18:43:46 4.0K /tmp/codecov.gOhb5X.gz 18:43:46 ==> Uploading reports 18:43:46 url: https://codecov.io 18:43:46 query: branch=PR-238&commit=87760132cb748e6c02fbbae85a5415a3b790d17f&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-238%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=238&job=&cmd_args= 18:43:46 -> Pinging Codecov 18:43:46 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-238&commit=87760132cb748e6c02fbbae85a5415a3b790d17f&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-238%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=238&job=&cmd_args= 18:43:47 -> Uploading to 18:43:47 https://storage.googleapis.com/codecov/v4/raw/2023-01-13/4E5D53B4F1F92C436F7061BF334D961C/87760132cb748e6c02fbbae85a5415a3b790d17f/36cb14ce-0ebb-4632-afea-c95414f14ae6.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230113%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230113T184347Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=30243e7223243821ae9acaa4b32f147daf3713039c7a8fcc6bfb35aef6066710 18:43:47 % Total % Received % Xferd Average Speed Time Time Time Current 18:43:47 Dload Upload Total Spent Left Speed 18:43:47 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1713 0 0 100 1713 0 6031 --:--:-- --:--:-- --:--:-- 6031 18:43:47 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/87760132cb748e6c02fbbae85a5415a3b790d17f [Pipeline] } 18:43:47 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 18:43:48 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-238/archives ] 18:43:48 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-238/archives 18:43:48 total 16 18:43:48 drwxr-xr-x 3 root root 4096 Jan 13 18:34 . 18:43:48 drwxrwxr-x 10 jenkins jenkins 4096 Jan 13 18:34 .. 18:43:48 drwxr-xr-x 2 root root 4096 Jan 13 18:34 cost 18:43:48 -rw-r--r-- 1 root root 86 Jan 13 18:34 cost.csv 18:43:48 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-238/archives 18:43:48 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-238/archives 18:43:48 total 16 18:43:48 drwxr-xr-x 3 jenkins jenkins 4096 Jan 13 18:34 . 18:43:48 drwxrwxr-x 10 jenkins jenkins 4096 Jan 13 18:34 .. 18:43:48 drwxr-xr-x 2 jenkins jenkins 4096 Jan 13 18:34 cost 18:43:48 -rw-r--r-- 1 jenkins jenkins 86 Jan 13 18:34 cost.csv [Pipeline] libraryResource [Pipeline] sh 18:43:48 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 18:43:49 ---> package-listing.sh 18:43:49 ++ facter osfamily 18:43:49 ++ tr '[:upper:]' '[:lower:]' 18:43:49 + OS_FAMILY=debian 18:43:49 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-238 18:43:49 + START_PACKAGES=/tmp/packages_start.txt 18:43:49 + END_PACKAGES=/tmp/packages_end.txt 18:43:49 + DIFF_PACKAGES=/tmp/packages_diff.txt 18:43:49 + PACKAGES=/tmp/packages_start.txt 18:43:49 + '[' /w/workspace/gexfoundry_device-rest-go_PR-238 ']' 18:43:49 + PACKAGES=/tmp/packages_end.txt 18:43:49 + case "${OS_FAMILY}" in 18:43:49 + dpkg -l 18:43:49 + grep '^ii' 18:43:49 + '[' -f /tmp/packages_start.txt ']' 18:43:49 + '[' -f /tmp/packages_end.txt ']' 18:43:49 + diff /tmp/packages_start.txt /tmp/packages_end.txt 18:43:49 + '[' /w/workspace/gexfoundry_device-rest-go_PR-238 ']' 18:43:49 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-238/archives/ 18:43:49 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-238/archives/ [Pipeline] echo 18:43:49 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-238/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 18:43:50 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:43:50 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:43:50 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:43:50 prd-ubuntu20.04-docker-8c-8g-2243 does not seem to be running inside a container 18:43:50 $ 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-238/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-238 -v /w/workspace/gexfoundry_device-rest-go_PR-238:/w/workspace/gexfoundry_device-rest-go_PR-238:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-238@tmp:/w/workspace/gexfoundry_device-rest-go_PR-238@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 ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 18:43:50 $ docker top 55e3e4eabbab5e8c5626636166ac864fcc1bfeeaafe9167ed893805f97cf74ad -eo pid,comm [Pipeline] { [Pipeline] sh 18:43:51 + touch /tmp/pre-build-complete [Pipeline] sh 18:43:51 + mkdir -p /var/log/sysstat [Pipeline] sh 18:43:51 + ls /var/log/sa-host 18:43:51 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 18:43:52 provisioning config files... 18:43:52 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-238@tmp/config14592511661083798148tmp [Pipeline] { [Pipeline] echo 18:43:52 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 18:43:52 ---> create-netrc.sh [Pipeline] } 18:43:52 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 18:43:52 ---> python-tools-install.sh [Pipeline] echo 18:43:52 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 18:43:52 ---> sudo-logs.sh 18:43:52 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 18:43:52 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 18:43:53 ---> job-cost.sh 18:43:53 lf-activate-venv: SKIPPING 18:43:53 DEBUG: total: 0.2199999988079071 18:43:53 INFO: Retrieving Stack Cost... 18:43:53 INFO: Retrieving Pricing Info for: v3-standard-8 18:43:54 INFO: Archiving Costs [Pipeline] echo 18:43:54 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 18:43:54 ---> logs-deploy.sh 18:43:54 lf-activate-venv: SKIPPING 18:43:54 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-238/2 18:43:54 INFO: archiving workspace using pattern(s): 18:43:55 Archives upload complete. 18:43:55 INFO: archiving logs to Nexus