Pull request #184 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 MonicaisHer for edgexfoundry/device-rest-go Loading trusted files from base branch main at f0689e2451660e374e54247122f91e779ddae9a5 rather than cd70cda7d0fa808bba6f169f61eb100b0db77b22 Obtained Jenkinsfile from f0689e2451660e374e54247122f91e779ddae9a5 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-ssh17872540636533523958.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 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-ssh15853659694707246183.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 61d3a14f5ee21304eadc9c25f102bcac80e1a589 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-184/workspace@libs/edgex-global-pipelines/.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-184/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh15114906791934707342.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 61d3a14f5ee21304eadc9c25f102bcac80e1a589 # timeout=10 Commit message: "Merge pull request #384 from ernestojeda/add-go-1_17-lts" > 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 shared 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-ssh14100722377495785743.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 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-184/workspace@libs/lf-pipelines/.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-184/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh11194492855028789698.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > 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 shared 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.17 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 [Pipeline] node Still waiting to schedule task ‘prd-ubuntu20.04-docker-8c-8g-40492’ is offline Running on prd-ubuntu20.04-docker-8c-8g-40494 in /w/workspace/gexfoundry_device-rest-go_PR-184 [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-184 # 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/184/head:refs/remotes/origin/PR-184 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit f0689e2451660e374e54247122f91e779ddae9a5 into PR head commit cd70cda7d0fa808bba6f169f61eb100b0db77b22 Merge succeeded, producing cd70cda7d0fa808bba6f169f61eb100b0db77b22 Checking out Revision cd70cda7d0fa808bba6f169f61eb100b0db77b22 (PR-184) > git config core.sparsecheckout # timeout=10 > git checkout -f cd70cda7d0fa808bba6f169f61eb100b0db77b22 # 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 f0689e2451660e374e54247122f91e779ddae9a5 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f cd70cda7d0fa808bba6f169f61eb100b0db77b22 # timeout=10 Commit message: "docs: cleanup references " First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 12:42:30 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 12:42:30 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 12:42:30 ========================================================= 12:42:30 EdgeX Global Pipelines Version Info 12:42:30 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git rev-list --no-walk 24f2d44d41511aea7b66a902317587beb4819f28 # timeout=10 12:42:31 ------------------- 12:42:31 stable info: 12:42:31 ------------------- 12:42:31 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 12:42:31 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 12:42:31 Message: update stable to v1.0.227 12:42:31 ------------------- 12:42:31 experimental info: 12:42:31 ------------------- 12:42:31 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 12:42:31 Commit SHA: 821e2ffd3fa43eddc5db18cf710cdace1a36094c 12:42:31 Message: update experimental to v1.0.229 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 12:42:31 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 12:42:31 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 12:42:31 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 12:42:31 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 12:42:31 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 12:42:31 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 12:42:31 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 12:42:31 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 12:42:31 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 12:42:31 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-184 [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-184 [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-184 [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = cd70cda7d0fa808bba6f169f61eb100b0db77b22 [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = cd70cda [Pipeline] echo 12:42:32 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:42:32 provisioning config files... 12:42:32 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-184@tmp/config7751578188799914861tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:42:32 ---> docker-login.sh 12:42:32 nexus3.edgexfoundry.org:10001 12:42:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:42:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:42:33 Configure a credential helper to remove this warning. See 12:42:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:42:33 12:42:33 Login Succeeded 12:42:33 nexus3.edgexfoundry.org:10002 12:42:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:42:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:42:33 Configure a credential helper to remove this warning. See 12:42:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:42:33 12:42:33 Login Succeeded 12:42:33 nexus3.edgexfoundry.org:10003 12:42:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:42:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:42:33 Configure a credential helper to remove this warning. See 12:42:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:42:33 12:42:33 Login Succeeded 12:42:33 nexus3.edgexfoundry.org:10004 12:42:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:42:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:42:33 Configure a credential helper to remove this warning. See 12:42:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:42:33 12:42:33 Login Succeeded 12:42:33 docker.io 12:42:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:42:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:42:34 Configure a credential helper to remove this warning. See 12:42:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:42:34 12:42:34 Login Succeeded 12:42:34 ---> docker-login.sh ends [Pipeline] } 12:42:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 12:42:34 + git rev-list -1 --merges cd70cda7d0fa808bba6f169f61eb100b0db77b22~1..cd70cda7d0fa808bba6f169f61eb100b0db77b22 [Pipeline] echo 12:42:34 -----------> git rev-list -1 --merges cd70cda7d0fa808bba6f169f61eb100b0db77b22~1..cd70cda7d0fa808bba6f169f61eb100b0db77b22 cd70cda7d0fa808bba6f169f61eb100b0db77b22 [false] [Pipeline] sh 12:42:35 + git log --format=format:%s -1 cd70cda7d0fa808bba6f169f61eb100b0db77b22 [Pipeline] echo 12:42:35 ========================================================= 12:42:35 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 12:42:35 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 12:42:35 + git log --format=format:%s -1 cd70cda7d0fa808bba6f169f61eb100b0db77b22 [Pipeline] echo 12:42:35 [semverPrep] GIT_COMMIT: cd70cda7d0fa808bba6f169f61eb100b0db77b22, Commit Message: docs: cleanup references [Pipeline] echo 12:42:35 [semverPrep] This is not a build commit. [Pipeline] sh 12:42:36 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 12:42:36 + grep -v github /etc/ssh/ssh_known_hosts 12:42:36 + [ -e /tmp/ssh_known_hosts ] 12:42:36 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 12:42:36 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 12:42:36 + sudo tee -a /etc/ssh/ssh_known_hosts 12:42:36 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 12:42:36 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 12:42:36 12:42:36 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 12:42:36 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 12:42:37 latest: Pulling from edgex-devops/py-git-semver 12:42:37 1fe172e4850f: Pulling fs layer 12:42:37 caf521ccaac6: Pulling fs layer 12:42:37 3ead6fa29328: Pulling fs layer 12:42:37 5c2a1cbceb83: Pulling fs layer 12:42:37 a8d5f1318db7: Pulling fs layer 12:42:37 c427282e49a2: Pulling fs layer 12:42:37 1827001aaf11: Pulling fs layer 12:42:37 0714d37db230: Pulling fs layer 12:42:37 ac28cf19c067: Pulling fs layer 12:42:37 a8d5f1318db7: Waiting 12:42:37 ca983d60f3e2: Pulling fs layer 12:42:37 c427282e49a2: Waiting 12:42:37 9f894cec8388: Pulling fs layer 12:42:37 1827001aaf11: Waiting 12:42:37 0714d37db230: Waiting 12:42:37 ac28cf19c067: Waiting 12:42:37 9f894cec8388: Waiting 12:42:37 ca983d60f3e2: Waiting 12:42:37 5c2a1cbceb83: Waiting 12:42:37 caf521ccaac6: Verifying Checksum 12:42:37 5c2a1cbceb83: Verifying Checksum 12:42:37 5c2a1cbceb83: Download complete 12:42:37 a8d5f1318db7: Verifying Checksum 12:42:37 a8d5f1318db7: Download complete 12:42:37 3ead6fa29328: Verifying Checksum 12:42:37 3ead6fa29328: Download complete 12:42:37 c427282e49a2: Download complete 12:42:37 ac28cf19c067: Verifying Checksum 12:42:37 ac28cf19c067: Download complete 12:42:37 ca983d60f3e2: Verifying Checksum 12:42:37 ca983d60f3e2: Download complete 12:42:37 9f894cec8388: Verifying Checksum 12:42:37 9f894cec8388: Download complete 12:42:37 1fe172e4850f: Download complete 12:42:37 1827001aaf11: Verifying Checksum 12:42:37 1827001aaf11: Download complete 12:42:38 1fe172e4850f: Pull complete 12:42:38 caf521ccaac6: Pull complete 12:42:39 3ead6fa29328: Pull complete 12:42:39 5c2a1cbceb83: Pull complete 12:42:40 a8d5f1318db7: Pull complete 12:42:40 c427282e49a2: Pull complete 12:42:42 1827001aaf11: Pull complete 12:42:42 0714d37db230: Pull complete 12:42:42 ac28cf19c067: Pull complete 12:42:42 ca983d60f3e2: Pull complete 12:42:42 9f894cec8388: Pull complete 12:42:42 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 12:42:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 12:42:42 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 12:42:42 prd-ubuntu20.04-docker-8c-8g-40494 does not seem to be running inside a container 12:42:42 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-184 -v /w/workspace/gexfoundry_device-rest-go_PR-184:/w/workspace/gexfoundry_device-rest-go_PR-184:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-184@tmp:/w/workspace/gexfoundry_device-rest-go_PR-184@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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest cat 12:42:45 $ docker top cf911587b0d7b035b60dabf923119aa1cdd3fb54e1cad014e81d1d69c9a4daf3 -eo pid,comm 12:42:45 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). 12:42:45 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 12:42:45 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 12:42:45 [ssh-agent] Looking for ssh-agent implementation... 12:42:45 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:42:45 $ docker exec cf911587b0d7b035b60dabf923119aa1cdd3fb54e1cad014e81d1d69c9a4daf3 ssh-agent 12:42:45 SSH_AUTH_SOCK=/tmp/ssh-KyuaXwAAUZIA/agent.32 12:42:45 SSH_AGENT_PID=39 12:42:45 Running ssh-add (command line suppressed) 12:42:45 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-184@tmp/private_key_8431219493551054683.key (/w/workspace/gexfoundry_device-rest-go_PR-184@tmp/private_key_8431219493551054683.key) 12:42:45 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 12:42:46 + git tag --points-at HEAD [Pipeline] } 12:42:46 $ docker exec --env ******** --env ******** cf911587b0d7b035b60dabf923119aa1cdd3fb54e1cad014e81d1d69c9a4daf3 ssh-agent -k 12:42:46 unset SSH_AUTH_SOCK; 12:42:46 unset SSH_AGENT_PID; 12:42:46 echo Agent pid 39 killed; 12:42:46 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 12:42:46 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 12:42:46 [ssh-agent] Looking for ssh-agent implementation... 12:42:46 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:42:46 $ docker exec cf911587b0d7b035b60dabf923119aa1cdd3fb54e1cad014e81d1d69c9a4daf3 ssh-agent 12:42:46 SSH_AUTH_SOCK=/tmp/ssh-uNMITpp6LW4I/agent.73 12:42:46 SSH_AGENT_PID=79 12:42:46 Running ssh-add (command line suppressed) 12:42:46 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-184@tmp/private_key_5281993530273456409.key (/w/workspace/gexfoundry_device-rest-go_PR-184@tmp/private_key_5281993530273456409.key) 12:42:46 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 12:42:47 + git semver init 12:42:47 2022-05-05 12:42:47,373 [run_init] DEBUG init version:0.0.0 force:False 12:42:47 2022-05-05 12:42:47,374 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-184/.semver 12:42:47 2022-05-05 12:42:47,375 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-184/.semver 12:42:47 2022-05-05 12:42:47,375 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-184/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-184, universal_newlines=False, shell=None, istream=None) 12:42:48 2022-05-05 12:42:48,417 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-184/.git/info/exclude 12:42:48 2022-05-05 12:42:48,417 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-184/.semver/PR-184 with force:False 12:42:48 2022-05-05 12:42:48,418 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-184/.semver/PR-184 12:42:48 2022-05-05 12:42:48,422 [execute] INFO git cat-file --batch-check 12:42:48 2022-05-05 12:42:48,423 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-184/.semver, universal_newlines=False, shell=None, istream=) 12:42:48 2022-05-05 12:42:48,429 [execute] INFO git cat-file --batch 12:42:48 2022-05-05 12:42:48,429 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-184/.semver, universal_newlines=False, shell=None, istream=) 12:42:48 2022-05-05 12:42:48,434 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-184/.semver/PR-184 12:42:48 0.0.0 [Pipeline] } 12:42:48 $ docker exec --env ******** --env ******** cf911587b0d7b035b60dabf923119aa1cdd3fb54e1cad014e81d1d69c9a4daf3 ssh-agent -k 12:42:48 unset SSH_AUTH_SOCK; 12:42:48 unset SSH_AGENT_PID; 12:42:48 echo Agent pid 79 killed; 12:42:48 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 12:42:49 + git semver [Pipeline] } 12:42:49 $ docker stop --time=1 cf911587b0d7b035b60dabf923119aa1cdd3fb54e1cad014e81d1d69c9a4daf3 12:42:51 $ docker rm -f cf911587b0d7b035b60dabf923119aa1cdd3fb54e1cad014e81d1d69c9a4daf3 [Pipeline] // withDockerContainer [Pipeline] sh 12:42:51 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 12:42:51 Stashed 1 file(s) [Pipeline] echo 12:42:51 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:42:51 provisioning config files... 12:42:51 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-184@tmp/config2682034445968317199tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:42:52 ---> docker-login.sh 12:42:52 nexus3.edgexfoundry.org:10001 12:42:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:42:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:42:52 Configure a credential helper to remove this warning. See 12:42:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:42:52 12:42:52 Login Succeeded 12:42:52 nexus3.edgexfoundry.org:10002 12:42:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:42:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:42:52 Configure a credential helper to remove this warning. See 12:42:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:42:52 12:42:52 Login Succeeded 12:42:52 nexus3.edgexfoundry.org:10003 12:42:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:42:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:42:52 Configure a credential helper to remove this warning. See 12:42:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:42:52 12:42:52 Login Succeeded 12:42:52 nexus3.edgexfoundry.org:10004 12:42:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:42:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:42:52 Configure a credential helper to remove this warning. See 12:42:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:42:52 12:42:52 Login Succeeded 12:42:52 docker.io 12:42:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:42:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:42:52 Configure a credential helper to remove this warning. See 12:42:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:42:52 12:42:52 Login Succeeded 12:42:52 ---> docker-login.sh ends [Pipeline] } 12:42:52 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:42:52 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:42:52 ========================================================= 12:42:52 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 12:42:52 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 12:42:53 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg MAKE=echo noop --target=builder . 12:42:53 Sending build context to Docker daemon 10.61MB 12:42:53 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 12:42:53 Step 2/12 : FROM ${BASE} AS builder 12:42:53 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 12:42:53 59bf1c3509f3: Pulling fs layer 12:42:53 666ba61612fd: Pulling fs layer 12:42:53 8ed8ca486205: Pulling fs layer 12:42:53 4fe6c5a15a65: Pulling fs layer 12:42:53 22a0e8bec74d: Pulling fs layer 12:42:53 ca2b28591e48: Pulling fs layer 12:42:53 a51346096db8: Pulling fs layer 12:42:53 daebc70d1ce1: Pulling fs layer 12:42:53 0e18a0eac166: Pulling fs layer 12:42:53 ca2b28591e48: Waiting 12:42:53 a51346096db8: Waiting 12:42:53 daebc70d1ce1: Waiting 12:42:53 0e18a0eac166: Waiting 12:42:53 4fe6c5a15a65: Waiting 12:42:53 22a0e8bec74d: Waiting 12:42:53 8ed8ca486205: Download complete 12:42:53 666ba61612fd: Download complete 12:42:53 22a0e8bec74d: Verifying Checksum 12:42:53 22a0e8bec74d: Download complete 12:42:53 ca2b28591e48: Verifying Checksum 12:42:53 ca2b28591e48: Download complete 12:42:53 59bf1c3509f3: Download complete 12:42:53 a51346096db8: Verifying Checksum 12:42:53 a51346096db8: Download complete 12:42:53 59bf1c3509f3: Pull complete 12:42:53 666ba61612fd: Pull complete 12:42:53 daebc70d1ce1: Verifying Checksum 12:42:53 daebc70d1ce1: Download complete 12:42:53 8ed8ca486205: Pull complete 12:42:54 0e18a0eac166: Verifying Checksum 12:42:54 0e18a0eac166: Download complete 12:42:54 4fe6c5a15a65: Verifying Checksum 12:42:54 4fe6c5a15a65: Download complete 12:42:58 4fe6c5a15a65: Pull complete 12:42:58 22a0e8bec74d: Pull complete 12:42:58 ca2b28591e48: Pull complete 12:42:58 a51346096db8: Pull complete 12:42:58 daebc70d1ce1: Pull complete 12:43:01 0e18a0eac166: Pull complete 12:43:01 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 12:43:01 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 12:43:01 ---> f018257e8ee9 12:43:01 Step 3/12 : ARG MAKE='make build' 12:43:03 ---> Running in 9b0578265d6a 12:43:04 Removing intermediate container 9b0578265d6a 12:43:04 ---> 2399e9bfb4b3 12:43:04 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 12:43:04 ---> Running in de447c3bf881 12:43:04 Removing intermediate container de447c3bf881 12:43:04 ---> d7d2f027d69d 12:43:04 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 12:43:04 ---> Running in c1663d5e64b1 12:43:04 Removing intermediate container c1663d5e64b1 12:43:04 ---> 405ae4c2488b 12:43:04 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:43:04 ---> Running in 5596328494be 12:43:05 Removing intermediate container 5596328494be 12:43:05 ---> 9d935eeb0bb9 12:43:05 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:43:05 ---> Running in 398023bb8ce3 12:43:05 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 12:43:06 Still waiting to schedule task 12:43:06 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 12:43:06 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 12:43:07 (1/4) Installing openssh-keygen (8.8_p1-r1) 12:43:07 (2/4) Installing libedit (20210910.3.1-r0) 12:43:07 (3/4) Installing openssh-client-common (8.8_p1-r1) 12:43:07 (4/4) Installing openssh-client-default (8.8_p1-r1) 12:43:07 Executing busybox-1.34.1-r3.trigger 12:43:07 OK: 224 MiB in 56 packages 12:43:07 Removing intermediate container 398023bb8ce3 12:43:07 ---> 1bf2c94b1fba 12:43:07 Step 8/12 : WORKDIR /device-rest-go 12:43:07 ---> Running in e4abd6e62909 12:43:08 Removing intermediate container e4abd6e62909 12:43:08 ---> 790bc33a2a68 12:43:08 Step 9/12 : COPY go.mod vendor* ./ 12:43:08 ---> e1f258a2764c 12:43:08 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:43:08 ---> Running in 09fc84c6b8a2 12:43:26 Removing intermediate container 09fc84c6b8a2 12:43:26 ---> 486296c3cdb7 12:43:26 Step 11/12 : COPY . . 12:43:26 ---> 19c9d3201251 12:43:26 Step 12/12 : RUN $MAKE 12:43:26 ---> Running in f4acb0a1931f 12:43:27 noop 12:43:27 Removing intermediate container f4acb0a1931f 12:43:27 ---> 278c9b4229ac 12:43:27 Successfully built 278c9b4229ac 12:43:27 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 12:43:27 + docker inspect -f . ci-base-image-x86_64 12:43:27 . [Pipeline] withDockerContainer 12:43:27 prd-ubuntu20.04-docker-8c-8g-40494 does not seem to be running inside a container 12:43:27 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-184 -v /w/workspace/gexfoundry_device-rest-go_PR-184:/w/workspace/gexfoundry_device-rest-go_PR-184:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-184@tmp:/w/workspace/gexfoundry_device-rest-go_PR-184@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 ******** ci-base-image-x86_64 cat 12:43:28 $ docker top b7da6c292ca8d815cddfb7036397009b0fff0c7301c564b5e44079808559c014 -eo pid,comm [Pipeline] { [Pipeline] sh 12:43:28 + go version 12:43:28 go version go1.17.6 linux/amd64 [Pipeline] } 12:43:28 $ docker stop --time=1 b7da6c292ca8d815cddfb7036397009b0fff0c7301c564b5e44079808559c014 12:43:29 $ docker rm -f b7da6c292ca8d815cddfb7036397009b0fff0c7301c564b5e44079808559c014 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 12:43:30 + docker inspect -f . ci-base-image-x86_64 12:43:30 . [Pipeline] withDockerContainer 12:43:30 prd-ubuntu20.04-docker-8c-8g-40494 does not seem to be running inside a container 12:43:30 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-184 -v /w/workspace/gexfoundry_device-rest-go_PR-184:/w/workspace/gexfoundry_device-rest-go_PR-184:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-184@tmp:/w/workspace/gexfoundry_device-rest-go_PR-184@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 ******** ci-base-image-x86_64 cat 12:43:30 $ docker top d0ca2a46af1e155207824b1524a1d36f1b12646daea9bf2a902eab9a2ddfa87d -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 12:43:31 + make test 12:43:31 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 12:43:31 ? github.com/edgexfoundry/device-rest-go [no test files] 12:43:41 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 12:43:41 ok github.com/edgexfoundry/device-rest-go/driver 0.019s coverage: 55.2% of statements 12:43:46 CGO_ENABLED=1 GO111MODULE=on go vet ./... 12:43:50 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 12:43:50 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 12:43:50 ./bin/test-attribution-txt.sh [Pipeline] echo 12:43:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 12:43:50 $ docker stop --time=1 d0ca2a46af1e155207824b1524a1d36f1b12646daea9bf2a902eab9a2ddfa87d 12:43:52 $ docker rm -f d0ca2a46af1e155207824b1524a1d36f1b12646daea9bf2a902eab9a2ddfa87d [Pipeline] // withDockerContainer [Pipeline] sh 12:43:52 + sudo chown -R jenkins:jenkins . [Pipeline] stash 12:43:52 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 12:43:53 + sudo chown -R jenkins:jenkins . [Pipeline] sh 12:43:53 + ls -al . 12:43:53 total 168 12:43:53 drwxrwxr-x 9 jenkins jenkins 4096 May 5 12:43 . 12:43:53 drwxrwxr-x 4 jenkins jenkins 4096 May 5 12:42 .. 12:43:53 -rw-rw-r-- 1 jenkins jenkins 151 May 5 12:42 .dockerignore 12:43:53 drwxrwxr-x 8 jenkins jenkins 4096 May 5 12:42 .git 12:43:53 drwxrwxr-x 3 jenkins jenkins 4096 May 5 12:42 .github 12:43:53 -rw-rw-r-- 1 jenkins jenkins 329 May 5 12:42 .gitignore 12:43:53 -rw-rw-r-- 1 jenkins jenkins 41 May 5 12:42 .golangci.yml 12:43:53 drwxr-xr-x 3 jenkins jenkins 4096 May 5 12:42 .semver 12:43:53 -rw-rw-r-- 1 jenkins jenkins 8463 May 5 12:42 Attribution.txt 12:43:53 -rw-rw-r-- 1 jenkins jenkins 7459 May 5 12:42 CHANGELOG.md 12:43:53 -rw-rw-r-- 1 jenkins jenkins 1672 May 5 12:42 Dockerfile 12:43:53 -rw-rw-r-- 1 jenkins jenkins 677 May 5 12:42 GOVERNANCE.md 12:43:53 -rw-rw-r-- 1 jenkins jenkins 680 May 5 12:42 Jenkinsfile 12:43:53 -rw-rw-r-- 1 jenkins jenkins 11340 May 5 12:42 LICENSE 12:43:53 -rw-rw-r-- 1 jenkins jenkins 1977 May 5 12:42 Makefile 12:43:53 -rw-rw-r-- 1 jenkins jenkins 620 May 5 12:42 OWNERS.md 12:43:53 -rw-rw-r-- 1 jenkins jenkins 8003 May 5 12:42 README.md 12:43:53 -rw-rw-r-- 1 jenkins jenkins 5 May 5 12:42 VERSION 12:43:53 drwxrwxr-x 2 jenkins jenkins 4096 May 5 12:42 bin 12:43:53 drwxrwxr-x 3 jenkins jenkins 4096 May 5 12:42 cmd 12:43:53 -rw-r--r-- 1 jenkins jenkins 9355 May 5 12:43 coverage.out 12:43:53 drwxrwxr-x 2 jenkins jenkins 4096 May 5 12:42 driver 12:43:53 -rw-rw-r-- 1 jenkins jenkins 3333 May 5 12:42 go.mod 12:43:53 -rw-rw-r-- 1 jenkins jenkins 35259 May 5 12:42 go.sum 12:43:53 drwxrwxr-x 3 jenkins jenkins 4096 May 5 12:42 snap 12:43:53 -rw-rw-r-- 1 jenkins jenkins 713 May 5 12:42 version.go [Pipeline] isUnix [Pipeline] sh 12:43:54 + docker build -t device-rest -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=cd70cda7d0fa808bba6f169f61eb100b0db77b22 --label arch=amd64 --label version=0.0.0 . 12:43:54 Sending build context to Docker daemon 10.62MB 12:43:54 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 12:43:54 Step 2/25 : FROM ${BASE} AS builder 12:43:54 ---> 278c9b4229ac 12:43:54 Step 3/25 : ARG MAKE='make build' 12:43:54 ---> Running in f53bc5af6034 12:43:54 Removing intermediate container f53bc5af6034 12:43:54 ---> 61cb360a00b7 12:43:54 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 12:43:54 ---> Running in bfbf5ee722c8 12:43:54 Removing intermediate container bfbf5ee722c8 12:43:54 ---> 9297d027dce6 12:43:54 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 12:43:54 ---> Running in 4bfe93f9d48b 12:43:54 Removing intermediate container 4bfe93f9d48b 12:43:54 ---> 54cdf2475423 12:43:54 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:43:54 ---> Running in d73b88d3257a 12:43:55 Removing intermediate container d73b88d3257a 12:43:55 ---> 423664dce799 12:43:55 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:43:55 ---> Running in 292f267f056b 12:43:55 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 12:43:56 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 12:43:56 OK: 224 MiB in 56 packages 12:43:57 Removing intermediate container 292f267f056b 12:43:57 ---> c97d65458e3e 12:43:57 Step 8/25 : WORKDIR /device-rest-go 12:43:57 ---> Running in 198ad967a24d 12:43:57 Removing intermediate container 198ad967a24d 12:43:57 ---> e597694f2d20 12:43:57 Step 9/25 : COPY go.mod vendor* ./ 12:43:57 ---> 51e40fb747d0 12:43:57 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:43:57 ---> Running in 2a2f32a036f1 12:43:58 Removing intermediate container 2a2f32a036f1 12:43:58 ---> 1858d69e14da 12:43:58 Step 11/25 : COPY . . 12:43:58 ---> 84e9ae4af0ed 12:43:58 Step 12/25 : RUN $MAKE 12:43:58 ---> Running in a406cd42de72 12:43:59 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 12:44:21 Removing intermediate container a406cd42de72 12:44:21 ---> d9f583474078 12:44:21 Step 13/25 : FROM alpine:3.14 12:44:21 3.14: Pulling from library/alpine 12:44:21 8663204ce13b: Pulling fs layer 12:44:21 8663204ce13b: Download complete 12:44:21 8663204ce13b: Pull complete 12:44:21 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 12:44:21 Status: Downloaded newer image for alpine:3.14 12:44:21 ---> e04c818066af 12:44:21 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 12:44:21 ---> Running in acca00355c7e 12:44:21 Removing intermediate container acca00355c7e 12:44:21 ---> 82e2446685df 12:44:21 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 12:44:21 ---> Running in 00c7533dfa00 12:44:21 Removing intermediate container 00c7533dfa00 12:44:21 ---> 30b99ad1fa21 12:44:21 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 12:44:21 ---> Running in d705a98b83f7 12:44:21 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 12:44:21 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 12:44:21 (1/6) Installing dumb-init (1.2.5-r1) 12:44:21 (2/6) Installing libgcc (10.3.1_git20210424-r2) 12:44:21 (3/6) Installing libsodium (1.0.18-r0) 12:44:21 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 12:44:21 (5/6) Installing libzmq (4.3.4-r0) 12:44:21 (6/6) Installing zeromq (4.3.4-r0) 12:44:21 Executing busybox-1.33.1-r7.trigger 12:44:21 OK: 8 MiB in 20 packages 12:44:21 Removing intermediate container d705a98b83f7 12:44:21 ---> 35caf01a2f4f 12:44:21 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 12:44:22 ---> 1f9f359ed20b 12:44:22 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 12:44:22 ---> 9fbd13386407 12:44:22 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 12:44:23 ---> 20fa8ae77167 12:44:23 Step 20/25 : EXPOSE 59986 12:44:23 ---> Running in 8d7015f35ae9 12:44:23 Removing intermediate container 8d7015f35ae9 12:44:23 ---> 851edc25b5a7 12:44:23 Step 21/25 : ENTRYPOINT ["/device-rest"] 12:44:23 ---> Running in 44698dd35c09 12:44:23 Removing intermediate container 44698dd35c09 12:44:23 ---> 7c61f751dfee 12:44:23 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 12:44:23 ---> Running in c745bf2a8bac 12:44:23 Removing intermediate container c745bf2a8bac 12:44:23 ---> bdfd18ec26c1 12:44:23 Step 23/25 : LABEL arch=amd64 12:44:23 ---> Running in 3b948be46c54 12:44:23 Removing intermediate container 3b948be46c54 12:44:23 ---> 470b49654120 12:44:23 Step 24/25 : LABEL git_sha=cd70cda7d0fa808bba6f169f61eb100b0db77b22 12:44:23 ---> Running in 0a1a0cc4a5aa 12:44:23 Removing intermediate container 0a1a0cc4a5aa 12:44:23 ---> 65019259272c 12:44:23 Step 25/25 : LABEL version=0.0.0 12:44:23 ---> Running in 6c814c25fcf4 12:44:24 Removing intermediate container 6c814c25fcf4 12:44:24 ---> 3a345edbe0c3 12:44:24 [Warning] One or more build-args [ARCH] were not consumed 12:44:24 Successfully built 3a345edbe0c3 12:44:24 Successfully tagged device-rest:latest [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] sh 12:44:24 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:44:24 12:44:24 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 12:44:24 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:44:24 latest: Pulling from edgex-lftools-log-publisher 12:44:24 5eb5b503b376: Pulling fs layer 12:44:24 5c69ac0246d0: Pulling fs layer 12:44:24 ec43610c2a17: Pulling fs layer 12:44:24 3a2ae6a8a46f: Pulling fs layer 12:44:24 33b1e0a273af: Pulling fs layer 12:44:24 5d3b04190fa2: Pulling fs layer 12:44:24 2f39f015ded8: Pulling fs layer 12:44:24 3a2ae6a8a46f: Waiting 12:44:24 5d3b04190fa2: Waiting 12:44:24 2f39f015ded8: Waiting 12:44:24 5c69ac0246d0: Verifying Checksum 12:44:24 5c69ac0246d0: Download complete 12:44:24 3a2ae6a8a46f: Verifying Checksum 12:44:24 3a2ae6a8a46f: Download complete 12:44:24 33b1e0a273af: Verifying Checksum 12:44:24 33b1e0a273af: Download complete 12:44:24 5d3b04190fa2: Verifying Checksum 12:44:24 5d3b04190fa2: Download complete 12:44:24 ec43610c2a17: Verifying Checksum 12:44:24 ec43610c2a17: Download complete 12:44:25 5eb5b503b376: Verifying Checksum 12:44:25 5eb5b503b376: Download complete 12:44:25 2f39f015ded8: Download complete 12:44:26 5eb5b503b376: Pull complete 12:44:26 5c69ac0246d0: Pull complete 12:44:27 ec43610c2a17: Pull complete 12:44:27 3a2ae6a8a46f: Pull complete 12:44:27 33b1e0a273af: Pull complete 12:44:27 5d3b04190fa2: Pull complete 12:44:31 2f39f015ded8: Pull complete 12:44:31 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 12:44:31 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:44:31 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 12:44:31 prd-ubuntu20.04-docker-8c-8g-40494 does not seem to be running inside a container 12:44:31 $ 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-184 -v /w/workspace/gexfoundry_device-rest-go_PR-184:/w/workspace/gexfoundry_device-rest-go_PR-184:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-184@tmp:/w/workspace/gexfoundry_device-rest-go_PR-184@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 12:44:34 $ docker top 521d614a8aa48aa5cbca510760d49fb7ea321a9916c84060fe14d12c63e7920c -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:44:35 ---> job-cost.sh 12:44:35 lf-activate-venv: SKIPPING 12:44:35 INFO: No Stack... 12:44:35 INFO: Retrieving Pricing Info for: v3-standard-8 12:44:36 INFO: Archiving Costs [Pipeline] sh 12:44:36 + cat /w/workspace/gexfoundry_device-rest-go_PR-184/archives/cost.csv 12:44:36 + cut -d, -f6 [Pipeline] lock 12:44:36 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-184-6-stack-cost] 12:44:36 Resource [jenkins-edgexfoundry-device-rest-go-PR-184-6-stack-cost] did not exist. Created. 12:44:36 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-184-6-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 12:44:36 + echo total: 0.2199999988079071 [Pipeline] stash 12:44:36 Stashed 1 file(s) [Pipeline] } 12:44:36 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-184-6-stack-cost] [Pipeline] // lock [Pipeline] } 12:44:36 $ docker stop --time=1 521d614a8aa48aa5cbca510760d49fb7ea321a9916c84060fe14d12c63e7920c 12:44:38 $ docker rm -f 521d614a8aa48aa5cbca510760d49fb7ea321a9916c84060fe14d12c63e7920c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 12:44:48 Running on prd-ubuntu20.04-docker-arm64-4c-16g-40495 in /w/workspace/gexfoundry_device-rest-go_PR-184 [Pipeline] { [Pipeline] ws 12:44:48 Running in /w/workspace/device-rest-go/6 [Pipeline] { [Pipeline] checkout 12:44:49 The recommended git tool is: git 12:44:55 using credential edgex-jenkins-ssh 12:44:55 Cloning the remote Git repository 12:44:55 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 12:44:55 > git init /w/workspace/device-rest-go/6 # timeout=10 12:44:55 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 12:44:55 > git --version # timeout=10 12:44:55 > git --version # 'git version 2.25.1' 12:44:55 using GIT_SSH to set credentials SSH Credentials for GitHub 12:44:55 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 12:44:58 Merging remotes/origin/main commit f0689e2451660e374e54247122f91e779ddae9a5 into PR head commit cd70cda7d0fa808bba6f169f61eb100b0db77b22 12:44:58 Merge succeeded, producing cd70cda7d0fa808bba6f169f61eb100b0db77b22 12:44:58 Checking out Revision cd70cda7d0fa808bba6f169f61eb100b0db77b22 (PR-184) 12:44:57 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 12:44:57 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 12:44:57 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 12:44:57 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 12:44:57 using GIT_SSH to set credentials SSH Credentials for GitHub 12:44:57 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/184/head:refs/remotes/origin/PR-184 +refs/heads/main:refs/remotes/origin/main # timeout=10 12:44:58 > git config core.sparsecheckout # timeout=10 12:44:58 > git checkout -f cd70cda7d0fa808bba6f169f61eb100b0db77b22 # timeout=10 12:44:58 > git remote # timeout=10 12:44:58 > git config --get remote.origin.url # timeout=10 12:44:58 using GIT_SSH to set credentials SSH Credentials for GitHub 12:44:58 > git merge f0689e2451660e374e54247122f91e779ddae9a5 # timeout=10 12:44:58 > git rev-parse HEAD^{commit} # timeout=10 12:44:58 > git config core.sparsecheckout # timeout=10 12:44:58 > git checkout -f cd70cda7d0fa808bba6f169f61eb100b0db77b22 # timeout=10 12:45:02 Commit message: "docs: cleanup references " [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 12:45:03 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 12:45:03 % Total % Received % Xferd Average Speed Time Time Time Current 12:45:03 Dload Upload Total Spent Left Speed 12:45:03 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 85201 0 --:--:-- --:--:-- --:--:-- 85818 [Pipeline] sh 12:45:03 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 12:45:04 + sudo tee /etc/docker/daemon.new 12:45:04 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 12:45:04 { 12:45:04 "registry-mirrors": [ 12:45:04 "https://nexus3.edgexfoundry.org:10001" 12:45:04 ], 12:45:04 "bip": "10.250.0.254/24", 12:45:04 "hosts": [ 12:45:04 "tcp://0.0.0.0:5555", 12:45:04 "unix:///var/run/docker.sock" 12:45:04 ], 12:45:04 "mtu": 1458, 12:45:04 "selinux-enabled": true, 12:45:04 "seccomp-profile": "/etc/docker/seccomp.json" 12:45:04 } [Pipeline] sh 12:45:04 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 12:45:05 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:45:23 provisioning config files... 12:45:23 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/6@tmp/config3293419261169078251tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:45:23 ---> docker-login.sh 12:45:23 nexus3.edgexfoundry.org:10001 12:45:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:45:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:45:24 Configure a credential helper to remove this warning. See 12:45:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:45:24 12:45:24 Login Succeeded 12:45:24 nexus3.edgexfoundry.org:10002 12:45:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:45:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:45:24 Configure a credential helper to remove this warning. See 12:45:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:45:24 12:45:24 Login Succeeded 12:45:24 nexus3.edgexfoundry.org:10003 12:45:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:45:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:45:25 Configure a credential helper to remove this warning. See 12:45:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:45:25 12:45:25 Login Succeeded 12:45:25 nexus3.edgexfoundry.org:10004 12:45:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:45:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:45:25 Configure a credential helper to remove this warning. See 12:45:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:45:25 12:45:25 Login Succeeded 12:45:25 docker.io 12:45:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:45:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:45:26 Configure a credential helper to remove this warning. See 12:45:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:45:26 12:45:26 Login Succeeded 12:45:26 ---> docker-login.sh ends [Pipeline] } 12:45:26 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:45:27 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:45:27 ========================================================= 12:45:27 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 12:45:27 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 12:45:27 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine --build-arg MAKE=echo noop --target=builder . 12:45:27 Sending build context to Docker daemon 124.4kB 12:45:27 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 12:45:27 Step 2/12 : FROM ${BASE} AS builder 12:45:28 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 12:45:28 9b3977197b4f: Pulling fs layer 12:45:28 1a89e8eeedd5: Pulling fs layer 12:45:28 94645a83ff95: Pulling fs layer 12:45:28 3f3a8bcf1eab: Pulling fs layer 12:45:28 0c92f367c5e7: Pulling fs layer 12:45:28 3096ccb668a1: Pulling fs layer 12:45:28 3f3a8bcf1eab: Waiting 12:45:28 0c92f367c5e7: Waiting 12:45:28 e8cf19c19ddd: Pulling fs layer 12:45:28 a4caa8a26152: Pulling fs layer 12:45:28 3096ccb668a1: Waiting 12:45:28 a4caa8a26152: Waiting 12:45:28 e8cf19c19ddd: Waiting 12:45:28 94645a83ff95: Verifying Checksum 12:45:28 94645a83ff95: Download complete 12:45:28 1a89e8eeedd5: Verifying Checksum 12:45:28 1a89e8eeedd5: Download complete 12:45:28 0c92f367c5e7: Verifying Checksum 12:45:28 0c92f367c5e7: Download complete 12:45:28 3096ccb668a1: Verifying Checksum 12:45:28 3096ccb668a1: Download complete 12:45:28 9b3977197b4f: Verifying Checksum 12:45:28 9b3977197b4f: Download complete 12:45:28 e8cf19c19ddd: Verifying Checksum 12:45:28 e8cf19c19ddd: Download complete 12:45:28 9b3977197b4f: Pull complete 12:45:29 1a89e8eeedd5: Pull complete 12:45:29 94645a83ff95: Pull complete 12:45:29 a4caa8a26152: Verifying Checksum 12:45:29 a4caa8a26152: Download complete 12:45:30 3f3a8bcf1eab: Verifying Checksum 12:45:30 3f3a8bcf1eab: Download complete 12:45:42 3f3a8bcf1eab: Pull complete 12:45:42 0c92f367c5e7: Pull complete 12:45:42 3096ccb668a1: Pull complete 12:45:43 e8cf19c19ddd: Pull complete 12:45:49 a4caa8a26152: Pull complete 12:45:49 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 12:45:49 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 12:45:49 ---> 725f1c02e7f9 12:45:49 Step 3/12 : ARG MAKE='make build' 12:45:50 ---> Running in fe0d2b073f05 12:45:50 Removing intermediate container fe0d2b073f05 12:45:50 ---> e49ce158a013 12:45:50 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 12:45:51 ---> Running in a14b4cf728b1 12:45:51 Removing intermediate container a14b4cf728b1 12:45:51 ---> 635611e54cbc 12:45:51 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 12:45:51 ---> Running in 2c3c6129773c 12:45:51 Removing intermediate container 2c3c6129773c 12:45:51 ---> 7f84276e2753 12:45:51 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:45:51 ---> Running in b16928245e04 12:45:53 Removing intermediate container b16928245e04 12:45:53 ---> 6cb4c059b104 12:45:53 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:45:53 ---> Running in d4f688c1376c 12:45:54 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 12:45:55 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 12:45:56 (1/4) Installing openssh-keygen (8.8_p1-r1) 12:45:56 (2/4) Installing libedit (20210910.3.1-r0) 12:45:56 (3/4) Installing openssh-client-common (8.8_p1-r1) 12:45:57 (4/4) Installing openssh-client-default (8.8_p1-r1) 12:45:57 Executing busybox-1.34.1-r3.trigger 12:45:57 OK: 224 MiB in 56 packages 12:45:58 Removing intermediate container d4f688c1376c 12:45:58 ---> 3cc2bca72631 12:45:58 Step 8/12 : WORKDIR /device-rest-go 12:45:58 ---> Running in 012ddc49f641 12:45:58 Removing intermediate container 012ddc49f641 12:45:58 ---> 7e595e27db19 12:45:58 Step 9/12 : COPY go.mod vendor* ./ 12:45:59 ---> c25af3216f94 12:45:59 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:45:59 ---> Running in 2038dabee453 12:46:46 Removing intermediate container 2038dabee453 12:46:46 ---> 924a16061bf3 12:46:46 Step 11/12 : COPY . . 12:46:46 ---> feb3c52307c4 12:46:46 Step 12/12 : RUN $MAKE 12:46:46 ---> Running in a14ebb2d039e 12:46:46 noop 12:46:46 Removing intermediate container a14ebb2d039e 12:46:46 ---> 86c34aecb61e 12:46:46 Successfully built 86c34aecb61e 12:46:46 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 12:46:46 + docker inspect -f . ci-base-image-arm64 12:46:46 . [Pipeline] withDockerContainer 12:46:46 prd-ubuntu20.04-docker-arm64-4c-16g-40495 does not seem to be running inside a container 12:46:46 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/6 -v /w/workspace/device-rest-go/6:/w/workspace/device-rest-go/6:rw,z -v /w/workspace/device-rest-go/6@tmp:/w/workspace/device-rest-go/6@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 ******** ci-base-image-arm64 cat 12:46:48 $ docker top 719cccf5ecd74896a861803f9572eed5548a137a75cade7877ec2e37c83d19ab -eo pid,comm [Pipeline] { [Pipeline] sh 12:46:49 + go version 12:46:49 go version go1.17.6 linux/arm64 [Pipeline] } 12:46:49 $ docker stop --time=1 719cccf5ecd74896a861803f9572eed5548a137a75cade7877ec2e37c83d19ab 12:46:50 $ docker rm -f 719cccf5ecd74896a861803f9572eed5548a137a75cade7877ec2e37c83d19ab [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 12:46:51 + docker inspect -f . ci-base-image-arm64 12:46:51 . [Pipeline] withDockerContainer 12:46:51 prd-ubuntu20.04-docker-arm64-4c-16g-40495 does not seem to be running inside a container 12:46:51 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/6 -v /w/workspace/device-rest-go/6:/w/workspace/device-rest-go/6:rw,z -v /w/workspace/device-rest-go/6@tmp:/w/workspace/device-rest-go/6@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 ******** ci-base-image-arm64 cat 12:46:52 $ docker top bc833218eca28f6bc1d74c4e07b0eefcefaff38ce63b2f41663bd5e4c2dffc21 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 12:46:53 + make test 12:46:53 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 12:46:55 ? github.com/edgexfoundry/device-rest-go [no test files] 12:48:17 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 12:48:17 ok github.com/edgexfoundry/device-rest-go/driver 0.067s coverage: 55.2% of statements 12:48:17 WARNING: Linting skipped (not on x86_64 or linter not installed) 12:48:17 CGO_ENABLED=1 GO111MODULE=on go vet ./... 12:48:39 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 12:48:39 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 12:48:39 ./bin/test-attribution-txt.sh [Pipeline] echo 12:48:40 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 12:48:40 $ docker stop --time=1 bc833218eca28f6bc1d74c4e07b0eefcefaff38ce63b2f41663bd5e4c2dffc21 12:48:42 $ docker rm -f bc833218eca28f6bc1d74c4e07b0eefcefaff38ce63b2f41663bd5e4c2dffc21 [Pipeline] // withDockerContainer [Pipeline] sh 12:48:43 + sudo chown -R jenkins:jenkins . [Pipeline] stash 12:48:43 Warning: overwriting stash ‘coverage-report’ 12:48:43 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 12:48:44 + sudo chown -R jenkins:jenkins . [Pipeline] sh 12:48:44 + ls -al . 12:48:44 total 164 12:48:44 drwxrwxr-x 8 jenkins jenkins 4096 May 5 12:48 . 12:48:44 drwxrwxr-x 4 jenkins jenkins 4096 May 5 12:44 .. 12:48:44 -rw-rw-r-- 1 jenkins jenkins 151 May 5 12:44 .dockerignore 12:48:44 drwxrwxr-x 8 jenkins jenkins 4096 May 5 12:45 .git 12:48:44 drwxrwxr-x 3 jenkins jenkins 4096 May 5 12:44 .github 12:48:44 -rw-rw-r-- 1 jenkins jenkins 329 May 5 12:44 .gitignore 12:48:44 -rw-rw-r-- 1 jenkins jenkins 41 May 5 12:44 .golangci.yml 12:48:44 -rw-rw-r-- 1 jenkins jenkins 8463 May 5 12:44 Attribution.txt 12:48:44 -rw-rw-r-- 1 jenkins jenkins 7459 May 5 12:44 CHANGELOG.md 12:48:44 -rw-rw-r-- 1 jenkins jenkins 1672 May 5 12:44 Dockerfile 12:48:44 -rw-rw-r-- 1 jenkins jenkins 677 May 5 12:44 GOVERNANCE.md 12:48:44 -rw-rw-r-- 1 jenkins jenkins 680 May 5 12:44 Jenkinsfile 12:48:44 -rw-rw-r-- 1 jenkins jenkins 11340 May 5 12:44 LICENSE 12:48:44 -rw-rw-r-- 1 jenkins jenkins 1977 May 5 12:44 Makefile 12:48:44 -rw-rw-r-- 1 jenkins jenkins 620 May 5 12:44 OWNERS.md 12:48:44 -rw-rw-r-- 1 jenkins jenkins 8003 May 5 12:44 README.md 12:48:44 -rw-rw-r-- 1 jenkins jenkins 5 May 5 12:42 VERSION 12:48:44 drwxrwxr-x 2 jenkins jenkins 4096 May 5 12:44 bin 12:48:44 drwxrwxr-x 3 jenkins jenkins 4096 May 5 12:44 cmd 12:48:44 -rw-r--r-- 1 jenkins jenkins 9355 May 5 12:48 coverage.out 12:48:44 drwxrwxr-x 2 jenkins jenkins 4096 May 5 12:44 driver 12:48:44 -rw-rw-r-- 1 jenkins jenkins 3333 May 5 12:44 go.mod 12:48:44 -rw-rw-r-- 1 jenkins jenkins 35259 May 5 12:44 go.sum 12:48:44 drwxrwxr-x 3 jenkins jenkins 4096 May 5 12:44 snap 12:48:44 -rw-rw-r-- 1 jenkins jenkins 713 May 5 12:44 version.go [Pipeline] isUnix [Pipeline] sh 12:48:44 + 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=cd70cda7d0fa808bba6f169f61eb100b0db77b22 --label arch=arm64 --label version=0.0.0 . 12:48:44 Sending build context to Docker daemon 134.7kB 12:48:45 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 12:48:45 Step 2/25 : FROM ${BASE} AS builder 12:48:45 ---> 86c34aecb61e 12:48:45 Step 3/25 : ARG MAKE='make build' 12:48:45 ---> Running in 0cd616c52bea 12:48:45 Removing intermediate container 0cd616c52bea 12:48:45 ---> 0f494ddff28e 12:48:45 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 12:48:45 ---> Running in 63f8581a65ea 12:48:45 Removing intermediate container 63f8581a65ea 12:48:45 ---> e1987afa21e5 12:48:45 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 12:48:45 ---> Running in 2fa5a77c90a4 12:48:46 Removing intermediate container 2fa5a77c90a4 12:48:46 ---> faba6c20633d 12:48:46 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:48:46 ---> Running in 778c7f068be7 12:48:48 Removing intermediate container 778c7f068be7 12:48:48 ---> e9e5b6bf9949 12:48:48 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:48:48 ---> Running in d523d95913e4 12:48:48 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 12:48:49 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 12:48:50 OK: 224 MiB in 56 packages 12:48:51 Removing intermediate container d523d95913e4 12:48:51 ---> ccd87374a66e 12:48:51 Step 8/25 : WORKDIR /device-rest-go 12:48:51 ---> Running in 4b1e8b8fff87 12:48:51 Removing intermediate container 4b1e8b8fff87 12:48:51 ---> 8383fd498e2f 12:48:51 Step 9/25 : COPY go.mod vendor* ./ 12:48:52 ---> a83aec5f554b 12:48:52 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:48:52 ---> Running in 8943142fd460 12:48:54 Removing intermediate container 8943142fd460 12:48:54 ---> 6073d30e1ce3 12:48:54 Step 11/25 : COPY . . 12:48:54 ---> c1b6069d26a5 12:48:54 Step 12/25 : RUN $MAKE 12:48:54 ---> Running in 3867e7c758cc 12:48:55 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 12:51:02 Removing intermediate container 3867e7c758cc 12:51:02 ---> 22f9631de4cf 12:51:02 Step 13/25 : FROM alpine:3.14 12:51:02 3.14: Pulling from library/alpine 12:51:02 455c02918c45: Pulling fs layer 12:51:02 455c02918c45: Verifying Checksum 12:51:02 455c02918c45: Download complete 12:51:02 455c02918c45: Pull complete 12:51:02 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 12:51:02 Status: Downloaded newer image for alpine:3.14 12:51:02 ---> ac73e934f311 12:51:02 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 12:51:02 ---> Running in c16c70ce0de1 12:51:02 Removing intermediate container c16c70ce0de1 12:51:02 ---> aa1e89557d00 12:51:02 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 12:51:02 ---> Running in da2a71f6c0b0 12:51:02 Removing intermediate container da2a71f6c0b0 12:51:02 ---> 49a47a406196 12:51:02 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 12:51:02 ---> Running in 55bd5ed519b5 12:51:02 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 12:51:02 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 12:51:02 (1/6) Installing dumb-init (1.2.5-r1) 12:51:02 (2/6) Installing libgcc (10.3.1_git20210424-r2) 12:51:02 (3/6) Installing libsodium (1.0.18-r0) 12:51:02 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 12:51:02 (5/6) Installing libzmq (4.3.4-r0) 12:51:02 (6/6) Installing zeromq (4.3.4-r0) 12:51:02 Executing busybox-1.33.1-r7.trigger 12:51:02 OK: 8 MiB in 20 packages 12:51:02 Removing intermediate container 55bd5ed519b5 12:51:02 ---> a9bd0412b933 12:51:02 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 12:51:02 ---> ad7118282d9b 12:51:02 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 12:51:02 ---> e14cd4022dbe 12:51:02 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 12:51:02 ---> 077a04113741 12:51:02 Step 20/25 : EXPOSE 59986 12:51:02 ---> Running in 899ae62b07ae 12:51:02 Removing intermediate container 899ae62b07ae 12:51:02 ---> c860be88004e 12:51:02 Step 21/25 : ENTRYPOINT ["/device-rest"] 12:51:02 ---> Running in 227d0b9bcce6 12:51:02 Removing intermediate container 227d0b9bcce6 12:51:02 ---> ddbef254d59c 12:51:02 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 12:51:02 ---> Running in 1774c2cbf27a 12:51:02 Removing intermediate container 1774c2cbf27a 12:51:02 ---> 45a1e7c42f43 12:51:02 Step 23/25 : LABEL arch=arm64 12:51:02 ---> Running in 46a01c81b3da 12:51:02 Removing intermediate container 46a01c81b3da 12:51:02 ---> 59733fe4c04c 12:51:02 Step 24/25 : LABEL git_sha=cd70cda7d0fa808bba6f169f61eb100b0db77b22 12:51:02 ---> Running in f9b103604f4c 12:51:02 Removing intermediate container f9b103604f4c 12:51:02 ---> 4c569abf2792 12:51:02 Step 25/25 : LABEL version=0.0.0 12:51:02 ---> Running in 835e3a5d0ee0 12:51:02 Removing intermediate container 835e3a5d0ee0 12:51:02 ---> bf11b9a27f15 12:51:02 [Warning] One or more build-args [ARCH] were not consumed 12:51:02 Successfully built bf11b9a27f15 12:51:02 Successfully tagged device-rest-arm64:latest [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] sh 12:51:03 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:51:03 12:51:03 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 12:51:03 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:51:03 arm64: Pulling from edgex-lftools-log-publisher 12:51:03 8998bd30e6a1: Pulling fs layer 12:51:03 04944245beec: Pulling fs layer 12:51:03 699f458cf7ca: Pulling fs layer 12:51:03 765212b225bb: Pulling fs layer 12:51:03 f23df028b6ca: Pulling fs layer 12:51:03 d65c8cfc05b1: Pulling fs layer 12:51:03 2437ff75d9bd: Pulling fs layer 12:51:03 765212b225bb: Waiting 12:51:03 f23df028b6ca: Waiting 12:51:03 d65c8cfc05b1: Waiting 12:51:03 2437ff75d9bd: Waiting 12:51:03 04944245beec: Verifying Checksum 12:51:03 04944245beec: Download complete 12:51:03 765212b225bb: Verifying Checksum 12:51:03 765212b225bb: Download complete 12:51:03 f23df028b6ca: Verifying Checksum 12:51:03 f23df028b6ca: Download complete 12:51:03 d65c8cfc05b1: Verifying Checksum 12:51:03 d65c8cfc05b1: Download complete 12:51:03 699f458cf7ca: Verifying Checksum 12:51:03 699f458cf7ca: Download complete 12:51:04 8998bd30e6a1: Verifying Checksum 12:51:04 8998bd30e6a1: Download complete 12:51:06 2437ff75d9bd: Verifying Checksum 12:51:06 2437ff75d9bd: Download complete 12:51:08 8998bd30e6a1: Pull complete 12:51:08 04944245beec: Pull complete 12:51:10 699f458cf7ca: Pull complete 12:51:10 765212b225bb: Pull complete 12:51:11 f23df028b6ca: Pull complete 12:51:11 d65c8cfc05b1: Pull complete 12:51:26 2437ff75d9bd: Pull complete 12:51:26 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 12:51:26 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:51:26 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 12:51:26 prd-ubuntu20.04-docker-arm64-4c-16g-40495 does not seem to be running inside a container 12:51:26 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/6 -v /w/workspace/device-rest-go/6:/w/workspace/device-rest-go/6:rw,z -v /w/workspace/device-rest-go/6@tmp:/w/workspace/device-rest-go/6@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 12:51:29 $ docker top 0819d35324e368b66759b8bb1d90a68b47e866515c66e9143e544a0501fe7bba -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:51:30 ---> job-cost.sh 12:51:30 lf-activate-venv: SKIPPING 12:51:30 INFO: No Stack... 12:51:31 INFO: Retrieving Pricing Info for: v3-standard-4 12:51:32 INFO: Archiving Costs [Pipeline] sh 12:51:32 + cat /w/workspace/device-rest-go/6/archives/cost.csv 12:51:32 + cut -d, -f6 [Pipeline] lock 12:51:32 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-184-6-stack-cost] 12:51:32 Resource [jenkins-edgexfoundry-device-rest-go-PR-184-6-stack-cost] did not exist. Created. 12:51:32 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-184-6-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 12:51:33 /w/workspace/device-rest-go/6@tmp/durable-9d775481/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 12:51:34 + echo total: 0.10999999940395355 [Pipeline] stash 12:51:34 Warning: overwriting stash ‘stack-cost’ 12:51:34 Stashed 1 file(s) [Pipeline] } 12:51:34 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-184-6-stack-cost] [Pipeline] // lock [Pipeline] } 12:51:34 $ docker stop --time=1 0819d35324e368b66759b8bb1d90a68b47e866515c66e9143e544a0501fe7bba 12:51:35 $ docker rm -f 0819d35324e368b66759b8bb1d90a68b47e866515c66e9143e544a0501fe7bba [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 12:51:36 provisioning config files... 12:51:36 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-184@tmp/config4035450535989624963tmp [Pipeline] { [Pipeline] sh 12:51:36 + set +x 12:51:36 + curl -s https://codecov.io/bash 12:51:36 + bash -s -- 12:51:36 12:51:36 _____ _ 12:51:36 / ____| | | 12:51:36 | | ___ __| | ___ ___ _____ __ 12:51:36 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 12:51:36 | |___| (_) | (_| | __/ (_| (_) \ V / 12:51:36 \_____\___/ \__,_|\___|\___\___/ \_/ 12:51:36 Bash-1.0.6 12:51:36 12:51:36 12:51:36 ==> git version 2.25.1 found 12:51:36 ==> 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 12:51:36 Release-Date: 2020-01-08 12:51:36 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 12:51:36 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 12:51:36 ==> Jenkins CI detected. 12:51:36 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-184 12:51:36 project root: . 12:51:36 --> token set from env 12:51:36 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 12:51:36 ==> Running gcov in . (disable via -X gcov) 12:51:36 ==> Python coveragepy not found 12:51:36 ==> Searching for coverage reports in: 12:51:36 + . 12:51:36 -> Found 1 reports 12:51:36 ==> Detecting git/mercurial file structure 12:51:36 ==> Reading reports 12:51:36 + ./coverage.out bytes=9355 12:51:36 ==> Appending adjustments 12:51:36 https://docs.codecov.io/docs/fixing-reports 12:51:36 + Found adjustments 12:51:36 ==> Gzipping contents 12:51:36 4.0K /tmp/codecov.I3cZwI.gz 12:51:36 ==> Uploading reports 12:51:36 url: https://codecov.io 12:51:36 query: branch=PR-184&commit=cd70cda7d0fa808bba6f169f61eb100b0db77b22&build=6&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-184%2F6%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=184&job=&cmd_args= 12:51:36 -> Pinging Codecov 12:51:36 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-184&commit=cd70cda7d0fa808bba6f169f61eb100b0db77b22&build=6&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-184%2F6%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=184&job=&cmd_args= 12:51:37 -> Uploading to 12:51:37 https://storage.googleapis.com/codecov/v4/raw/2022-05-05/4E5D53B4F1F92C436F7061BF334D961C/cd70cda7d0fa808bba6f169f61eb100b0db77b22/bbbe1021-b443-49fc-9b2c-92996f1d5246.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220505%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220505T125136Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=30fa9f9e702b1f2db5fe6a53bf607c54d329d4f694e8c81a77e132f72227f966 12:51:37 % Total % Received % Xferd Average Speed Time Time Time Current 12:51:37 Dload Upload Total Spent Left Speed 12:51:37 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1814 0 0 100 1814 0 7141 --:--:-- --:--:-- --:--:-- 7141 12:51:37 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/cd70cda7d0fa808bba6f169f61eb100b0db77b22 [Pipeline] } 12:51:37 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 12:51:38 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-184/archives ] 12:51:38 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-184/archives 12:51:38 total 16 12:51:38 drwxr-xr-x 3 root root 4096 May 5 12:44 . 12:51:38 drwxrwxr-x 10 jenkins jenkins 4096 May 5 12:44 .. 12:51:38 drwxr-xr-x 2 root root 4096 May 5 12:44 cost 12:51:38 -rw-r--r-- 1 root root 85 May 5 12:44 cost.csv 12:51:38 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-184/archives 12:51:38 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-184/archives 12:51:38 total 16 12:51:38 drwxr-xr-x 3 jenkins jenkins 4096 May 5 12:44 . 12:51:38 drwxrwxr-x 10 jenkins jenkins 4096 May 5 12:44 .. 12:51:38 drwxr-xr-x 2 jenkins jenkins 4096 May 5 12:44 cost 12:51:38 -rw-r--r-- 1 jenkins jenkins 85 May 5 12:44 cost.csv [Pipeline] libraryResource [Pipeline] sh 12:51:38 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 12:51:39 ---> package-listing.sh 12:51:39 ++ facter osfamily 12:51:39 ++ tr '[:upper:]' '[:lower:]' 12:51:39 + OS_FAMILY=debian 12:51:39 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-184 12:51:39 + START_PACKAGES=/tmp/packages_start.txt 12:51:39 + END_PACKAGES=/tmp/packages_end.txt 12:51:39 + DIFF_PACKAGES=/tmp/packages_diff.txt 12:51:39 + PACKAGES=/tmp/packages_start.txt 12:51:39 + '[' /w/workspace/gexfoundry_device-rest-go_PR-184 ']' 12:51:39 + PACKAGES=/tmp/packages_end.txt 12:51:39 + case "${OS_FAMILY}" in 12:51:39 + dpkg -l 12:51:39 + grep '^ii' 12:51:39 + '[' -f /tmp/packages_start.txt ']' 12:51:39 + '[' -f /tmp/packages_end.txt ']' 12:51:39 + diff /tmp/packages_start.txt /tmp/packages_end.txt 12:51:39 + '[' /w/workspace/gexfoundry_device-rest-go_PR-184 ']' 12:51:39 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-184/archives/ 12:51:39 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-184/archives/ [Pipeline] echo 12:51:39 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-184/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 12:51:40 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 12:51:40 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:51:40 . [Pipeline] withDockerContainer 12:51:40 prd-ubuntu20.04-docker-8c-8g-40494 does not seem to be running inside a container 12:51:40 $ 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-184/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-184 -v /w/workspace/gexfoundry_device-rest-go_PR-184:/w/workspace/gexfoundry_device-rest-go_PR-184:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-184@tmp:/w/workspace/gexfoundry_device-rest-go_PR-184@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 12:51:41 $ docker top 5b8a082c68dca4ef0ec6df99f607159f82beb16307dc48dd5d7a4b71597d7d56 -eo pid,comm [Pipeline] { [Pipeline] sh 12:51:41 + touch /tmp/pre-build-complete [Pipeline] sh 12:51:41 + mkdir -p /var/log/sysstat [Pipeline] sh 12:51:41 + ls /var/log/sa-host 12:51:41 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:51:42 provisioning config files... 12:51:42 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-184@tmp/config833487647689031265tmp [Pipeline] { [Pipeline] echo 12:51:42 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 12:51:42 ---> create-netrc.sh [Pipeline] } 12:51:42 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 12:51:42 ---> python-tools-install.sh [Pipeline] echo 12:51:42 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 12:51:43 ---> sudo-logs.sh 12:51:43 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 12:51:43 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 12:51:43 ---> job-cost.sh 12:51:43 lf-activate-venv: SKIPPING 12:51:43 DEBUG: total: 0.2199999988079071 12:51:43 INFO: Retrieving Stack Cost... 12:51:44 INFO: Retrieving Pricing Info for: v3-standard-8 12:51:44 INFO: Archiving Costs [Pipeline] echo 12:51:44 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 12:51:44 ---> logs-deploy.sh 12:51:44 lf-activate-venv: SKIPPING 12:51:44 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-184/6 12:51:44 INFO: archiving workspace using pattern(s): 12:51:45 Archives upload complete. 12:51:45 INFO: archiving logs to Nexus