Pull request #188 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 4edc8d2690683859fe7dd7f6313ce2addb447006 rather than 666239c451659f5f452068b0dd21a739764742be Obtained Jenkinsfile from 4edc8d2690683859fe7dd7f6313ce2addb447006 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-ssh4412902114940707820.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-ssh11218165158515260637.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-188/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-188/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh463351497883312130.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-ssh7272961263599556110.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-188/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-188/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh17816235946749163144.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-centos7-blackbox-4c-2g-41381’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu18.04-docker-8c-8g-41080’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-8c-8g-47527’ is offline ‘prd-ubuntu20.04-docker-8c-8g-47533’ is offline Running on prd-ubuntu20.04-docker-8c-8g-47534 in /w/workspace/gexfoundry_device-rest-go_PR-188 [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-188 # 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 Merging remotes/origin/main commit 4edc8d2690683859fe7dd7f6313ce2addb447006 into PR head commit 666239c451659f5f452068b0dd21a739764742be > 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/188/head:refs/remotes/origin/PR-188 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 666239c451659f5f452068b0dd21a739764742be # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 Merge succeeded, producing 666239c451659f5f452068b0dd21a739764742be Checking out Revision 666239c451659f5f452068b0dd21a739764742be (PR-188) using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 4edc8d2690683859fe7dd7f6313ce2addb447006 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 666239c451659f5f452068b0dd21a739764742be # timeout=10 Commit message: "build(deps): go mod tidy" > git rev-list --no-walk 6592639535dbfe2f23e78a29db4d492bfcdc0f26 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 11:56:21 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 11:56:21 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 11:56:21 ========================================================= 11:56:21 EdgeX Global Pipelines Version Info 11:56:21 ========================================================= [Pipeline] libraryResource [Pipeline] sh 11:56:22 ------------------- 11:56:22 stable info: 11:56:22 ------------------- 11:56:22 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 11:56:22 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 11:56:22 Message: update stable to v1.0.227 11:56:22 ------------------- 11:56:22 experimental info: 11:56:22 ------------------- 11:56:22 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 11:56:22 Commit SHA: 821e2ffd3fa43eddc5db18cf710cdace1a36094c 11:56:22 Message: update experimental to v1.0.229 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 11:56:22 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 11:56:22 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 11:56:22 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 11:56:22 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 11:56:22 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 11:56:22 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 11:56:22 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 11:56:22 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 11:56:22 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-188 [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-188 [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-188 [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 666239c451659f5f452068b0dd21a739764742be [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 666239c [Pipeline] echo 11:56:23 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:56:23 provisioning config files... 11:56:23 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-188@tmp/config8128780907721805443tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:56:23 ---> docker-login.sh 11:56:23 nexus3.edgexfoundry.org:10001 11:56:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:56:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:56:23 Configure a credential helper to remove this warning. See 11:56:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:56:23 11:56:23 Login Succeeded 11:56:23 nexus3.edgexfoundry.org:10002 11:56:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:56:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:56:24 Configure a credential helper to remove this warning. See 11:56:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:56:24 11:56:24 Login Succeeded 11:56:24 nexus3.edgexfoundry.org:10003 11:56:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:56:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:56:24 Configure a credential helper to remove this warning. See 11:56:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:56:24 11:56:24 Login Succeeded 11:56:24 nexus3.edgexfoundry.org:10004 11:56:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:56:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:56:24 Configure a credential helper to remove this warning. See 11:56:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:56:24 11:56:24 Login Succeeded 11:56:24 docker.io 11:56:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:56:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:56:25 Configure a credential helper to remove this warning. See 11:56:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:56:25 11:56:25 Login Succeeded 11:56:25 ---> docker-login.sh ends [Pipeline] } 11:56:25 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 11:56:25 + git rev-list -1 --merges 666239c451659f5f452068b0dd21a739764742be~1..666239c451659f5f452068b0dd21a739764742be [Pipeline] echo 11:56:25 -----------> git rev-list -1 --merges 666239c451659f5f452068b0dd21a739764742be~1..666239c451659f5f452068b0dd21a739764742be 666239c451659f5f452068b0dd21a739764742be [false] [Pipeline] sh 11:56:25 + git log --format=format:%s -1 666239c451659f5f452068b0dd21a739764742be [Pipeline] echo 11:56:25 ========================================================= 11:56:25 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 11:56:25 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 11:56:26 + git log --format=format:%s -1 666239c451659f5f452068b0dd21a739764742be [Pipeline] echo 11:56:26 [semverPrep] GIT_COMMIT: 666239c451659f5f452068b0dd21a739764742be, Commit Message: build(deps): go mod tidy [Pipeline] echo 11:56:26 [semverPrep] This is not a build commit. [Pipeline] sh 11:56:26 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 11:56:26 + grep -v github /etc/ssh/ssh_known_hosts 11:56:26 + [ -e /tmp/ssh_known_hosts ] 11:56:26 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 11:56:26 + + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 11:56:26 sudo tee -a /etc/ssh/ssh_known_hosts 11:56:26 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 11:56:27 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 11:56:27 11:56:27 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 11:56:27 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 11:56:27 latest: Pulling from edgex-devops/py-git-semver 11:56:27 1fe172e4850f: Pulling fs layer 11:56:27 caf521ccaac6: Pulling fs layer 11:56:27 3ead6fa29328: Pulling fs layer 11:56:27 5c2a1cbceb83: Pulling fs layer 11:56:27 a8d5f1318db7: Pulling fs layer 11:56:27 c427282e49a2: Pulling fs layer 11:56:27 1827001aaf11: Pulling fs layer 11:56:27 0714d37db230: Pulling fs layer 11:56:27 ac28cf19c067: Pulling fs layer 11:56:27 ca983d60f3e2: Pulling fs layer 11:56:27 9f894cec8388: Pulling fs layer 11:56:27 0714d37db230: Waiting 11:56:27 5c2a1cbceb83: Waiting 11:56:27 a8d5f1318db7: Waiting 11:56:27 ca983d60f3e2: Waiting 11:56:27 1827001aaf11: Waiting 11:56:27 c427282e49a2: Waiting 11:56:27 caf521ccaac6: Verifying Checksum 11:56:27 caf521ccaac6: Download complete 11:56:27 5c2a1cbceb83: Verifying Checksum 11:56:27 5c2a1cbceb83: Download complete 11:56:27 a8d5f1318db7: Verifying Checksum 11:56:27 a8d5f1318db7: Download complete 11:56:27 c427282e49a2: Verifying Checksum 11:56:27 c427282e49a2: Download complete 11:56:27 3ead6fa29328: Verifying Checksum 11:56:27 3ead6fa29328: Download complete 11:56:27 0714d37db230: Download complete 11:56:27 ac28cf19c067: Download complete 11:56:27 ca983d60f3e2: Download complete 11:56:27 9f894cec8388: Verifying Checksum 11:56:27 9f894cec8388: Download complete 11:56:27 1fe172e4850f: Verifying Checksum 11:56:27 1fe172e4850f: Download complete 11:56:27 1827001aaf11: Verifying Checksum 11:56:27 1827001aaf11: Download complete 11:56:29 1fe172e4850f: Pull complete 11:56:29 caf521ccaac6: Pull complete 11:56:29 3ead6fa29328: Pull complete 11:56:29 5c2a1cbceb83: Pull complete 11:56:30 a8d5f1318db7: Pull complete 11:56:30 c427282e49a2: Pull complete 11:56:32 1827001aaf11: Pull complete 11:56:32 0714d37db230: Pull complete 11:56:32 ac28cf19c067: Pull complete 11:56:32 ca983d60f3e2: Pull complete 11:56:32 9f894cec8388: Pull complete 11:56:32 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 11:56:32 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 11:56:32 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 11:56:32 prd-ubuntu20.04-docker-8c-8g-47534 does not seem to be running inside a container 11:56:32 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-188 -v /w/workspace/gexfoundry_device-rest-go_PR-188:/w/workspace/gexfoundry_device-rest-go_PR-188:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-188@tmp:/w/workspace/gexfoundry_device-rest-go_PR-188@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 11:56:34 $ docker top 83b385b77c3f12e9f52d4afc649cc7c30253ed2cad140e3a6fbfa267553e5628 -eo pid,comm 11:56:34 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). 11:56:34 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 11:56:34 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 11:56:34 [ssh-agent] Looking for ssh-agent implementation... 11:56:34 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 11:56:34 $ docker exec 83b385b77c3f12e9f52d4afc649cc7c30253ed2cad140e3a6fbfa267553e5628 ssh-agent 11:56:35 SSH_AUTH_SOCK=/tmp/ssh-jHjWLWg7HiTu/agent.32 11:56:35 SSH_AGENT_PID=38 11:56:35 Running ssh-add (command line suppressed) 11:56:35 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-188@tmp/private_key_4592991171680698016.key (/w/workspace/gexfoundry_device-rest-go_PR-188@tmp/private_key_4592991171680698016.key) 11:56:35 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 11:56:35 + git tag --points-at HEAD [Pipeline] } 11:56:35 $ docker exec --env ******** --env ******** 83b385b77c3f12e9f52d4afc649cc7c30253ed2cad140e3a6fbfa267553e5628 ssh-agent -k 11:56:35 unset SSH_AUTH_SOCK; 11:56:35 unset SSH_AGENT_PID; 11:56:35 echo Agent pid 38 killed; 11:56:35 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 11:56:35 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 11:56:35 [ssh-agent] Looking for ssh-agent implementation... 11:56:35 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 11:56:35 $ docker exec 83b385b77c3f12e9f52d4afc649cc7c30253ed2cad140e3a6fbfa267553e5628 ssh-agent 11:56:35 SSH_AUTH_SOCK=/tmp/ssh-NvVg3MrVrNOP/agent.72 11:56:35 SSH_AGENT_PID=78 11:56:35 Running ssh-add (command line suppressed) 11:56:36 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-188@tmp/private_key_8943519172957457842.key (/w/workspace/gexfoundry_device-rest-go_PR-188@tmp/private_key_8943519172957457842.key) 11:56:36 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 11:56:36 + git semver init 11:56:36 2022-05-10 11:56:36,563 [run_init] DEBUG init version:0.0.0 force:False 11:56:36 2022-05-10 11:56:36,564 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-188/.semver 11:56:36 2022-05-10 11:56:36,564 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-188/.semver 11:56:36 2022-05-10 11:56:36,564 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-188/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-188, universal_newlines=False, shell=None, istream=None) 11:56:37 2022-05-10 11:56:37,612 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-188/.git/info/exclude 11:56:37 2022-05-10 11:56:37,613 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-188/.semver/PR-188 with force:False 11:56:37 2022-05-10 11:56:37,613 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-188/.semver/PR-188 11:56:37 2022-05-10 11:56:37,617 [execute] INFO git cat-file --batch-check 11:56:37 2022-05-10 11:56:37,618 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-188/.semver, universal_newlines=False, shell=None, istream=) 11:56:37 2022-05-10 11:56:37,625 [execute] INFO git cat-file --batch 11:56:37 2022-05-10 11:56:37,625 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-188/.semver, universal_newlines=False, shell=None, istream=) 11:56:37 2022-05-10 11:56:37,631 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-188/.semver/PR-188 11:56:37 0.0.0 [Pipeline] } 11:56:37 $ docker exec --env ******** --env ******** 83b385b77c3f12e9f52d4afc649cc7c30253ed2cad140e3a6fbfa267553e5628 ssh-agent -k 11:56:38 unset SSH_AUTH_SOCK; 11:56:38 unset SSH_AGENT_PID; 11:56:38 echo Agent pid 78 killed; 11:56:38 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 11:56:38 + git semver [Pipeline] } 11:56:38 $ docker stop --time=1 83b385b77c3f12e9f52d4afc649cc7c30253ed2cad140e3a6fbfa267553e5628 11:56:40 $ docker rm -f 83b385b77c3f12e9f52d4afc649cc7c30253ed2cad140e3a6fbfa267553e5628 [Pipeline] // withDockerContainer [Pipeline] sh 11:56:40 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 11:56:40 Stashed 1 file(s) [Pipeline] echo 11:56:40 [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 11:56:40 provisioning config files... 11:56:40 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-188@tmp/config156743489017476485tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:56:41 ---> docker-login.sh 11:56:41 nexus3.edgexfoundry.org:10001 11:56:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:56:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:56:41 Configure a credential helper to remove this warning. See 11:56:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:56:41 11:56:41 Login Succeeded 11:56:41 nexus3.edgexfoundry.org:10002 11:56:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:56:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:56:41 Configure a credential helper to remove this warning. See 11:56:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:56:41 11:56:41 Login Succeeded 11:56:41 nexus3.edgexfoundry.org:10003 11:56:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:56:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:56:41 Configure a credential helper to remove this warning. See 11:56:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:56:41 11:56:41 Login Succeeded 11:56:41 nexus3.edgexfoundry.org:10004 11:56:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:56:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:56:41 Configure a credential helper to remove this warning. See 11:56:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:56:41 11:56:41 Login Succeeded 11:56:41 docker.io 11:56:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:56:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:56:42 Configure a credential helper to remove this warning. See 11:56:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:56:42 11:56:42 Login Succeeded 11:56:42 ---> docker-login.sh ends [Pipeline] } 11:56:42 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 11:56:42 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 11:56:42 ========================================================= 11:56:42 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 11:56:42 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 11:56:42 + 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 . 11:56:42 Sending build context to Docker daemon 10.62MB 11:56:42 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 11:56:42 Step 2/12 : FROM ${BASE} AS builder 11:56:42 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 11:56:42 59bf1c3509f3: Pulling fs layer 11:56:42 666ba61612fd: Pulling fs layer 11:56:42 8ed8ca486205: Pulling fs layer 11:56:42 4fe6c5a15a65: Pulling fs layer 11:56:42 22a0e8bec74d: Pulling fs layer 11:56:42 ca2b28591e48: Pulling fs layer 11:56:42 a51346096db8: Pulling fs layer 11:56:42 daebc70d1ce1: Pulling fs layer 11:56:42 0e18a0eac166: Pulling fs layer 11:56:42 4fe6c5a15a65: Waiting 11:56:42 daebc70d1ce1: Waiting 11:56:42 22a0e8bec74d: Waiting 11:56:42 0e18a0eac166: Waiting 11:56:42 ca2b28591e48: Waiting 11:56:42 a51346096db8: Waiting 11:56:42 8ed8ca486205: Verifying Checksum 11:56:42 8ed8ca486205: Download complete 11:56:42 666ba61612fd: Download complete 11:56:42 22a0e8bec74d: Verifying Checksum 11:56:42 22a0e8bec74d: Download complete 11:56:42 59bf1c3509f3: Verifying Checksum 11:56:42 ca2b28591e48: Verifying Checksum 11:56:42 ca2b28591e48: Download complete 11:56:42 a51346096db8: Verifying Checksum 11:56:42 a51346096db8: Download complete 11:56:42 daebc70d1ce1: Verifying Checksum 11:56:42 daebc70d1ce1: Download complete 11:56:42 59bf1c3509f3: Pull complete 11:56:43 666ba61612fd: Pull complete 11:56:43 8ed8ca486205: Pull complete 11:56:43 0e18a0eac166: Download complete 11:56:43 4fe6c5a15a65: Verifying Checksum 11:56:43 4fe6c5a15a65: Download complete 11:56:47 4fe6c5a15a65: Pull complete 11:56:48 22a0e8bec74d: Pull complete 11:56:48 ca2b28591e48: Pull complete 11:56:48 a51346096db8: Pull complete 11:56:48 daebc70d1ce1: Pull complete 11:56:51 0e18a0eac166: Pull complete 11:56:51 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 11:56:51 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 11:56:51 ---> f018257e8ee9 11:56:51 Step 3/12 : ARG MAKE='make build' 11:56:52 ---> Running in 4204eea0905b 11:56:52 Removing intermediate container 4204eea0905b 11:56:52 ---> ad9a99b281f0 11:56:52 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 11:56:52 ---> Running in 3b16e373d077 11:56:52 Removing intermediate container 3b16e373d077 11:56:52 ---> 1001bb8a68fc 11:56:52 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 11:56:52 ---> Running in 5afce77de843 11:56:52 Removing intermediate container 5afce77de843 11:56:52 ---> 6c5376189f5e 11:56:52 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:56:52 ---> Running in 72036559bc1e 11:56:53 Removing intermediate container 72036559bc1e 11:56:53 ---> eb04e328b16e 11:56:53 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 11:56:53 ---> Running in a6fb0dd206e2 11:56:53 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 11:56:54 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 11:56:54 (1/4) Installing openssh-keygen (8.8_p1-r1) 11:56:54 (2/4) Installing libedit (20210910.3.1-r0) 11:56:55 (3/4) Installing openssh-client-common (8.8_p1-r1) 11:56:55 (4/4) Installing openssh-client-default (8.8_p1-r1) 11:56:55 Executing busybox-1.34.1-r3.trigger 11:56:55 OK: 224 MiB in 56 packages 11:56:55 Removing intermediate container a6fb0dd206e2 11:56:55 ---> 9bc801c8cfd1 11:56:55 Step 8/12 : WORKDIR /device-rest-go 11:56:55 ---> Running in 8d490a5d0ea6 11:56:55 Removing intermediate container 8d490a5d0ea6 11:56:55 ---> 420f1115f70a 11:56:55 Step 9/12 : COPY go.mod vendor* ./ 11:56:55 ---> 3361d6f1acdd 11:56:55 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:56:55 ---> Running in 16e5a80ee4d3 11:56:55 Still waiting to schedule task 11:56:55 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 11:57:10 Removing intermediate container 16e5a80ee4d3 11:57:10 ---> 6ea07fafd99a 11:57:10 Step 11/12 : COPY . . 11:57:10 ---> 9d02fe612e4a 11:57:10 Step 12/12 : RUN $MAKE 11:57:10 ---> Running in 1108ad4ce4c1 11:57:10 noop 11:57:10 Removing intermediate container 1108ad4ce4c1 11:57:10 ---> 5f9c3cb6a1f8 11:57:10 Successfully built 5f9c3cb6a1f8 11:57:10 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 11:57:11 + docker inspect -f . ci-base-image-x86_64 11:57:11 . [Pipeline] withDockerContainer 11:57:11 prd-ubuntu20.04-docker-8c-8g-47534 does not seem to be running inside a container 11:57:11 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-188 -v /w/workspace/gexfoundry_device-rest-go_PR-188:/w/workspace/gexfoundry_device-rest-go_PR-188:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-188@tmp:/w/workspace/gexfoundry_device-rest-go_PR-188@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 11:57:11 $ docker top 738fda8106b1a28228322d753f73f6b80354989139f9f7c2b479a4f09c53cb8c -eo pid,comm [Pipeline] { [Pipeline] sh 11:57:11 + go version 11:57:11 go version go1.17.6 linux/amd64 [Pipeline] } 11:57:11 $ docker stop --time=1 738fda8106b1a28228322d753f73f6b80354989139f9f7c2b479a4f09c53cb8c 11:57:13 $ docker rm -f 738fda8106b1a28228322d753f73f6b80354989139f9f7c2b479a4f09c53cb8c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 11:57:13 + docker inspect -f . ci-base-image-x86_64 11:57:13 . [Pipeline] withDockerContainer 11:57:13 prd-ubuntu20.04-docker-8c-8g-47534 does not seem to be running inside a container 11:57:13 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-188 -v /w/workspace/gexfoundry_device-rest-go_PR-188:/w/workspace/gexfoundry_device-rest-go_PR-188:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-188@tmp:/w/workspace/gexfoundry_device-rest-go_PR-188@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 11:57:14 $ docker top 2744b66da4e501f86654921e5e4955b50ccc418ec044fe37f23a5c204516bd13 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 11:57:14 + make test 11:57:14 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 11:57:15 ? github.com/edgexfoundry/device-rest-go [no test files] 11:57:24 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 11:57:24 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 55.2% of statements 11:57:31 CGO_ENABLED=1 GO111MODULE=on go vet ./... 11:57:35 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 11:57:35 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 11:57:35 ./bin/test-attribution-txt.sh [Pipeline] echo 11:57:35 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 11:57:35 $ docker stop --time=1 2744b66da4e501f86654921e5e4955b50ccc418ec044fe37f23a5c204516bd13 11:57:37 $ docker rm -f 2744b66da4e501f86654921e5e4955b50ccc418ec044fe37f23a5c204516bd13 [Pipeline] // withDockerContainer [Pipeline] sh 11:57:38 + sudo chown -R jenkins:jenkins . [Pipeline] stash 11:57:38 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 11:57:38 + sudo chown -R jenkins:jenkins . [Pipeline] sh 11:57:38 + ls -al . 11:57:38 total 172 11:57:38 drwxrwxr-x 9 jenkins jenkins 4096 May 10 11:57 . 11:57:38 drwxrwxr-x 4 jenkins jenkins 4096 May 10 11:56 .. 11:57:38 -rw-rw-r-- 1 jenkins jenkins 151 May 10 11:56 .dockerignore 11:57:38 drwxrwxr-x 8 jenkins jenkins 4096 May 10 11:56 .git 11:57:38 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:56 .github 11:57:38 -rw-rw-r-- 1 jenkins jenkins 329 May 10 11:56 .gitignore 11:57:38 -rw-rw-r-- 1 jenkins jenkins 41 May 10 11:56 .golangci.yml 11:57:38 drwxr-xr-x 3 jenkins jenkins 4096 May 10 11:56 .semver 11:57:38 -rw-rw-r-- 1 jenkins jenkins 8463 May 10 11:56 Attribution.txt 11:57:38 -rw-rw-r-- 1 jenkins jenkins 11736 May 10 11:56 CHANGELOG.md 11:57:38 -rw-rw-r-- 1 jenkins jenkins 1672 May 10 11:56 Dockerfile 11:57:38 -rw-rw-r-- 1 jenkins jenkins 677 May 10 11:56 GOVERNANCE.md 11:57:38 -rw-rw-r-- 1 jenkins jenkins 680 May 10 11:56 Jenkinsfile 11:57:38 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 11:56 LICENSE 11:57:38 -rw-rw-r-- 1 jenkins jenkins 1977 May 10 11:56 Makefile 11:57:38 -rw-rw-r-- 1 jenkins jenkins 620 May 10 11:56 OWNERS.md 11:57:38 -rw-rw-r-- 1 jenkins jenkins 8003 May 10 11:56 README.md 11:57:38 -rw-rw-r-- 1 jenkins jenkins 5 May 10 11:56 VERSION 11:57:38 drwxrwxr-x 2 jenkins jenkins 4096 May 10 11:56 bin 11:57:38 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:56 cmd 11:57:38 -rw-r--r-- 1 jenkins jenkins 9355 May 10 11:57 coverage.out 11:57:38 drwxrwxr-x 2 jenkins jenkins 4096 May 10 11:56 driver 11:57:38 -rw-rw-r-- 1 jenkins jenkins 3333 May 10 11:56 go.mod 11:57:38 -rw-rw-r-- 1 jenkins jenkins 35377 May 10 11:56 go.sum 11:57:38 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:56 snap 11:57:38 -rw-rw-r-- 1 jenkins jenkins 713 May 10 11:56 version.go [Pipeline] isUnix [Pipeline] sh 11:57:39 + 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=666239c451659f5f452068b0dd21a739764742be --label arch=amd64 --label version=0.0.0 . 11:57:39 Sending build context to Docker daemon 10.63MB 11:57:39 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 11:57:39 Step 2/25 : FROM ${BASE} AS builder 11:57:39 ---> 5f9c3cb6a1f8 11:57:39 Step 3/25 : ARG MAKE='make build' 11:57:39 ---> Running in d7eb80763019 11:57:39 Removing intermediate container d7eb80763019 11:57:39 ---> c81bdf11d5d2 11:57:39 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 11:57:39 ---> Running in 5140d5d21db6 11:57:39 Removing intermediate container 5140d5d21db6 11:57:39 ---> 29c323671760 11:57:39 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 11:57:39 ---> Running in 27d06d4d687f 11:57:39 Removing intermediate container 27d06d4d687f 11:57:39 ---> ff9a73259829 11:57:39 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:57:40 ---> Running in 9f11c7d64a2e 11:57:40 Removing intermediate container 9f11c7d64a2e 11:57:40 ---> 769db7a9889e 11:57:40 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 11:57:40 ---> Running in 0ab85dbe2f05 11:57:40 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 11:57:41 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 11:57:42 OK: 224 MiB in 56 packages 11:57:42 Removing intermediate container 0ab85dbe2f05 11:57:42 ---> 5fe5ffd1662c 11:57:42 Step 8/25 : WORKDIR /device-rest-go 11:57:42 ---> Running in 55ed8ea5ac4e 11:57:42 Removing intermediate container 55ed8ea5ac4e 11:57:42 ---> 80fb96a7c2fc 11:57:42 Step 9/25 : COPY go.mod vendor* ./ 11:57:42 ---> b1e0caad7d59 11:57:42 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:57:42 ---> Running in 38c6965f723d 11:57:43 Removing intermediate container 38c6965f723d 11:57:43 ---> 4bfbef2cfcd9 11:57:43 Step 11/25 : COPY . . 11:57:43 ---> 5ebc044c0e60 11:57:43 Step 12/25 : RUN $MAKE 11:57:43 ---> Running in 8451c87c1fd1 11:57:44 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 11:58:05 Removing intermediate container 8451c87c1fd1 11:58:05 ---> 7771c2b9d587 11:58:05 Step 13/25 : FROM alpine:3.14 11:58:05 3.14: Pulling from library/alpine 11:58:05 8663204ce13b: Pulling fs layer 11:58:05 8663204ce13b: Verifying Checksum 11:58:05 8663204ce13b: Download complete 11:58:05 8663204ce13b: Pull complete 11:58:05 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 11:58:05 Status: Downloaded newer image for alpine:3.14 11:58:05 ---> e04c818066af 11:58:05 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 11:58:05 ---> Running in 8255d3d32184 11:58:05 Removing intermediate container 8255d3d32184 11:58:05 ---> 186d4e9eea1f 11:58:05 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 11:58:05 ---> Running in 25ec62682afe 11:58:05 Removing intermediate container 25ec62682afe 11:58:05 ---> 93fe9d7b3371 11:58:05 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 11:58:05 ---> Running in fa9204ed1420 11:58:05 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 11:58:05 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 11:58:05 (1/6) Installing dumb-init (1.2.5-r1) 11:58:05 (2/6) Installing libgcc (10.3.1_git20210424-r2) 11:58:05 (3/6) Installing libsodium (1.0.18-r0) 11:58:05 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 11:58:05 (5/6) Installing libzmq (4.3.4-r0) 11:58:05 (6/6) Installing zeromq (4.3.4-r0) 11:58:05 Executing busybox-1.33.1-r7.trigger 11:58:05 OK: 8 MiB in 20 packages 11:58:05 Removing intermediate container fa9204ed1420 11:58:05 ---> 73e86ff96709 11:58:05 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 11:58:06 ---> 80574611ee93 11:58:06 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 11:58:06 ---> 58ac6932e532 11:58:06 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 11:58:06 ---> 4b6e200b21c5 11:58:06 Step 20/25 : EXPOSE 59986 11:58:06 ---> Running in 09b3970212cb 11:58:06 Removing intermediate container 09b3970212cb 11:58:06 ---> cbf9478549f3 11:58:06 Step 21/25 : ENTRYPOINT ["/device-rest"] 11:58:06 ---> Running in 8a22b5f85373 11:58:07 Removing intermediate container 8a22b5f85373 11:58:07 ---> 9d06d0c2405b 11:58:07 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 11:58:07 ---> Running in 494b2237296a 11:58:07 Removing intermediate container 494b2237296a 11:58:07 ---> eca7db82abec 11:58:07 Step 23/25 : LABEL arch=amd64 11:58:07 ---> Running in 04f8a869d13f 11:58:07 Removing intermediate container 04f8a869d13f 11:58:07 ---> ff04d39e0130 11:58:07 Step 24/25 : LABEL git_sha=666239c451659f5f452068b0dd21a739764742be 11:58:07 ---> Running in 5e2487195e75 11:58:07 Removing intermediate container 5e2487195e75 11:58:07 ---> f70712fe16e3 11:58:07 Step 25/25 : LABEL version=0.0.0 11:58:07 ---> Running in 425dc8de1bdd 11:58:07 Removing intermediate container 425dc8de1bdd 11:58:07 ---> 0e47b2738b98 11:58:07 [Warning] One or more build-args [ARCH] were not consumed 11:58:07 Successfully built 0e47b2738b98 11:58:07 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 11:58:07 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:58:07 11:58:07 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 11:58:08 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:58:08 latest: Pulling from edgex-lftools-log-publisher 11:58:08 5eb5b503b376: Pulling fs layer 11:58:08 5c69ac0246d0: Pulling fs layer 11:58:08 ec43610c2a17: Pulling fs layer 11:58:08 3a2ae6a8a46f: Pulling fs layer 11:58:08 33b1e0a273af: Pulling fs layer 11:58:08 5d3b04190fa2: Pulling fs layer 11:58:08 2f39f015ded8: Pulling fs layer 11:58:08 3a2ae6a8a46f: Waiting 11:58:08 33b1e0a273af: Waiting 11:58:08 5d3b04190fa2: Waiting 11:58:08 2f39f015ded8: Waiting 11:58:08 5c69ac0246d0: Download complete 11:58:08 3a2ae6a8a46f: Verifying Checksum 11:58:08 3a2ae6a8a46f: Download complete 11:58:08 33b1e0a273af: Verifying Checksum 11:58:08 33b1e0a273af: Download complete 11:58:08 5d3b04190fa2: Verifying Checksum 11:58:08 5d3b04190fa2: Download complete 11:58:08 ec43610c2a17: Verifying Checksum 11:58:08 ec43610c2a17: Download complete 11:58:08 5eb5b503b376: Verifying Checksum 11:58:08 5eb5b503b376: Download complete 11:58:09 2f39f015ded8: Download complete 11:58:09 5eb5b503b376: Pull complete 11:58:09 5c69ac0246d0: Pull complete 11:58:10 ec43610c2a17: Pull complete 11:58:10 3a2ae6a8a46f: Pull complete 11:58:10 33b1e0a273af: Pull complete 11:58:10 5d3b04190fa2: Pull complete 11:58:14 2f39f015ded8: Pull complete 11:58:14 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 11:58:14 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:58:14 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 11:58:15 prd-ubuntu20.04-docker-8c-8g-47534 does not seem to be running inside a container 11:58:15 $ 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-188 -v /w/workspace/gexfoundry_device-rest-go_PR-188:/w/workspace/gexfoundry_device-rest-go_PR-188:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-188@tmp:/w/workspace/gexfoundry_device-rest-go_PR-188@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 11:58:16 $ docker top 0d63243fa1258843d5f88a73b8d8bdcd472f74dad5e89bd96c091b0ee03bf431 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:58:17 ---> job-cost.sh 11:58:17 lf-activate-venv: SKIPPING 11:58:17 INFO: No Stack... 11:58:17 INFO: Retrieving Pricing Info for: v3-standard-8 11:58:18 INFO: Archiving Costs [Pipeline] sh 11:58:18 + cat /w/workspace/gexfoundry_device-rest-go_PR-188/archives/cost.csv 11:58:18 + cut -d, -f6 [Pipeline] lock 11:58:18 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-188-2-stack-cost] 11:58:18 Resource [jenkins-edgexfoundry-device-rest-go-PR-188-2-stack-cost] did not exist. Created. 11:58:18 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-188-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 11:58:18 + echo total: 0.2199999988079071 [Pipeline] stash 11:58:18 Stashed 1 file(s) [Pipeline] } 11:58:18 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-188-2-stack-cost] [Pipeline] // lock [Pipeline] } 11:58:18 $ docker stop --time=1 0d63243fa1258843d5f88a73b8d8bdcd472f74dad5e89bd96c091b0ee03bf431 11:58:19 $ docker rm -f 0d63243fa1258843d5f88a73b8d8bdcd472f74dad5e89bd96c091b0ee03bf431 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 11:59:33 Running on prd-ubuntu20.04-docker-arm64-4c-16g-47536 in /w/workspace/gexfoundry_device-rest-go_PR-188 [Pipeline] { [Pipeline] ws 11:59:33 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 11:59:34 The recommended git tool is: git 11:59:40 using credential edgex-jenkins-ssh 11:59:40 Cloning the remote Git repository 11:59:40 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 11:59:40 > git init /w/workspace/device-rest-go/2 # timeout=10 11:59:40 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:59:40 > git --version # timeout=10 11:59:40 > git --version # 'git version 2.25.1' 11:59:40 using GIT_SSH to set credentials SSH Credentials for GitHub 11:59:40 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 11:59:42 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 11:59:42 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 11:59:42 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 11:59:42 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:59:42 using GIT_SSH to set credentials SSH Credentials for GitHub 11:59:42 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/188/head:refs/remotes/origin/PR-188 +refs/heads/main:refs/remotes/origin/main # timeout=10 11:59:43 Merging remotes/origin/main commit 4edc8d2690683859fe7dd7f6313ce2addb447006 into PR head commit 666239c451659f5f452068b0dd21a739764742be 11:59:43 Merge succeeded, producing 666239c451659f5f452068b0dd21a739764742be 11:59:43 Checking out Revision 666239c451659f5f452068b0dd21a739764742be (PR-188) 11:59:43 > git config core.sparsecheckout # timeout=10 11:59:43 > git checkout -f 666239c451659f5f452068b0dd21a739764742be # timeout=10 11:59:43 > git remote # timeout=10 11:59:43 > git config --get remote.origin.url # timeout=10 11:59:43 using GIT_SSH to set credentials SSH Credentials for GitHub 11:59:43 > git merge 4edc8d2690683859fe7dd7f6313ce2addb447006 # timeout=10 11:59:43 > git rev-parse HEAD^{commit} # timeout=10 11:59:43 > git config core.sparsecheckout # timeout=10 11:59:43 > git checkout -f 666239c451659f5f452068b0dd21a739764742be # timeout=10 11:59:47 Commit message: "build(deps): go mod tidy" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 11:59:48 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 11:59:48 % Total % Received % Xferd Average Speed Time Time Time Current 11:59:48 Dload Upload Total Spent Left Speed 11:59:48 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 218k 0 --:--:-- --:--:-- --:--:-- 214k [Pipeline] sh 11:59:49 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 11:59:49 + sudo tee /etc/docker/daemon.new 11:59:49 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 11:59:49 { 11:59:49 "registry-mirrors": [ 11:59:49 "https://nexus3.edgexfoundry.org:10001" 11:59:49 ], 11:59:49 "bip": "10.250.0.254/24", 11:59:49 "hosts": [ 11:59:49 "tcp://0.0.0.0:5555", 11:59:49 "unix:///var/run/docker.sock" 11:59:49 ], 11:59:49 "mtu": 1458, 11:59:49 "selinux-enabled": true, 11:59:49 "seccomp-profile": "/etc/docker/seccomp.json" 11:59:49 } [Pipeline] sh 11:59:49 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 11:59:50 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:00:08 provisioning config files... 12:00:08 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config8142520246082656977tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:00:09 ---> docker-login.sh 12:00:09 nexus3.edgexfoundry.org:10001 12:00:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:00:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:00:10 Configure a credential helper to remove this warning. See 12:00:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:00:10 12:00:10 Login Succeeded 12:00:10 nexus3.edgexfoundry.org:10002 12:00:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:00:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:00:10 Configure a credential helper to remove this warning. See 12:00:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:00:10 12:00:10 Login Succeeded 12:00:10 nexus3.edgexfoundry.org:10003 12:00:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:00:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:00:11 Configure a credential helper to remove this warning. See 12:00:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:00:11 12:00:11 Login Succeeded 12:00:11 nexus3.edgexfoundry.org:10004 12:00:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:00:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:00:11 Configure a credential helper to remove this warning. See 12:00:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:00:11 12:00:11 Login Succeeded 12:00:11 docker.io 12:00:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:00:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:00:12 Configure a credential helper to remove this warning. See 12:00:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:00:12 12:00:12 Login Succeeded 12:00:12 ---> docker-login.sh ends [Pipeline] } 12:00:12 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:00:12 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:00:12 ========================================================= 12:00:12 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 12:00:12 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 12:00:13 + 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:00:13 Sending build context to Docker daemon 128.5kB 12:00:13 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 12:00:13 Step 2/12 : FROM ${BASE} AS builder 12:00:13 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 12:00:13 9b3977197b4f: Pulling fs layer 12:00:13 1a89e8eeedd5: Pulling fs layer 12:00:13 94645a83ff95: Pulling fs layer 12:00:13 3f3a8bcf1eab: Pulling fs layer 12:00:13 0c92f367c5e7: Pulling fs layer 12:00:13 3096ccb668a1: Pulling fs layer 12:00:13 e8cf19c19ddd: Pulling fs layer 12:00:13 a4caa8a26152: Pulling fs layer 12:00:13 0c92f367c5e7: Waiting 12:00:13 3096ccb668a1: Waiting 12:00:13 3f3a8bcf1eab: Waiting 12:00:13 e8cf19c19ddd: Waiting 12:00:13 a4caa8a26152: Waiting 12:00:13 94645a83ff95: Verifying Checksum 12:00:13 94645a83ff95: Download complete 12:00:13 1a89e8eeedd5: Verifying Checksum 12:00:13 1a89e8eeedd5: Download complete 12:00:13 0c92f367c5e7: Verifying Checksum 12:00:13 0c92f367c5e7: Download complete 12:00:13 3096ccb668a1: Verifying Checksum 12:00:13 3096ccb668a1: Download complete 12:00:13 9b3977197b4f: Download complete 12:00:13 e8cf19c19ddd: Verifying Checksum 12:00:13 e8cf19c19ddd: Download complete 12:00:14 9b3977197b4f: Pull complete 12:00:15 1a89e8eeedd5: Pull complete 12:00:15 94645a83ff95: Pull complete 12:00:15 a4caa8a26152: Verifying Checksum 12:00:15 a4caa8a26152: Download complete 12:00:16 3f3a8bcf1eab: Verifying Checksum 12:00:16 3f3a8bcf1eab: Download complete 12:00:29 3f3a8bcf1eab: Pull complete 12:00:29 0c92f367c5e7: Pull complete 12:00:29 3096ccb668a1: Pull complete 12:00:29 e8cf19c19ddd: Pull complete 12:00:36 a4caa8a26152: Pull complete 12:00:36 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 12:00:36 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 12:00:36 ---> 725f1c02e7f9 12:00:36 Step 3/12 : ARG MAKE='make build' 12:00:37 ---> Running in 345d7811c90d 12:00:37 Removing intermediate container 345d7811c90d 12:00:37 ---> b4150bdecd41 12:00:37 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 12:00:37 ---> Running in 3892ecbba204 12:00:37 Removing intermediate container 3892ecbba204 12:00:37 ---> fa636b25d1f1 12:00:37 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 12:00:37 ---> Running in dfb872e5f71f 12:00:38 Removing intermediate container dfb872e5f71f 12:00:38 ---> af12f999fb03 12:00:38 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:00:38 ---> Running in 7db816f0b882 12:00:41 Removing intermediate container 7db816f0b882 12:00:41 ---> c6d9c820687d 12:00:41 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:00:41 ---> Running in e527e5417007 12:00:42 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 12:00:43 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 12:00:44 (1/4) Installing openssh-keygen (8.8_p1-r1) 12:00:44 (2/4) Installing libedit (20210910.3.1-r0) 12:00:44 (3/4) Installing openssh-client-common (8.8_p1-r1) 12:00:44 (4/4) Installing openssh-client-default (8.8_p1-r1) 12:00:44 Executing busybox-1.34.1-r3.trigger 12:00:44 OK: 224 MiB in 56 packages 12:00:45 Removing intermediate container e527e5417007 12:00:45 ---> 214e2e981209 12:00:45 Step 8/12 : WORKDIR /device-rest-go 12:00:45 ---> Running in 57691e6f35fb 12:00:46 Removing intermediate container 57691e6f35fb 12:00:46 ---> ce9fdf699003 12:00:46 Step 9/12 : COPY go.mod vendor* ./ 12:00:46 ---> 73522f846722 12:00:46 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:00:46 ---> Running in 33f2319d7735 12:01:33 Removing intermediate container 33f2319d7735 12:01:33 ---> 540347be7e6c 12:01:33 Step 11/12 : COPY . . 12:01:33 ---> 0bf66f9c984d 12:01:33 Step 12/12 : RUN $MAKE 12:01:33 ---> Running in b83343c5f1fc 12:01:34 noop 12:01:35 Removing intermediate container b83343c5f1fc 12:01:35 ---> d0f406790ae4 12:01:35 Successfully built d0f406790ae4 12:01:35 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 12:01:35 + docker inspect -f . ci-base-image-arm64 12:01:35 . [Pipeline] withDockerContainer 12:01:36 prd-ubuntu20.04-docker-arm64-4c-16g-47536 does not seem to be running inside a container 12:01:36 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 12:01:37 $ docker top 56dbea7d417faf109791f136f17c6f59d42b9f5318777e6ce22925dc7ddb8882 -eo pid,comm [Pipeline] { [Pipeline] sh 12:01:38 + go version 12:01:38 go version go1.17.6 linux/arm64 [Pipeline] } 12:01:38 $ docker stop --time=1 56dbea7d417faf109791f136f17c6f59d42b9f5318777e6ce22925dc7ddb8882 12:01:40 $ docker rm -f 56dbea7d417faf109791f136f17c6f59d42b9f5318777e6ce22925dc7ddb8882 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 12:01:40 + docker inspect -f . ci-base-image-arm64 12:01:40 . [Pipeline] withDockerContainer 12:01:41 prd-ubuntu20.04-docker-arm64-4c-16g-47536 does not seem to be running inside a container 12:01:41 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 12:01:42 $ docker top 26b2f67e5eaddc936931159b0a50d555a10c19fef22635ba8a25038988e6ff6f -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 12:01:43 + make test 12:01:43 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 12:01:45 ? github.com/edgexfoundry/device-rest-go [no test files] 12:03:22 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 12:03:22 ok github.com/edgexfoundry/device-rest-go/driver 0.070s coverage: 55.2% of statements 12:03:22 WARNING: Linting skipped (not on x86_64 or linter not installed) 12:03:22 CGO_ENABLED=1 GO111MODULE=on go vet ./... 12:03:44 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 12:03:44 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 12:03:44 ./bin/test-attribution-txt.sh [Pipeline] echo 12:03:44 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 12:03:44 $ docker stop --time=1 26b2f67e5eaddc936931159b0a50d555a10c19fef22635ba8a25038988e6ff6f 12:03:46 $ docker rm -f 26b2f67e5eaddc936931159b0a50d555a10c19fef22635ba8a25038988e6ff6f [Pipeline] // withDockerContainer [Pipeline] sh 12:03:47 + sudo chown -R jenkins:jenkins . [Pipeline] stash 12:03:47 Warning: overwriting stash ‘coverage-report’ 12:03:48 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 12:03:48 + sudo chown -R jenkins:jenkins . [Pipeline] sh 12:03:48 + ls -al . 12:03:48 total 168 12:03:48 drwxrwxr-x 8 jenkins jenkins 4096 May 10 12:03 . 12:03:48 drwxrwxr-x 4 jenkins jenkins 4096 May 10 11:59 .. 12:03:48 -rw-rw-r-- 1 jenkins jenkins 151 May 10 11:59 .dockerignore 12:03:48 drwxrwxr-x 8 jenkins jenkins 4096 May 10 11:59 .git 12:03:48 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:59 .github 12:03:48 -rw-rw-r-- 1 jenkins jenkins 329 May 10 11:59 .gitignore 12:03:48 -rw-rw-r-- 1 jenkins jenkins 41 May 10 11:59 .golangci.yml 12:03:48 -rw-rw-r-- 1 jenkins jenkins 8463 May 10 11:59 Attribution.txt 12:03:48 -rw-rw-r-- 1 jenkins jenkins 11736 May 10 11:59 CHANGELOG.md 12:03:48 -rw-rw-r-- 1 jenkins jenkins 1672 May 10 11:59 Dockerfile 12:03:48 -rw-rw-r-- 1 jenkins jenkins 677 May 10 11:59 GOVERNANCE.md 12:03:48 -rw-rw-r-- 1 jenkins jenkins 680 May 10 11:59 Jenkinsfile 12:03:48 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 11:59 LICENSE 12:03:48 -rw-rw-r-- 1 jenkins jenkins 1977 May 10 11:59 Makefile 12:03:48 -rw-rw-r-- 1 jenkins jenkins 620 May 10 11:59 OWNERS.md 12:03:48 -rw-rw-r-- 1 jenkins jenkins 8003 May 10 11:59 README.md 12:03:48 -rw-rw-r-- 1 jenkins jenkins 5 May 10 11:56 VERSION 12:03:48 drwxrwxr-x 2 jenkins jenkins 4096 May 10 11:59 bin 12:03:48 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:59 cmd 12:03:48 -rw-r--r-- 1 jenkins jenkins 9355 May 10 12:03 coverage.out 12:03:48 drwxrwxr-x 2 jenkins jenkins 4096 May 10 11:59 driver 12:03:48 -rw-rw-r-- 1 jenkins jenkins 3333 May 10 11:59 go.mod 12:03:48 -rw-rw-r-- 1 jenkins jenkins 35377 May 10 11:59 go.sum 12:03:48 drwxrwxr-x 3 jenkins jenkins 4096 May 10 11:59 snap 12:03:48 -rw-rw-r-- 1 jenkins jenkins 713 May 10 11:59 version.go [Pipeline] isUnix [Pipeline] sh 12:03:49 + 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=666239c451659f5f452068b0dd21a739764742be --label arch=arm64 --label version=0.0.0 . 12:03:49 Sending build context to Docker daemon 138.8kB 12:03:49 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 12:03:49 Step 2/25 : FROM ${BASE} AS builder 12:03:49 ---> d0f406790ae4 12:03:49 Step 3/25 : ARG MAKE='make build' 12:03:49 ---> Running in 796e86e3c747 12:03:50 Removing intermediate container 796e86e3c747 12:03:50 ---> ba7f1bb57314 12:03:50 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 12:03:50 ---> Running in a91bddb1d488 12:03:50 Removing intermediate container a91bddb1d488 12:03:50 ---> 896c31ac66e4 12:03:50 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 12:03:50 ---> Running in 571ec6b57d5b 12:03:51 Removing intermediate container 571ec6b57d5b 12:03:51 ---> ef17b81f772e 12:03:51 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:03:51 ---> Running in 72cdb9795383 12:03:53 Removing intermediate container 72cdb9795383 12:03:53 ---> dae7971a5dc9 12:03:53 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:03:53 ---> Running in 4c52789befb0 12:03:54 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 12:03:55 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 12:03:56 OK: 224 MiB in 56 packages 12:03:56 Removing intermediate container 4c52789befb0 12:03:56 ---> 7805e817b9d4 12:03:56 Step 8/25 : WORKDIR /device-rest-go 12:03:57 ---> Running in 6bb9202c5236 12:03:57 Removing intermediate container 6bb9202c5236 12:03:57 ---> 773d2163e26a 12:03:57 Step 9/25 : COPY go.mod vendor* ./ 12:03:57 ---> 43b28ef04a4c 12:03:57 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:03:57 ---> Running in 6c0408d42af0 12:03:59 Removing intermediate container 6c0408d42af0 12:03:59 ---> fc6004361ede 12:03:59 Step 11/25 : COPY . . 12:04:00 ---> f4f8593c88f3 12:04:00 Step 12/25 : RUN $MAKE 12:04:00 ---> Running in 58bf800070bb 12:04:01 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:06:23 Removing intermediate container 58bf800070bb 12:06:23 ---> df89afe0888a 12:06:23 Step 13/25 : FROM alpine:3.14 12:06:23 3.14: Pulling from library/alpine 12:06:23 455c02918c45: Pulling fs layer 12:06:23 455c02918c45: Verifying Checksum 12:06:23 455c02918c45: Download complete 12:06:23 455c02918c45: Pull complete 12:06:23 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 12:06:23 Status: Downloaded newer image for alpine:3.14 12:06:23 ---> ac73e934f311 12:06:23 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 12:06:23 ---> Running in 3cc4c3d59011 12:06:23 Removing intermediate container 3cc4c3d59011 12:06:23 ---> db5dc12e526f 12:06:23 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 12:06:23 ---> Running in 321194b74a2f 12:06:23 Removing intermediate container 321194b74a2f 12:06:23 ---> d0c149fc731e 12:06:23 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 12:06:23 ---> Running in db99171490c9 12:06:23 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 12:06:23 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 12:06:23 (1/6) Installing dumb-init (1.2.5-r1) 12:06:23 (2/6) Installing libgcc (10.3.1_git20210424-r2) 12:06:23 (3/6) Installing libsodium (1.0.18-r0) 12:06:23 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 12:06:23 (5/6) Installing libzmq (4.3.4-r0) 12:06:23 (6/6) Installing zeromq (4.3.4-r0) 12:06:23 Executing busybox-1.33.1-r7.trigger 12:06:23 OK: 8 MiB in 20 packages 12:06:23 Removing intermediate container db99171490c9 12:06:23 ---> 560dab91f3d0 12:06:23 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 12:06:23 ---> 053959d03d37 12:06:23 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 12:06:23 ---> d8c7fe857e1d 12:06:23 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 12:06:23 ---> 4c7a54c1e513 12:06:23 Step 20/25 : EXPOSE 59986 12:06:23 ---> Running in 46c88dcabf9f 12:06:23 Removing intermediate container 46c88dcabf9f 12:06:23 ---> bb1e3764f4a7 12:06:23 Step 21/25 : ENTRYPOINT ["/device-rest"] 12:06:23 ---> Running in 3d4d30d35a1b 12:06:23 Removing intermediate container 3d4d30d35a1b 12:06:23 ---> 0b3a415c9082 12:06:23 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 12:06:23 ---> Running in f385368065ac 12:06:23 Removing intermediate container f385368065ac 12:06:23 ---> ead1099a48c4 12:06:23 Step 23/25 : LABEL arch=arm64 12:06:23 ---> Running in 1487b4acb387 12:06:23 Removing intermediate container 1487b4acb387 12:06:23 ---> 400fce9674a8 12:06:23 Step 24/25 : LABEL git_sha=666239c451659f5f452068b0dd21a739764742be 12:06:23 ---> Running in eea1636e5a56 12:06:24 Removing intermediate container eea1636e5a56 12:06:24 ---> cc2ec8a999d2 12:06:24 Step 25/25 : LABEL version=0.0.0 12:06:24 ---> Running in 205a94ad331d 12:06:24 Removing intermediate container 205a94ad331d 12:06:24 ---> 89306ca5f723 12:06:24 [Warning] One or more build-args [ARCH] were not consumed 12:06:24 Successfully built 89306ca5f723 12:06:24 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:06:25 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:06:25 12:06:25 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 12:06:25 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:06:25 arm64: Pulling from edgex-lftools-log-publisher 12:06:25 8998bd30e6a1: Pulling fs layer 12:06:25 04944245beec: Pulling fs layer 12:06:25 699f458cf7ca: Pulling fs layer 12:06:25 765212b225bb: Pulling fs layer 12:06:25 f23df028b6ca: Pulling fs layer 12:06:25 d65c8cfc05b1: Pulling fs layer 12:06:25 f23df028b6ca: Waiting 12:06:25 765212b225bb: Waiting 12:06:25 2437ff75d9bd: Pulling fs layer 12:06:25 d65c8cfc05b1: Waiting 12:06:25 2437ff75d9bd: Waiting 12:06:25 04944245beec: Verifying Checksum 12:06:25 04944245beec: Download complete 12:06:25 765212b225bb: Verifying Checksum 12:06:25 765212b225bb: Download complete 12:06:25 f23df028b6ca: Verifying Checksum 12:06:25 f23df028b6ca: Download complete 12:06:25 d65c8cfc05b1: Verifying Checksum 12:06:25 d65c8cfc05b1: Download complete 12:06:26 699f458cf7ca: Verifying Checksum 12:06:26 699f458cf7ca: Download complete 12:06:26 8998bd30e6a1: Download complete 12:06:29 2437ff75d9bd: Download complete 12:06:30 8998bd30e6a1: Pull complete 12:06:31 04944245beec: Pull complete 12:06:32 699f458cf7ca: Pull complete 12:06:32 765212b225bb: Pull complete 12:06:33 f23df028b6ca: Pull complete 12:06:33 d65c8cfc05b1: Pull complete 12:06:49 2437ff75d9bd: Pull complete 12:06:49 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 12:06:49 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:06:49 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 12:06:49 prd-ubuntu20.04-docker-arm64-4c-16g-47536 does not seem to be running inside a container 12:06:49 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 12:06:51 $ docker top 841170960f549e95fb0c0bedb412f30f68495380239d180fbdeab01b0de1ae12 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:06:52 ---> job-cost.sh 12:06:52 lf-activate-venv: SKIPPING 12:06:52 INFO: No Stack... 12:06:53 INFO: Retrieving Pricing Info for: v3-standard-4 12:06:54 INFO: Archiving Costs [Pipeline] sh 12:06:54 + cut -d, -f6 12:06:54 + cat /w/workspace/device-rest-go/2/archives/cost.csv [Pipeline] lock 12:06:54 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-188-2-stack-cost] 12:06:54 Resource [jenkins-edgexfoundry-device-rest-go-PR-188-2-stack-cost] did not exist. Created. 12:06:54 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-188-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 12:06:55 /w/workspace/device-rest-go/2@tmp/durable-02d49bbf/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 12:06:55 + echo total: 0.10999999940395355 [Pipeline] stash 12:06:55 Warning: overwriting stash ‘stack-cost’ 12:06:56 Stashed 1 file(s) [Pipeline] } 12:06:56 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-188-2-stack-cost] [Pipeline] // lock [Pipeline] } 12:06:56 $ docker stop --time=1 841170960f549e95fb0c0bedb412f30f68495380239d180fbdeab01b0de1ae12 12:06:57 $ docker rm -f 841170960f549e95fb0c0bedb412f30f68495380239d180fbdeab01b0de1ae12 [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:06:57 provisioning config files... 12:06:58 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-188@tmp/config5665285098223519592tmp [Pipeline] { [Pipeline] sh 12:06:58 + set +x 12:06:58 + curl -s https://codecov.io/bash 12:06:58 + bash -s -- 12:06:58 12:06:58 _____ _ 12:06:58 / ____| | | 12:06:58 | | ___ __| | ___ ___ _____ __ 12:06:58 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 12:06:58 | |___| (_) | (_| | __/ (_| (_) \ V / 12:06:58 \_____\___/ \__,_|\___|\___\___/ \_/ 12:06:58 Bash-1.0.6 12:06:58 12:06:58 12:06:58 ==> git version 2.25.1 found 12:06:58 ==> 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:06:58 Release-Date: 2020-01-08 12:06:58 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:06:58 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 12:06:58 ==> Jenkins CI detected. 12:06:58 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-188 12:06:58 project root: . 12:06:58 --> token set from env 12:06:58 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 12:06:58 ==> Running gcov in . (disable via -X gcov) 12:06:58 ==> Python coveragepy not found 12:06:58 ==> Searching for coverage reports in: 12:06:58 + . 12:06:58 -> Found 1 reports 12:06:58 ==> Detecting git/mercurial file structure 12:06:58 ==> Reading reports 12:06:58 + ./coverage.out bytes=9355 12:06:58 ==> Appending adjustments 12:06:58 https://docs.codecov.io/docs/fixing-reports 12:06:58 + Found adjustments 12:06:58 ==> Gzipping contents 12:06:58 4.0K /tmp/codecov.Cfxe32.gz 12:06:58 ==> Uploading reports 12:06:58 url: https://codecov.io 12:06:58 query: branch=PR-188&commit=666239c451659f5f452068b0dd21a739764742be&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-188%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=188&job=&cmd_args= 12:06:58 -> Pinging Codecov 12:06:58 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-188&commit=666239c451659f5f452068b0dd21a739764742be&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-188%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=188&job=&cmd_args= 12:06:58 -> Uploading to 12:06:58 https://storage.googleapis.com/codecov/v4/raw/2022-05-10/4E5D53B4F1F92C436F7061BF334D961C/666239c451659f5f452068b0dd21a739764742be/810291ee-8238-406f-8dac-a9abae0dfb33.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220510%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220510T120658Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=720dcd14cf4eba31b343df6daf6513efe8813ad3530c0dfe44e6c09f1c5b1d8d 12:06:58 % Total % Received % Xferd Average Speed Time Time Time Current 12:06:58 Dload Upload Total Spent Left Speed 12:06:58 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1814 0 0 100 1814 0 8062 --:--:-- --:--:-- --:--:-- 8062 12:06:58 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/666239c451659f5f452068b0dd21a739764742be [Pipeline] } 12:06:58 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:06:59 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-188/archives ] 12:06:59 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-188/archives 12:06:59 total 16 12:06:59 drwxr-xr-x 3 root root 4096 May 10 11:58 . 12:06:59 drwxrwxr-x 10 jenkins jenkins 4096 May 10 11:58 .. 12:06:59 drwxr-xr-x 2 root root 4096 May 10 11:58 cost 12:06:59 -rw-r--r-- 1 root root 85 May 10 11:58 cost.csv 12:06:59 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-188/archives 12:06:59 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-188/archives 12:06:59 total 16 12:06:59 drwxr-xr-x 3 jenkins jenkins 4096 May 10 11:58 . 12:06:59 drwxrwxr-x 10 jenkins jenkins 4096 May 10 11:58 .. 12:06:59 drwxr-xr-x 2 jenkins jenkins 4096 May 10 11:58 cost 12:06:59 -rw-r--r-- 1 jenkins jenkins 85 May 10 11:58 cost.csv [Pipeline] libraryResource [Pipeline] sh 12:06:59 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 12:07:00 ---> package-listing.sh 12:07:00 ++ facter osfamily 12:07:00 ++ tr '[:upper:]' '[:lower:]' 12:07:00 + OS_FAMILY=debian 12:07:00 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-188 12:07:00 + START_PACKAGES=/tmp/packages_start.txt 12:07:00 + END_PACKAGES=/tmp/packages_end.txt 12:07:00 + DIFF_PACKAGES=/tmp/packages_diff.txt 12:07:00 + PACKAGES=/tmp/packages_start.txt 12:07:00 + '[' /w/workspace/gexfoundry_device-rest-go_PR-188 ']' 12:07:00 + PACKAGES=/tmp/packages_end.txt 12:07:00 + case "${OS_FAMILY}" in 12:07:00 + dpkg -l 12:07:00 + grep '^ii' 12:07:00 + '[' -f /tmp/packages_start.txt ']' 12:07:00 + '[' -f /tmp/packages_end.txt ']' 12:07:00 + diff /tmp/packages_start.txt /tmp/packages_end.txt 12:07:00 + '[' /w/workspace/gexfoundry_device-rest-go_PR-188 ']' 12:07:00 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-188/archives/ 12:07:00 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-188/archives/ [Pipeline] echo 12:07:00 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-188/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 12:07:01 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 12:07:01 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:07:01 . [Pipeline] withDockerContainer 12:07:01 prd-ubuntu20.04-docker-8c-8g-47534 does not seem to be running inside a container 12:07:01 $ 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-188/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-188 -v /w/workspace/gexfoundry_device-rest-go_PR-188:/w/workspace/gexfoundry_device-rest-go_PR-188:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-188@tmp:/w/workspace/gexfoundry_device-rest-go_PR-188@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:07:02 $ docker top 0d0323f86db1190679236af2e3c7370502a82b9cb468d3cbaf01f6319fcfe0de -eo pid,comm [Pipeline] { [Pipeline] sh 12:07:02 + touch /tmp/pre-build-complete [Pipeline] sh 12:07:02 + mkdir -p /var/log/sysstat [Pipeline] sh 12:07:03 + ls /var/log/sa-host 12:07:03 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:07:03 provisioning config files... 12:07:03 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-188@tmp/config7847589545772037152tmp [Pipeline] { [Pipeline] echo 12:07:03 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 12:07:03 ---> create-netrc.sh [Pipeline] } 12:07:03 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 12:07:03 ---> python-tools-install.sh [Pipeline] echo 12:07:03 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 12:07:04 ---> sudo-logs.sh 12:07:04 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 12:07:04 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 12:07:04 ---> job-cost.sh 12:07:04 lf-activate-venv: SKIPPING 12:07:04 DEBUG: total: 0.2199999988079071 12:07:04 INFO: Retrieving Stack Cost... 12:07:05 INFO: Retrieving Pricing Info for: v3-standard-8 12:07:05 INFO: Archiving Costs [Pipeline] echo 12:07:05 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 12:07:06 ---> logs-deploy.sh 12:07:06 lf-activate-venv: SKIPPING 12:07:06 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-188/2 12:07:06 INFO: archiving workspace using pattern(s): 12:07:07 Archives upload complete. 12:07:07 INFO: archiving logs to Nexus