Pull request #229 updated Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of sudhamani-hcl for edgexfoundry/device-rest-go Obtained Jenkinsfile from ff6ce5c3090b2d908f9c26fedcc0482195c5264c+7d8e6f5ecbf08d53345d5c199887d0d319da1d2d (19a432ed611949b88b85eb47d40fc251e3c232ea) 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-ssh8992917487261527697.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh13989740360237263575.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-229/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-229/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh5126761563852313987.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 # timeout=10 Commit message: "Merge pull request #420 from bill-mahoney/levski-update" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh15865298840307069368.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 The recommended git tool is: NONE using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-229/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-229/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh14492793895839505433.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.18 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘prd-ubuntu20.04-docker-8c-8g-2888’ Running on prd-ubuntu20.04-docker-8c-8g-2890 in /w/workspace/gexfoundry_device-rest-go_PR-229 [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-229 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/229/head:refs/remotes/origin/PR-229 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 7d8e6f5ecbf08d53345d5c199887d0d319da1d2d into PR head commit ff6ce5c3090b2d908f9c26fedcc0482195c5264c Merge succeeded, producing 6080b04240aef5d4363153901ebd9e8e0df69f9f Checking out Revision 6080b04240aef5d4363153901ebd9e8e0df69f9f (PR-229) > git config core.sparsecheckout # timeout=10 > git checkout -f ff6ce5c3090b2d908f9c26fedcc0482195c5264c # 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 7d8e6f5ecbf08d53345d5c199887d0d319da1d2d # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 6080b04240aef5d4363153901ebd9e8e0df69f9f # timeout=10 Commit message: "Merge commit '7d8e6f5ecbf08d53345d5c199887d0d319da1d2d' into HEAD" First time build. Skipping changelog. > git rev-list --no-walk 4e396d58f1d2de6a2dab6773ae1b3f0a8d08ee35 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 06:57:32 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 06:57:32 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 06:57:32 ========================================================= 06:57:32 EdgeX Global Pipelines Version Info 06:57:32 ========================================================= [Pipeline] libraryResource [Pipeline] sh 06:57:33 ------------------- 06:57:33 stable info: 06:57:33 ------------------- 06:57:33 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 06:57:33 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 06:57:33 Message: update stable to v1.0.244 06:57:33 ------------------- 06:57:33 experimental info: 06:57:33 ------------------- 06:57:33 Commited By: **** collab-it+edgex@linuxfoundation.org 06:57:33 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 06:57:33 Message: update experimental to v1.0.244 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.18 [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 06:57:33 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 06:57:34 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 06:57:34 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 06:57:34 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-229 [Pipeline] echo 06:57:34 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-229 [Pipeline] echo 06:57:34 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-229 [Pipeline] echo 06:57:34 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 6080b04240aef5d4363153901ebd9e8e0df69f9f [Pipeline] echo 06:57:34 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 6080b04 [Pipeline] echo 06:57:34 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 06:57:34 provisioning config files... 06:57:34 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/config12716898554320536437tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 06:57:34 ---> docker-login.sh 06:57:34 nexus3.edgexfoundry.org:10001 06:57:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:57:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:57:34 Configure a credential helper to remove this warning. See 06:57:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:57:34 06:57:34 Login Succeeded 06:57:34 nexus3.edgexfoundry.org:10002 06:57:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:57:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:57:34 Configure a credential helper to remove this warning. See 06:57:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:57:34 06:57:34 Login Succeeded 06:57:34 nexus3.edgexfoundry.org:10003 06:57:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:57:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:57:34 Configure a credential helper to remove this warning. See 06:57:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:57:34 06:57:34 Login Succeeded 06:57:34 nexus3.edgexfoundry.org:10004 06:57:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:57:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:57:35 Configure a credential helper to remove this warning. See 06:57:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:57:35 06:57:35 Login Succeeded 06:57:35 docker.io 06:57:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:57:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:57:35 Configure a credential helper to remove this warning. See 06:57:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:57:35 06:57:35 Login Succeeded 06:57:35 ---> docker-login.sh ends [Pipeline] } 06:57:35 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 06:57:35 + git rev-list -1 --merges 6080b04240aef5d4363153901ebd9e8e0df69f9f~1..6080b04240aef5d4363153901ebd9e8e0df69f9f [Pipeline] echo 06:57:35 -----------> git rev-list -1 --merges 6080b04240aef5d4363153901ebd9e8e0df69f9f~1..6080b04240aef5d4363153901ebd9e8e0df69f9f 6080b04240aef5d4363153901ebd9e8e0df69f9f 06:57:35 6080b04240aef5d4363153901ebd9e8e0df69f9f [false] [Pipeline] sh 06:57:36 + git log --format=format:%s -1 6080b04240aef5d4363153901ebd9e8e0df69f9f [Pipeline] echo 06:57:36 ========================================================= 06:57:36 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 06:57:36 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 06:57:36 + git log --format=format:%s -1 6080b04240aef5d4363153901ebd9e8e0df69f9f [Pipeline] echo 06:57:36 [semverPrep] GIT_COMMIT: 6080b04240aef5d4363153901ebd9e8e0df69f9f, Commit Message: Merge commit '7d8e6f5ecbf08d53345d5c199887d0d319da1d2d' into HEAD [Pipeline] echo 06:57:36 [semverPrep] This is not a build commit. [Pipeline] sh 06:57:36 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 06:57:36 + grep -v github /etc/ssh/ssh_known_hosts 06:57:36 + [ -e /tmp/ssh_known_hosts ] 06:57:36 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 06:57:36 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 06:57:36 + sudo tee -a /etc/ssh/ssh_known_hosts 06:57:36 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:57:37 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 06:57:37 06:57:37 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:57:37 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 06:57:37 0.1.4: Pulling from edgex-devops/py-git-semver 06:57:37 b85a868b505f: Pulling fs layer 06:57:37 e2be974225ed: Pulling fs layer 06:57:37 339a4e72a1f5: Pulling fs layer 06:57:37 988bab9f4d93: Pulling fs layer 06:57:37 1469e6f7b9e6: Pulling fs layer 06:57:37 eaf3925da568: Pulling fs layer 06:57:37 bab4dde63d76: Pulling fs layer 06:57:37 bde34c3a00c8: Pulling fs layer 06:57:37 b352a97aabf1: Pulling fs layer 06:57:37 4872d77fe225: Pulling fs layer 06:57:37 5851b861e8e6: Pulling fs layer 06:57:37 1469e6f7b9e6: Waiting 06:57:37 eaf3925da568: Waiting 06:57:37 bab4dde63d76: Waiting 06:57:37 bde34c3a00c8: Waiting 06:57:37 b352a97aabf1: Waiting 06:57:37 4872d77fe225: Waiting 06:57:37 5851b861e8e6: Waiting 06:57:37 e2be974225ed: Verifying Checksum 06:57:37 e2be974225ed: Download complete 06:57:37 988bab9f4d93: Download complete 06:57:37 1469e6f7b9e6: Verifying Checksum 06:57:37 1469e6f7b9e6: Download complete 06:57:37 eaf3925da568: Download complete 06:57:37 339a4e72a1f5: Verifying Checksum 06:57:37 339a4e72a1f5: Download complete 06:57:38 bde34c3a00c8: Download complete 06:57:38 b85a868b505f: Verifying Checksum 06:57:38 b85a868b505f: Download complete 06:57:38 b352a97aabf1: Verifying Checksum 06:57:38 b352a97aabf1: Download complete 06:57:38 4872d77fe225: Verifying Checksum 06:57:38 4872d77fe225: Download complete 06:57:38 5851b861e8e6: Download complete 06:57:38 bab4dde63d76: Verifying Checksum 06:57:38 bab4dde63d76: Download complete 06:57:39 b85a868b505f: Pull complete 06:57:39 e2be974225ed: Pull complete 06:57:40 339a4e72a1f5: Pull complete 06:57:40 988bab9f4d93: Pull complete 06:57:40 1469e6f7b9e6: Pull complete 06:57:40 eaf3925da568: Pull complete 06:57:42 bab4dde63d76: Pull complete 06:57:42 bde34c3a00c8: Pull complete 06:57:42 b352a97aabf1: Pull complete 06:57:42 4872d77fe225: Pull complete 06:57:42 5851b861e8e6: Pull complete 06:57:42 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 06:57:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 06:57:42 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:57:42 prd-ubuntu20.04-docker-8c-8g-2890 does not seem to be running inside a container 06:57:42 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-229 -v /w/workspace/gexfoundry_device-rest-go_PR-229:/w/workspace/gexfoundry_device-rest-go_PR-229:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-229@tmp:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 06:57:43 $ docker top c5f65af6e46061bc9a272f6a272d8fb1e957b1ecd598821f53cc04e864a34251 -eo pid,comm 06:57:43 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). 06:57:43 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 06:57:43 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 06:57:43 [ssh-agent] Looking for ssh-agent implementation... 06:57:43 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 06:57:43 $ docker exec c5f65af6e46061bc9a272f6a272d8fb1e957b1ecd598821f53cc04e864a34251 ssh-agent 06:57:44 SSH_AUTH_SOCK=/tmp/ssh-61i0bfurzTZJ/agent.32 06:57:44 SSH_AGENT_PID=38 06:57:44 Running ssh-add (command line suppressed) 06:57:44 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_10049072094006559095.key (/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_10049072094006559095.key) 06:57:44 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 06:57:44 + git tag --points-at HEAD [Pipeline] } 06:57:44 $ docker exec --env ******** --env ******** c5f65af6e46061bc9a272f6a272d8fb1e957b1ecd598821f53cc04e864a34251 ssh-agent -k 06:57:44 unset SSH_AUTH_SOCK; 06:57:44 unset SSH_AGENT_PID; 06:57:44 echo Agent pid 38 killed; 06:57:44 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 06:57:44 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 06:57:44 [ssh-agent] Looking for ssh-agent implementation... 06:57:44 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 06:57:44 $ docker exec c5f65af6e46061bc9a272f6a272d8fb1e957b1ecd598821f53cc04e864a34251 ssh-agent 06:57:44 SSH_AUTH_SOCK=/tmp/ssh-DqZduOAZaOOx/agent.70 06:57:44 SSH_AGENT_PID=76 06:57:44 Running ssh-add (command line suppressed) 06:57:45 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_17826151976803137893.key (/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_17826151976803137893.key) 06:57:45 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 06:57:45 + git semver init 06:57:45 2023-01-18 06:57:45,489 [run_init] DEBUG init version:0.0.0 force:False 06:57:45 2023-01-18 06:57:45,490 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-229/.semver 06:57:45 2023-01-18 06:57:45,490 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-229/.semver 06:57:45 2023-01-18 06:57:45,490 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-229/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-229, universal_newlines=False, shell=None, istream=None) 06:57:46 2023-01-18 06:57:46,484 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-229/.git/info/exclude 06:57:46 2023-01-18 06:57:46,485 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-229/.semver/PR-229 with force:False 06:57:46 2023-01-18 06:57:46,485 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-229/.semver/PR-229 06:57:46 2023-01-18 06:57:46,489 [execute] INFO git cat-file --batch-check 06:57:46 2023-01-18 06:57:46,490 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-229/.semver, universal_newlines=False, shell=None, istream=) 06:57:46 2023-01-18 06:57:46,496 [execute] INFO git cat-file --batch 06:57:46 2023-01-18 06:57:46,496 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-229/.semver, universal_newlines=False, shell=None, istream=) 06:57:46 2023-01-18 06:57:46,501 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-229/.semver/PR-229 06:57:46 0.0.0 [Pipeline] } 06:57:46 $ docker exec --env ******** --env ******** c5f65af6e46061bc9a272f6a272d8fb1e957b1ecd598821f53cc04e864a34251 ssh-agent -k 06:57:46 unset SSH_AUTH_SOCK; 06:57:46 unset SSH_AGENT_PID; 06:57:46 echo Agent pid 76 killed; 06:57:46 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 06:57:46 + git semver [Pipeline] } 06:57:47 $ docker stop --time=1 c5f65af6e46061bc9a272f6a272d8fb1e957b1ecd598821f53cc04e864a34251 06:57:48 $ docker rm -f --volumes c5f65af6e46061bc9a272f6a272d8fb1e957b1ecd598821f53cc04e864a34251 [Pipeline] // withDockerContainer [Pipeline] sh 06:57:48 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 06:57:49 Stashed 1 file(s) [Pipeline] echo 06:57:49 [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 06:57:49 provisioning config files... 06:57:49 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/config15892943696584072077tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 06:57:49 ---> docker-login.sh 06:57:49 nexus3.edgexfoundry.org:10001 06:57:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:57:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:57:49 Configure a credential helper to remove this warning. See 06:57:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:57:49 06:57:49 Login Succeeded 06:57:49 nexus3.edgexfoundry.org:10002 06:57:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:57:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:57:49 Configure a credential helper to remove this warning. See 06:57:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:57:49 06:57:49 Login Succeeded 06:57:49 nexus3.edgexfoundry.org:10003 06:57:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:57:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:57:49 Configure a credential helper to remove this warning. See 06:57:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:57:49 06:57:49 Login Succeeded 06:57:49 nexus3.edgexfoundry.org:10004 06:57:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:57:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:57:49 Configure a credential helper to remove this warning. See 06:57:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:57:49 06:57:49 Login Succeeded 06:57:49 docker.io 06:57:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:57:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:57:50 Configure a credential helper to remove this warning. See 06:57:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:57:50 06:57:50 Login Succeeded 06:57:50 ---> docker-login.sh ends [Pipeline] } 06:57:50 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 06:57:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 06:57:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 06:57:50 ========================================================= 06:57:50 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine] 06:57:50 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:57:50 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine --build-arg MAKE=echo noop --target=builder . 06:57:50 Sending build context to Docker daemon 10.82MB 06:57:50 Step 1/12 : ARG BASE=golang:1.18-alpine3.16 06:57:50 Step 2/12 : FROM ${BASE} AS builder 06:57:50 1.18-alpine: Pulling from edgex-devops/edgex-golang-base 06:57:50 213ec9aee27d: Pulling fs layer 06:57:50 4583459ba037: Pulling fs layer 06:57:50 93c1e223e6f2: Pulling fs layer 06:57:50 53926ce57604: Pulling fs layer 06:57:50 21b2b0c7a3f4: Pulling fs layer 06:57:50 22ff95d597cd: Pulling fs layer 06:57:50 12d6caf4c0d1: Pulling fs layer 06:57:50 96b7cbca73a9: Pulling fs layer 06:57:50 a7acece74701: Pulling fs layer 06:57:50 53926ce57604: Waiting 06:57:50 21b2b0c7a3f4: Waiting 06:57:50 22ff95d597cd: Waiting 06:57:50 a7acece74701: Waiting 06:57:50 12d6caf4c0d1: Waiting 06:57:50 93c1e223e6f2: Verifying Checksum 06:57:50 93c1e223e6f2: Download complete 06:57:50 4583459ba037: Verifying Checksum 06:57:50 4583459ba037: Download complete 06:57:50 21b2b0c7a3f4: Verifying Checksum 06:57:50 22ff95d597cd: Verifying Checksum 06:57:50 22ff95d597cd: Download complete 06:57:50 213ec9aee27d: Verifying Checksum 06:57:50 213ec9aee27d: Download complete 06:57:50 12d6caf4c0d1: Download complete 06:57:50 213ec9aee27d: Pull complete 06:57:51 4583459ba037: Pull complete 06:57:51 93c1e223e6f2: Pull complete 06:57:52 a7acece74701: Verifying Checksum 06:57:52 a7acece74701: Download complete 06:57:52 53926ce57604: Verifying Checksum 06:57:52 53926ce57604: Download complete 06:57:52 96b7cbca73a9: Verifying Checksum 06:57:52 96b7cbca73a9: Download complete 06:57:56 53926ce57604: Pull complete 06:57:56 21b2b0c7a3f4: Pull complete 06:57:56 22ff95d597cd: Pull complete 06:57:56 12d6caf4c0d1: Pull complete 06:57:58 96b7cbca73a9: Pull complete 06:57:58 a7acece74701: Pull complete 06:57:58 Digest: sha256:f6a9ef70c52da88a2ff63a0c6767b24654f9f5185d1d85ca6cc3004fb48f6c2d 06:57:58 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine 06:57:58 ---> db6d94c90886 06:57:58 Step 3/12 : ARG ADD_BUILD_TAGS="" 06:58:00 ---> Running in b7060427e46d 06:58:00 Removing intermediate container b7060427e46d 06:58:00 ---> 528833db38fc 06:58:00 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 06:58:00 ---> Running in 537891387b49 06:58:00 Removing intermediate container 537891387b49 06:58:00 ---> 2717091aba7e 06:58:00 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 06:58:00 ---> Running in 5cee0be8861c 06:58:00 Removing intermediate container 5cee0be8861c 06:58:00 ---> 18179f404d8d 06:58:00 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 06:58:00 ---> Running in 327768584ce5 06:58:00 Removing intermediate container 327768584ce5 06:58:00 ---> 845e784d3466 06:58:00 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 06:58:00 ---> Running in 3ba9dfd02817 06:58:01 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 06:58:01 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 06:58:01 (1/4) Installing openssh-keygen (9.0_p1-r2) 06:58:01 (2/4) Installing libedit (20210910.3.1-r0) 06:58:01 (3/4) Installing openssh-client-common (9.0_p1-r2) 06:58:01 (4/4) Installing openssh-client-default (9.0_p1-r2) 06:58:01 Executing busybox-1.35.0-r17.trigger 06:58:01 OK: 216 MiB in 55 packages 06:58:02 Removing intermediate container 3ba9dfd02817 06:58:02 ---> 47d1c6bc03c8 06:58:02 Step 8/12 : WORKDIR /device-rest-go 06:58:02 ---> Running in 320f85f650d6 06:58:02 Removing intermediate container 320f85f650d6 06:58:02 ---> cc94c6ea749f 06:58:02 Step 9/12 : COPY go.mod vendor* ./ 06:58:02 ---> 248f8d4b0168 06:58:02 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 06:58:02 ---> Running in 658a408bf30b 06:58:04 Still waiting to schedule task 06:58:04 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-2889’ 06:58:20 Removing intermediate container 658a408bf30b 06:58:20 ---> 98d250e6661d 06:58:20 Step 11/12 : COPY . . 06:58:20 ---> c57d49204d87 06:58:20 Step 12/12 : RUN $MAKE 06:58:20 ---> Running in d96f0f0e87b4 06:58:20 noop 06:58:20 Removing intermediate container d96f0f0e87b4 06:58:20 ---> 95a3f4592e2d 06:58:20 Successfully built 95a3f4592e2d 06:58:20 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:58:20 + docker inspect -f . ci-base-image-x86_64 06:58:20 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:58:21 prd-ubuntu20.04-docker-8c-8g-2890 does not seem to be running inside a container 06:58:21 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-229 -v /w/workspace/gexfoundry_device-rest-go_PR-229:/w/workspace/gexfoundry_device-rest-go_PR-229:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-229@tmp:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 06:58:21 $ docker top b93a69a6245bb3125e6adb68eae7f4dd7360df253182e86ddea26bf51c2de9fd -eo pid,comm [Pipeline] { [Pipeline] sh 06:58:21 + go version 06:58:21 go version go1.18.7 linux/amd64 [Pipeline] } 06:58:21 $ docker stop --time=1 b93a69a6245bb3125e6adb68eae7f4dd7360df253182e86ddea26bf51c2de9fd 06:58:23 $ docker rm -f --volumes b93a69a6245bb3125e6adb68eae7f4dd7360df253182e86ddea26bf51c2de9fd [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:58:23 + docker inspect -f . ci-base-image-x86_64 06:58:23 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:58:23 prd-ubuntu20.04-docker-8c-8g-2890 does not seem to be running inside a container 06:58:23 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/gexfoundry_device-rest-go_PR-229 -v /w/workspace/gexfoundry_device-rest-go_PR-229:/w/workspace/gexfoundry_device-rest-go_PR-229:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-229@tmp:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 06:58:23 $ docker top 25893b4612055f8428d6fd3004ac7276ed06eff94f6fd6d36a570a8c9a72bd0e -eo pid,comm [Pipeline] { [Pipeline] sh 06:58:24 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-229 [Pipeline] fileExists [Pipeline] sh 06:58:24 + make test 06:58:24 go test ./... -coverprofile=coverage.out ./... 06:58:24 ? github.com/edgexfoundry/device-rest-go [no test files] 06:58:34 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 06:58:34 ok github.com/edgexfoundry/device-rest-go/driver 0.014s coverage: 26.8% of statements 06:58:41 level=warning msg="[linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649." 06:58:41 go vet ./... 06:58:44 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 06:58:44 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 06:58:44 ./bin/test-attribution-txt.sh [Pipeline] echo 06:58:44 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 06:58:44 $ docker stop --time=1 25893b4612055f8428d6fd3004ac7276ed06eff94f6fd6d36a570a8c9a72bd0e 06:58:46 $ docker rm -f --volumes 25893b4612055f8428d6fd3004ac7276ed06eff94f6fd6d36a570a8c9a72bd0e [Pipeline] // withDockerContainer [Pipeline] sh 06:58:46 + sudo chown -R jenkins:jenkins . [Pipeline] stash 06:58:46 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 06:58:47 + sudo chown -R jenkins:jenkins . [Pipeline] sh 06:58:47 + ls -al . 06:58:47 total 200 06:58:47 drwxrwxr-x 9 jenkins jenkins 4096 Jan 18 06:58 . 06:58:47 drwxrwxr-x 4 jenkins jenkins 4096 Jan 18 06:57 .. 06:58:47 -rw-rw-r-- 1 jenkins jenkins 151 Jan 18 06:57 .dockerignore 06:58:47 drwxrwxr-x 8 jenkins jenkins 4096 Jan 18 06:58 .git 06:58:47 drwxrwxr-x 3 jenkins jenkins 4096 Jan 18 06:57 .github 06:58:47 -rw-rw-r-- 1 jenkins jenkins 329 Jan 18 06:57 .gitignore 06:58:47 -rw-rw-r-- 1 jenkins jenkins 41 Jan 18 06:57 .golangci.yml 06:58:47 drwxr-xr-x 3 jenkins jenkins 4096 Jan 18 06:57 .semver 06:58:47 -rw-rw-r-- 1 jenkins jenkins 8996 Jan 18 06:57 Attribution.txt 06:58:47 -rw-rw-r-- 1 jenkins jenkins 13085 Jan 18 06:57 CHANGELOG.md 06:58:47 -rw-rw-r-- 1 jenkins jenkins 1578 Jan 18 06:57 Dockerfile 06:58:47 -rw-rw-r-- 1 jenkins jenkins 677 Jan 18 06:57 GOVERNANCE.md 06:58:47 -rw-rw-r-- 1 jenkins jenkins 680 Jan 18 06:57 Jenkinsfile 06:58:47 -rw-rw-r-- 1 jenkins jenkins 11340 Jan 18 06:57 LICENSE 06:58:47 -rw-rw-r-- 1 jenkins jenkins 1744 Jan 18 06:57 Makefile 06:58:47 -rw-rw-r-- 1 jenkins jenkins 620 Jan 18 06:57 OWNERS.md 06:58:47 -rw-rw-r-- 1 jenkins jenkins 12657 Jan 18 06:57 README.md 06:58:47 -rw-rw-r-- 1 jenkins jenkins 5 Jan 18 06:57 VERSION 06:58:47 drwxrwxr-x 2 jenkins jenkins 4096 Jan 18 06:57 bin 06:58:47 drwxrwxr-x 3 jenkins jenkins 4096 Jan 18 06:57 cmd 06:58:47 -rw-r--r-- 1 jenkins jenkins 18351 Jan 18 06:58 coverage.out 06:58:47 drwxrwxr-x 2 jenkins jenkins 4096 Jan 18 06:57 driver 06:58:47 -rw-rw-r-- 1 jenkins jenkins 3488 Jan 18 06:57 go.mod 06:58:47 -rw-rw-r-- 1 jenkins jenkins 45013 Jan 18 06:57 go.sum 06:58:47 drwxrwxr-x 4 jenkins jenkins 4096 Jan 18 06:57 snap 06:58:47 -rw-rw-r-- 1 jenkins jenkins 713 Jan 18 06:57 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:58:47 + 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=6080b04240aef5d4363153901ebd9e8e0df69f9f --label arch=amd64 --label version=0.0.0 . 06:58:47 Sending build context to Docker daemon 10.84MB 06:58:47 Step 1/25 : ARG BASE=golang:1.18-alpine3.16 06:58:47 Step 2/25 : FROM ${BASE} AS builder 06:58:47 ---> 95a3f4592e2d 06:58:47 Step 3/25 : ARG ADD_BUILD_TAGS="" 06:58:47 ---> Running in 1c6cc4e2c935 06:58:47 Removing intermediate container 1c6cc4e2c935 06:58:47 ---> 61e4cd2585e9 06:58:47 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 06:58:48 ---> Running in 2676dd4b0615 06:58:48 Removing intermediate container 2676dd4b0615 06:58:48 ---> 067718a459cf 06:58:48 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 06:58:48 ---> Running in 248698f1bc07 06:58:48 Removing intermediate container 248698f1bc07 06:58:48 ---> 54a563c0d5c7 06:58:48 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 06:58:48 ---> Running in 95b739129eeb 06:58:48 Removing intermediate container 95b739129eeb 06:58:48 ---> 914ab449b2c9 06:58:48 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 06:58:48 ---> Running in ebf7d50ed4ff 06:58:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 06:58:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 06:58:48 OK: 216 MiB in 55 packages 06:58:49 Removing intermediate container ebf7d50ed4ff 06:58:49 ---> 1a06c160a218 06:58:49 Step 8/25 : WORKDIR /device-rest-go 06:58:49 ---> Running in 18580bf9c3c7 06:58:49 Removing intermediate container 18580bf9c3c7 06:58:49 ---> 4adb1e51b553 06:58:49 Step 9/25 : COPY go.mod vendor* ./ 06:58:49 ---> 83af6b433a60 06:58:49 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 06:58:49 ---> Running in ed75053e1ff9 06:58:50 Removing intermediate container ed75053e1ff9 06:58:50 ---> fad77d05494c 06:58:50 Step 11/25 : COPY . . 06:58:50 ---> b15c0586bb4a 06:58:50 Step 12/25 : RUN $MAKE 06:58:50 ---> Running in d600e58d19d8 06:58:50 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 06:59:08 Removing intermediate container d600e58d19d8 06:59:08 ---> 01755bbe80e0 06:59:08 Step 13/25 : FROM alpine:3.16 06:59:09 3.16: Pulling from library/alpine 06:59:09 ca7dd9ec2225: Pulling fs layer 06:59:09 ca7dd9ec2225: Verifying Checksum 06:59:09 ca7dd9ec2225: Download complete 06:59:09 ca7dd9ec2225: Pull complete 06:59:09 Digest: sha256:b95359c2505145f16c6aa384f9cc74eeff78eb36d308ca4fd902eeeb0a0b161b 06:59:09 Status: Downloaded newer image for alpine:3.16 06:59:09 ---> bfe296a52501 06:59:09 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 06:59:09 ---> Running in be25cfe73526 06:59:09 Removing intermediate container be25cfe73526 06:59:09 ---> 0b318c42717f 06:59:09 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 06:59:09 ---> Running in 4debf9173c31 06:59:09 Removing intermediate container 4debf9173c31 06:59:09 ---> f7d62c68678b 06:59:09 Step 16/25 : RUN apk add --update --no-cache dumb-init 06:59:09 ---> Running in 272bb54c053c 06:59:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 06:59:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 06:59:10 (1/1) Installing dumb-init (1.2.5-r1) 06:59:10 Executing busybox-1.35.0-r17.trigger 06:59:10 OK: 6 MiB in 15 packages 06:59:11 Removing intermediate container 272bb54c053c 06:59:11 ---> 0ba0d3a93f43 06:59:11 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 06:59:12 ---> 3b11839ff2ea 06:59:12 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 06:59:12 ---> 4c0c32342ebb 06:59:12 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 06:59:12 ---> 90758563d139 06:59:12 Step 20/25 : EXPOSE 59986 06:59:12 ---> Running in 98918cee5b50 06:59:12 Removing intermediate container 98918cee5b50 06:59:12 ---> 9d78da2447d8 06:59:12 Step 21/25 : ENTRYPOINT ["/device-rest"] 06:59:12 ---> Running in aa7976227dbd 06:59:12 Removing intermediate container aa7976227dbd 06:59:12 ---> deb5b700d4b0 06:59:12 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 06:59:12 ---> Running in fcbfae0fa59d 06:59:12 Removing intermediate container fcbfae0fa59d 06:59:12 ---> 93717f16c898 06:59:12 Step 23/25 : LABEL arch=amd64 06:59:12 ---> Running in 3c8d89975cc6 06:59:12 Removing intermediate container 3c8d89975cc6 06:59:12 ---> ff9358f16292 06:59:12 Step 24/25 : LABEL git_sha=6080b04240aef5d4363153901ebd9e8e0df69f9f 06:59:12 ---> Running in 0dcb8b6a6f50 06:59:13 Removing intermediate container 0dcb8b6a6f50 06:59:13 ---> 0cedc04dea40 06:59:13 Step 25/25 : LABEL version=0.0.0 06:59:13 ---> Running in 93d9f6b993ba 06:59:13 Removing intermediate container 93d9f6b993ba 06:59:13 ---> 8c982f30c460 06:59:13 [Warning] One or more build-args [ARCH] were not consumed 06:59:13 Successfully built 8c982f30c460 06:59:13 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 06:59:13 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 06:59:13 06:59:13 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:59:13 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 06:59:13 latest: Pulling from edgex-lftools-log-publisher 06:59:13 5eb5b503b376: Pulling fs layer 06:59:13 5c69ac0246d0: Pulling fs layer 06:59:13 ec43610c2a17: Pulling fs layer 06:59:13 3a2ae6a8a46f: Pulling fs layer 06:59:13 33b1e0a273af: Pulling fs layer 06:59:13 5d3b04190fa2: Pulling fs layer 06:59:13 2f39f015ded8: Pulling fs layer 06:59:13 3a2ae6a8a46f: Waiting 06:59:13 33b1e0a273af: Waiting 06:59:13 2f39f015ded8: Waiting 06:59:13 5d3b04190fa2: Waiting 06:59:13 5c69ac0246d0: Verifying Checksum 06:59:13 5c69ac0246d0: Download complete 06:59:13 3a2ae6a8a46f: Verifying Checksum 06:59:13 3a2ae6a8a46f: Download complete 06:59:14 33b1e0a273af: Verifying Checksum 06:59:14 33b1e0a273af: Download complete 06:59:14 5d3b04190fa2: Verifying Checksum 06:59:14 5d3b04190fa2: Download complete 06:59:14 ec43610c2a17: Verifying Checksum 06:59:14 ec43610c2a17: Download complete 06:59:14 5eb5b503b376: Download complete 06:59:15 2f39f015ded8: Download complete 06:59:15 5eb5b503b376: Pull complete 06:59:15 5c69ac0246d0: Pull complete 06:59:16 ec43610c2a17: Pull complete 06:59:16 3a2ae6a8a46f: Pull complete 06:59:16 33b1e0a273af: Pull complete 06:59:16 5d3b04190fa2: Pull complete 06:59:21 2f39f015ded8: Pull complete 06:59:21 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 06:59:21 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 06:59:21 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:59:21 prd-ubuntu20.04-docker-8c-8g-2890 does not seem to be running inside a container 06:59:21 $ 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-229 -v /w/workspace/gexfoundry_device-rest-go_PR-229:/w/workspace/gexfoundry_device-rest-go_PR-229:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-229@tmp:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 06:59:22 $ docker top 3b746ad3571fd524fe6ae6c2282acf2f54e1cffad1b66015bda34e9c076ea26c -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 06:59:23 ---> job-cost.sh 06:59:23 lf-activate-venv: SKIPPING 06:59:23 INFO: No Stack... 06:59:23 INFO: Retrieving Pricing Info for: v3-standard-8 06:59:23 INFO: Archiving Costs [Pipeline] sh 06:59:23 + cat /w/workspace/gexfoundry_device-rest-go_PR-229/archives/cost.csv 06:59:23 + cut -d, -f6 [Pipeline] lock 06:59:23 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-229-13-stack-cost] 06:59:23 Resource [jenkins-edgexfoundry-device-rest-go-PR-229-13-stack-cost] did not exist. Created. 06:59:23 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-229-13-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 06:59:24 + echo total: 0.2199999988079071 [Pipeline] stash 06:59:24 Stashed 1 file(s) [Pipeline] } 06:59:24 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-229-13-stack-cost] [Pipeline] // lock [Pipeline] } 06:59:24 $ docker stop --time=1 3b746ad3571fd524fe6ae6c2282acf2f54e1cffad1b66015bda34e9c076ea26c 06:59:25 $ docker rm -f --volumes 3b746ad3571fd524fe6ae6c2282acf2f54e1cffad1b66015bda34e9c076ea26c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 07:01:40 Running on prd-ubuntu20.04-docker-arm64-4c-16g-2891 in /w/workspace/gexfoundry_device-rest-go_PR-229 [Pipeline] { [Pipeline] ws 07:01:40 Running in /w/workspace/device-rest-go/13 [Pipeline] { [Pipeline] checkout 07:01:40 The recommended git tool is: git 07:01:51 using credential edgex-jenkins-ssh 07:01:51 Cloning the remote Git repository 07:01:51 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 07:01:51 > git init /w/workspace/device-rest-go/13 # timeout=10 07:01:51 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 07:01:51 > git --version # timeout=10 07:01:51 > git --version # 'git version 2.25.1' 07:01:51 using GIT_SSH to set credentials SSH Credentials for GitHub 07:01:51 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 07:01:53 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 07:01:53 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 07:01:54 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 07:01:54 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 07:01:54 using GIT_SSH to set credentials SSH Credentials for GitHub 07:01:54 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/229/head:refs/remotes/origin/PR-229 +refs/heads/main:refs/remotes/origin/main # timeout=10 07:01:55 Merging remotes/origin/main commit 7d8e6f5ecbf08d53345d5c199887d0d319da1d2d into PR head commit ff6ce5c3090b2d908f9c26fedcc0482195c5264c 07:01:55 Merge succeeded, producing 939fcac84ab68858f7c2a17ce4194403d8f19198 07:01:55 Checking out Revision 939fcac84ab68858f7c2a17ce4194403d8f19198 (PR-229) 07:01:55 > git config core.sparsecheckout # timeout=10 07:01:55 > git checkout -f ff6ce5c3090b2d908f9c26fedcc0482195c5264c # timeout=10 07:01:55 > git remote # timeout=10 07:01:55 > git config --get remote.origin.url # timeout=10 07:01:55 using GIT_SSH to set credentials SSH Credentials for GitHub 07:01:55 > git merge 7d8e6f5ecbf08d53345d5c199887d0d319da1d2d # timeout=10 07:01:55 > git rev-parse HEAD^{commit} # timeout=10 07:01:55 > git config core.sparsecheckout # timeout=10 07:01:55 > git checkout -f 939fcac84ab68858f7c2a17ce4194403d8f19198 # timeout=10 07:01:59 Commit message: "Merge commit '7d8e6f5ecbf08d53345d5c199887d0d319da1d2d' into HEAD" 07:01:59 First time build. Skipping changelog. [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 07:02:00 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 07:02:00 % Total % Received % Xferd Average Speed Time Time Time Current 07:02:00 Dload Upload Total Spent Left Speed 07:02:00 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 68187 0 --:--:-- --:--:-- --:--:-- 68187 07:01:59 > git rev-list --no-walk 4e396d58f1d2de6a2dab6773ae1b3f0a8d08ee35 # timeout=10 [Pipeline] sh 07:02:00 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 07:02:01 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 07:02:01 + sudo tee /etc/docker/daemon.new 07:02:01 { 07:02:01 "registry-mirrors": [ 07:02:01 "https://nexus3.edgexfoundry.org:10001" 07:02:01 ], 07:02:01 "bip": "10.250.0.254/24", 07:02:01 "hosts": [ 07:02:01 "tcp://0.0.0.0:5555", 07:02:01 "unix:///var/run/docker.sock" 07:02:01 ], 07:02:01 "mtu": 1458, 07:02:01 "selinux-enabled": true, 07:02:01 "seccomp-profile": "/etc/docker/seccomp.json" 07:02:01 } [Pipeline] sh 07:02:01 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 07:02:01 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:02:19 provisioning config files... 07:02:20 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/13@tmp/config8143351824935452358tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:02:20 ---> docker-login.sh 07:02:20 nexus3.edgexfoundry.org:10001 07:02:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:02:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:02:20 Configure a credential helper to remove this warning. See 07:02:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:02:20 07:02:20 Login Succeeded 07:02:20 nexus3.edgexfoundry.org:10002 07:02:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:02:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:02:21 Configure a credential helper to remove this warning. See 07:02:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:02:21 07:02:21 Login Succeeded 07:02:21 nexus3.edgexfoundry.org:10003 07:02:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:02:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:02:21 Configure a credential helper to remove this warning. See 07:02:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:02:21 07:02:21 Login Succeeded 07:02:21 nexus3.edgexfoundry.org:10004 07:02:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:02:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:02:22 Configure a credential helper to remove this warning. See 07:02:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:02:22 07:02:22 Login Succeeded 07:02:22 docker.io 07:02:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:02:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:02:22 Configure a credential helper to remove this warning. See 07:02:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:02:22 07:02:22 Login Succeeded 07:02:22 ---> docker-login.sh ends [Pipeline] } 07:02:22 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 07:02:22 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:02:22 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:02:22 ========================================================= 07:02:22 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine] 07:02:22 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:02:23 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine --build-arg MAKE=echo noop --target=builder . 07:02:23 Sending build context to Docker daemon 147.5kB 07:02:23 Step 1/12 : ARG BASE=golang:1.18-alpine3.16 07:02:23 Step 2/12 : FROM ${BASE} AS builder 07:02:23 1.18-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 07:02:23 9b18e9b68314: Pulling fs layer 07:02:23 35d82f9e3411: Pulling fs layer 07:02:23 e16973657156: Pulling fs layer 07:02:23 fc693d55d65f: Pulling fs layer 07:02:23 7e9fc2657dce: Pulling fs layer 07:02:23 dda99020689f: Pulling fs layer 07:02:23 db1c61fa0a46: Pulling fs layer 07:02:23 891c053d2c06: Pulling fs layer 07:02:23 fc693d55d65f: Waiting 07:02:23 dda99020689f: Waiting 07:02:23 7e9fc2657dce: Waiting 07:02:23 891c053d2c06: Waiting 07:02:23 e16973657156: Verifying Checksum 07:02:23 e16973657156: Download complete 07:02:23 35d82f9e3411: Verifying Checksum 07:02:23 35d82f9e3411: Download complete 07:02:23 7e9fc2657dce: Verifying Checksum 07:02:23 7e9fc2657dce: Download complete 07:02:23 9b18e9b68314: Verifying Checksum 07:02:23 9b18e9b68314: Download complete 07:02:24 dda99020689f: Verifying Checksum 07:02:24 dda99020689f: Download complete 07:02:24 9b18e9b68314: Pull complete 07:02:25 891c053d2c06: Verifying Checksum 07:02:25 891c053d2c06: Download complete 07:02:25 35d82f9e3411: Pull complete 07:02:25 e16973657156: Pull complete 07:02:26 db1c61fa0a46: Verifying Checksum 07:02:26 db1c61fa0a46: Download complete 07:02:27 fc693d55d65f: Download complete 07:02:39 fc693d55d65f: Pull complete 07:02:39 7e9fc2657dce: Pull complete 07:02:39 dda99020689f: Pull complete 07:02:44 db1c61fa0a46: Pull complete 07:02:46 891c053d2c06: Pull complete 07:02:46 Digest: sha256:2cacf8bfc28650abd52610e42dcfc04852e818eb73900ea96edaef96a54d0b45 07:02:46 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine 07:02:46 ---> f96f9c87975a 07:02:46 Step 3/12 : ARG ADD_BUILD_TAGS="" 07:02:48 ---> Running in 464682bdada2 07:02:49 Removing intermediate container 464682bdada2 07:02:49 ---> 917e6423bf8b 07:02:49 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 07:02:49 ---> Running in a20bf7644020 07:02:49 Removing intermediate container a20bf7644020 07:02:49 ---> 75c95a52b2e6 07:02:49 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 07:02:49 ---> Running in 82b41423f3b9 07:02:50 Removing intermediate container 82b41423f3b9 07:02:50 ---> 0f52ab182bf7 07:02:50 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 07:02:50 ---> Running in 3904b800be1a 07:02:50 Removing intermediate container 3904b800be1a 07:02:50 ---> 22045acf1053 07:02:50 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 07:02:50 ---> Running in b8abb5995357 07:02:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 07:02:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 07:02:52 (1/4) Installing openssh-keygen (9.0_p1-r2) 07:02:52 (2/4) Installing libedit (20210910.3.1-r0) 07:02:52 (3/4) Installing openssh-client-common (9.0_p1-r2) 07:02:52 (4/4) Installing openssh-client-default (9.0_p1-r2) 07:02:52 Executing busybox-1.35.0-r17.trigger 07:02:52 OK: 226 MiB in 55 packages 07:02:55 Removing intermediate container b8abb5995357 07:02:55 ---> 68e512d166c3 07:02:55 Step 8/12 : WORKDIR /device-rest-go 07:02:55 ---> Running in 7dc634c11a7b 07:02:55 Removing intermediate container 7dc634c11a7b 07:02:55 ---> 9a3834cdc7f5 07:02:55 Step 9/12 : COPY go.mod vendor* ./ 07:02:56 ---> 54a8ca16bd42 07:02:56 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:02:56 ---> Running in 752f923e4364 07:03:52 Removing intermediate container 752f923e4364 07:03:52 ---> c6abcc57d651 07:03:52 Step 11/12 : COPY . . 07:03:52 ---> 37340ee2c76e 07:03:52 Step 12/12 : RUN $MAKE 07:03:52 ---> Running in e5f177cc393e 07:03:52 noop 07:03:52 Removing intermediate container e5f177cc393e 07:03:52 ---> a621510c6a9a 07:03:52 Successfully built a621510c6a9a 07:03:52 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:03:53 + docker inspect -f . ci-base-image-arm64 07:03:53 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:03:53 prd-ubuntu20.04-docker-arm64-4c-16g-2891 does not seem to be running inside a container 07:03:53 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/13 -v /w/workspace/device-rest-go/13:/w/workspace/device-rest-go/13:rw,z -v /w/workspace/device-rest-go/13@tmp:/w/workspace/device-rest-go/13@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 07:03:54 $ docker top 626c22431b0563004bff6e889d90c87b68ffe386ccccd7435affc81a905ab039 -eo pid,comm [Pipeline] { [Pipeline] sh 07:03:55 + go version 07:03:55 go version go1.18.7 linux/arm64 [Pipeline] } 07:03:55 $ docker stop --time=1 626c22431b0563004bff6e889d90c87b68ffe386ccccd7435affc81a905ab039 07:03:57 $ docker rm -f --volumes 626c22431b0563004bff6e889d90c87b68ffe386ccccd7435affc81a905ab039 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:03:57 + docker inspect -f . ci-base-image-arm64 07:03:57 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:03:57 prd-ubuntu20.04-docker-arm64-4c-16g-2891 does not seem to be running inside a container 07:03:58 $ 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/13 -v /w/workspace/device-rest-go/13:/w/workspace/device-rest-go/13:rw,z -v /w/workspace/device-rest-go/13@tmp:/w/workspace/device-rest-go/13@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 07:03:59 $ docker top f4252dda036ba79b3bf54dc08c70fe03abf9ffc6d5576d3b865d60243a156399 -eo pid,comm [Pipeline] { [Pipeline] sh 07:03:59 + git config --global --add safe.directory /w/workspace/device-rest-go/13 [Pipeline] fileExists [Pipeline] sh 07:04:00 + make test 07:04:00 go test ./... -coverprofile=coverage.out ./... 07:04:02 ? github.com/edgexfoundry/device-rest-go [no test files] 07:05:24 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 07:05:24 ok github.com/edgexfoundry/device-rest-go/driver 0.064s coverage: 26.8% of statements 07:05:24 WARNING: Linting skipped (not on x86_64 or linter not installed) 07:05:24 go vet ./... 07:05:47 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 07:05:47 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 07:05:47 ./bin/test-attribution-txt.sh [Pipeline] echo 07:05:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 07:05:47 $ docker stop --time=1 f4252dda036ba79b3bf54dc08c70fe03abf9ffc6d5576d3b865d60243a156399 07:05:48 $ docker rm -f --volumes f4252dda036ba79b3bf54dc08c70fe03abf9ffc6d5576d3b865d60243a156399 [Pipeline] // withDockerContainer [Pipeline] sh 07:05:49 + sudo chown -R jenkins:jenkins . [Pipeline] stash 07:05:49 Warning: overwriting stash ‘coverage-report’ 07:05:50 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 07:05:50 + sudo chown -R jenkins:jenkins . [Pipeline] sh 07:05:51 + ls -al . 07:05:51 total 196 07:05:51 drwxrwxr-x 8 jenkins jenkins 4096 Jan 18 07:04 . 07:05:51 drwxrwxr-x 4 jenkins jenkins 4096 Jan 18 07:01 .. 07:05:51 -rw-rw-r-- 1 jenkins jenkins 151 Jan 18 07:01 .dockerignore 07:05:51 drwxrwxr-x 8 jenkins jenkins 4096 Jan 18 07:01 .git 07:05:51 drwxrwxr-x 3 jenkins jenkins 4096 Jan 18 07:01 .github 07:05:51 -rw-rw-r-- 1 jenkins jenkins 329 Jan 18 07:01 .gitignore 07:05:51 -rw-rw-r-- 1 jenkins jenkins 41 Jan 18 07:01 .golangci.yml 07:05:51 -rw-rw-r-- 1 jenkins jenkins 8996 Jan 18 07:01 Attribution.txt 07:05:51 -rw-rw-r-- 1 jenkins jenkins 13085 Jan 18 07:01 CHANGELOG.md 07:05:51 -rw-rw-r-- 1 jenkins jenkins 1578 Jan 18 07:01 Dockerfile 07:05:51 -rw-rw-r-- 1 jenkins jenkins 677 Jan 18 07:01 GOVERNANCE.md 07:05:51 -rw-rw-r-- 1 jenkins jenkins 680 Jan 18 07:01 Jenkinsfile 07:05:51 -rw-rw-r-- 1 jenkins jenkins 11340 Jan 18 07:01 LICENSE 07:05:51 -rw-rw-r-- 1 jenkins jenkins 1744 Jan 18 07:01 Makefile 07:05:51 -rw-rw-r-- 1 jenkins jenkins 620 Jan 18 07:01 OWNERS.md 07:05:51 -rw-rw-r-- 1 jenkins jenkins 12657 Jan 18 07:01 README.md 07:05:51 -rw-rw-r-- 1 jenkins jenkins 5 Jan 18 06:57 VERSION 07:05:51 drwxrwxr-x 2 jenkins jenkins 4096 Jan 18 07:01 bin 07:05:51 drwxrwxr-x 3 jenkins jenkins 4096 Jan 18 07:01 cmd 07:05:51 -rw-r--r-- 1 jenkins jenkins 18351 Jan 18 07:05 coverage.out 07:05:51 drwxrwxr-x 2 jenkins jenkins 4096 Jan 18 07:01 driver 07:05:51 -rw-rw-r-- 1 jenkins jenkins 3488 Jan 18 07:01 go.mod 07:05:51 -rw-rw-r-- 1 jenkins jenkins 45013 Jan 18 07:01 go.sum 07:05:51 drwxrwxr-x 4 jenkins jenkins 4096 Jan 18 07:01 snap 07:05:51 -rw-rw-r-- 1 jenkins jenkins 713 Jan 18 07:01 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:05:51 + 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=939fcac84ab68858f7c2a17ce4194403d8f19198 --label arch=arm64 --label version=0.0.0 . 07:05:51 Sending build context to Docker daemon 166.4kB 07:05:51 Step 1/25 : ARG BASE=golang:1.18-alpine3.16 07:05:51 Step 2/25 : FROM ${BASE} AS builder 07:05:51 ---> a621510c6a9a 07:05:51 Step 3/25 : ARG ADD_BUILD_TAGS="" 07:05:51 ---> Running in ee9a6e56ffa7 07:05:51 Removing intermediate container ee9a6e56ffa7 07:05:51 ---> cfad489670ec 07:05:51 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 07:05:52 ---> Running in bab77bff6d35 07:05:52 Removing intermediate container bab77bff6d35 07:05:52 ---> c344dd05f10b 07:05:52 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 07:05:52 ---> Running in 159968b9fe63 07:05:52 Removing intermediate container 159968b9fe63 07:05:52 ---> 10e44ec4a7ae 07:05:52 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 07:05:52 ---> Running in f90030553ba8 07:05:52 Removing intermediate container f90030553ba8 07:05:52 ---> 4bbd745996f2 07:05:52 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 07:05:52 ---> Running in f5f8204055d4 07:05:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 07:05:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 07:05:55 OK: 226 MiB in 55 packages 07:05:56 Removing intermediate container f5f8204055d4 07:05:56 ---> 2ce91672a55b 07:05:56 Step 8/25 : WORKDIR /device-rest-go 07:05:56 ---> Running in 8dce69640354 07:05:56 Removing intermediate container 8dce69640354 07:05:56 ---> 913938974e5d 07:05:56 Step 9/25 : COPY go.mod vendor* ./ 07:05:57 ---> 2d933f7d8906 07:05:57 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:05:57 ---> Running in c8d36c819c93 07:06:00 Removing intermediate container c8d36c819c93 07:06:00 ---> b0d200f3ceba 07:06:00 Step 11/25 : COPY . . 07:06:00 ---> ae40af897664 07:06:00 Step 12/25 : RUN $MAKE 07:06:00 ---> Running in dc15e54b45a7 07:06:01 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 07:08:08 Removing intermediate container dc15e54b45a7 07:08:08 ---> 285a30cc71db 07:08:08 Step 13/25 : FROM alpine:3.16 07:08:08 3.16: Pulling from library/alpine 07:08:08 6875df1f5354: Pulling fs layer 07:08:08 6875df1f5354: Download complete 07:08:08 6875df1f5354: Pull complete 07:08:08 Digest: sha256:b95359c2505145f16c6aa384f9cc74eeff78eb36d308ca4fd902eeeb0a0b161b 07:08:08 Status: Downloaded newer image for alpine:3.16 07:08:08 ---> 2b4661558fb8 07:08:08 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 07:08:08 ---> Running in b64877f0d9d1 07:08:08 Removing intermediate container b64877f0d9d1 07:08:08 ---> 0ae1308acc52 07:08:08 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 07:08:08 ---> Running in 1bb1853e1792 07:08:08 Removing intermediate container 1bb1853e1792 07:08:08 ---> 73aa1c9a87db 07:08:08 Step 16/25 : RUN apk add --update --no-cache dumb-init 07:08:08 ---> Running in 0d237c8b0524 07:08:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 07:08:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 07:08:08 (1/1) Installing dumb-init (1.2.5-r1) 07:08:08 Executing busybox-1.35.0-r17.trigger 07:08:08 OK: 5 MiB in 15 packages 07:08:08 Removing intermediate container 0d237c8b0524 07:08:08 ---> 08c956db96a5 07:08:08 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 07:08:08 ---> a476917c43dd 07:08:08 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 07:08:08 ---> 6b19fe9d2eaa 07:08:08 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 07:08:08 ---> f9474553ec39 07:08:08 Step 20/25 : EXPOSE 59986 07:08:09 ---> Running in ec2c534e09f1 07:08:09 Removing intermediate container ec2c534e09f1 07:08:09 ---> c748de81c165 07:08:09 Step 21/25 : ENTRYPOINT ["/device-rest"] 07:08:09 ---> Running in c058c7513d79 07:08:09 Removing intermediate container c058c7513d79 07:08:09 ---> 3d9d32d7687f 07:08:09 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 07:08:09 ---> Running in d641483029a7 07:08:09 Removing intermediate container d641483029a7 07:08:09 ---> 7048a3c8026f 07:08:09 Step 23/25 : LABEL arch=arm64 07:08:10 ---> Running in 3b3521f68a32 07:08:10 Removing intermediate container 3b3521f68a32 07:08:10 ---> 35fd7ff5018e 07:08:10 Step 24/25 : LABEL git_sha=939fcac84ab68858f7c2a17ce4194403d8f19198 07:08:10 ---> Running in e3646e5911d1 07:08:10 Removing intermediate container e3646e5911d1 07:08:10 ---> dbe5db12899a 07:08:10 Step 25/25 : LABEL version=0.0.0 07:08:10 ---> Running in 67202527c79b 07:08:11 Removing intermediate container 67202527c79b 07:08:11 ---> 965bbb3bd935 07:08:11 [Warning] One or more build-args [ARCH] were not consumed 07:08:11 Successfully built 965bbb3bd935 07:08:11 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 07:08:11 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:08:11 07:08:11 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:08:11 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:08:11 arm64: Pulling from edgex-lftools-log-publisher 07:08:11 8998bd30e6a1: Pulling fs layer 07:08:11 04944245beec: Pulling fs layer 07:08:11 699f458cf7ca: Pulling fs layer 07:08:11 765212b225bb: Pulling fs layer 07:08:11 f23df028b6ca: Pulling fs layer 07:08:11 d65c8cfc05b1: Pulling fs layer 07:08:11 2437ff75d9bd: Pulling fs layer 07:08:11 f23df028b6ca: Waiting 07:08:11 d65c8cfc05b1: Waiting 07:08:11 765212b225bb: Waiting 07:08:11 2437ff75d9bd: Waiting 07:08:12 04944245beec: Verifying Checksum 07:08:12 04944245beec: Download complete 07:08:12 765212b225bb: Verifying Checksum 07:08:12 765212b225bb: Download complete 07:08:12 f23df028b6ca: Download complete 07:08:12 d65c8cfc05b1: Verifying Checksum 07:08:12 d65c8cfc05b1: Download complete 07:08:12 699f458cf7ca: Verifying Checksum 07:08:12 699f458cf7ca: Download complete 07:08:12 8998bd30e6a1: Verifying Checksum 07:08:12 8998bd30e6a1: Download complete 07:08:15 2437ff75d9bd: Verifying Checksum 07:08:15 2437ff75d9bd: Download complete 07:08:16 8998bd30e6a1: Pull complete 07:08:17 04944245beec: Pull complete 07:08:18 699f458cf7ca: Pull complete 07:08:18 765212b225bb: Pull complete 07:08:19 f23df028b6ca: Pull complete 07:08:19 d65c8cfc05b1: Pull complete 07:08:34 2437ff75d9bd: Pull complete 07:08:34 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 07:08:34 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:08:34 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:08:34 prd-ubuntu20.04-docker-arm64-4c-16g-2891 does not seem to be running inside a container 07:08:34 $ 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/13 -v /w/workspace/device-rest-go/13:/w/workspace/device-rest-go/13:rw,z -v /w/workspace/device-rest-go/13@tmp:/w/workspace/device-rest-go/13@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 07:08:37 $ docker top 979dd89b274fa38bd26ca48c397a58832b86e93e2ef2d4c1bf07f5066b9740c4 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:08:38 ---> job-cost.sh 07:08:38 lf-activate-venv: SKIPPING 07:08:38 INFO: No Stack... 07:08:38 INFO: Retrieving Pricing Info for: v3-standard-4 07:08:39 INFO: Archiving Costs [Pipeline] sh 07:08:40 + cut -d, -f6 07:08:40 + cat /w/workspace/device-rest-go/13/archives/cost.csv [Pipeline] lock 07:08:40 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-229-13-stack-cost] 07:08:40 Resource [jenkins-edgexfoundry-device-rest-go-PR-229-13-stack-cost] did not exist. Created. 07:08:40 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-229-13-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 07:08:40 /w/workspace/device-rest-go/13@tmp/durable-8991328a/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 07:08:41 + echo total: 0.10999999940395355 [Pipeline] stash 07:08:41 Warning: overwriting stash ‘stack-cost’ 07:08:41 Stashed 1 file(s) [Pipeline] } 07:08:41 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-229-13-stack-cost] [Pipeline] // lock [Pipeline] } 07:08:41 $ docker stop --time=1 979dd89b274fa38bd26ca48c397a58832b86e93e2ef2d4c1bf07f5066b9740c4 07:08:44 $ docker rm -f --volumes 979dd89b274fa38bd26ca48c397a58832b86e93e2ef2d4c1bf07f5066b9740c4 [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 07:08:44 provisioning config files... 07:08:44 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/config16517703829161552582tmp [Pipeline] { [Pipeline] sh 07:08:44 + set +x 07:08:44 + + curl -sbash https://codecov.io/bash -s 07:08:44 -- 07:08:44 07:08:44 _____ _ 07:08:44 / ____| | | 07:08:44 | | ___ __| | ___ ___ _____ __ 07:08:44 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 07:08:44 | |___| (_) | (_| | __/ (_| (_) \ V / 07:08:44 \_____\___/ \__,_|\___|\___\___/ \_/ 07:08:44 Bash-1.0.6 07:08:44 07:08:44 07:08:44 ==> git version 2.25.1 found 07:08:44 ==> 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 07:08:44 Release-Date: 2020-01-08 07:08:44 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 07:08:44 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 07:08:44 ==> Jenkins CI detected. 07:08:44 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-229 07:08:44 project root: . 07:08:44 --> token set from env 07:08:44 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 07:08:44 ==> Running gcov in . (disable via -X gcov) 07:08:44 ==> Python coveragepy not found 07:08:44 ==> Searching for coverage reports in: 07:08:44 + . 07:08:44 -> Found 1 reports 07:08:44 ==> Detecting git/mercurial file structure 07:08:44 ==> Reading reports 07:08:44 + ./coverage.out bytes=18351 07:08:44 ==> Appending adjustments 07:08:44 https://docs.codecov.io/docs/fixing-reports 07:08:45 + Found adjustments 07:08:45 ==> Gzipping contents 07:08:45 4.0K /tmp/codecov.igTqPr.gz 07:08:45 ==> Uploading reports 07:08:45 url: https://codecov.io 07:08:45 query: branch=PR-229&commit=6080b04240aef5d4363153901ebd9e8e0df69f9f&build=13&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-229%2F13%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=229&job=&cmd_args= 07:08:45 -> Pinging Codecov 07:08:45 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-229&commit=6080b04240aef5d4363153901ebd9e8e0df69f9f&build=13&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-229%2F13%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=229&job=&cmd_args= 07:08:45 -> Uploading to 07:08:45 https://storage.googleapis.com/codecov/v4/raw/2023-01-18/4E5D53B4F1F92C436F7061BF334D961C/6080b04240aef5d4363153901ebd9e8e0df69f9f/1d7a371a-0ba6-44c5-8deb-f941eeb4df76.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230118%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230118T070845Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=8e93e563c77349e35cf3de46fa9eafa62eec0fb528ab178f366a867f0cd8abdb 07:08:45 % Total % Received % Xferd Average Speed Time Time Time Current 07:08:45 Dload Upload Total Spent Left Speed 07:08:45 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3006 0 0 100 3006 0 13601 --:--:-- --:--:-- --:--:-- 13540 100 3006 0 0 100 3006 0 11133 --:--:-- --:--:-- --:--:-- 11092 07:08:45 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/6080b04240aef5d4363153901ebd9e8e0df69f9f [Pipeline] } 07:08:45 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 07:08:46 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-229/archives ] 07:08:46 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-229/archives 07:08:46 total 16 07:08:46 drwxr-xr-x 3 root root 4096 Jan 18 06:59 . 07:08:46 drwxrwxr-x 10 jenkins jenkins 4096 Jan 18 06:59 .. 07:08:46 drwxr-xr-x 2 root root 4096 Jan 18 06:59 cost 07:08:46 -rw-r--r-- 1 root root 87 Jan 18 06:59 cost.csv 07:08:46 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-229/archives 07:08:46 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-229/archives 07:08:46 total 16 07:08:46 drwxr-xr-x 3 jenkins jenkins 4096 Jan 18 06:59 . 07:08:46 drwxrwxr-x 10 jenkins jenkins 4096 Jan 18 06:59 .. 07:08:46 drwxr-xr-x 2 jenkins jenkins 4096 Jan 18 06:59 cost 07:08:46 -rw-r--r-- 1 jenkins jenkins 87 Jan 18 06:59 cost.csv [Pipeline] libraryResource [Pipeline] sh 07:08:46 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 07:08:47 ---> package-listing.sh 07:08:47 ++ facter osfamily 07:08:47 ++ tr '[:upper:]' '[:lower:]' 07:08:48 + OS_FAMILY=debian 07:08:48 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-229 07:08:48 + START_PACKAGES=/tmp/packages_start.txt 07:08:48 + END_PACKAGES=/tmp/packages_end.txt 07:08:48 + DIFF_PACKAGES=/tmp/packages_diff.txt 07:08:48 + PACKAGES=/tmp/packages_start.txt 07:08:48 + '[' /w/workspace/gexfoundry_device-rest-go_PR-229 ']' 07:08:48 + PACKAGES=/tmp/packages_end.txt 07:08:48 + case "${OS_FAMILY}" in 07:08:48 + dpkg -l 07:08:48 + grep '^ii' 07:08:48 + '[' -f /tmp/packages_start.txt ']' 07:08:48 + '[' -f /tmp/packages_end.txt ']' 07:08:48 + diff /tmp/packages_start.txt /tmp/packages_end.txt 07:08:48 + '[' /w/workspace/gexfoundry_device-rest-go_PR-229 ']' 07:08:48 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-229/archives/ 07:08:48 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-229/archives/ [Pipeline] echo 07:08:48 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-229/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 07:08:48 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 07:08:48 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:08:48 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 07:08:48 prd-ubuntu20.04-docker-8c-8g-2890 does not seem to be running inside a container 07:08:48 $ 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-229/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-229 -v /w/workspace/gexfoundry_device-rest-go_PR-229:/w/workspace/gexfoundry_device-rest-go_PR-229:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-229@tmp:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 07:08:49 $ docker top 9fe1ceb852f30537549799d34017de4500b9f8d774b1783cb35c5ff1e27779f3 -eo pid,comm [Pipeline] { [Pipeline] sh 07:08:49 + touch /tmp/pre-build-complete [Pipeline] sh 07:08:49 + mkdir -p /var/log/sysstat [Pipeline] sh 07:08:50 + ls /var/log/sa-host 07:08:50 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:08:50 provisioning config files... 07:08:50 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/config13851182019395496212tmp [Pipeline] { [Pipeline] echo 07:08:50 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 07:08:50 ---> create-netrc.sh [Pipeline] } 07:08:50 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 07:08:50 ---> python-tools-install.sh [Pipeline] echo 07:08:50 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 07:08:51 ---> sudo-logs.sh 07:08:51 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 07:08:51 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 07:08:51 ---> job-cost.sh 07:08:51 lf-activate-venv: SKIPPING 07:08:51 DEBUG: total: 0.2199999988079071 07:08:51 INFO: Retrieving Stack Cost... 07:08:52 INFO: Retrieving Pricing Info for: v3-standard-8 07:08:52 INFO: Archiving Costs [Pipeline] echo 07:08:52 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 07:08:53 ---> logs-deploy.sh 07:08:53 lf-activate-venv: SKIPPING 07:08:53 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-229/13 07:08:53 INFO: archiving workspace using pattern(s): 07:08:54 Archives upload complete. 07:08:54 INFO: archiving logs to Nexus