Pull request #315 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 951443b8098106d8f8acb1d6b73cac3b5f71ba9d+ec2da75f3e3e567a377e035f33bd2cfaed15f48d (95b2151709a9fb982192436b4e9b314ec7bed95d) 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-ssh7557325280913950605.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh9027407923514837641.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-315/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-315/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh14260237726046474560.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-315/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh3218877921907587647.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 4fc256d9079ed2258907e613f84b1b8da264a4bd (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 4fc256d9079ed2258907e613f84b1b8da264a4bd # timeout=10 Commit message: "Merge pull request #430 from ernestojeda/release-lock" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh8003483475329615117.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-315/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-315/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh3037881971245089911.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.20 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task All nodes of label ‘ubuntu20.04-docker-8c-8g’ are offline Running on prd-ubuntu20.04-docker-8c-8g-14953 in /w/workspace/gexfoundry_device-rest-go_PR-315 [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-315 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit ec2da75f3e3e567a377e035f33bd2cfaed15f48d into PR head commit 951443b8098106d8f8acb1d6b73cac3b5f71ba9d Merge succeeded, producing 951443b8098106d8f8acb1d6b73cac3b5f71ba9d Checking out Revision 951443b8098106d8f8acb1d6b73cac3b5f71ba9d (PR-315) Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd > 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/315/head:refs/remotes/origin/PR-315 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 951443b8098106d8f8acb1d6b73cac3b5f71ba9d # 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 ec2da75f3e3e567a377e035f33bd2cfaed15f48d # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 951443b8098106d8f8acb1d6b73cac3b5f71ba9d # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:31:18 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:31:18 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:31:18 ========================================================= 20:31:18 EdgeX Global Pipelines Version Info 20:31:18 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:31:19 ------------------- 20:31:19 stable info: 20:31:19 ------------------- 20:31:19 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:31:19 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 20:31:19 Message: update stable to v1.0.249 20:31:19 ------------------- 20:31:19 experimental info: 20:31:19 ------------------- 20:31:19 Commited By: **** collab-it+edgex@linuxfoundation.org 20:31:19 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 20:31:19 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:31:20 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-315 [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-315 [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-315 [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 951443b8098106d8f8acb1d6b73cac3b5f71ba9d [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 951443b [Pipeline] echo 20:31:21 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:31:21 provisioning config files... 20:31:21 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-315@tmp/config7599586431669722306tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:31:22 ---> docker-login.sh 20:31:22 nexus3.edgexfoundry.org:10001 20:31:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:22 Configure a credential helper to remove this warning. See 20:31:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:22 20:31:22 Login Succeeded 20:31:22 nexus3.edgexfoundry.org:10002 20:31:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:22 Configure a credential helper to remove this warning. See 20:31:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:22 20:31:22 Login Succeeded 20:31:22 nexus3.edgexfoundry.org:10003 20:31:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:22 Configure a credential helper to remove this warning. See 20:31:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:22 20:31:22 Login Succeeded 20:31:22 nexus3.edgexfoundry.org:10004 20:31:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:22 Configure a credential helper to remove this warning. See 20:31:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:22 20:31:22 Login Succeeded 20:31:22 docker.io 20:31:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:23 Configure a credential helper to remove this warning. See 20:31:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:23 20:31:23 Login Succeeded 20:31:23 ---> docker-login.sh ends [Pipeline] } 20:31:23 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:31:23 + git rev-list -1 --merges 951443b8098106d8f8acb1d6b73cac3b5f71ba9d~1..951443b8098106d8f8acb1d6b73cac3b5f71ba9d [Pipeline] echo 20:31:23 -----------> git rev-list -1 --merges 951443b8098106d8f8acb1d6b73cac3b5f71ba9d~1..951443b8098106d8f8acb1d6b73cac3b5f71ba9d 951443b8098106d8f8acb1d6b73cac3b5f71ba9d [false] [Pipeline] sh 20:31:24 + git log --format=format:%s -1 951443b8098106d8f8acb1d6b73cac3b5f71ba9d [Pipeline] echo 20:31:24 ========================================================= 20:31:24 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:31:24 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:31:24 + git log --format=format:%s -1 951443b8098106d8f8acb1d6b73cac3b5f71ba9d [Pipeline] echo 20:31:24 [semverPrep] GIT_COMMIT: 951443b8098106d8f8acb1d6b73cac3b5f71ba9d, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3 [Pipeline] echo 20:31:24 [semverPrep] This is not a build commit. [Pipeline] sh 20:31:25 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:31:25 + grep -v github /etc/ssh/ssh_known_hosts 20:31:25 + [ -e /tmp/ssh_known_hosts ] 20:31:25 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:31:25 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:31:25 + sudo tee -a /etc/ssh/ssh_known_hosts 20:31:25 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:31:25 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:31:25 20:31:25 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:31:25 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:31:25 0.1.4: Pulling from edgex-devops/py-git-semver 20:31:25 b85a868b505f: Pulling fs layer 20:31:25 e2be974225ed: Pulling fs layer 20:31:25 339a4e72a1f5: Pulling fs layer 20:31:25 988bab9f4d93: Pulling fs layer 20:31:25 1469e6f7b9e6: Pulling fs layer 20:31:25 eaf3925da568: Pulling fs layer 20:31:25 bab4dde63d76: Pulling fs layer 20:31:25 bde34c3a00c8: Pulling fs layer 20:31:25 b352a97aabf1: Pulling fs layer 20:31:25 4872d77fe225: Pulling fs layer 20:31:25 5851b861e8e6: Pulling fs layer 20:31:25 bab4dde63d76: Waiting 20:31:25 b352a97aabf1: Waiting 20:31:25 bde34c3a00c8: Waiting 20:31:25 4872d77fe225: Waiting 20:31:25 5851b861e8e6: Waiting 20:31:25 eaf3925da568: Waiting 20:31:25 e2be974225ed: Download complete 20:31:25 988bab9f4d93: Download complete 20:31:26 1469e6f7b9e6: Verifying Checksum 20:31:26 1469e6f7b9e6: Download complete 20:31:26 eaf3925da568: Download complete 20:31:26 339a4e72a1f5: Verifying Checksum 20:31:26 339a4e72a1f5: Download complete 20:31:26 bde34c3a00c8: Download complete 20:31:26 b352a97aabf1: Verifying Checksum 20:31:26 b352a97aabf1: Download complete 20:31:26 5851b861e8e6: Download complete 20:31:26 b85a868b505f: Download complete 20:31:26 bab4dde63d76: Verifying Checksum 20:31:26 bab4dde63d76: Download complete 20:31:27 b85a868b505f: Pull complete 20:31:27 e2be974225ed: Pull complete 20:31:28 339a4e72a1f5: Pull complete 20:31:28 988bab9f4d93: Pull complete 20:31:28 1469e6f7b9e6: Pull complete 20:31:28 eaf3925da568: Pull complete 20:31:30 bab4dde63d76: Pull complete 20:31:30 bde34c3a00c8: Pull complete 20:31:30 b352a97aabf1: Pull complete 20:31:30 4872d77fe225: Pull complete 20:31:30 5851b861e8e6: Pull complete 20:31:30 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 20:31:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:31:30 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:31:30 prd-ubuntu20.04-docker-8c-8g-14953 does not seem to be running inside a container 20:31:30 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-315 -v /w/workspace/gexfoundry_device-rest-go_PR-315:/w/workspace/gexfoundry_device-rest-go_PR-315:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-315@tmp:/w/workspace/gexfoundry_device-rest-go_PR-315@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 20:31:32 $ docker top a0ed22f537b288c5c9aa7f0e6bb49a3b4ea0ea0767e3e6db22d7e93712f28941 -eo pid,comm 20:31:32 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 20:31:32 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:31:33 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:31:33 [ssh-agent] Looking for ssh-agent implementation... 20:31:33 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:31:33 $ docker exec a0ed22f537b288c5c9aa7f0e6bb49a3b4ea0ea0767e3e6db22d7e93712f28941 ssh-agent 20:31:33 SSH_AUTH_SOCK=/tmp/ssh-ys4LPwmUwjB9/agent.32 20:31:33 SSH_AGENT_PID=38 20:31:33 Running ssh-add (command line suppressed) 20:31:33 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-315@tmp/private_key_15614591793948939624.key (/w/workspace/gexfoundry_device-rest-go_PR-315@tmp/private_key_15614591793948939624.key) 20:31:33 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:31:33 + git tag --points-at HEAD [Pipeline] } 20:31:33 $ docker exec --env ******** --env ******** a0ed22f537b288c5c9aa7f0e6bb49a3b4ea0ea0767e3e6db22d7e93712f28941 ssh-agent -k 20:31:33 unset SSH_AUTH_SOCK; 20:31:33 unset SSH_AGENT_PID; 20:31:33 echo Agent pid 38 killed; 20:31:33 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:31:34 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:31:34 [ssh-agent] Looking for ssh-agent implementation... 20:31:34 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:31:34 $ docker exec a0ed22f537b288c5c9aa7f0e6bb49a3b4ea0ea0767e3e6db22d7e93712f28941 ssh-agent 20:31:34 SSH_AUTH_SOCK=/tmp/ssh-dJpkyIPdBoIf/agent.70 20:31:34 SSH_AGENT_PID=76 20:31:34 Running ssh-add (command line suppressed) 20:31:34 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-315@tmp/private_key_10905628526722240321.key (/w/workspace/gexfoundry_device-rest-go_PR-315@tmp/private_key_10905628526722240321.key) 20:31:34 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:31:34 + git semver init 20:31:35 2023-05-10 20:31:34,924 [run_init] DEBUG init version:0.0.0 force:False 20:31:35 2023-05-10 20:31:34,925 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-315/.semver 20:31:35 2023-05-10 20:31:34,926 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-315/.semver 20:31:35 2023-05-10 20:31:34,926 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-315/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-315, universal_newlines=False, shell=None, istream=None) 20:31:35 2023-05-10 20:31:35,848 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-315/.git/info/exclude 20:31:35 2023-05-10 20:31:35,848 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-315/.semver/PR-315 with force:False 20:31:35 2023-05-10 20:31:35,849 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-315/.semver/PR-315 20:31:35 2023-05-10 20:31:35,854 [execute] INFO git cat-file --batch-check 20:31:35 2023-05-10 20:31:35,854 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-315/.semver, universal_newlines=False, shell=None, istream=) 20:31:35 2023-05-10 20:31:35,860 [execute] INFO git cat-file --batch 20:31:35 2023-05-10 20:31:35,861 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-315/.semver, universal_newlines=False, shell=None, istream=) 20:31:35 2023-05-10 20:31:35,866 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-315/.semver/PR-315 20:31:35 0.0.0 [Pipeline] } 20:31:35 $ docker exec --env ******** --env ******** a0ed22f537b288c5c9aa7f0e6bb49a3b4ea0ea0767e3e6db22d7e93712f28941 ssh-agent -k 20:31:36 unset SSH_AUTH_SOCK; 20:31:36 unset SSH_AGENT_PID; 20:31:36 echo Agent pid 76 killed; 20:31:36 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:31:36 + git semver [Pipeline] } 20:31:36 $ docker stop --time=1 a0ed22f537b288c5c9aa7f0e6bb49a3b4ea0ea0767e3e6db22d7e93712f28941 20:31:38 $ docker rm -f --volumes a0ed22f537b288c5c9aa7f0e6bb49a3b4ea0ea0767e3e6db22d7e93712f28941 [Pipeline] // withDockerContainer [Pipeline] sh 20:31:38 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:31:38 Stashed 1 file(s) [Pipeline] echo 20:31:38 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:31:39 provisioning config files... 20:31:39 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-315@tmp/config499200278359691502tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:31:39 ---> docker-login.sh 20:31:39 nexus3.edgexfoundry.org:10001 20:31:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:39 Configure a credential helper to remove this warning. See 20:31:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:39 20:31:39 Login Succeeded 20:31:39 nexus3.edgexfoundry.org:10002 20:31:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:39 Configure a credential helper to remove this warning. See 20:31:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:39 20:31:39 Login Succeeded 20:31:39 nexus3.edgexfoundry.org:10003 20:31:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:39 Configure a credential helper to remove this warning. See 20:31:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:39 20:31:39 Login Succeeded 20:31:39 nexus3.edgexfoundry.org:10004 20:31:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:39 Configure a credential helper to remove this warning. See 20:31:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:39 20:31:39 Login Succeeded 20:31:39 docker.io 20:31:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:40 Configure a credential helper to remove this warning. See 20:31:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:40 20:31:40 Login Succeeded 20:31:40 ---> docker-login.sh ends [Pipeline] } 20:31:40 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:31:40 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:31:40 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:31:40 ========================================================= 20:31:40 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 20:31:40 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:31:41 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine --build-arg MAKE=echo noop --target=builder . 20:31:41 Sending build context to Docker daemon 10.92MB 20:31:41 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:31:41 Step 2/12 : FROM ${BASE} AS builder 20:31:41 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 20:31:41 f56be85fc22e: Pulling fs layer 20:31:41 85791d961cd3: Pulling fs layer 20:31:41 d694b5ae8c79: Pulling fs layer 20:31:41 9f32a84ed3da: Pulling fs layer 20:31:41 4d19c01a9841: Pulling fs layer 20:31:41 9325e15d5711: Pulling fs layer 20:31:41 556b6ee489ea: Pulling fs layer 20:31:41 c5a4b2cf53e6: Pulling fs layer 20:31:41 9f32a84ed3da: Waiting 20:31:41 4d19c01a9841: Waiting 20:31:41 9325e15d5711: Waiting 20:31:41 556b6ee489ea: Waiting 20:31:41 85791d961cd3: Download complete 20:31:41 9f32a84ed3da: Verifying Checksum 20:31:41 4d19c01a9841: Download complete 20:31:41 f56be85fc22e: Verifying Checksum 20:31:41 f56be85fc22e: Download complete 20:31:41 9325e15d5711: Verifying Checksum 20:31:41 9325e15d5711: Download complete 20:31:41 f56be85fc22e: Pull complete 20:31:41 85791d961cd3: Pull complete 20:31:41 c5a4b2cf53e6: Verifying Checksum 20:31:41 c5a4b2cf53e6: Download complete 20:31:42 d694b5ae8c79: Verifying Checksum 20:31:42 d694b5ae8c79: Download complete 20:31:42 556b6ee489ea: Verifying Checksum 20:31:42 556b6ee489ea: Download complete 20:31:45 d694b5ae8c79: Pull complete 20:31:45 9f32a84ed3da: Pull complete 20:31:45 4d19c01a9841: Pull complete 20:31:45 9325e15d5711: Pull complete 20:31:48 556b6ee489ea: Pull complete 20:31:48 c5a4b2cf53e6: Pull complete 20:31:48 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 20:31:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 20:31:48 ---> c4be618373d6 20:31:48 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:31:52 ---> Running in c36633f0f7a1 20:31:52 Removing intermediate container c36633f0f7a1 20:31:52 ---> 5e2a90e1b287 20:31:52 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:31:52 ---> Running in 297309e7fbe0 20:31:52 Removing intermediate container 297309e7fbe0 20:31:52 ---> 3f0e8d4bebfd 20:31:52 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:31:52 ---> Running in 6b8ac93c2c89 20:31:52 Removing intermediate container 6b8ac93c2c89 20:31:52 ---> ba0cdf13b218 20:31:52 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:31:52 ---> Running in 2baacabd2bba 20:31:52 Removing intermediate container 2baacabd2bba 20:31:52 ---> d814faea36eb 20:31:52 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:31:52 ---> Running in 31169f98ccbd 20:31:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:31:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:31:52 (1/4) Installing openssh-keygen (9.1_p1-r2) 20:31:52 (2/4) Installing libedit (20221030.3.1-r0) 20:31:52 (3/4) Installing openssh-client-common (9.1_p1-r2) 20:31:52 (4/4) Installing openssh-client-default (9.1_p1-r2) 20:31:52 Executing busybox-1.35.0-r29.trigger 20:31:52 OK: 269 MiB in 57 packages 20:31:53 Removing intermediate container 31169f98ccbd 20:31:53 ---> b60ec76c24d6 20:31:53 Step 8/12 : WORKDIR /device-rest-go 20:31:53 ---> Running in 1fbb11591753 20:31:53 Removing intermediate container 1fbb11591753 20:31:53 ---> b3b5e3c259f7 20:31:53 Step 9/12 : COPY go.mod vendor* ./ 20:31:53 ---> ee215e10204a 20:31:53 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:31:53 ---> Running in ac728ffb2d20 20:31:54 Still waiting to schedule task 20:31:54 ‘prd-ubuntu20.04-docker-arm64-4c-16g-14954’ is offline 20:32:15 Removing intermediate container ac728ffb2d20 20:32:15 ---> 6427e0f8dd6d 20:32:15 Step 11/12 : COPY . . 20:32:15 ---> 9a0f39eef318 20:32:15 Step 12/12 : RUN $MAKE 20:32:15 ---> Running in 18c63cb4e57e 20:32:15 noop 20:32:15 Removing intermediate container 18c63cb4e57e 20:32:15 ---> 9b71bc69df10 20:32:15 Successfully built 9b71bc69df10 20:32:15 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:32:16 + docker inspect -f . ci-base-image-x86_64 20:32:16 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:32:16 prd-ubuntu20.04-docker-8c-8g-14953 does not seem to be running inside a container 20:32:16 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-315 -v /w/workspace/gexfoundry_device-rest-go_PR-315:/w/workspace/gexfoundry_device-rest-go_PR-315:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-315@tmp:/w/workspace/gexfoundry_device-rest-go_PR-315@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 20:32:16 $ docker top d08d6d281abb74b6cc328e82852d2f983ad8aabba47fad835d2276928ddae6ac -eo pid,comm [Pipeline] { [Pipeline] sh 20:32:17 + go version 20:32:17 go version go1.20.2 linux/amd64 [Pipeline] } 20:32:17 $ docker stop --time=1 d08d6d281abb74b6cc328e82852d2f983ad8aabba47fad835d2276928ddae6ac 20:32:18 $ docker rm -f --volumes d08d6d281abb74b6cc328e82852d2f983ad8aabba47fad835d2276928ddae6ac [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:32:19 + docker inspect -f . ci-base-image-x86_64 20:32:19 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:32:19 prd-ubuntu20.04-docker-8c-8g-14953 does not seem to be running inside a container 20:32:19 $ 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-315 -v /w/workspace/gexfoundry_device-rest-go_PR-315:/w/workspace/gexfoundry_device-rest-go_PR-315:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-315@tmp:/w/workspace/gexfoundry_device-rest-go_PR-315@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 20:32:19 $ docker top 29e9834c1b8c1f17b6635129573c2653a122e1d6daa29dc69e6bbad3bcb98bf9 -eo pid,comm [Pipeline] { [Pipeline] sh 20:32:20 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-315 [Pipeline] fileExists [Pipeline] sh 20:32:20 + make test 20:32:20 go test ./... -coverprofile=coverage.out ./... 20:32:25 ? github.com/edgexfoundry/device-rest-go [no test files] 20:32:35 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:32:35 ok github.com/edgexfoundry/device-rest-go/driver 0.012s coverage: 32.2% of statements 20:32:43 go vet ./... 20:32:47 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:32:47 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:32:47 ./bin/test-attribution-txt.sh [Pipeline] echo 20:32:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:32:47 $ docker stop --time=1 29e9834c1b8c1f17b6635129573c2653a122e1d6daa29dc69e6bbad3bcb98bf9 20:32:50 $ docker rm -f --volumes 29e9834c1b8c1f17b6635129573c2653a122e1d6daa29dc69e6bbad3bcb98bf9 [Pipeline] // withDockerContainer [Pipeline] sh 20:32:50 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:32:50 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:32:51 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:32:51 + ls -al . 20:32:51 total 184 20:32:51 drwxrwxr-x 9 jenkins jenkins 4096 May 10 20:32 . 20:32:51 drwxrwxr-x 4 jenkins jenkins 4096 May 10 20:31 .. 20:32:51 -rw-rw-r-- 1 jenkins jenkins 151 May 10 20:31 .dockerignore 20:32:51 drwxrwxr-x 8 jenkins jenkins 4096 May 10 20:31 .git 20:32:51 drwxrwxr-x 3 jenkins jenkins 4096 May 10 20:31 .github 20:32:51 -rw-rw-r-- 1 jenkins jenkins 329 May 10 20:31 .gitignore 20:32:51 -rw-rw-r-- 1 jenkins jenkins 41 May 10 20:31 .golangci.yml 20:32:51 drwxr-xr-x 3 jenkins jenkins 4096 May 10 20:31 .semver 20:32:51 -rw-rw-r-- 1 jenkins jenkins 9331 May 10 20:31 Attribution.txt 20:32:51 -rw-rw-r-- 1 jenkins jenkins 13085 May 10 20:31 CHANGELOG.md 20:32:51 -rw-rw-r-- 1 jenkins jenkins 1578 May 10 20:31 Dockerfile 20:32:51 -rw-rw-r-- 1 jenkins jenkins 677 May 10 20:31 GOVERNANCE.md 20:32:51 -rw-rw-r-- 1 jenkins jenkins 680 May 10 20:31 Jenkinsfile 20:32:51 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 20:31 LICENSE 20:32:51 -rw-rw-r-- 1 jenkins jenkins 1779 May 10 20:31 Makefile 20:32:51 -rw-rw-r-- 1 jenkins jenkins 620 May 10 20:31 OWNERS.md 20:32:51 -rw-rw-r-- 1 jenkins jenkins 15321 May 10 20:31 README.md 20:32:51 -rw-rw-r-- 1 jenkins jenkins 5 May 10 20:31 VERSION 20:32:51 drwxrwxr-x 2 jenkins jenkins 4096 May 10 20:31 bin 20:32:51 drwxrwxr-x 3 jenkins jenkins 4096 May 10 20:31 cmd 20:32:51 -rw-r--r-- 1 jenkins jenkins 14663 May 10 20:32 coverage.out 20:32:51 drwxrwxr-x 2 jenkins jenkins 4096 May 10 20:31 driver 20:32:51 -rw-rw-r-- 1 jenkins jenkins 3402 May 10 20:31 go.mod 20:32:51 -rw-rw-r-- 1 jenkins jenkins 31328 May 10 20:31 go.sum 20:32:51 drwxrwxr-x 4 jenkins jenkins 4096 May 10 20:31 snap 20:32:51 -rw-rw-r-- 1 jenkins jenkins 713 May 10 20:31 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:32:51 + docker build -t device-rest -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=951443b8098106d8f8acb1d6b73cac3b5f71ba9d --label arch=amd64 --label version=0.0.0 . 20:32:51 Sending build context to Docker daemon 10.93MB 20:32:51 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 20:32:51 Step 2/25 : FROM ${BASE} AS builder 20:32:51 ---> 9b71bc69df10 20:32:51 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:32:52 ---> Running in dc0f6974062c 20:32:52 Removing intermediate container dc0f6974062c 20:32:52 ---> 03d2dd582f37 20:32:52 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:32:52 ---> Running in 33ac12d3e9c5 20:32:52 Removing intermediate container 33ac12d3e9c5 20:32:52 ---> c761906ebb62 20:32:52 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:32:52 ---> Running in c476bafe96bb 20:32:52 Removing intermediate container c476bafe96bb 20:32:52 ---> 19390eddb378 20:32:52 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:32:52 ---> Running in 6ab07e7022c2 20:32:52 Removing intermediate container 6ab07e7022c2 20:32:52 ---> 6325575794de 20:32:52 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:32:52 ---> Running in 61dbbe597f0d 20:32:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:32:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:32:52 OK: 269 MiB in 57 packages 20:32:53 Removing intermediate container 61dbbe597f0d 20:32:53 ---> b1d7f87d5599 20:32:53 Step 8/25 : WORKDIR /device-rest-go 20:32:53 ---> Running in 8de58bf53a5a 20:32:53 Removing intermediate container 8de58bf53a5a 20:32:53 ---> b1e939286c2e 20:32:53 Step 9/25 : COPY go.mod vendor* ./ 20:32:53 ---> 05024f13c6a5 20:32:53 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:32:53 ---> Running in e6914a422729 20:32:54 Removing intermediate container e6914a422729 20:32:54 ---> b104382f4350 20:32:54 Step 11/25 : COPY . . 20:32:54 ---> 72aa124d1305 20:32:54 Step 12/25 : RUN $MAKE 20:32:54 ---> Running in 3b2009924eff 20:32:54 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 20:33:17 Removing intermediate container 3b2009924eff 20:33:17 ---> 1f672a684222 20:33:17 Step 13/25 : FROM alpine:3.17 20:33:17 3.17: Pulling from library/alpine 20:33:17 f56be85fc22e: Already exists 20:33:17 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 20:33:17 Status: Downloaded newer image for alpine:3.17 20:33:17 ---> 9ed4aefc74f6 20:33:17 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 20:33:17 ---> Running in 41b35ce43aa6 20:33:17 Removing intermediate container 41b35ce43aa6 20:33:17 ---> e6459f835d70 20:33:17 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:33:17 ---> Running in b7f35bfb6ff4 20:33:17 Removing intermediate container b7f35bfb6ff4 20:33:17 ---> a215f188457e 20:33:17 Step 16/25 : RUN apk add --update --no-cache dumb-init 20:33:17 ---> Running in 074d05a383ba 20:33:17 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:33:17 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:33:17 (1/1) Installing dumb-init (1.2.5-r2) 20:33:17 Executing busybox-1.35.0-r29.trigger 20:33:17 OK: 7 MiB in 16 packages 20:33:17 Removing intermediate container 074d05a383ba 20:33:17 ---> f8ba7fdf9166 20:33:17 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:33:17 ---> 7aa57957a491 20:33:17 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:33:17 ---> e84fc31cc62a 20:33:17 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:33:17 ---> da012b909127 20:33:17 Step 20/25 : EXPOSE 59986 20:33:17 ---> Running in d4b90c73eec8 20:33:17 Removing intermediate container d4b90c73eec8 20:33:17 ---> 16616c974ac8 20:33:17 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:33:17 ---> Running in 4abae381a946 20:33:17 Removing intermediate container 4abae381a946 20:33:17 ---> 579926d3ba6f 20:33:17 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 20:33:17 ---> Running in 0e594203b330 20:33:17 Removing intermediate container 0e594203b330 20:33:17 ---> ab5b748425e3 20:33:17 Step 23/25 : LABEL arch=amd64 20:33:17 ---> Running in 2b5db927a7f2 20:33:17 Removing intermediate container 2b5db927a7f2 20:33:17 ---> db4517fe78d8 20:33:17 Step 24/25 : LABEL git_sha=951443b8098106d8f8acb1d6b73cac3b5f71ba9d 20:33:17 ---> Running in 837db1030990 20:33:17 Removing intermediate container 837db1030990 20:33:17 ---> 62e60e1659dc 20:33:17 Step 25/25 : LABEL version=0.0.0 20:33:17 ---> Running in 5232e504a8b5 20:33:17 Removing intermediate container 5232e504a8b5 20:33:17 ---> 96d789e16ef5 20:33:17 [Warning] One or more build-args [ARCH] were not consumed 20:33:17 Successfully built 96d789e16ef5 20:33:17 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:33:18 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:33:18 20:33:18 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:33:18 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:33:18 latest: Pulling from edgex-lftools-log-publisher 20:33:18 5eb5b503b376: Pulling fs layer 20:33:18 5c69ac0246d0: Pulling fs layer 20:33:18 ec43610c2a17: Pulling fs layer 20:33:18 3a2ae6a8a46f: Pulling fs layer 20:33:18 33b1e0a273af: Pulling fs layer 20:33:18 5d3b04190fa2: Pulling fs layer 20:33:18 2f39f015ded8: Pulling fs layer 20:33:18 5d3b04190fa2: Waiting 20:33:18 3a2ae6a8a46f: Waiting 20:33:18 33b1e0a273af: Waiting 20:33:18 2f39f015ded8: Waiting 20:33:18 5c69ac0246d0: Verifying Checksum 20:33:18 5c69ac0246d0: Download complete 20:33:18 3a2ae6a8a46f: Verifying Checksum 20:33:18 3a2ae6a8a46f: Download complete 20:33:18 33b1e0a273af: Verifying Checksum 20:33:18 33b1e0a273af: Download complete 20:33:18 5d3b04190fa2: Verifying Checksum 20:33:18 5d3b04190fa2: Download complete 20:33:18 ec43610c2a17: Verifying Checksum 20:33:18 ec43610c2a17: Download complete 20:33:19 5eb5b503b376: Verifying Checksum 20:33:19 5eb5b503b376: Download complete 20:33:20 5eb5b503b376: Pull complete 20:33:20 5c69ac0246d0: Pull complete 20:33:20 ec43610c2a17: Pull complete 20:33:20 3a2ae6a8a46f: Pull complete 20:33:21 33b1e0a273af: Pull complete 20:33:21 5d3b04190fa2: Pull complete 20:33:25 2f39f015ded8: Pull complete 20:33:25 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 20:33:25 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:33:25 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:33:26 prd-ubuntu20.04-docker-8c-8g-14953 does not seem to be running inside a container 20:33:26 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-315 -v /w/workspace/gexfoundry_device-rest-go_PR-315:/w/workspace/gexfoundry_device-rest-go_PR-315:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-315@tmp:/w/workspace/gexfoundry_device-rest-go_PR-315@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 20:33:28 $ docker top 3772be839ca8ae56e44ee9c986787cb2f2a217d9998c29aadfbf47570f195f37 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:33:28 ---> job-cost.sh 20:33:28 lf-activate-venv: SKIPPING 20:33:28 INFO: No Stack... 20:33:28 INFO: Retrieving Pricing Info for: v3-standard-8 20:33:29 INFO: Archiving Costs [Pipeline] sh 20:33:29 + cat /w/workspace/gexfoundry_device-rest-go_PR-315/archives/cost.csv 20:33:29 + cut -d, -f6 [Pipeline] lock 20:33:29 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-315-1-stack-cost] 20:33:29 Resource [jenkins-edgexfoundry-device-rest-go-PR-315-1-stack-cost] did not exist. Created. 20:33:29 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-315-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:33:29 + echo total: 0.2199999988079071 [Pipeline] stash 20:33:29 Stashed 1 file(s) [Pipeline] } 20:33:30 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-315-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:33:30 $ docker stop --time=1 3772be839ca8ae56e44ee9c986787cb2f2a217d9998c29aadfbf47570f195f37 20:33:31 $ docker rm -f --volumes 3772be839ca8ae56e44ee9c986787cb2f2a217d9998c29aadfbf47570f195f37 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 20:34:15 Running on prd-ubuntu20.04-docker-arm64-4c-16g-14956 in /w/workspace/gexfoundry_device-rest-go_PR-315 [Pipeline] { [Pipeline] ws 20:34:15 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 20:34:15 The recommended git tool is: git 20:34:21 using credential edgex-jenkins-ssh 20:34:21 Cloning the remote Git repository 20:34:21 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:34:21 > git init /w/workspace/device-rest-go/1 # timeout=10 20:34:21 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:34:21 > git --version # timeout=10 20:34:21 > git --version # 'git version 2.25.1' 20:34:21 using GIT_SSH to set credentials SSH Credentials for GitHub 20:34:22 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:34:24 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:34:24 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:34:25 Merging remotes/origin/main commit ec2da75f3e3e567a377e035f33bd2cfaed15f48d into PR head commit 951443b8098106d8f8acb1d6b73cac3b5f71ba9d 20:34:25 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:34:25 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:34:25 using GIT_SSH to set credentials SSH Credentials for GitHub 20:34:25 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/315/head:refs/remotes/origin/PR-315 +refs/heads/main:refs/remotes/origin/main # timeout=10 20:34:25 > git config core.sparsecheckout # timeout=10 20:34:25 > git checkout -f 951443b8098106d8f8acb1d6b73cac3b5f71ba9d # timeout=10 20:34:25 Merge succeeded, producing 951443b8098106d8f8acb1d6b73cac3b5f71ba9d 20:34:25 Checking out Revision 951443b8098106d8f8acb1d6b73cac3b5f71ba9d (PR-315) 20:34:26 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 20:34:26 > git --version # timeout=10 20:34:26 > git --version # 'git version 2.25.1' 20:34:26 fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:34:25 > git remote # timeout=10 20:34:25 > git config --get remote.origin.url # timeout=10 20:34:25 using GIT_SSH to set credentials SSH Credentials for GitHub 20:34:25 > git merge ec2da75f3e3e567a377e035f33bd2cfaed15f48d # timeout=10 20:34:25 > git rev-parse HEAD^{commit} # timeout=10 20:34:25 > git config core.sparsecheckout # timeout=10 20:34:26 > git checkout -f 951443b8098106d8f8acb1d6b73cac3b5f71ba9d # timeout=10 20:34:27 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 20:34:27 % Total % Received % Xferd Average Speed Time Time Time Current 20:34:27 Dload Upload Total Spent Left Speed 20:34:27 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 200k 0 --:--:-- --:--:-- --:--:-- 200k [Pipeline] sh 20:34:28 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 20:34:28 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 20:34:28 + sudo tee /etc/docker/daemon.new 20:34:28 { 20:34:28 "registry-mirrors": [ 20:34:28 "https://nexus3.edgexfoundry.org:10001" 20:34:28 ], 20:34:28 "bip": "10.250.0.254/24", 20:34:28 "hosts": [ 20:34:28 "tcp://0.0.0.0:5555", 20:34:28 "unix:///var/run/docker.sock" 20:34:28 ], 20:34:28 "mtu": 1458, 20:34:28 "selinux-enabled": true, 20:34:28 "seccomp-profile": "/etc/docker/seccomp.json" 20:34:28 } [Pipeline] sh 20:34:29 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 20:34:29 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:34:47 provisioning config files... 20:34:47 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config17155318120709087218tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:34:48 ---> docker-login.sh 20:34:48 nexus3.edgexfoundry.org:10001 20:34:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:34:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:34:48 Configure a credential helper to remove this warning. See 20:34:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:34:48 20:34:48 Login Succeeded 20:34:48 nexus3.edgexfoundry.org:10002 20:34:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:34:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:34:49 Configure a credential helper to remove this warning. See 20:34:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:34:49 20:34:49 Login Succeeded 20:34:49 nexus3.edgexfoundry.org:10003 20:34:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:34:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:34:49 Configure a credential helper to remove this warning. See 20:34:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:34:49 20:34:49 Login Succeeded 20:34:49 nexus3.edgexfoundry.org:10004 20:34:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:34:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:34:49 Configure a credential helper to remove this warning. See 20:34:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:34:49 20:34:49 Login Succeeded 20:34:49 docker.io 20:34:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:34:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:34:50 Configure a credential helper to remove this warning. See 20:34:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:34:50 20:34:50 Login Succeeded 20:34:50 ---> docker-login.sh ends [Pipeline] } 20:34:50 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:34:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:34:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:34:50 ========================================================= 20:34:50 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 20:34:50 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:34:51 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine --build-arg MAKE=echo noop --target=builder . 20:34:51 Sending build context to Docker daemon 139.3kB 20:34:51 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:34:51 Step 2/12 : FROM ${BASE} AS builder 20:34:51 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 20:34:51 c41833b44d91: Pulling fs layer 20:34:51 ed15518f5707: Pulling fs layer 20:34:51 feae8fd75edb: Pulling fs layer 20:34:51 242c74f7c9fa: Pulling fs layer 20:34:51 3cdef696dda3: Pulling fs layer 20:34:51 2ced38df9373: Pulling fs layer 20:34:51 58f1dce35555: Pulling fs layer 20:34:51 242c74f7c9fa: Waiting 20:34:51 3cdef696dda3: Waiting 20:34:51 2ced38df9373: Waiting 20:34:51 58f1dce35555: Waiting 20:34:52 ed15518f5707: Verifying Checksum 20:34:52 ed15518f5707: Download complete 20:34:52 242c74f7c9fa: Verifying Checksum 20:34:52 242c74f7c9fa: Download complete 20:34:52 3cdef696dda3: Verifying Checksum 20:34:52 3cdef696dda3: Download complete 20:34:52 c41833b44d91: Verifying Checksum 20:34:52 c41833b44d91: Download complete 20:34:52 c41833b44d91: Pull complete 20:34:53 58f1dce35555: Verifying Checksum 20:34:53 58f1dce35555: Download complete 20:34:54 feae8fd75edb: Verifying Checksum 20:34:54 feae8fd75edb: Download complete 20:34:54 2ced38df9373: Verifying Checksum 20:34:54 2ced38df9373: Download complete 20:34:55 ed15518f5707: Pull complete 20:35:10 feae8fd75edb: Pull complete 20:35:10 242c74f7c9fa: Pull complete 20:35:10 3cdef696dda3: Pull complete 20:35:17 2ced38df9373: Pull complete 20:35:19 58f1dce35555: Pull complete 20:35:19 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 20:35:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 20:35:19 ---> fadd8f120f05 20:35:19 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:35:21 ---> Running in 62908f582d61 20:35:21 Removing intermediate container 62908f582d61 20:35:21 ---> dfad03d20816 20:35:21 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:35:21 ---> Running in 0b52a2bd86f9 20:35:22 Removing intermediate container 0b52a2bd86f9 20:35:22 ---> d08371026f66 20:35:22 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:35:22 ---> Running in f90ff7cdc582 20:35:22 Removing intermediate container f90ff7cdc582 20:35:22 ---> 58c4eb834237 20:35:22 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:35:22 ---> Running in cbe733bf1b88 20:35:23 Removing intermediate container cbe733bf1b88 20:35:23 ---> 2f5017c2d0b4 20:35:23 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:35:23 ---> Running in 43fa61956b00 20:35:24 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:35:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:35:26 (1/4) Installing openssh-keygen (9.1_p1-r2) 20:35:26 (2/4) Installing libedit (20221030.3.1-r0) 20:35:26 (3/4) Installing openssh-client-common (9.1_p1-r2) 20:35:26 (4/4) Installing openssh-client-default (9.1_p1-r2) 20:35:26 Executing busybox-1.35.0-r29.trigger 20:35:26 OK: 268 MiB in 57 packages 20:35:27 Removing intermediate container 43fa61956b00 20:35:27 ---> f83e5d8b5df3 20:35:27 Step 8/12 : WORKDIR /device-rest-go 20:35:27 ---> Running in 55f386522107 20:35:27 Removing intermediate container 55f386522107 20:35:27 ---> 7b5802b1d35a 20:35:27 Step 9/12 : COPY go.mod vendor* ./ 20:35:28 ---> 5e18e55702b9 20:35:28 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:35:28 ---> Running in b066f3fec0a3 20:36:36 Removing intermediate container b066f3fec0a3 20:36:36 ---> f9a9c647fcbf 20:36:36 Step 11/12 : COPY . . 20:36:36 ---> ac9721d513b9 20:36:36 Step 12/12 : RUN $MAKE 20:36:36 ---> Running in 8a9d859dccb3 20:36:36 noop 20:36:36 Removing intermediate container 8a9d859dccb3 20:36:36 ---> 8c75768f782d 20:36:36 Successfully built 8c75768f782d 20:36:36 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:36:36 + docker inspect -f . ci-base-image-arm64 20:36:36 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:36:37 prd-ubuntu20.04-docker-arm64-4c-16g-14956 does not seem to be running inside a container 20:36:37 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 20:36:38 $ docker top 3284053fc840fd13a63f36770717e2e8f7973c4fbc5a26c1182959e51a01ad34 -eo pid,comm [Pipeline] { [Pipeline] sh 20:36:39 + go version 20:36:39 go version go1.20.2 linux/arm64 [Pipeline] } 20:36:39 $ docker stop --time=1 3284053fc840fd13a63f36770717e2e8f7973c4fbc5a26c1182959e51a01ad34 20:36:41 $ docker rm -f --volumes 3284053fc840fd13a63f36770717e2e8f7973c4fbc5a26c1182959e51a01ad34 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:36:41 + docker inspect -f . ci-base-image-arm64 20:36:41 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:36:42 prd-ubuntu20.04-docker-arm64-4c-16g-14956 does not seem to be running inside a container 20:36:42 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 20:36:43 $ docker top 15288f4b744af9b8b7542e8e93e3db9e04be227333c71494b2df7f65f2e443c9 -eo pid,comm [Pipeline] { [Pipeline] sh 20:36:44 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 20:36:45 + make test 20:36:45 go test ./... -coverprofile=coverage.out ./... 20:37:24 ? github.com/edgexfoundry/device-rest-go [no test files] 20:39:45 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:39:45 ok github.com/edgexfoundry/device-rest-go/driver 0.065s coverage: 32.2% of statements 20:39:45 WARNING: Linting skipped (not on x86_64 or linter not installed) 20:39:45 go vet ./... 20:40:08 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:40:08 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:40:08 ./bin/test-attribution-txt.sh [Pipeline] echo 20:40:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:40:08 $ docker stop --time=1 15288f4b744af9b8b7542e8e93e3db9e04be227333c71494b2df7f65f2e443c9 20:40:10 $ docker rm -f --volumes 15288f4b744af9b8b7542e8e93e3db9e04be227333c71494b2df7f65f2e443c9 [Pipeline] // withDockerContainer [Pipeline] sh 20:40:11 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:40:11 Warning: overwriting stash ‘coverage-report’ 20:40:12 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:40:12 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:40:12 + ls -al . 20:40:12 total 180 20:40:12 drwxrwxr-x 8 jenkins jenkins 4096 May 10 20:36 . 20:40:12 drwxrwxr-x 4 jenkins jenkins 4096 May 10 20:34 .. 20:40:12 -rw-rw-r-- 1 jenkins jenkins 151 May 10 20:34 .dockerignore 20:40:12 drwxrwxr-x 8 jenkins jenkins 4096 May 10 20:34 .git 20:40:12 drwxrwxr-x 3 jenkins jenkins 4096 May 10 20:34 .github 20:40:12 -rw-rw-r-- 1 jenkins jenkins 329 May 10 20:34 .gitignore 20:40:12 -rw-rw-r-- 1 jenkins jenkins 41 May 10 20:34 .golangci.yml 20:40:12 -rw-rw-r-- 1 jenkins jenkins 9331 May 10 20:34 Attribution.txt 20:40:12 -rw-rw-r-- 1 jenkins jenkins 13085 May 10 20:34 CHANGELOG.md 20:40:12 -rw-rw-r-- 1 jenkins jenkins 1578 May 10 20:34 Dockerfile 20:40:12 -rw-rw-r-- 1 jenkins jenkins 677 May 10 20:34 GOVERNANCE.md 20:40:12 -rw-rw-r-- 1 jenkins jenkins 680 May 10 20:34 Jenkinsfile 20:40:12 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 20:34 LICENSE 20:40:12 -rw-rw-r-- 1 jenkins jenkins 1779 May 10 20:34 Makefile 20:40:12 -rw-rw-r-- 1 jenkins jenkins 620 May 10 20:34 OWNERS.md 20:40:12 -rw-rw-r-- 1 jenkins jenkins 15321 May 10 20:34 README.md 20:40:12 -rw-rw-r-- 1 jenkins jenkins 5 May 10 20:31 VERSION 20:40:12 drwxrwxr-x 2 jenkins jenkins 4096 May 10 20:34 bin 20:40:12 drwxrwxr-x 3 jenkins jenkins 4096 May 10 20:34 cmd 20:40:12 -rw-r--r-- 1 jenkins jenkins 14663 May 10 20:39 coverage.out 20:40:12 drwxrwxr-x 2 jenkins jenkins 4096 May 10 20:34 driver 20:40:12 -rw-rw-r-- 1 jenkins jenkins 3402 May 10 20:34 go.mod 20:40:12 -rw-rw-r-- 1 jenkins jenkins 31328 May 10 20:34 go.sum 20:40:12 drwxrwxr-x 4 jenkins jenkins 4096 May 10 20:34 snap 20:40:12 -rw-rw-r-- 1 jenkins jenkins 713 May 10 20:34 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:40:13 + 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=951443b8098106d8f8acb1d6b73cac3b5f71ba9d --label arch=arm64 --label version=0.0.0 . 20:40:13 Sending build context to Docker daemon 154.6kB 20:40:13 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 20:40:13 Step 2/25 : FROM ${BASE} AS builder 20:40:13 ---> 8c75768f782d 20:40:13 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:40:13 ---> Running in 8840ba580aa0 20:40:14 Removing intermediate container 8840ba580aa0 20:40:14 ---> 961922cf3d28 20:40:14 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:40:14 ---> Running in d0f1c2d9a157 20:40:14 Removing intermediate container d0f1c2d9a157 20:40:14 ---> 0776a77e586c 20:40:14 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:40:14 ---> Running in 98acc572eee4 20:40:14 Removing intermediate container 98acc572eee4 20:40:14 ---> 2941a6af9fb4 20:40:14 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:40:15 ---> Running in 6fffc71681d1 20:40:15 Removing intermediate container 6fffc71681d1 20:40:15 ---> 6f6745b3ca2f 20:40:15 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:40:15 ---> Running in 87e8540f2f3b 20:40:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:40:17 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:40:18 OK: 268 MiB in 57 packages 20:40:18 Removing intermediate container 87e8540f2f3b 20:40:18 ---> 160fcff44db6 20:40:18 Step 8/25 : WORKDIR /device-rest-go 20:40:19 ---> Running in 2bcba809ed1e 20:40:19 Removing intermediate container 2bcba809ed1e 20:40:19 ---> 7f9de3ab4b96 20:40:19 Step 9/25 : COPY go.mod vendor* ./ 20:40:19 ---> d08f391fa5a1 20:40:19 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:40:19 ---> Running in ad8a0ce81b29 20:40:22 Removing intermediate container ad8a0ce81b29 20:40:22 ---> 8302c3567120 20:40:22 Step 11/25 : COPY . . 20:40:23 ---> ecc81df3ee4f 20:40:23 Step 12/25 : RUN $MAKE 20:40:23 ---> Running in aec18e957427 20:40:24 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 20:42:46 Removing intermediate container aec18e957427 20:42:46 ---> 3f0337cb9700 20:42:46 Step 13/25 : FROM alpine:3.17 20:42:46 3.17: Pulling from library/alpine 20:42:46 c41833b44d91: Already exists 20:42:46 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 20:42:46 Status: Downloaded newer image for alpine:3.17 20:42:46 ---> 51e60588ff2c 20:42:46 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 20:42:46 ---> Running in 85cd5db67dd2 20:42:46 Removing intermediate container 85cd5db67dd2 20:42:46 ---> d4368ccbe74a 20:42:46 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:42:46 ---> Running in 21cf443ae431 20:42:46 Removing intermediate container 21cf443ae431 20:42:46 ---> 8c6ae602cdd8 20:42:46 Step 16/25 : RUN apk add --update --no-cache dumb-init 20:42:46 ---> Running in 8adfd220933a 20:42:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:42:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:42:46 (1/1) Installing dumb-init (1.2.5-r2) 20:42:46 Executing busybox-1.35.0-r29.trigger 20:42:46 OK: 8 MiB in 16 packages 20:42:47 Removing intermediate container 8adfd220933a 20:42:47 ---> 2ab7b89102ad 20:42:47 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:42:48 ---> e9a5cea814be 20:42:48 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:42:49 ---> a11dc070bd21 20:42:49 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:42:50 ---> 284a7f442f9a 20:42:50 Step 20/25 : EXPOSE 59986 20:42:50 ---> Running in 55c923ae51e3 20:42:50 Removing intermediate container 55c923ae51e3 20:42:50 ---> 943e76f8bcb1 20:42:50 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:42:50 ---> Running in b06c64ee71e2 20:42:50 Removing intermediate container b06c64ee71e2 20:42:50 ---> ec082666f271 20:42:50 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 20:42:50 ---> Running in c9530153cdfb 20:42:50 Removing intermediate container c9530153cdfb 20:42:50 ---> e97662b777b7 20:42:50 Step 23/25 : LABEL arch=arm64 20:42:51 ---> Running in f017becacec7 20:42:51 Removing intermediate container f017becacec7 20:42:51 ---> 198a61237434 20:42:51 Step 24/25 : LABEL git_sha=951443b8098106d8f8acb1d6b73cac3b5f71ba9d 20:42:51 ---> Running in ab8ea4b8810e 20:42:51 Removing intermediate container ab8ea4b8810e 20:42:51 ---> dc5d08bf9a9f 20:42:51 Step 25/25 : LABEL version=0.0.0 20:42:51 ---> Running in b32520053639 20:42:52 Removing intermediate container b32520053639 20:42:52 ---> 3f0e93ecff64 20:42:52 [Warning] One or more build-args [ARCH] were not consumed 20:42:52 Successfully built 3f0e93ecff64 20:42:52 Successfully tagged device-rest-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:42:53 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:42:53 20:42:53 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:42:53 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:42:53 arm64: Pulling from edgex-lftools-log-publisher 20:42:53 8998bd30e6a1: Pulling fs layer 20:42:53 04944245beec: Pulling fs layer 20:42:53 699f458cf7ca: Pulling fs layer 20:42:53 765212b225bb: Pulling fs layer 20:42:53 f23df028b6ca: Pulling fs layer 20:42:53 d65c8cfc05b1: Pulling fs layer 20:42:53 2437ff75d9bd: Pulling fs layer 20:42:53 f23df028b6ca: Waiting 20:42:53 d65c8cfc05b1: Waiting 20:42:53 765212b225bb: Waiting 20:42:53 2437ff75d9bd: Waiting 20:42:53 04944245beec: Verifying Checksum 20:42:53 04944245beec: Download complete 20:42:53 765212b225bb: Verifying Checksum 20:42:53 765212b225bb: Download complete 20:42:53 f23df028b6ca: Download complete 20:42:53 d65c8cfc05b1: Verifying Checksum 20:42:53 d65c8cfc05b1: Download complete 20:42:53 699f458cf7ca: Verifying Checksum 20:42:53 699f458cf7ca: Download complete 20:42:54 8998bd30e6a1: Verifying Checksum 20:42:54 8998bd30e6a1: Download complete 20:42:56 2437ff75d9bd: Verifying Checksum 20:42:56 2437ff75d9bd: Download complete 20:42:58 8998bd30e6a1: Pull complete 20:42:59 04944245beec: Pull complete 20:43:00 699f458cf7ca: Pull complete 20:43:00 765212b225bb: Pull complete 20:43:01 f23df028b6ca: Pull complete 20:43:01 d65c8cfc05b1: Pull complete 20:43:16 2437ff75d9bd: Pull complete 20:43:16 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 20:43:16 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:43:16 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:43:17 prd-ubuntu20.04-docker-arm64-4c-16g-14956 does not seem to be running inside a container 20:43:17 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 20:43:20 $ docker top 0a622400dd93cb3e22d49147b49a35dccf3d44fb3a184df5c4acc46e748b1b92 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:43:20 ---> job-cost.sh 20:43:20 lf-activate-venv: SKIPPING 20:43:20 INFO: No Stack... 20:43:21 INFO: Retrieving Pricing Info for: v3-standard-4 20:43:22 INFO: Archiving Costs [Pipeline] sh 20:43:22 + cat /w/workspace/device-rest-go/1/archives/cost.csv 20:43:22 + cut -d, -f6 [Pipeline] lock 20:43:22 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-315-1-stack-cost] 20:43:22 Resource [jenkins-edgexfoundry-device-rest-go-PR-315-1-stack-cost] did not exist. Created. 20:43:22 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-315-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:43:23 /w/workspace/device-rest-go/1@tmp/durable-cc0cf85f/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 20:43:24 + echo total: 0.10999999940395355 [Pipeline] stash 20:43:24 Warning: overwriting stash ‘stack-cost’ 20:43:24 Stashed 1 file(s) [Pipeline] } 20:43:24 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-315-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:43:24 $ docker stop --time=1 0a622400dd93cb3e22d49147b49a35dccf3d44fb3a184df5c4acc46e748b1b92 20:43:26 $ docker rm -f --volumes 0a622400dd93cb3e22d49147b49a35dccf3d44fb3a184df5c4acc46e748b1b92 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 20:43:27 provisioning config files... 20:43:27 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-315@tmp/config18125843145537570383tmp [Pipeline] { [Pipeline] sh 20:43:28 + set +x 20:43:28 + curl -s https://codecov.io/bash 20:43:28 + bash -s -- 20:43:28 20:43:28 _____ _ 20:43:28 / ____| | | 20:43:28 | | ___ __| | ___ ___ _____ __ 20:43:28 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 20:43:28 | |___| (_) | (_| | __/ (_| (_) \ V / 20:43:28 \_____\___/ \__,_|\___|\___\___/ \_/ 20:43:28 Bash-1.0.6 20:43:28 20:43:28 20:43:28 ==> git version 2.25.1 found 20:43:28 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 20:43:28 Release-Date: 2020-01-08 20:43:28 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 20:43:28 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 20:43:28 ==> Jenkins CI detected. 20:43:28 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-315 20:43:28 project root: . 20:43:28 --> token set from env 20:43:28 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 20:43:28 ==> Running gcov in . (disable via -X gcov) 20:43:28 ==> Python coveragepy not found 20:43:28 ==> Searching for coverage reports in: 20:43:28 + . 20:43:28 -> Found 1 reports 20:43:28 ==> Detecting git/mercurial file structure 20:43:28 ==> Reading reports 20:43:28 + ./coverage.out bytes=14663 20:43:28 ==> Appending adjustments 20:43:28 https://docs.codecov.io/docs/fixing-reports 20:43:28 + Found adjustments 20:43:28 ==> Gzipping contents 20:43:28 4.0K /tmp/codecov.U4Azwr.gz 20:43:28 ==> Uploading reports 20:43:28 url: https://codecov.io 20:43:28 query: branch=PR-315&commit=951443b8098106d8f8acb1d6b73cac3b5f71ba9d&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-315%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=315&job=&cmd_args= 20:43:28 -> Pinging Codecov 20:43:28 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-315&commit=951443b8098106d8f8acb1d6b73cac3b5f71ba9d&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-315%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=315&job=&cmd_args= 20:43:28 -> Uploading to 20:43:28 https://storage.googleapis.com/codecov/v4/raw/2023-05-10/4E5D53B4F1F92C436F7061BF334D961C/951443b8098106d8f8acb1d6b73cac3b5f71ba9d/6ce2ea56-ebc0-4ae0-900e-0273a0154313.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230510%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230510T204328Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=0a83adbe5950e65dea1294550a91eb73d0707259046efbaa925a0aaabc732662 20:43:28 % Total % Received % Xferd Average Speed Time Time Time Current 20:43:28 Dload Upload Total Spent Left Speed 20:43:28 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 11461 --:--:-- --:--:-- --:--:-- 11461 20:43:28 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/951443b8098106d8f8acb1d6b73cac3b5f71ba9d [Pipeline] } 20:43:28 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 20:43:30 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-315/archives ] 20:43:30 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-315/archives 20:43:30 total 16 20:43:30 drwxr-xr-x 3 root root 4096 May 10 20:33 . 20:43:30 drwxrwxr-x 10 jenkins jenkins 4096 May 10 20:33 .. 20:43:30 drwxr-xr-x 2 root root 4096 May 10 20:33 cost 20:43:30 -rw-r--r-- 1 root root 86 May 10 20:33 cost.csv 20:43:30 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-315/archives 20:43:30 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-315/archives 20:43:30 total 16 20:43:30 drwxr-xr-x 3 jenkins jenkins 4096 May 10 20:33 . 20:43:30 drwxrwxr-x 10 jenkins jenkins 4096 May 10 20:33 .. 20:43:30 drwxr-xr-x 2 jenkins jenkins 4096 May 10 20:33 cost 20:43:30 -rw-r--r-- 1 jenkins jenkins 86 May 10 20:33 cost.csv [Pipeline] libraryResource [Pipeline] sh 20:43:30 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:43:31 ---> package-listing.sh 20:43:31 ++ facter osfamily 20:43:31 ++ tr '[:upper:]' '[:lower:]' 20:43:32 + OS_FAMILY=debian 20:43:32 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-315 20:43:32 + START_PACKAGES=/tmp/packages_start.txt 20:43:32 + END_PACKAGES=/tmp/packages_end.txt 20:43:32 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:43:32 + PACKAGES=/tmp/packages_start.txt 20:43:32 + '[' /w/workspace/gexfoundry_device-rest-go_PR-315 ']' 20:43:32 + PACKAGES=/tmp/packages_end.txt 20:43:32 + case "${OS_FAMILY}" in 20:43:32 + dpkg -l 20:43:32 + grep '^ii' 20:43:32 + '[' -f /tmp/packages_start.txt ']' 20:43:32 + '[' -f /tmp/packages_end.txt ']' 20:43:32 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:43:32 + '[' /w/workspace/gexfoundry_device-rest-go_PR-315 ']' 20:43:32 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-315/archives/ 20:43:32 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-315/archives/ [Pipeline] echo 20:43:32 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-315/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 20:43:32 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:43:33 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:43:33 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:43:33 prd-ubuntu20.04-docker-8c-8g-14953 does not seem to be running inside a container 20:43:33 $ 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-315/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-315 -v /w/workspace/gexfoundry_device-rest-go_PR-315:/w/workspace/gexfoundry_device-rest-go_PR-315:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-315@tmp:/w/workspace/gexfoundry_device-rest-go_PR-315@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 20:43:33 $ docker top 0ab094aa69d809db563a36d606fb7e7d7e09146af3845f742644a4a5de454407 -eo pid,comm [Pipeline] { [Pipeline] sh 20:43:34 + touch /tmp/pre-build-complete [Pipeline] sh 20:43:34 + mkdir -p /var/log/sysstat [Pipeline] sh 20:43:34 + ls /var/log/sa-host 20:43:34 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:43:34 provisioning config files... 20:43:35 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-315@tmp/config7967281059500854927tmp [Pipeline] { [Pipeline] echo 20:43:35 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:43:35 ---> create-netrc.sh [Pipeline] } 20:43:35 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 20:43:35 ---> python-tools-install.sh [Pipeline] echo 20:43:35 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 20:43:36 ---> sudo-logs.sh 20:43:36 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 20:43:36 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 20:43:36 ---> job-cost.sh 20:43:36 lf-activate-venv: SKIPPING 20:43:36 DEBUG: total: 0.2199999988079071 20:43:36 INFO: Retrieving Stack Cost... 20:43:37 INFO: Retrieving Pricing Info for: v3-standard-8 20:43:37 INFO: Archiving Costs [Pipeline] echo 20:43:37 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:43:37 ---> logs-deploy.sh 20:43:37 lf-activate-venv: SKIPPING 20:43:37 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-315/1 20:43:37 INFO: archiving workspace using pattern(s): 20:43:38 Archives upload complete. 20:43:38 INFO: archiving logs to Nexus