Pull request #251 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 ejlee3 for edgexfoundry/device-rest-go Obtained Jenkinsfile from 424aba27d0571c2bb8561e9e363fc6a6db1a06ed+b8541e7e07d14b35bcb3c6fb0ee347edefdec343 (b4e650c2ec7cc1b8009dbbe275562de158def413) 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-ssh15424725136243970799.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-ssh10613818858888781974.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-251/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-251/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh2211412665534586972.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-ssh5525419165848580199.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-251/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-251/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh8038636698922686181.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.18 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-5938 in /w/workspace/gexfoundry_device-rest-go_PR-251 [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-251 # 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/251/head:refs/remotes/origin/PR-251 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit b8541e7e07d14b35bcb3c6fb0ee347edefdec343 into PR head commit 424aba27d0571c2bb8561e9e363fc6a6db1a06ed Merge succeeded, producing 424aba27d0571c2bb8561e9e363fc6a6db1a06ed Checking out Revision 424aba27d0571c2bb8561e9e363fc6a6db1a06ed (PR-251) > git config core.sparsecheckout # timeout=10 > git checkout -f 424aba27d0571c2bb8561e9e363fc6a6db1a06ed # 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 b8541e7e07d14b35bcb3c6fb0ee347edefdec343 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 424aba27d0571c2bb8561e9e363fc6a6db1a06ed # timeout=10 Commit message: "fix: address pr comments" > git rev-list --no-walk 362d6874ee91c00a73543560bf42b68c66de4331 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 00:07:42 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 00:07:42 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 00:07:42 ========================================================= 00:07:42 EdgeX Global Pipelines Version Info 00:07:42 ========================================================= [Pipeline] libraryResource [Pipeline] sh 00:07:43 ------------------- 00:07:43 stable info: 00:07:43 ------------------- 00:07:43 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 00:07:43 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 00:07:43 Message: update stable to v1.0.244 00:07:44 ------------------- 00:07:44 experimental info: 00:07:44 ------------------- 00:07:44 Commited By: **** collab-it+edgex@linuxfoundation.org 00:07:44 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 00:07:44 Message: update experimental to v1.0.244 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.18 [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-251 [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-251 [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-251 [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 424aba27d0571c2bb8561e9e363fc6a6db1a06ed [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 424aba2 [Pipeline] echo 00:07:44 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:07:44 provisioning config files... 00:07:44 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-251@tmp/config13585355733674323346tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:07:44 ---> docker-login.sh 00:07:44 nexus3.edgexfoundry.org:10001 00:07:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:07:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:07:45 Configure a credential helper to remove this warning. See 00:07:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:07:45 00:07:45 Login Succeeded 00:07:45 nexus3.edgexfoundry.org:10002 00:07:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:07:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:07:45 Configure a credential helper to remove this warning. See 00:07:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:07:45 00:07:45 Login Succeeded 00:07:45 nexus3.edgexfoundry.org:10003 00:07:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:07:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:07:45 Configure a credential helper to remove this warning. See 00:07:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:07:45 00:07:45 Login Succeeded 00:07:45 nexus3.edgexfoundry.org:10004 00:07:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:07:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:07:45 Configure a credential helper to remove this warning. See 00:07:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:07:45 00:07:45 Login Succeeded 00:07:45 docker.io 00:07:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:07:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:07:46 Configure a credential helper to remove this warning. See 00:07:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:07:46 00:07:46 Login Succeeded 00:07:46 ---> docker-login.sh ends [Pipeline] } 00:07:46 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 00:07:46 + git rev-list -1 --merges 424aba27d0571c2bb8561e9e363fc6a6db1a06ed~1..424aba27d0571c2bb8561e9e363fc6a6db1a06ed [Pipeline] echo 00:07:46 -----------> git rev-list -1 --merges 424aba27d0571c2bb8561e9e363fc6a6db1a06ed~1..424aba27d0571c2bb8561e9e363fc6a6db1a06ed 424aba27d0571c2bb8561e9e363fc6a6db1a06ed [false] [Pipeline] sh 00:07:46 + git log --format=format:%s -1 424aba27d0571c2bb8561e9e363fc6a6db1a06ed [Pipeline] echo 00:07:46 ========================================================= 00:07:46 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 00:07:46 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:07:47 + git log --format=format:%s -1 424aba27d0571c2bb8561e9e363fc6a6db1a06ed [Pipeline] echo 00:07:47 [semverPrep] GIT_COMMIT: 424aba27d0571c2bb8561e9e363fc6a6db1a06ed, Commit Message: fix: address pr comments [Pipeline] echo 00:07:47 [semverPrep] This is not a build commit. [Pipeline] sh 00:07:47 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 00:07:47 + grep -v github /etc/ssh/ssh_known_hosts 00:07:47 + [ -e /tmp/ssh_known_hosts ] 00:07:47 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 00:07:47 + sudo tee -a+ /etc/ssh/ssh_known_hosts 00:07:47 echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 00:07:47 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:07:47 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:07:47 00:07:47 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:07:48 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:07:48 0.1.4: Pulling from edgex-devops/py-git-semver 00:07:48 b85a868b505f: Pulling fs layer 00:07:48 e2be974225ed: Pulling fs layer 00:07:48 339a4e72a1f5: Pulling fs layer 00:07:48 988bab9f4d93: Pulling fs layer 00:07:48 1469e6f7b9e6: Pulling fs layer 00:07:48 eaf3925da568: Pulling fs layer 00:07:48 bab4dde63d76: Pulling fs layer 00:07:48 bde34c3a00c8: Pulling fs layer 00:07:48 b352a97aabf1: Pulling fs layer 00:07:48 4872d77fe225: Pulling fs layer 00:07:48 5851b861e8e6: Pulling fs layer 00:07:48 bde34c3a00c8: Waiting 00:07:48 b352a97aabf1: Waiting 00:07:48 4872d77fe225: Waiting 00:07:48 1469e6f7b9e6: Waiting 00:07:48 5851b861e8e6: Waiting 00:07:48 eaf3925da568: Waiting 00:07:48 bab4dde63d76: Waiting 00:07:48 988bab9f4d93: Waiting 00:07:48 e2be974225ed: Download complete 00:07:48 988bab9f4d93: Verifying Checksum 00:07:48 988bab9f4d93: Download complete 00:07:48 1469e6f7b9e6: Verifying Checksum 00:07:48 1469e6f7b9e6: Download complete 00:07:48 eaf3925da568: Download complete 00:07:48 339a4e72a1f5: Verifying Checksum 00:07:48 339a4e72a1f5: Download complete 00:07:48 bde34c3a00c8: Download complete 00:07:48 b352a97aabf1: Verifying Checksum 00:07:48 b352a97aabf1: Download complete 00:07:48 b85a868b505f: Download complete 00:07:48 4872d77fe225: Verifying Checksum 00:07:48 4872d77fe225: Download complete 00:07:48 5851b861e8e6: Verifying Checksum 00:07:48 5851b861e8e6: Download complete 00:07:48 bab4dde63d76: Verifying Checksum 00:07:48 bab4dde63d76: Download complete 00:07:49 b85a868b505f: Pull complete 00:07:50 e2be974225ed: Pull complete 00:07:50 339a4e72a1f5: Pull complete 00:07:50 988bab9f4d93: Pull complete 00:07:51 1469e6f7b9e6: Pull complete 00:07:51 eaf3925da568: Pull complete 00:07:53 bab4dde63d76: Pull complete 00:07:53 bde34c3a00c8: Pull complete 00:07:53 b352a97aabf1: Pull complete 00:07:53 4872d77fe225: Pull complete 00:07:53 5851b861e8e6: Pull complete 00:07:53 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 00:07:53 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:07:53 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:07:53 prd-ubuntu20.04-docker-8c-8g-5938 does not seem to be running inside a container 00:07:53 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-251 -v /w/workspace/gexfoundry_device-rest-go_PR-251:/w/workspace/gexfoundry_device-rest-go_PR-251:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-251@tmp:/w/workspace/gexfoundry_device-rest-go_PR-251@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 00:07:55 $ docker top 9143bb16f19eac01a6a1677b72ed0df934bbacc3a6716a5442ca7f3c1e878542 -eo pid,comm 00:07:55 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). 00:07:55 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 00:07:55 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:07:55 [ssh-agent] Looking for ssh-agent implementation... 00:07:55 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:07:55 $ docker exec 9143bb16f19eac01a6a1677b72ed0df934bbacc3a6716a5442ca7f3c1e878542 ssh-agent 00:07:56 SSH_AUTH_SOCK=/tmp/ssh-TJxwJ842I50I/agent.32 00:07:56 SSH_AGENT_PID=38 00:07:56 Running ssh-add (command line suppressed) 00:07:56 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-251@tmp/private_key_7156517913665253048.key (/w/workspace/gexfoundry_device-rest-go_PR-251@tmp/private_key_7156517913665253048.key) 00:07:56 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:07:56 + git tag --points-at HEAD [Pipeline] } 00:07:56 $ docker exec --env ******** --env ******** 9143bb16f19eac01a6a1677b72ed0df934bbacc3a6716a5442ca7f3c1e878542 ssh-agent -k 00:07:56 unset SSH_AUTH_SOCK; 00:07:56 unset SSH_AGENT_PID; 00:07:56 echo Agent pid 38 killed; 00:07:56 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 00:07:56 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:07:56 [ssh-agent] Looking for ssh-agent implementation... 00:07:56 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:07:56 $ docker exec 9143bb16f19eac01a6a1677b72ed0df934bbacc3a6716a5442ca7f3c1e878542 ssh-agent 00:07:56 SSH_AUTH_SOCK=/tmp/ssh-4SMfAxVXvBdX/agent.70 00:07:56 SSH_AGENT_PID=76 00:07:56 Running ssh-add (command line suppressed) 00:07:56 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-251@tmp/private_key_6498004885592698354.key (/w/workspace/gexfoundry_device-rest-go_PR-251@tmp/private_key_6498004885592698354.key) 00:07:56 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:07:57 + git semver init 00:07:57 2023-02-15 00:07:57,455 [run_init] DEBUG init version:0.0.0 force:False 00:07:57 2023-02-15 00:07:57,457 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-251/.semver 00:07:57 2023-02-15 00:07:57,458 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-251/.semver 00:07:57 2023-02-15 00:07:57,458 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-251/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-251, universal_newlines=False, shell=None, istream=None) 00:07:58 2023-02-15 00:07:58,691 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-251/.git/info/exclude 00:07:58 2023-02-15 00:07:58,692 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-251/.semver/PR-251 with force:False 00:07:58 2023-02-15 00:07:58,692 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-251/.semver/PR-251 00:07:58 2023-02-15 00:07:58,696 [execute] INFO git cat-file --batch-check 00:07:58 2023-02-15 00:07:58,696 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-251/.semver, universal_newlines=False, shell=None, istream=) 00:07:58 2023-02-15 00:07:58,704 [execute] INFO git cat-file --batch 00:07:58 2023-02-15 00:07:58,704 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-251/.semver, universal_newlines=False, shell=None, istream=) 00:07:58 2023-02-15 00:07:58,710 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-251/.semver/PR-251 00:07:58 0.0.0 [Pipeline] } 00:07:58 $ docker exec --env ******** --env ******** 9143bb16f19eac01a6a1677b72ed0df934bbacc3a6716a5442ca7f3c1e878542 ssh-agent -k 00:07:58 unset SSH_AUTH_SOCK; 00:07:58 unset SSH_AGENT_PID; 00:07:58 echo Agent pid 76 killed; 00:07:58 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 00:07:59 + git semver [Pipeline] } 00:07:59 $ docker stop --time=1 9143bb16f19eac01a6a1677b72ed0df934bbacc3a6716a5442ca7f3c1e878542 00:08:00 $ docker rm -f --volumes 9143bb16f19eac01a6a1677b72ed0df934bbacc3a6716a5442ca7f3c1e878542 [Pipeline] // withDockerContainer [Pipeline] sh 00:08:01 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 00:08:01 Stashed 1 file(s) [Pipeline] echo 00:08:01 [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 00:08:01 provisioning config files... 00:08:01 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-251@tmp/config8015907281876099092tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:08:01 ---> docker-login.sh 00:08:01 nexus3.edgexfoundry.org:10001 00:08:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:08:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:08:01 Configure a credential helper to remove this warning. See 00:08:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:08:01 00:08:01 Login Succeeded 00:08:01 nexus3.edgexfoundry.org:10002 00:08:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:08:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:08:01 Configure a credential helper to remove this warning. See 00:08:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:08:01 00:08:01 Login Succeeded 00:08:01 nexus3.edgexfoundry.org:10003 00:08:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:08:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:08:02 Configure a credential helper to remove this warning. See 00:08:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:08:02 00:08:02 Login Succeeded 00:08:02 nexus3.edgexfoundry.org:10004 00:08:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:08:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:08:02 Configure a credential helper to remove this warning. See 00:08:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:08:02 00:08:02 Login Succeeded 00:08:02 docker.io 00:08:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:08:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:08:02 Configure a credential helper to remove this warning. See 00:08:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:08:02 00:08:02 Login Succeeded 00:08:02 ---> docker-login.sh ends [Pipeline] } 00:08:02 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:08:02 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:08:02 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:08:02 ========================================================= 00:08:02 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine] 00:08:02 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:08:03 + 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 . 00:08:03 Sending build context to Docker daemon 10.83MB 00:08:03 Step 1/12 : ARG BASE=golang:1.18-alpine3.16 00:08:03 Step 2/12 : FROM ${BASE} AS builder 00:08:03 1.18-alpine: Pulling from edgex-devops/edgex-golang-base 00:08:03 213ec9aee27d: Pulling fs layer 00:08:03 4583459ba037: Pulling fs layer 00:08:03 93c1e223e6f2: Pulling fs layer 00:08:03 53926ce57604: Pulling fs layer 00:08:03 21b2b0c7a3f4: Pulling fs layer 00:08:03 22ff95d597cd: Pulling fs layer 00:08:03 53926ce57604: Waiting 00:08:03 21b2b0c7a3f4: Waiting 00:08:03 12d6caf4c0d1: Pulling fs layer 00:08:03 96b7cbca73a9: Pulling fs layer 00:08:03 22ff95d597cd: Waiting 00:08:03 12d6caf4c0d1: Waiting 00:08:03 a7acece74701: Pulling fs layer 00:08:03 a7acece74701: Waiting 00:08:03 96b7cbca73a9: Waiting 00:08:03 93c1e223e6f2: Verifying Checksum 00:08:03 93c1e223e6f2: Download complete 00:08:03 4583459ba037: Verifying Checksum 00:08:03 4583459ba037: Download complete 00:08:03 21b2b0c7a3f4: Verifying Checksum 00:08:03 21b2b0c7a3f4: Download complete 00:08:03 22ff95d597cd: Download complete 00:08:03 213ec9aee27d: Verifying Checksum 00:08:03 213ec9aee27d: Download complete 00:08:03 12d6caf4c0d1: Verifying Checksum 00:08:03 12d6caf4c0d1: Download complete 00:08:03 213ec9aee27d: Pull complete 00:08:03 4583459ba037: Pull complete 00:08:03 93c1e223e6f2: Pull complete 00:08:04 a7acece74701: Verifying Checksum 00:08:04 a7acece74701: Download complete 00:08:04 53926ce57604: Verifying Checksum 00:08:04 53926ce57604: Download complete 00:08:04 96b7cbca73a9: Download complete 00:08:09 53926ce57604: Pull complete 00:08:09 21b2b0c7a3f4: Pull complete 00:08:09 22ff95d597cd: Pull complete 00:08:09 12d6caf4c0d1: Pull complete 00:08:10 96b7cbca73a9: Pull complete 00:08:11 a7acece74701: Pull complete 00:08:11 Digest: sha256:f6a9ef70c52da88a2ff63a0c6767b24654f9f5185d1d85ca6cc3004fb48f6c2d 00:08:11 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine 00:08:11 ---> db6d94c90886 00:08:11 Step 3/12 : ARG ADD_BUILD_TAGS="" 00:08:14 ---> Running in d97881b62035 00:08:14 Removing intermediate container d97881b62035 00:08:14 ---> 83fcb47dcebf 00:08:14 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:08:14 ---> Running in ed2b359a9721 00:08:14 Removing intermediate container ed2b359a9721 00:08:14 ---> 96529157c609 00:08:14 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 00:08:14 ---> Running in eea2a37033c6 00:08:14 Removing intermediate container eea2a37033c6 00:08:14 ---> 2d2e0cd5b10b 00:08:14 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 00:08:14 ---> Running in e918f3b60e35 00:08:14 Removing intermediate container e918f3b60e35 00:08:14 ---> 3496a024d876 00:08:14 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:08:14 ---> Running in 42f5ab1aef44 00:08:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 00:08:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 00:08:15 (1/4) Installing openssh-keygen (9.0_p1-r2) 00:08:15 (2/4) Installing libedit (20210910.3.1-r0) 00:08:15 (3/4) Installing openssh-client-common (9.0_p1-r2) 00:08:15 (4/4) Installing openssh-client-default (9.0_p1-r2) 00:08:15 Executing busybox-1.35.0-r17.trigger 00:08:15 OK: 216 MiB in 55 packages 00:08:15 Removing intermediate container 42f5ab1aef44 00:08:15 ---> a59057882f89 00:08:15 Step 8/12 : WORKDIR /device-rest-go 00:08:15 ---> Running in e7ed7c70d941 00:08:15 Removing intermediate container e7ed7c70d941 00:08:15 ---> 3a50ee0c3330 00:08:15 Step 9/12 : COPY go.mod vendor* ./ 00:08:15 ---> dcb32e5d2bed 00:08:15 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:08:15 ---> Running in f6179d6a3412 00:08:16 Still waiting to schedule task 00:08:16 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 00:09:12 Removing intermediate container f6179d6a3412 00:09:12 ---> de2f7ba7e793 00:09:12 Step 11/12 : COPY . . 00:09:12 ---> fa78364fe077 00:09:12 Step 12/12 : RUN $MAKE 00:09:12 ---> Running in 631758f77ef4 00:09:12 noop 00:09:12 Removing intermediate container 631758f77ef4 00:09:12 ---> 3efbec2261f7 00:09:12 Successfully built 3efbec2261f7 00:09:12 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:09:12 + docker inspect -f . ci-base-image-x86_64 00:09:12 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:09:12 prd-ubuntu20.04-docker-8c-8g-5938 does not seem to be running inside a container 00:09:12 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-251 -v /w/workspace/gexfoundry_device-rest-go_PR-251:/w/workspace/gexfoundry_device-rest-go_PR-251:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-251@tmp:/w/workspace/gexfoundry_device-rest-go_PR-251@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:09:13 $ docker top a7efbbdb1277543560f75b1594d712358cb90a501ef313d9dd6ef9844469bacc -eo pid,comm [Pipeline] { [Pipeline] sh 00:09:13 + go version 00:09:13 go version go1.18.7 linux/amd64 [Pipeline] } 00:09:13 $ docker stop --time=1 a7efbbdb1277543560f75b1594d712358cb90a501ef313d9dd6ef9844469bacc 00:09:14 $ docker rm -f --volumes a7efbbdb1277543560f75b1594d712358cb90a501ef313d9dd6ef9844469bacc [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:09:15 + docker inspect -f . ci-base-image-x86_64 00:09:15 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:09:15 prd-ubuntu20.04-docker-8c-8g-5938 does not seem to be running inside a container 00:09:15 $ 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-251 -v /w/workspace/gexfoundry_device-rest-go_PR-251:/w/workspace/gexfoundry_device-rest-go_PR-251:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-251@tmp:/w/workspace/gexfoundry_device-rest-go_PR-251@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:09:15 $ docker top 037b266a9b2ad1e225e3f61655a042c5c5592c47ea0289a3b88961ab3b6f4161 -eo pid,comm [Pipeline] { [Pipeline] sh 00:09:15 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-251 [Pipeline] fileExists [Pipeline] sh 00:09:16 + make test 00:09:16 go test ./... -coverprofile=coverage.out ./... 00:09:16 ? github.com/edgexfoundry/device-rest-go [no test files] 00:09:24 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 00:09:25 ok github.com/edgexfoundry/device-rest-go/driver 0.015s coverage: 33.9% of statements 00:09:32 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." 00:09:32 go vet ./... 00:09:34 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:09:34 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:09:34 ./bin/test-attribution-txt.sh 00:09:34 An attribution for golang.org/x/mod is missing from Attribution.txt, please add 00:09:34 An attribution for golang.org/x/tools is missing from Attribution.txt, please add [Pipeline] echo 00:09:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:09:34 $ docker stop --time=1 037b266a9b2ad1e225e3f61655a042c5c5592c47ea0289a3b88961ab3b6f4161 00:09:36 $ docker rm -f --volumes 037b266a9b2ad1e225e3f61655a042c5c5592c47ea0289a3b88961ab3b6f4161 [Pipeline] // withDockerContainer [Pipeline] sh 00:09:37 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:09:37 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 00:09:37 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:09:37 + ls -al . 00:09:37 total 188 00:09:37 drwxrwxr-x 9 jenkins jenkins 4096 Feb 15 00:09 . 00:09:37 drwxrwxr-x 4 jenkins jenkins 4096 Feb 15 00:07 .. 00:09:37 -rw-rw-r-- 1 jenkins jenkins 151 Feb 15 00:07 .dockerignore 00:09:37 drwxrwxr-x 8 jenkins jenkins 4096 Feb 15 00:09 .git 00:09:37 drwxrwxr-x 3 jenkins jenkins 4096 Feb 15 00:07 .github 00:09:37 -rw-rw-r-- 1 jenkins jenkins 329 Feb 15 00:07 .gitignore 00:09:37 -rw-rw-r-- 1 jenkins jenkins 41 Feb 15 00:07 .golangci.yml 00:09:37 drwxr-xr-x 3 jenkins jenkins 4096 Feb 15 00:07 .semver 00:09:37 -rw-rw-r-- 1 jenkins jenkins 8996 Feb 15 00:07 Attribution.txt 00:09:37 -rw-rw-r-- 1 jenkins jenkins 13085 Feb 15 00:07 CHANGELOG.md 00:09:37 -rw-rw-r-- 1 jenkins jenkins 1578 Feb 15 00:07 Dockerfile 00:09:37 -rw-rw-r-- 1 jenkins jenkins 677 Feb 15 00:07 GOVERNANCE.md 00:09:37 -rw-rw-r-- 1 jenkins jenkins 680 Feb 15 00:07 Jenkinsfile 00:09:37 -rw-rw-r-- 1 jenkins jenkins 11340 Feb 15 00:07 LICENSE 00:09:37 -rw-rw-r-- 1 jenkins jenkins 1744 Feb 15 00:07 Makefile 00:09:37 -rw-rw-r-- 1 jenkins jenkins 620 Feb 15 00:07 OWNERS.md 00:09:37 -rw-rw-r-- 1 jenkins jenkins 15447 Feb 15 00:07 README.md 00:09:37 -rw-rw-r-- 1 jenkins jenkins 5 Feb 15 00:08 VERSION 00:09:37 drwxrwxr-x 2 jenkins jenkins 4096 Feb 15 00:07 bin 00:09:37 drwxrwxr-x 3 jenkins jenkins 4096 Feb 15 00:07 cmd 00:09:37 -rw-r--r-- 1 jenkins jenkins 13744 Feb 15 00:09 coverage.out 00:09:37 drwxrwxr-x 2 jenkins jenkins 4096 Feb 15 00:07 driver 00:09:37 -rw-rw-r-- 1 jenkins jenkins 3400 Feb 15 00:07 go.mod 00:09:37 -rw-rw-r-- 1 jenkins jenkins 33279 Feb 15 00:07 go.sum 00:09:37 drwxrwxr-x 4 jenkins jenkins 4096 Feb 15 00:07 snap 00:09:37 -rw-rw-r-- 1 jenkins jenkins 713 Feb 15 00:07 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:09:38 + 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=424aba27d0571c2bb8561e9e363fc6a6db1a06ed --label arch=amd64 --label version=0.0.0 . 00:09:38 Sending build context to Docker daemon 10.84MB 00:09:38 Step 1/25 : ARG BASE=golang:1.18-alpine3.16 00:09:38 Step 2/25 : FROM ${BASE} AS builder 00:09:38 ---> 3efbec2261f7 00:09:38 Step 3/25 : ARG ADD_BUILD_TAGS="" 00:09:38 ---> Running in 2b888404d81f 00:09:38 Removing intermediate container 2b888404d81f 00:09:38 ---> e1a3d3afe049 00:09:38 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:09:38 ---> Running in d18d5c1fae27 00:09:38 Removing intermediate container d18d5c1fae27 00:09:38 ---> cddaa2cc58a9 00:09:38 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 00:09:38 ---> Running in 5b91acfcea75 00:09:38 Removing intermediate container 5b91acfcea75 00:09:38 ---> 16a9de8cb5fb 00:09:38 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 00:09:38 ---> Running in 58526b8b59a8 00:09:38 Removing intermediate container 58526b8b59a8 00:09:38 ---> 2457fb699dde 00:09:38 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:09:38 ---> Running in 011239bb7039 00:09:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 00:09:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 00:09:39 OK: 216 MiB in 55 packages 00:09:40 Removing intermediate container 011239bb7039 00:09:40 ---> 2aa751515cb4 00:09:40 Step 8/25 : WORKDIR /device-rest-go 00:09:40 ---> Running in 775af8913d8b 00:09:40 Removing intermediate container 775af8913d8b 00:09:40 ---> d2b9c8216d7d 00:09:40 Step 9/25 : COPY go.mod vendor* ./ 00:09:40 ---> 69cf64b9c116 00:09:40 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:09:40 ---> Running in 63091fc68c98 00:09:41 Removing intermediate container 63091fc68c98 00:09:41 ---> fd96408f1c99 00:09:41 Step 11/25 : COPY . . 00:09:41 ---> 7ab09220ad53 00:09:41 Step 12/25 : RUN $MAKE 00:09:41 ---> Running in 8faaa8283af5 00:09:41 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 00:09:59 Removing intermediate container 8faaa8283af5 00:09:59 ---> 50bb4897179f 00:09:59 Step 13/25 : FROM alpine:3.16 00:09:59 3.16: Pulling from library/alpine 00:09:59 ef5531b6e74e: Pulling fs layer 00:09:59 ef5531b6e74e: Verifying Checksum 00:09:59 ef5531b6e74e: Download complete 00:09:59 ef5531b6e74e: Pull complete 00:09:59 Digest: sha256:1bd67c81e4ad4b8f4a5c1c914d7985336f130e5cefb3e323654fd09d6bcdbbe2 00:09:59 Status: Downloaded newer image for alpine:3.16 00:09:59 ---> dfd21b5a31f5 00:09:59 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 00:10:00 ---> Running in 468cdab70fa5 00:10:00 Removing intermediate container 468cdab70fa5 00:10:00 ---> a307c568a4b3 00:10:00 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 00:10:00 ---> Running in 391c51cc51dd 00:10:00 Removing intermediate container 391c51cc51dd 00:10:00 ---> dbddee5b924a 00:10:00 Step 16/25 : RUN apk add --update --no-cache dumb-init 00:10:00 ---> Running in 6df73e715a2d 00:10:00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 00:10:00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 00:10:01 (1/1) Installing dumb-init (1.2.5-r1) 00:10:01 Executing busybox-1.35.0-r17.trigger 00:10:01 OK: 6 MiB in 15 packages 00:10:01 Removing intermediate container 6df73e715a2d 00:10:01 ---> db066def7c0f 00:10:01 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 00:10:02 ---> 96499a3ecadb 00:10:02 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 00:10:02 ---> e58a91cd6b9d 00:10:02 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 00:10:02 ---> 376753c9d8ac 00:10:02 Step 20/25 : EXPOSE 59986 00:10:02 ---> Running in f8e12ab0ccd3 00:10:02 Removing intermediate container f8e12ab0ccd3 00:10:02 ---> 1a99c79d53b1 00:10:02 Step 21/25 : ENTRYPOINT ["/device-rest"] 00:10:02 ---> Running in 0bf562cc5885 00:10:02 Removing intermediate container 0bf562cc5885 00:10:02 ---> 6b16d0f31ac3 00:10:02 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 00:10:02 ---> Running in fce437307d5f 00:10:02 Removing intermediate container fce437307d5f 00:10:02 ---> 7794a8444bd1 00:10:02 Step 23/25 : LABEL arch=amd64 00:10:02 ---> Running in 7ba68a7fbf2c 00:10:03 Removing intermediate container 7ba68a7fbf2c 00:10:03 ---> 4f236d90a764 00:10:03 Step 24/25 : LABEL git_sha=424aba27d0571c2bb8561e9e363fc6a6db1a06ed 00:10:03 ---> Running in 5fc9ed211b9a 00:10:03 Removing intermediate container 5fc9ed211b9a 00:10:03 ---> ac0412bd570b 00:10:03 Step 25/25 : LABEL version=0.0.0 00:10:03 ---> Running in f026e256393a 00:10:03 Removing intermediate container f026e256393a 00:10:03 ---> cdf2aa341119 00:10:03 [Warning] One or more build-args [ARCH] were not consumed 00:10:03 Successfully built cdf2aa341119 00:10:03 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 00:10:03 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:10:03 00:10:03 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:10:04 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:10:04 latest: Pulling from edgex-lftools-log-publisher 00:10:04 5eb5b503b376: Pulling fs layer 00:10:04 5c69ac0246d0: Pulling fs layer 00:10:04 ec43610c2a17: Pulling fs layer 00:10:04 3a2ae6a8a46f: Pulling fs layer 00:10:04 33b1e0a273af: Pulling fs layer 00:10:04 5d3b04190fa2: Pulling fs layer 00:10:04 2f39f015ded8: Pulling fs layer 00:10:04 33b1e0a273af: Waiting 00:10:04 5d3b04190fa2: Waiting 00:10:04 2f39f015ded8: Waiting 00:10:04 3a2ae6a8a46f: Waiting 00:10:04 5c69ac0246d0: Verifying Checksum 00:10:04 5c69ac0246d0: Download complete 00:10:04 3a2ae6a8a46f: Verifying Checksum 00:10:04 3a2ae6a8a46f: Download complete 00:10:04 33b1e0a273af: Verifying Checksum 00:10:04 33b1e0a273af: Download complete 00:10:04 5d3b04190fa2: Verifying Checksum 00:10:04 ec43610c2a17: Verifying Checksum 00:10:04 ec43610c2a17: Download complete 00:10:04 5eb5b503b376: Verifying Checksum 00:10:04 5eb5b503b376: Download complete 00:10:05 2f39f015ded8: Download complete 00:10:05 5eb5b503b376: Pull complete 00:10:05 5c69ac0246d0: Pull complete 00:10:06 ec43610c2a17: Pull complete 00:10:06 3a2ae6a8a46f: Pull complete 00:10:06 33b1e0a273af: Pull complete 00:10:06 5d3b04190fa2: Pull complete 00:10:10 2f39f015ded8: Pull complete 00:10:10 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 00:10:10 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:10:10 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:10:10 prd-ubuntu20.04-docker-8c-8g-5938 does not seem to be running inside a container 00:10:10 $ 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-251 -v /w/workspace/gexfoundry_device-rest-go_PR-251:/w/workspace/gexfoundry_device-rest-go_PR-251:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-251@tmp:/w/workspace/gexfoundry_device-rest-go_PR-251@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 00:10:12 $ docker top 3ec0bf75cb244d9ad840b1ac48ac9bc7a34141e7d41f4dae528abe3acc780c39 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:10:13 ---> job-cost.sh 00:10:13 lf-activate-venv: SKIPPING 00:10:13 INFO: No Stack... 00:10:13 INFO: Retrieving Pricing Info for: v3-standard-8 00:10:13 INFO: Archiving Costs [Pipeline] sh 00:10:14 + cat /w/workspace/gexfoundry_device-rest-go_PR-251/archives/cost.csv 00:10:14 + cut -d, -f6 [Pipeline] lock 00:10:14 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-251-2-stack-cost] 00:10:14 Resource [jenkins-edgexfoundry-device-rest-go-PR-251-2-stack-cost] did not exist. Created. 00:10:14 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-251-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:10:14 + echo total: 0.2199999988079071 [Pipeline] stash 00:10:14 Stashed 1 file(s) [Pipeline] } 00:10:14 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-251-2-stack-cost] [Pipeline] // lock [Pipeline] } 00:10:14 $ docker stop --time=1 3ec0bf75cb244d9ad840b1ac48ac9bc7a34141e7d41f4dae528abe3acc780c39 00:10:15 $ docker rm -f --volumes 3ec0bf75cb244d9ad840b1ac48ac9bc7a34141e7d41f4dae528abe3acc780c39 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 00:11:31 Running on prd-ubuntu20.04-docker-arm64-4c-16g-5941 in /w/workspace/gexfoundry_device-rest-go_PR-251 [Pipeline] { [Pipeline] ws 00:11:31 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 00:11:31 The recommended git tool is: git 00:11:39 using credential edgex-jenkins-ssh 00:11:39 Cloning the remote Git repository 00:11:39 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 00:11:39 > git init /w/workspace/device-rest-go/2 # timeout=10 00:11:39 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 00:11:39 > git --version # timeout=10 00:11:39 > git --version # 'git version 2.25.1' 00:11:39 using GIT_SSH to set credentials SSH Credentials for GitHub 00:11:39 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 00:11:41 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 00:11:41 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 00:11:43 Merging remotes/origin/main commit b8541e7e07d14b35bcb3c6fb0ee347edefdec343 into PR head commit 424aba27d0571c2bb8561e9e363fc6a6db1a06ed 00:11:43 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 00:11:43 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 00:11:43 using GIT_SSH to set credentials SSH Credentials for GitHub 00:11:43 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/251/head:refs/remotes/origin/PR-251 +refs/heads/main:refs/remotes/origin/main # timeout=10 00:11:43 > git config core.sparsecheckout # timeout=10 00:11:44 Merge succeeded, producing 424aba27d0571c2bb8561e9e363fc6a6db1a06ed 00:11:44 Checking out Revision 424aba27d0571c2bb8561e9e363fc6a6db1a06ed (PR-251) 00:11:43 > git checkout -f 424aba27d0571c2bb8561e9e363fc6a6db1a06ed # timeout=10 00:11:43 > git remote # timeout=10 00:11:43 > git config --get remote.origin.url # timeout=10 00:11:43 using GIT_SSH to set credentials SSH Credentials for GitHub 00:11:43 > git merge b8541e7e07d14b35bcb3c6fb0ee347edefdec343 # timeout=10 00:11:44 > git rev-parse HEAD^{commit} # timeout=10 00:11:44 > git config core.sparsecheckout # timeout=10 00:11:44 > git checkout -f 424aba27d0571c2bb8561e9e363fc6a6db1a06ed # timeout=10 00:11:47 Commit message: "fix: address pr comments" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:11:48 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 00:11:48 % Total % Received % Xferd Average Speed Time Time Time Current 00:11:48 Dload Upload Total Spent Left Speed 00:11:48 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 200k 0 --:--:-- --:--:-- --:--:-- 200k [Pipeline] sh 00:11:49 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 00:11:49 + sudo tee /etc/docker/daemon.new 00:11:49 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 00:11:49 { 00:11:49 "registry-mirrors": [ 00:11:49 "https://nexus3.edgexfoundry.org:10001" 00:11:49 ], 00:11:49 "bip": "10.250.0.254/24", 00:11:49 "hosts": [ 00:11:49 "tcp://0.0.0.0:5555", 00:11:49 "unix:///var/run/docker.sock" 00:11:49 ], 00:11:49 "mtu": 1458, 00:11:49 "selinux-enabled": true, 00:11:49 "seccomp-profile": "/etc/docker/seccomp.json" 00:11:49 } [Pipeline] sh 00:11:49 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 00:11:50 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:12:08 provisioning config files... 00:12:08 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config15876677650227690191tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:12:09 ---> docker-login.sh 00:12:09 nexus3.edgexfoundry.org:10001 00:12:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:12:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:12:09 Configure a credential helper to remove this warning. See 00:12:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:12:09 00:12:09 Login Succeeded 00:12:09 nexus3.edgexfoundry.org:10002 00:12:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:12:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:12:10 Configure a credential helper to remove this warning. See 00:12:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:12:10 00:12:10 Login Succeeded 00:12:10 nexus3.edgexfoundry.org:10003 00:12:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:12:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:12:10 Configure a credential helper to remove this warning. See 00:12:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:12:10 00:12:10 Login Succeeded 00:12:10 nexus3.edgexfoundry.org:10004 00:12:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:12:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:12:11 Configure a credential helper to remove this warning. See 00:12:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:12:11 00:12:11 Login Succeeded 00:12:11 docker.io 00:12:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:12:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:12:11 Configure a credential helper to remove this warning. See 00:12:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:12:11 00:12:11 Login Succeeded 00:12:11 ---> docker-login.sh ends [Pipeline] } 00:12:11 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:12:12 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:12:12 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:12:12 ========================================================= 00:12:12 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine] 00:12:12 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:12:12 + 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 . 00:12:12 Sending build context to Docker daemon 139.8kB 00:12:12 Step 1/12 : ARG BASE=golang:1.18-alpine3.16 00:12:12 Step 2/12 : FROM ${BASE} AS builder 00:12:13 1.18-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 00:12:13 9b18e9b68314: Pulling fs layer 00:12:13 35d82f9e3411: Pulling fs layer 00:12:13 e16973657156: Pulling fs layer 00:12:13 fc693d55d65f: Pulling fs layer 00:12:13 7e9fc2657dce: Pulling fs layer 00:12:13 dda99020689f: Pulling fs layer 00:12:13 db1c61fa0a46: Pulling fs layer 00:12:13 891c053d2c06: Pulling fs layer 00:12:13 dda99020689f: Waiting 00:12:13 fc693d55d65f: Waiting 00:12:13 7e9fc2657dce: Waiting 00:12:13 891c053d2c06: Waiting 00:12:13 db1c61fa0a46: Waiting 00:12:13 e16973657156: Verifying Checksum 00:12:13 e16973657156: Download complete 00:12:13 35d82f9e3411: Verifying Checksum 00:12:13 35d82f9e3411: Download complete 00:12:13 7e9fc2657dce: Verifying Checksum 00:12:13 7e9fc2657dce: Download complete 00:12:13 dda99020689f: Verifying Checksum 00:12:13 dda99020689f: Download complete 00:12:13 9b18e9b68314: Verifying Checksum 00:12:13 9b18e9b68314: Download complete 00:12:14 9b18e9b68314: Pull complete 00:12:14 891c053d2c06: Verifying Checksum 00:12:14 891c053d2c06: Download complete 00:12:15 35d82f9e3411: Pull complete 00:12:15 e16973657156: Pull complete 00:12:16 db1c61fa0a46: Verifying Checksum 00:12:16 fc693d55d65f: Verifying Checksum 00:12:16 fc693d55d65f: Download complete 00:12:29 fc693d55d65f: Pull complete 00:12:29 7e9fc2657dce: Pull complete 00:12:29 dda99020689f: Pull complete 00:12:36 db1c61fa0a46: Pull complete 00:12:37 891c053d2c06: Pull complete 00:12:37 Digest: sha256:2cacf8bfc28650abd52610e42dcfc04852e818eb73900ea96edaef96a54d0b45 00:12:37 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine 00:12:37 ---> f96f9c87975a 00:12:37 Step 3/12 : ARG ADD_BUILD_TAGS="" 00:12:38 ---> Running in cf3a9a90f126 00:12:38 Removing intermediate container cf3a9a90f126 00:12:38 ---> d36382783eda 00:12:38 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:12:39 ---> Running in b2c6c641a2ec 00:12:39 Removing intermediate container b2c6c641a2ec 00:12:39 ---> b21c60b98176 00:12:39 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 00:12:39 ---> Running in 34409af71bf3 00:12:39 Removing intermediate container 34409af71bf3 00:12:39 ---> 6c5e993d1079 00:12:39 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 00:12:40 ---> Running in 281b06214182 00:12:40 Removing intermediate container 281b06214182 00:12:40 ---> 54eafb357b30 00:12:40 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:12:40 ---> Running in 8a4bf081bb97 00:12:41 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 00:12:41 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 00:12:43 (1/4) Installing openssh-keygen (9.0_p1-r2) 00:12:43 (2/4) Installing libedit (20210910.3.1-r0) 00:12:43 (3/4) Installing openssh-client-common (9.0_p1-r2) 00:12:43 (4/4) Installing openssh-client-default (9.0_p1-r2) 00:12:43 Executing busybox-1.35.0-r17.trigger 00:12:43 OK: 226 MiB in 55 packages 00:12:44 Removing intermediate container 8a4bf081bb97 00:12:44 ---> 511c2e580cdc 00:12:44 Step 8/12 : WORKDIR /device-rest-go 00:12:44 ---> Running in f33824775684 00:12:44 Removing intermediate container f33824775684 00:12:44 ---> ff75a6b02c18 00:12:44 Step 9/12 : COPY go.mod vendor* ./ 00:12:44 ---> 8f1be040c26a 00:12:44 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:12:44 ---> Running in a354d388fe2d 00:14:06 Removing intermediate container a354d388fe2d 00:14:06 ---> 3703a0a9e787 00:14:06 Step 11/12 : COPY . . 00:14:06 ---> 8f5372b92547 00:14:06 Step 12/12 : RUN $MAKE 00:14:06 ---> Running in 8a03873c60ba 00:14:06 noop 00:14:06 Removing intermediate container 8a03873c60ba 00:14:06 ---> c833d110f2a8 00:14:06 Successfully built c833d110f2a8 00:14:06 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:14:06 + docker inspect -f . ci-base-image-arm64 00:14:06 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:14:07 prd-ubuntu20.04-docker-arm64-4c-16g-5941 does not seem to be running inside a container 00:14:07 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:14:08 $ docker top 74b535a51cd860c20da939975d7555e1a36cb879c1467052e021e32811036213 -eo pid,comm [Pipeline] { [Pipeline] sh 00:14:09 + go version 00:14:09 go version go1.18.7 linux/arm64 [Pipeline] } 00:14:09 $ docker stop --time=1 74b535a51cd860c20da939975d7555e1a36cb879c1467052e021e32811036213 00:14:11 $ docker rm -f --volumes 74b535a51cd860c20da939975d7555e1a36cb879c1467052e021e32811036213 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:14:12 + docker inspect -f . ci-base-image-arm64 00:14:12 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:14:12 prd-ubuntu20.04-docker-arm64-4c-16g-5941 does not seem to be running inside a container 00:14:12 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:14:13 $ docker top 538c75852ae0ebaf6799044878b978b07b7865c4222f0322ec4577f89da8393f -eo pid,comm [Pipeline] { [Pipeline] sh 00:14:14 + git config --global --add safe.directory /w/workspace/device-rest-go/2 [Pipeline] fileExists [Pipeline] sh 00:14:15 + make test 00:14:15 go test ./... -coverprofile=coverage.out ./... 00:14:16 ? github.com/edgexfoundry/device-rest-go [no test files] 00:15:53 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 00:15:53 ok github.com/edgexfoundry/device-rest-go/driver 0.063s coverage: 33.9% of statements 00:15:53 WARNING: Linting skipped (not on x86_64 or linter not installed) 00:15:53 go vet ./... 00:16:08 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:16:08 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:16:08 ./bin/test-attribution-txt.sh 00:16:08 An attribution for golang.org/x/mod is missing from Attribution.txt, please add 00:16:08 An attribution for golang.org/x/tools is missing from Attribution.txt, please add [Pipeline] echo 00:16:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:16:08 $ docker stop --time=1 538c75852ae0ebaf6799044878b978b07b7865c4222f0322ec4577f89da8393f 00:16:10 $ docker rm -f --volumes 538c75852ae0ebaf6799044878b978b07b7865c4222f0322ec4577f89da8393f [Pipeline] // withDockerContainer [Pipeline] sh 00:16:11 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:16:11 Warning: overwriting stash ‘coverage-report’ 00:16:11 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 00:16:12 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:16:12 + ls -al . 00:16:12 total 184 00:16:12 drwxrwxr-x 8 jenkins jenkins 4096 Feb 15 00:14 . 00:16:12 drwxrwxr-x 4 jenkins jenkins 4096 Feb 15 00:11 .. 00:16:12 -rw-rw-r-- 1 jenkins jenkins 151 Feb 15 00:11 .dockerignore 00:16:12 drwxrwxr-x 8 jenkins jenkins 4096 Feb 15 00:11 .git 00:16:12 drwxrwxr-x 3 jenkins jenkins 4096 Feb 15 00:11 .github 00:16:12 -rw-rw-r-- 1 jenkins jenkins 329 Feb 15 00:11 .gitignore 00:16:12 -rw-rw-r-- 1 jenkins jenkins 41 Feb 15 00:11 .golangci.yml 00:16:12 -rw-rw-r-- 1 jenkins jenkins 8996 Feb 15 00:11 Attribution.txt 00:16:12 -rw-rw-r-- 1 jenkins jenkins 13085 Feb 15 00:11 CHANGELOG.md 00:16:12 -rw-rw-r-- 1 jenkins jenkins 1578 Feb 15 00:11 Dockerfile 00:16:12 -rw-rw-r-- 1 jenkins jenkins 677 Feb 15 00:11 GOVERNANCE.md 00:16:12 -rw-rw-r-- 1 jenkins jenkins 680 Feb 15 00:11 Jenkinsfile 00:16:12 -rw-rw-r-- 1 jenkins jenkins 11340 Feb 15 00:11 LICENSE 00:16:12 -rw-rw-r-- 1 jenkins jenkins 1744 Feb 15 00:11 Makefile 00:16:12 -rw-rw-r-- 1 jenkins jenkins 620 Feb 15 00:11 OWNERS.md 00:16:12 -rw-rw-r-- 1 jenkins jenkins 15447 Feb 15 00:11 README.md 00:16:12 -rw-rw-r-- 1 jenkins jenkins 5 Feb 15 00:08 VERSION 00:16:12 drwxrwxr-x 2 jenkins jenkins 4096 Feb 15 00:11 bin 00:16:12 drwxrwxr-x 3 jenkins jenkins 4096 Feb 15 00:11 cmd 00:16:12 -rw-r--r-- 1 jenkins jenkins 13744 Feb 15 00:15 coverage.out 00:16:12 drwxrwxr-x 2 jenkins jenkins 4096 Feb 15 00:11 driver 00:16:12 -rw-rw-r-- 1 jenkins jenkins 3400 Feb 15 00:11 go.mod 00:16:12 -rw-rw-r-- 1 jenkins jenkins 33279 Feb 15 00:11 go.sum 00:16:12 drwxrwxr-x 4 jenkins jenkins 4096 Feb 15 00:11 snap 00:16:12 -rw-rw-r-- 1 jenkins jenkins 713 Feb 15 00:11 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:16:12 + 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=424aba27d0571c2bb8561e9e363fc6a6db1a06ed --label arch=arm64 --label version=0.0.0 . 00:16:12 Sending build context to Docker daemon 154.1kB 00:16:13 Step 1/25 : ARG BASE=golang:1.18-alpine3.16 00:16:13 Step 2/25 : FROM ${BASE} AS builder 00:16:13 ---> c833d110f2a8 00:16:13 Step 3/25 : ARG ADD_BUILD_TAGS="" 00:16:13 ---> Running in ab8a695605c4 00:16:13 Removing intermediate container ab8a695605c4 00:16:13 ---> 92dd1888c119 00:16:13 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:16:13 ---> Running in d326da0b0504 00:16:14 Removing intermediate container d326da0b0504 00:16:14 ---> f6a66193d157 00:16:14 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 00:16:14 ---> Running in 70c751741148 00:16:14 Removing intermediate container 70c751741148 00:16:14 ---> d799cfb6753b 00:16:14 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 00:16:14 ---> Running in 2b0a6b82bb3d 00:16:14 Removing intermediate container 2b0a6b82bb3d 00:16:14 ---> 69ff90be6366 00:16:14 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:16:14 ---> Running in 0ad4c856d0d7 00:16:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 00:16:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 00:16:17 OK: 226 MiB in 55 packages 00:16:18 Removing intermediate container 0ad4c856d0d7 00:16:18 ---> 8d4263194424 00:16:18 Step 8/25 : WORKDIR /device-rest-go 00:16:18 ---> Running in 7fcd25e8d4a0 00:16:19 Removing intermediate container 7fcd25e8d4a0 00:16:19 ---> 45ea5faaedb6 00:16:19 Step 9/25 : COPY go.mod vendor* ./ 00:16:19 ---> 602680a3325f 00:16:19 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:16:19 ---> Running in 3bc956bcac76 00:16:22 Removing intermediate container 3bc956bcac76 00:16:22 ---> 18b668abedaa 00:16:22 Step 11/25 : COPY . . 00:16:22 ---> 9a9d838bd779 00:16:22 Step 12/25 : RUN $MAKE 00:16:22 ---> Running in 06c3574254d3 00:16:23 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 00:18:30 Removing intermediate container 06c3574254d3 00:18:30 ---> 3bcb654222e2 00:18:30 Step 13/25 : FROM alpine:3.16 00:18:30 3.16: Pulling from library/alpine 00:18:30 3760b48202b3: Pulling fs layer 00:18:30 3760b48202b3: Verifying Checksum 00:18:30 3760b48202b3: Download complete 00:18:30 3760b48202b3: Pull complete 00:18:30 Digest: sha256:1bd67c81e4ad4b8f4a5c1c914d7985336f130e5cefb3e323654fd09d6bcdbbe2 00:18:30 Status: Downloaded newer image for alpine:3.16 00:18:30 ---> 4c81e5bf8899 00:18:30 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 00:18:30 ---> Running in 132b9f41e6aa 00:18:30 Removing intermediate container 132b9f41e6aa 00:18:30 ---> a85ae1585c71 00:18:30 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 00:18:30 ---> Running in a9710731a3c6 00:18:30 Removing intermediate container a9710731a3c6 00:18:30 ---> 19b27a240129 00:18:30 Step 16/25 : RUN apk add --update --no-cache dumb-init 00:18:30 ---> Running in 7cb707dc7830 00:18:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 00:18:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 00:18:30 (1/1) Installing dumb-init (1.2.5-r1) 00:18:30 Executing busybox-1.35.0-r17.trigger 00:18:30 OK: 5 MiB in 15 packages 00:18:31 Removing intermediate container 7cb707dc7830 00:18:31 ---> 1a00a74be75d 00:18:31 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 00:18:32 ---> e1e1e6242619 00:18:32 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 00:18:33 ---> 92df53a6809f 00:18:33 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 00:18:33 ---> cc7fa2bedea6 00:18:33 Step 20/25 : EXPOSE 59986 00:18:33 ---> Running in c8a80d1b4b88 00:18:34 Removing intermediate container c8a80d1b4b88 00:18:34 ---> 227320c21e46 00:18:34 Step 21/25 : ENTRYPOINT ["/device-rest"] 00:18:34 ---> Running in b15086fcd2a8 00:18:34 Removing intermediate container b15086fcd2a8 00:18:34 ---> 08dad3637871 00:18:34 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 00:18:34 ---> Running in 7b00602d22d7 00:18:34 Removing intermediate container 7b00602d22d7 00:18:34 ---> cd345f85144b 00:18:34 Step 23/25 : LABEL arch=arm64 00:18:34 ---> Running in 98757040ab61 00:18:35 Removing intermediate container 98757040ab61 00:18:35 ---> 71107e18d8d6 00:18:35 Step 24/25 : LABEL git_sha=424aba27d0571c2bb8561e9e363fc6a6db1a06ed 00:18:35 ---> Running in cd92a5d50d8e 00:18:35 Removing intermediate container cd92a5d50d8e 00:18:35 ---> 5a17840a3aa8 00:18:35 Step 25/25 : LABEL version=0.0.0 00:18:35 ---> Running in ec8e8ba1210b 00:18:35 Removing intermediate container ec8e8ba1210b 00:18:35 ---> bc65b859b3ea 00:18:35 [Warning] One or more build-args [ARCH] were not consumed 00:18:35 Successfully built bc65b859b3ea 00:18:35 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 00:18:36 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:18:36 00:18:36 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:18:36 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:18:36 arm64: Pulling from edgex-lftools-log-publisher 00:18:36 8998bd30e6a1: Pulling fs layer 00:18:36 04944245beec: Pulling fs layer 00:18:36 699f458cf7ca: Pulling fs layer 00:18:36 765212b225bb: Pulling fs layer 00:18:36 f23df028b6ca: Pulling fs layer 00:18:36 d65c8cfc05b1: Pulling fs layer 00:18:36 2437ff75d9bd: Pulling fs layer 00:18:36 f23df028b6ca: Waiting 00:18:36 d65c8cfc05b1: Waiting 00:18:36 2437ff75d9bd: Waiting 00:18:36 765212b225bb: Waiting 00:18:37 04944245beec: Verifying Checksum 00:18:37 04944245beec: Download complete 00:18:37 765212b225bb: Verifying Checksum 00:18:37 765212b225bb: Download complete 00:18:37 f23df028b6ca: Download complete 00:18:37 d65c8cfc05b1: Verifying Checksum 00:18:37 d65c8cfc05b1: Download complete 00:18:37 699f458cf7ca: Verifying Checksum 00:18:37 699f458cf7ca: Download complete 00:18:37 8998bd30e6a1: Download complete 00:18:40 2437ff75d9bd: Verifying Checksum 00:18:40 2437ff75d9bd: Download complete 00:18:41 8998bd30e6a1: Pull complete 00:18:41 04944245beec: Pull complete 00:18:43 699f458cf7ca: Pull complete 00:18:43 765212b225bb: Pull complete 00:18:43 f23df028b6ca: Pull complete 00:18:43 d65c8cfc05b1: Pull complete 00:18:56 2437ff75d9bd: Pull complete 00:18:56 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 00:18:56 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:18:56 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:18:56 prd-ubuntu20.04-docker-arm64-4c-16g-5941 does not seem to be running inside a container 00:18:56 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 00:18:59 $ docker top e2309d80a5ced835c871bc177424d67b2755ed72540492558b2e51f39d60f608 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:19:00 ---> job-cost.sh 00:19:00 lf-activate-venv: SKIPPING 00:19:00 INFO: No Stack... 00:19:00 INFO: Retrieving Pricing Info for: v3-standard-4 00:19:01 INFO: Archiving Costs [Pipeline] sh 00:19:01 + + cut -d, -f6 00:19:01 cat /w/workspace/device-rest-go/2/archives/cost.csv [Pipeline] lock 00:19:01 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-251-2-stack-cost] 00:19:01 Resource [jenkins-edgexfoundry-device-rest-go-PR-251-2-stack-cost] did not exist. Created. 00:19:01 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-251-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:19:02 /w/workspace/device-rest-go/2@tmp/durable-8a5f892c/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 00:19:02 + echo total: 0.10999999940395355 [Pipeline] stash 00:19:03 Warning: overwriting stash ‘stack-cost’ 00:19:03 Stashed 1 file(s) [Pipeline] } 00:19:03 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-251-2-stack-cost] [Pipeline] // lock [Pipeline] } 00:19:03 $ docker stop --time=1 e2309d80a5ced835c871bc177424d67b2755ed72540492558b2e51f39d60f608 00:19:04 $ docker rm -f --volumes e2309d80a5ced835c871bc177424d67b2755ed72540492558b2e51f39d60f608 [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 00:19:04 provisioning config files... 00:19:04 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-251@tmp/config10424344279961339372tmp [Pipeline] { [Pipeline] sh 00:19:05 + set +x 00:19:05 + curl -s https://codecov.io/bash 00:19:05 + bash -s -- 00:19:05 00:19:05 _____ _ 00:19:05 / ____| | | 00:19:05 | | ___ __| | ___ ___ _____ __ 00:19:05 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 00:19:05 | |___| (_) | (_| | __/ (_| (_) \ V / 00:19:05 \_____\___/ \__,_|\___|\___\___/ \_/ 00:19:05 Bash-1.0.6 00:19:05 00:19:05 00:19:05 ==> git version 2.25.1 found 00:19:05 ==> 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 00:19:05 Release-Date: 2020-01-08 00:19:05 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 00:19:05 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 00:19:05 ==> Jenkins CI detected. 00:19:05 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-251 00:19:05 project root: . 00:19:05 --> token set from env 00:19:05 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 00:19:05 ==> Running gcov in . (disable via -X gcov) 00:19:05 ==> Python coveragepy not found 00:19:05 ==> Searching for coverage reports in: 00:19:05 + . 00:19:05 -> Found 1 reports 00:19:05 ==> Detecting git/mercurial file structure 00:19:05 ==> Reading reports 00:19:05 + ./coverage.out bytes=13744 00:19:05 ==> Appending adjustments 00:19:05 https://docs.codecov.io/docs/fixing-reports 00:19:05 + Found adjustments 00:19:05 ==> Gzipping contents 00:19:05 4.0K /tmp/codecov.Ryyz22.gz 00:19:05 ==> Uploading reports 00:19:05 url: https://codecov.io 00:19:05 query: branch=PR-251&commit=424aba27d0571c2bb8561e9e363fc6a6db1a06ed&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-251%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=251&job=&cmd_args= 00:19:05 -> Pinging Codecov 00:19:05 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-251&commit=424aba27d0571c2bb8561e9e363fc6a6db1a06ed&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-251%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=251&job=&cmd_args= 00:19:05 -> Uploading to 00:19:05 https://storage.googleapis.com/codecov/v4/raw/2023-02-15/4E5D53B4F1F92C436F7061BF334D961C/424aba27d0571c2bb8561e9e363fc6a6db1a06ed/b460cf03-d96b-439a-aca6-116d5d69c002.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230215%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230215T001905Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=7ab935d8c3144bd9ede5c2155cac5c8b60723f6a10869f0b9097c9300403b2a6 00:19:05 % Total % Received % Xferd Average Speed Time Time Time Current 00:19:05 Dload Upload Total Spent Left Speed 00:19:06 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2443 0 0 100 2443 0 9253 --:--:-- --:--:-- --:--:-- 9288 00:19:06 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/424aba27d0571c2bb8561e9e363fc6a6db1a06ed [Pipeline] } 00:19:06 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 00:19:06 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-251/archives ] 00:19:06 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-251/archives 00:19:06 total 16 00:19:06 drwxr-xr-x 3 root root 4096 Feb 15 00:10 . 00:19:06 drwxrwxr-x 10 jenkins jenkins 4096 Feb 15 00:10 .. 00:19:06 drwxr-xr-x 2 root root 4096 Feb 15 00:10 cost 00:19:06 -rw-r--r-- 1 root root 86 Feb 15 00:10 cost.csv 00:19:06 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-251/archives 00:19:06 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-251/archives 00:19:06 total 16 00:19:06 drwxr-xr-x 3 jenkins jenkins 4096 Feb 15 00:10 . 00:19:06 drwxrwxr-x 10 jenkins jenkins 4096 Feb 15 00:10 .. 00:19:06 drwxr-xr-x 2 jenkins jenkins 4096 Feb 15 00:10 cost 00:19:06 -rw-r--r-- 1 jenkins jenkins 86 Feb 15 00:10 cost.csv [Pipeline] libraryResource [Pipeline] sh 00:19:06 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 00:19:07 ---> package-listing.sh 00:19:07 ++ facter osfamily 00:19:07 ++ tr '[:upper:]' '[:lower:]' 00:19:08 + OS_FAMILY=debian 00:19:08 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-251 00:19:08 + START_PACKAGES=/tmp/packages_start.txt 00:19:08 + END_PACKAGES=/tmp/packages_end.txt 00:19:08 + DIFF_PACKAGES=/tmp/packages_diff.txt 00:19:08 + PACKAGES=/tmp/packages_start.txt 00:19:08 + '[' /w/workspace/gexfoundry_device-rest-go_PR-251 ']' 00:19:08 + PACKAGES=/tmp/packages_end.txt 00:19:08 + case "${OS_FAMILY}" in 00:19:08 + dpkg -l 00:19:08 + grep '^ii' 00:19:08 + '[' -f /tmp/packages_start.txt ']' 00:19:08 + '[' -f /tmp/packages_end.txt ']' 00:19:08 + diff /tmp/packages_start.txt /tmp/packages_end.txt 00:19:08 + '[' /w/workspace/gexfoundry_device-rest-go_PR-251 ']' 00:19:08 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-251/archives/ 00:19:08 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-251/archives/ [Pipeline] echo 00:19:08 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-251/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 00:19:08 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:19:08 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:19:08 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:19:09 prd-ubuntu20.04-docker-8c-8g-5938 does not seem to be running inside a container 00:19:09 $ 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-251/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-251 -v /w/workspace/gexfoundry_device-rest-go_PR-251:/w/workspace/gexfoundry_device-rest-go_PR-251:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-251@tmp:/w/workspace/gexfoundry_device-rest-go_PR-251@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 00:19:09 $ docker top b7f4f0ae42a29e6c574c085809c914c87dfc2b97dcc3b15d6a20676e01bf1d72 -eo pid,comm [Pipeline] { [Pipeline] sh 00:19:09 + touch /tmp/pre-build-complete [Pipeline] sh 00:19:09 + mkdir -p /var/log/sysstat [Pipeline] sh 00:19:10 + ls /var/log/sa-host 00:19:10 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:19:10 provisioning config files... 00:19:10 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-251@tmp/config12212230800899151525tmp [Pipeline] { [Pipeline] echo 00:19:10 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 00:19:10 ---> create-netrc.sh [Pipeline] } 00:19:10 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 00:19:10 ---> python-tools-install.sh [Pipeline] echo 00:19:10 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 00:19:11 ---> sudo-logs.sh 00:19:11 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 00:19:11 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 00:19:11 ---> job-cost.sh 00:19:11 lf-activate-venv: SKIPPING 00:19:11 DEBUG: total: 0.2199999988079071 00:19:11 INFO: Retrieving Stack Cost... 00:19:12 INFO: Retrieving Pricing Info for: v3-standard-8 00:19:12 INFO: Archiving Costs [Pipeline] echo 00:19:12 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 00:19:12 ---> logs-deploy.sh 00:19:12 lf-activate-venv: SKIPPING 00:19:12 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-251/2 00:19:12 INFO: archiving workspace using pattern(s): 00:19:13 Archives upload complete. 00:19:13 INFO: archiving logs to Nexus