Pull request #90 updated Connecting to https://api.github.com using edgex-jenkins/****** (edgex-jenkins github personal access token) Connecting to https://api.github.com to check permissions of obtain list of lenny-intel for edgexfoundry/device-rest-go Obtained Jenkinsfile from 03a48d595d83dea33cef8ba7de6824c875e069b5+f67542ccb051b13986f5f41838b922d5b9b125ad (9327835c84d473cc9503a0dbd042e3bb367bc61c) Running in Durability level: PERFORMANCE_OPTIMIZED 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 > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision aa25fb65c2461e649b1a162fbf19ec71f4863fbd Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --is-inside-work-tree # 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 > 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 aa25fb65c2461e649b1a162fbf19ec71f4863fbd using credential edgex-jenkins-ssh > git rev-parse --is-inside-work-tree # 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 > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision aa25fb65c2461e649b1a162fbf19ec71f4863fbd (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f aa25fb65c2461e649b1a162fbf19ec71f4863fbd # timeout=10 Commit message: "Merge pull request #336 from ernestojeda/golang-1.16" > 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 > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 46d8313d362d7075c0f562900eedc504c24ea18a using credential edgex-jenkins-ssh > git rev-parse --is-inside-work-tree # 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 > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 46d8313d362d7075c0f562900eedc504c24ea18a (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 46d8313d362d7075c0f562900eedc504c24ea18a # timeout=10 Commit message: "Fix lfParallelCostCapture env var name" > 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: [[centos7-docker-4c-2g, ubuntu18.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.16 GOPROXY: https://nexus3.edgexfoundry.org/repository/go-proxy/ DOCKER_BASE_IMAGE: nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.16-alpine DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_IMAGE_NAME: docker-device-rest-go 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 Waiting for next available executor on ‘centos7-docker-4c-2g’ Running on prd-centos7-docker-4c-2g-4192 in /w/workspace/dgexfoundry_device-rest-go_PR-90 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-rest-go.git > git init /w/workspace/dgexfoundry_device-rest-go_PR-90 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.24.3' 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/master commit f67542ccb051b13986f5f41838b922d5b9b125ad into PR head commit 03a48d595d83dea33cef8ba7de6824c875e069b5 Merge succeeded, producing 03a48d595d83dea33cef8ba7de6824c875e069b5 Checking out Revision 03a48d595d83dea33cef8ba7de6824c875e069b5 (PR-90) > 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/90/head:refs/remotes/origin/PR-90 +refs/heads/master:refs/remotes/origin/master # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 03a48d595d83dea33cef8ba7de6824c875e069b5 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge f67542ccb051b13986f5f41838b922d5b9b125ad # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 03a48d595d83dea33cef8ba7de6824c875e069b5 # timeout=10 Commit message: "feat: Add Registry/Config Access token capability" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:29:16 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:29:16 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:29:16 ========================================================= 20:29:16 EdgeX Global Pipelines Version Info 20:29:16 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git rev-list --no-walk edddcdfd471d84ecd06baa82d30b23588d174076 # timeout=10 20:29:19 ------------------- 20:29:19 stable info: 20:29:19 ------------------- 20:29:19 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:29:19 Commit SHA: aa25fb65c2461e649b1a162fbf19ec71f4863fbd 20:29:19 Message: update stable to v1.0.191 20:29:20 ------------------- 20:29:20 experimental info: 20:29:20 ------------------- 20:29:20 Commited By: **** collab-it+edgex@linuxfoundation.org 20:29:20 Commit SHA: 9d0281235b943b7ad605f650702698f9078b2862 20:29:20 Message: update experimental to v1.0.192 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:29:20 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:29:20 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:29:20 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:29:20 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:29:20 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.16 [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar GOPROXY = https://nexus3.edgexfoundry.org/repository/go-proxy/ [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar DOCKER_BASE_IMAGE = nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.16-alpine [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = docker-device-rest-go [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-90 [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-90 [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-90 [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 03a48d595d83dea33cef8ba7de6824c875e069b5 [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 03a48d5 [Pipeline] echo 20:29:21 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] wrap 20:29:21 provisioning config files... 20:29:21 copy managed file [device-rest-go-settings] to file:/w/workspace/dgexfoundry_device-rest-go_PR-90@tmp/config327214246651373545tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:29:22 ---> docker-login.sh 20:29:22 nexus3.edgexfoundry.org:10001 20:29:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:29:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:29:23 Configure a credential helper to remove this warning. See 20:29:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:29:23 20:29:23 Login Succeeded 20:29:23 nexus3.edgexfoundry.org:10002 20:29:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:29:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:29:23 Configure a credential helper to remove this warning. See 20:29:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:29:23 20:29:23 Login Succeeded 20:29:23 nexus3.edgexfoundry.org:10003 20:29:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:29:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:29:24 Configure a credential helper to remove this warning. See 20:29:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:29:24 20:29:24 Login Succeeded 20:29:24 nexus3.edgexfoundry.org:10004 20:29:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:29:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:29:24 Configure a credential helper to remove this warning. See 20:29:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:29:24 20:29:24 Login Succeeded 20:29:24 docker.io 20:29:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:29:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:29:25 Configure a credential helper to remove this warning. See 20:29:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:29:25 20:29:25 Login Succeeded 20:29:25 ---> docker-login.sh ends [Pipeline] } 20:29:25 Deleting 1 temporary files [Pipeline] // wrap [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:29:26 + git log --format=format:%s -1 03a48d595d83dea33cef8ba7de6824c875e069b5 [Pipeline] echo 20:29:26 GIT_COMMIT: 03a48d595d83dea33cef8ba7de6824c875e069b5, Commit Message: feat: Add Registry/Config Access token capability [Pipeline] echo 20:29:26 This is not a build commit. [Pipeline] isUnix [Pipeline] sh 20:29:26 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 20:29:26 20:29:26 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 20:29:27 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 20:29:27 latest: Pulling from edgex-devops/git-semver 20:29:27 31603596830f: Pulling fs layer 20:29:27 54011a49482f: Pulling fs layer 20:29:27 a6820b24f6d8: Pulling fs layer 20:29:27 f581987b2513: Pulling fs layer 20:29:27 f581987b2513: Waiting 20:29:27 54011a49482f: Verifying Checksum 20:29:27 54011a49482f: Download complete 20:29:27 31603596830f: Verifying Checksum 20:29:27 31603596830f: Download complete 20:29:28 f581987b2513: Verifying Checksum 20:29:28 f581987b2513: Download complete 20:29:28 a6820b24f6d8: Verifying Checksum 20:29:28 a6820b24f6d8: Download complete 20:29:28 31603596830f: Pull complete 20:29:29 54011a49482f: Pull complete 20:29:31 a6820b24f6d8: Pull complete 20:29:32 f581987b2513: Pull complete 20:29:32 Digest: sha256:772af3cb61214e5a22880db9bb273bb039d0aa3a8f4edfa0c1def8b4e20ea536 20:29:32 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 20:29:32 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 20:29:33 prd-centos7-docker-4c-2g-4192 does not seem to be running inside a container 20:29:33 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/dgexfoundry_device-rest-go_PR-90 -v /w/workspace/dgexfoundry_device-rest-go_PR-90:/w/workspace/dgexfoundry_device-rest-go_PR-90:rw,z -v /w/workspace/dgexfoundry_device-rest-go_PR-90@tmp:/w/workspace/dgexfoundry_device-rest-go_PR-90@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 ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 20:29:36 $ docker top 324708453d79a94c1a65cb5e565352252c1780418a23e5807658bceb948a1b64 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:29:37 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:29:37 [ssh-agent] Looking for ssh-agent implementation... 20:29:38 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:29:38 $ docker exec 324708453d79a94c1a65cb5e565352252c1780418a23e5807658bceb948a1b64 ssh-agent 20:29:38 SSH_AUTH_SOCK=/tmp/ssh-YCII38nPAvAs/agent.12 20:29:38 SSH_AGENT_PID=17 20:29:38 Running ssh-add (command line suppressed) 20:29:38 Identity added: /w/workspace/dgexfoundry_device-rest-go_PR-90@tmp/private_key_7134727956784848092.key (/w/workspace/dgexfoundry_device-rest-go_PR-90@tmp/private_key_7134727956784848092.key) 20:29:39 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:29:39 + git tag --points-at HEAD [Pipeline] } 20:29:40 $ docker exec --env ******** --env ******** 324708453d79a94c1a65cb5e565352252c1780418a23e5807658bceb948a1b64 ssh-agent -k 20:29:40 unset SSH_AUTH_SOCK; 20:29:40 unset SSH_AGENT_PID; 20:29:40 echo Agent pid 17 killed; 20:29:40 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:29:40 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:29:40 [ssh-agent] Looking for ssh-agent implementation... 20:29:41 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:29:41 $ docker exec 324708453d79a94c1a65cb5e565352252c1780418a23e5807658bceb948a1b64 ssh-agent 20:29:41 SSH_AUTH_SOCK=/tmp/ssh-dHzto93XEUfz/agent.46 20:29:41 SSH_AGENT_PID=52 20:29:41 Running ssh-add (command line suppressed) 20:29:42 Identity added: /w/workspace/dgexfoundry_device-rest-go_PR-90@tmp/private_key_6331460488657025830.key (/w/workspace/dgexfoundry_device-rest-go_PR-90@tmp/private_key_6331460488657025830.key) 20:29:42 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:29:42 + git semver init 20:29:42 # -> Open(): unable to determine branch for HEAD 20:29:42 # $GIT_DIR = /w/workspace/dgexfoundry_device-rest-go_PR-90/.git 20:29:42 # $GIT_WORK_TREE = /w/workspace/dgexfoundry_device-rest-go_PR-90 20:29:42 # $SEMVER_REMOTE_NAME = origin 20:29:42 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 20:29:42 # $SEMVER_USER_NAME = edgex-jenkins 20:29:42 # $SEMVER_BRANCH = PR-90 20:29:42 # $SEMVER_TEMP = /tmp/semver-885705465 20:29:42 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 20:29:45 # '/tmp/semver-885705465' -> '/w/workspace/dgexfoundry_device-rest-go_PR-90/.semver' 20:29:45 # -> Force: false 20:29:45 # $SEMVER_DIR = /w/workspace/dgexfoundry_device-rest-go_PR-90/.semver [Pipeline] } 20:29:45 $ docker exec --env ******** --env ******** 324708453d79a94c1a65cb5e565352252c1780418a23e5807658bceb948a1b64 ssh-agent -k 20:29:45 unset SSH_AUTH_SOCK; 20:29:45 unset SSH_AGENT_PID; 20:29:45 echo Agent pid 52 killed; 20:29:45 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:29:46 + git semver [Pipeline] } 20:29:46 $ docker stop --time=1 324708453d79a94c1a65cb5e565352252c1780418a23e5807658bceb948a1b64 20:29:49 $ docker rm -f 324708453d79a94c1a65cb5e565352252c1780418a23e5807658bceb948a1b64 [Pipeline] // withDockerContainer [Pipeline] sh 20:29:49 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:29:50 Stashed 1 file(s) [Pipeline] echo 20:29:50 [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] node [Pipeline] node 20:30:05 Still waiting to schedule task 20:30:05 ‘prd-centos7-blackbox-4c-2g-3715’ doesn’t have label ‘centos7-docker-4c-2g’; ‘prd-centos7-docker-4c-2g-4183’ is offline; ‘prd-centos7-docker-4c-2g-4187’ is offline; ‘prd-centos7-docker-4c-2g-4193’ is offline; ‘prd-centos7-docker-4c-2g-4195’ is offline; ‘prd-ubuntu18.04-docker-8c-8g-4186’ doesn’t have label ‘centos7-docker-4c-2g’; ‘prd-ubuntu18.04-docker-arm64-4c-16g-3702’ doesn’t have label ‘centos7-docker-4c-2g’ 20:30:05 Still waiting to schedule task 20:30:05 Waiting for next available executor on ‘ubuntu18.04-docker-arm64-4c-16g’ 20:31:28 Running on prd-centos7-docker-4c-2g-4198 in /w/workspace/dgexfoundry_device-rest-go_PR-90 [Pipeline] { [Pipeline] ws 20:31:28 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 20:31:32 using credential edgex-jenkins-ssh 20:31:32 Cloning the remote Git repository 20:31:32 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:31:32 > git init /w/workspace/device-rest-go/2 # timeout=10 20:31:32 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:31:32 > git --version # timeout=10 20:31:32 > git --version # 'git version 2.24.3' 20:31:32 using GIT_SSH to set credentials SSH Credentials for GitHub 20:31:32 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:31:33 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:31:33 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:31:33 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:31:33 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:31:33 using GIT_SSH to set credentials SSH Credentials for GitHub 20:31:33 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/90/head:refs/remotes/origin/PR-90 +refs/heads/master:refs/remotes/origin/master # timeout=10 20:31:33 Merging remotes/origin/master commit f67542ccb051b13986f5f41838b922d5b9b125ad into PR head commit 03a48d595d83dea33cef8ba7de6824c875e069b5 20:31:33 Merge succeeded, producing 03a48d595d83dea33cef8ba7de6824c875e069b5 20:31:33 Checking out Revision 03a48d595d83dea33cef8ba7de6824c875e069b5 (PR-90) 20:31:33 > git config core.sparsecheckout # timeout=10 20:31:33 > git checkout -f 03a48d595d83dea33cef8ba7de6824c875e069b5 # timeout=10 20:31:33 > git remote # timeout=10 20:31:33 > git config --get remote.origin.url # timeout=10 20:31:33 using GIT_SSH to set credentials SSH Credentials for GitHub 20:31:33 > git merge f67542ccb051b13986f5f41838b922d5b9b125ad # timeout=10 20:31:33 > git rev-parse HEAD^{commit} # timeout=10 20:31:33 > git config core.sparsecheckout # timeout=10 20:31:33 > git checkout -f 03a48d595d83dea33cef8ba7de6824c875e069b5 # timeout=10 20:31:37 Commit message: "feat: Add Registry/Config Access token capability" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:31:38 + sudo jq '. + {"registry-mirrors": ["https://nexus3.edgexfoundry.org:10001"], debug: false}' /etc/docker/daemon.json [Pipeline] sh 20:31:39 + sudo mv /tmp/daemon.json /etc/docker/daemon.json [Pipeline] sh 20:31:39 + sudo service docker restart 20:31:39 + true 20:31:39 Redirecting to /bin/systemctl restart docker.service [Pipeline] withEnv [Pipeline] { [Pipeline] wrap 20:31:40 provisioning config files... 20:31:40 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config5096240589913806485tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:31:40 ---> docker-login.sh 20:31:40 nexus3.edgexfoundry.org:10001 20:31:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:41 Configure a credential helper to remove this warning. See 20:31:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:41 20:31:41 Login Succeeded 20:31:41 nexus3.edgexfoundry.org:10002 20:31:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:41 Configure a credential helper to remove this warning. See 20:31:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:41 20:31:41 Login Succeeded 20:31:41 nexus3.edgexfoundry.org:10003 20:31:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:41 Configure a credential helper to remove this warning. See 20:31:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:41 20:31:41 Login Succeeded 20:31:41 nexus3.edgexfoundry.org:10004 20:31:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:41 Configure a credential helper to remove this warning. See 20:31:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:41 20:31:41 Login Succeeded 20:31:41 docker.io 20:31:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:31:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:31:42 Configure a credential helper to remove this warning. See 20:31:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:31:42 20:31:42 Login Succeeded 20:31:42 ---> docker-login.sh ends [Pipeline] } 20:31:42 Deleting 1 temporary files [Pipeline] // wrap [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:31:42 ========================================================= 20:31:42 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.16-alpine] 20:31:42 ========================================================= [Pipeline] isUnix [Pipeline] sh 20:31:42 + docker build -t ci-base-image-x86_64 -f Dockerfile.build --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.16-alpine . 20:31:42 Sending build context to Docker daemon 93.18kB 20:31:42 Step 1/10 : ARG BASE=golang:1.15-alpine3.12 20:31:42 Step 2/10 : FROM ${BASE} 20:31:42 1.16-alpine: Pulling from edgex-devops/edgex-golang-base 20:31:42 540db60ca938: Pulling fs layer 20:31:42 adcc1eea9eea: Pulling fs layer 20:31:42 4c4ab2625f07: Pulling fs layer 20:31:42 0510c868ecb4: Pulling fs layer 20:31:42 afea3b2eda06: Pulling fs layer 20:31:42 7809a108b3ef: Pulling fs layer 20:31:42 f706445af74f: Pulling fs layer 20:31:42 0510c868ecb4: Waiting 20:31:42 afea3b2eda06: Waiting 20:31:42 7809a108b3ef: Waiting 20:31:42 f706445af74f: Waiting 20:31:42 4c4ab2625f07: Download complete 20:31:42 adcc1eea9eea: Verifying Checksum 20:31:42 adcc1eea9eea: Download complete 20:31:42 afea3b2eda06: Verifying Checksum 20:31:42 afea3b2eda06: Download complete 20:31:42 7809a108b3ef: Verifying Checksum 20:31:42 7809a108b3ef: Download complete 20:31:42 540db60ca938: Verifying Checksum 20:31:42 540db60ca938: Download complete 20:31:43 540db60ca938: Pull complete 20:31:43 adcc1eea9eea: Pull complete 20:31:43 4c4ab2625f07: Pull complete 20:31:44 f706445af74f: Verifying Checksum 20:31:44 f706445af74f: Download complete 20:31:45 0510c868ecb4: Verifying Checksum 20:31:45 0510c868ecb4: Download complete 20:31:50 0510c868ecb4: Pull complete 20:31:50 afea3b2eda06: Pull complete 20:31:50 7809a108b3ef: Pull complete 20:32:00 f706445af74f: Pull complete 20:32:00 Digest: sha256:3789524f83b4b99ff44900c39f6da7fc44f99660cd9adf292610dec398b137f4 20:32:00 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.16-alpine 20:32:00 ---> b068be0155e3 20:32:00 Step 3/10 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:32:00 ---> Running in 08c0cb29260c 20:32:00 Removing intermediate container 08c0cb29260c 20:32:00 ---> 84ce9295018f 20:32:00 Step 4/10 : ARG ALPINE_PKG_EXTRA="" 20:32:00 ---> Running in cad7708d4b47 20:32:01 Removing intermediate container cad7708d4b47 20:32:01 ---> e768b4956b69 20:32:01 Step 5/10 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:32:01 ---> Running in 86ed0c99b37f 20:32:01 Removing intermediate container 86ed0c99b37f 20:32:01 ---> 0c5e34e46afc 20:32:01 Step 6/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:32:01 ---> Running in 35e27bf29ef8 20:32:02 Removing intermediate container 35e27bf29ef8 20:32:02 ---> a9e5d9574460 20:32:02 Step 7/10 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:32:02 ---> Running in dd4102a456ae 20:32:03 fetch https://nl.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz 20:32:05 fetch https://nl.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz 20:32:05 (1/9) Installing libc-dev (0.7.2-r3) 20:32:06 (2/9) Installing libsodium (1.0.18-r0) 20:32:06 (3/9) Installing pkgconf (1.7.3-r0) 20:32:06 (4/9) Installing libsodium-dev (1.0.18-r0) 20:32:06 (5/9) Installing openssh-keygen (8.4_p1-r3) 20:32:06 (6/9) Installing libedit (20191231.3.1-r1) 20:32:06 (7/9) Installing openssh-client (8.4_p1-r3) 20:32:07 (8/9) Installing libzmq (4.3.3-r1) 20:32:07 (9/9) Installing zeromq-dev (4.3.3-r1) 20:32:08 Executing busybox-1.32.1-r6.trigger 20:32:08 OK: 154 MiB in 49 packages 20:32:09 Removing intermediate container dd4102a456ae 20:32:09 ---> 332e2b816814 20:32:09 Step 8/10 : WORKDIR /device-rest-go 20:32:09 ---> Running in 7dac333fddf5 20:32:09 Removing intermediate container 7dac333fddf5 20:32:09 ---> 01c94778872c 20:32:09 Step 9/10 : COPY . . 20:32:09 ---> 7215c715564a 20:32:09 Step 10/10 : RUN go mod download 20:32:09 ---> Running in 3c2431fe8257 20:32:31 Removing intermediate container 3c2431fe8257 20:32:31 ---> 5b6982804e0e 20:32:31 Successfully built 5b6982804e0e 20:32:31 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 20:32:31 + docker inspect -f . ci-base-image-x86_64 20:32:31 . [Pipeline] withDockerContainer 20:32:31 prd-centos7-docker-4c-2g-4198 does not seem to be running inside a container 20:32:31 $ 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 ******** ci-base-image-x86_64 cat 20:32:32 $ docker top 75840f4ae5391c2764a203c4c205383667bb711dd57c0778b379c6f55cf69c79 -eo pid,comm [Pipeline] { [Pipeline] sh 20:32:33 + go version 20:32:33 go version go1.16.3 linux/amd64 [Pipeline] } 20:32:33 $ docker stop --time=1 75840f4ae5391c2764a203c4c205383667bb711dd57c0778b379c6f55cf69c79 20:32:34 $ docker rm -f 75840f4ae5391c2764a203c4c205383667bb711dd57c0778b379c6f55cf69c79 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:32:35 + docker inspect -f . ci-base-image-x86_64 20:32:35 . [Pipeline] withDockerContainer 20:32:35 prd-centos7-docker-4c-2g-4198 does not seem to be running inside a container 20:32:35 $ 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 ******** ci-base-image-x86_64 cat 20:32:35 $ docker top 5df56bb23601d783bab7d6fab20e91fa9b0c87f42b045b13c3aa71bfb5ef6fd9 -eo pid,comm [Pipeline] { [Pipeline] sh 20:32:36 + go mod tidy [Pipeline] sh 20:32:37 + make test 20:32:37 CGO_ENABLED=1 GO111MODULE=on go test -coverprofile=coverage.out ./... 20:32:38 ? github.com/edgexfoundry/device-rest-go [no test files] 20:32:44 Running on prd-ubuntu18.04-docker-arm64-4c-16g-4201 in /w/workspace/dgexfoundry_device-rest-go_PR-90 [Pipeline] { [Pipeline] ws 20:32:44 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 20:32:50 using credential edgex-jenkins-ssh 20:32:50 Cloning the remote Git repository 20:32:50 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:32:50 > git init /w/workspace/device-rest-go/2 # timeout=10 20:32:50 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:32:50 > git --version # timeout=10 20:32:50 > git --version # 'git version 2.17.1' 20:32:50 using GIT_SSH to set credentials SSH Credentials for GitHub 20:32:50 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:32:53 Merging remotes/origin/master commit f67542ccb051b13986f5f41838b922d5b9b125ad into PR head commit 03a48d595d83dea33cef8ba7de6824c875e069b5 20:32:53 Merge succeeded, producing 03a48d595d83dea33cef8ba7de6824c875e069b5 20:32:53 Checking out Revision 03a48d595d83dea33cef8ba7de6824c875e069b5 (PR-90) 20:32:52 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:32:52 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:32:52 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:32:52 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:32:52 using GIT_SSH to set credentials SSH Credentials for GitHub 20:32:52 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/90/head:refs/remotes/origin/PR-90 +refs/heads/master:refs/remotes/origin/master # timeout=10 20:32:53 > git config core.sparsecheckout # timeout=10 20:32:53 > git checkout -f 03a48d595d83dea33cef8ba7de6824c875e069b5 # timeout=10 20:32:53 > git remote # timeout=10 20:32:53 > git config --get remote.origin.url # timeout=10 20:32:53 using GIT_SSH to set credentials SSH Credentials for GitHub 20:32:53 > git merge f67542ccb051b13986f5f41838b922d5b9b125ad # timeout=10 20:32:53 > git rev-parse HEAD^{commit} # timeout=10 20:32:53 > git config core.sparsecheckout # timeout=10 20:32:53 > git checkout -f 03a48d595d83dea33cef8ba7de6824c875e069b5 # timeout=10 20:32:57 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:32:57 ok github.com/edgexfoundry/device-rest-go/driver 0.018s coverage: 54.0% of statements 20:32:57 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:32:57 Commit message: "feat: Add Registry/Config Access token capability" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:32:59 + sudo jq . + {"registry-mirrors": ["https://nexus3.edgexfoundry.org:10001"], debug: false} /etc/docker/daemon.json [Pipeline] sh 20:32:59 + sudo mv /tmp/daemon.json /etc/docker/daemon.json [Pipeline] sh 20:32:59 + sudo service docker restart 20:32:59 + true [Pipeline] withEnv [Pipeline] { [Pipeline] wrap 20:33:01 provisioning config files... 20:33:02 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config4652545303353954026tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:33:02 ---> docker-login.sh 20:33:02 nexus3.edgexfoundry.org:10001 20:33:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:33:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:33:03 Configure a credential helper to remove this warning. See 20:33:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:33:03 20:33:03 Login Succeeded 20:33:03 nexus3.edgexfoundry.org:10002 20:33:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:33:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:33:04 Configure a credential helper to remove this warning. See 20:33:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:33:04 20:33:04 Login Succeeded 20:33:04 nexus3.edgexfoundry.org:10003 20:33:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:33:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:33:04 Configure a credential helper to remove this warning. See 20:33:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:33:04 20:33:04 Login Succeeded 20:33:04 nexus3.edgexfoundry.org:10004 20:33:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:33:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:33:05 Configure a credential helper to remove this warning. See 20:33:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:33:05 20:33:05 Login Succeeded 20:33:05 docker.io 20:33:05 gofmt -l . 20:33:05 [ "`gofmt -l .`" = "" ] 20:33:05 ./bin/test-go-mod-tidy.sh 20:33:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:33:05 ./bin/test-attribution-txt.sh 20:33:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:33:05 Configure a credential helper to remove this warning. See 20:33:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:33:05 20:33:05 Login Succeeded 20:33:05 ---> docker-login.sh ends [Pipeline] } 20:33:05 Deleting 1 temporary files [Pipeline] // wrap [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:33:06 ========================================================= 20:33:06 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.16-alpine] 20:33:06 ========================================================= [Pipeline] isUnix [Pipeline] sh [Pipeline] } 20:33:06 $ docker stop --time=1 5df56bb23601d783bab7d6fab20e91fa9b0c87f42b045b13c3aa71bfb5ef6fd9 20:33:06 + docker build -t ci-base-image-arm64 -f Dockerfile.build --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.16-alpine . 20:33:06 Sending build context to Docker daemon 93.18kB 20:33:07 Step 1/10 : ARG BASE=golang:1.15-alpine3.12 20:33:07 Step 2/10 : FROM ${BASE} 20:33:08 1.16-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 20:33:08 595b0fe564bb: Pulling fs layer 20:33:08 7186ed65a4f7: Pulling fs layer 20:33:08 316046926c0a: Pulling fs layer 20:33:08 4ebd0625c992: Pulling fs layer 20:33:08 207e8628e3a3: Pulling fs layer 20:33:08 c791037a9be2: Pulling fs layer 20:33:08 ffd874e62e21: Pulling fs layer 20:33:08 c791037a9be2: Waiting 20:33:08 4ebd0625c992: Waiting 20:33:08 ffd874e62e21: Waiting 20:33:08 207e8628e3a3: Waiting 20:33:08 7186ed65a4f7: Verifying Checksum 20:33:08 7186ed65a4f7: Download complete 20:33:08 316046926c0a: Verifying Checksum 20:33:08 316046926c0a: Download complete 20:33:08 207e8628e3a3: Verifying Checksum 20:33:08 207e8628e3a3: Download complete 20:33:08 c791037a9be2: Verifying Checksum 20:33:08 c791037a9be2: Download complete 20:33:08 595b0fe564bb: Verifying Checksum 20:33:08 595b0fe564bb: Download complete 20:33:08 595b0fe564bb: Pull complete 20:33:08 7186ed65a4f7: Pull complete 20:33:08 $ docker rm -f 5df56bb23601d783bab7d6fab20e91fa9b0c87f42b045b13c3aa71bfb5ef6fd9 20:33:08 316046926c0a: Pull complete [Pipeline] // withDockerContainer [Pipeline] sh 20:33:09 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:33:09 ffd874e62e21: Verifying Checksum 20:33:09 ffd874e62e21: Download complete 20:33:09 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:33:10 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:33:10 4ebd0625c992: Verifying Checksum 20:33:10 4ebd0625c992: Download complete 20:33:11 + ls -al . 20:33:11 total 104 20:33:11 drwxrwxr-x. 8 jenkins jenkins 4096 May 10 20:33 . 20:33:11 drwxrwxr-x. 4 jenkins jenkins 28 May 10 20:31 .. 20:33:11 -rw-rw-r--. 1 jenkins jenkins 6792 May 10 20:31 Attribution.txt 20:33:11 drwxrwxr-x. 2 jenkins jenkins 64 May 10 20:31 bin 20:33:11 drwxrwxr-x. 3 jenkins jenkins 32 May 10 20:31 cmd 20:33:11 -rw-r--r--. 1 jenkins jenkins 8513 May 10 20:32 coverage.out 20:33:11 -rw-rw-r--. 1 jenkins jenkins 1602 May 10 20:31 Dockerfile 20:33:11 -rw-rw-r--. 1 jenkins jenkins 1087 May 10 20:31 Dockerfile.build 20:33:11 -rw-rw-r--. 1 jenkins jenkins 151 May 10 20:31 .dockerignore 20:33:11 drwxrwxr-x. 2 jenkins jenkins 76 May 10 20:31 driver 20:33:11 drwxrwxr-x. 8 jenkins jenkins 179 May 10 20:31 .git 20:33:11 drwxrwxr-x. 2 jenkins jenkins 103 May 10 20:31 .github 20:33:11 -rw-rw-r--. 1 jenkins jenkins 339 May 10 20:31 .gitignore 20:33:11 -rw-r--r--. 1 jenkins jenkins 285 May 10 20:33 go.mod 20:33:11 -rw-r--r--. 1 jenkins jenkins 21278 May 10 20:32 go.sum 20:33:11 -rw-rw-r--. 1 jenkins jenkins 680 May 10 20:31 Jenkinsfile 20:33:11 -rw-rw-r--. 1 jenkins jenkins 11340 May 10 20:31 LICENSE 20:33:11 -rw-rw-r--. 1 jenkins jenkins 976 May 10 20:31 Makefile 20:33:11 -rw-rw-r--. 1 jenkins jenkins 7667 May 10 20:31 README.md 20:33:11 drwxrwxr-x. 4 jenkins jenkins 71 May 10 20:31 snap 20:33:11 -rw-rw-r--. 1 jenkins jenkins 5 May 10 20:29 VERSION 20:33:11 -rw-rw-r--. 1 jenkins jenkins 713 May 10 20:31 version.go [Pipeline] isUnix [Pipeline] sh 20:33:11 + docker build -t docker-device-rest-go -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg 'MAKE=make build' --build-arg ARCH=amd64 --label git_sha=03a48d595d83dea33cef8ba7de6824c875e069b5 --label arch=amd64 --label version=0.0.0 . 20:33:11 Sending build context to Docker daemon 102.9kB 20:33:11 Step 1/24 : ARG BASE=golang:1.15-alpine3.12 20:33:11 Step 2/24 : FROM ${BASE} AS builder 20:33:11 ---> 5b6982804e0e 20:33:11 Step 3/24 : ARG MAKE='make build' 20:33:11 ---> Running in 7514d07dbe97 20:33:11 Removing intermediate container 7514d07dbe97 20:33:11 ---> 7174e0c4be93 20:33:11 Step 4/24 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:33:11 ---> Running in 1f71d2f7e39a 20:33:11 Removing intermediate container 1f71d2f7e39a 20:33:11 ---> 07c9f5f036dc 20:33:11 Step 5/24 : ARG ALPINE_PKG_EXTRA="" 20:33:12 ---> Running in bafae3eb34c3 20:33:12 Removing intermediate container bafae3eb34c3 20:33:12 ---> a503eec9a7c2 20:33:12 Step 6/24 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:33:12 ---> Running in 7c8133b05f73 20:33:13 Removing intermediate container 7c8133b05f73 20:33:13 ---> 71f3f4d32fb4 20:33:13 Step 7/24 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:33:13 ---> Running in 45a18c379640 20:33:13 fetch https://nl.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz 20:33:15 fetch https://nl.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz 20:33:16 OK: 154 MiB in 49 packages 20:33:16 Removing intermediate container 45a18c379640 20:33:16 ---> 20a0f1b0b815 20:33:16 Step 8/24 : WORKDIR /device-rest-go 20:33:16 ---> Running in b18d45a8238b 20:33:17 Removing intermediate container b18d45a8238b 20:33:17 ---> b2e05adda5c9 20:33:17 Step 9/24 : COPY . . 20:33:17 ---> dd11574eae45 20:33:17 Step 10/24 : RUN make update 20:33:17 ---> Running in 45d9f436096a 20:33:17 CGO_ENABLED=0 GO111MODULE=on go mod download 20:33:18 Removing intermediate container 45d9f436096a 20:33:18 ---> 53f877765bef 20:33:18 Step 11/24 : RUN $MAKE 20:33:18 ---> Running in 051a5a7d8d93 20:33:19 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest-go ./cmd 20:33:21 4ebd0625c992: Pull complete 20:33:21 207e8628e3a3: Pull complete 20:33:21 c791037a9be2: Pull complete 20:33:25 ffd874e62e21: Pull complete 20:33:25 Digest: sha256:fad7b58e697bd06bcf362d803a3263ca5ec03b905aa8665231fe3262941fe3e0 20:33:25 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.16-alpine 20:33:25 ---> cfc18b08335c 20:33:25 Step 3/10 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:33:28 ---> Running in 26c5f0c670ed 20:33:28 Removing intermediate container 26c5f0c670ed 20:33:28 ---> 00cbdc378d15 20:33:28 Step 4/10 : ARG ALPINE_PKG_EXTRA="" 20:33:28 ---> Running in 2612aadc1a63 20:33:29 Removing intermediate container 2612aadc1a63 20:33:29 ---> 0185d218fbeb 20:33:29 Step 5/10 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:33:29 ---> Running in 3dfabfa5440c 20:33:29 Removing intermediate container 3dfabfa5440c 20:33:29 ---> c64068e692d4 20:33:29 Step 6/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:33:29 ---> Running in 2350d92126eb 20:33:32 Removing intermediate container 2350d92126eb 20:33:32 ---> 98822f796baa 20:33:32 Step 7/10 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:33:32 ---> Running in 46e2a5352806 20:33:33 fetch https://nl.alpinelinux.org/alpine/v3.13/main/aarch64/APKINDEX.tar.gz 20:33:34 Removing intermediate container 051a5a7d8d93 20:33:34 ---> 837859e6cf4d 20:33:34 Step 12/24 : FROM alpine:3.12 20:33:34 3.12: Pulling from library/alpine 20:33:34 339de151aab4: Pulling fs layer 20:33:34 339de151aab4: Verifying Checksum 20:33:34 339de151aab4: Download complete 20:33:34 339de151aab4: Pull complete 20:33:34 Digest: sha256:36553b10a4947067b9fbb7d532951066293a68eae893beba1d9235f7d11a20ad 20:33:34 Status: Downloaded newer image for alpine:3.12 20:33:34 ---> 13621d1b12d4 20:33:34 Step 13/24 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:33:34 ---> Running in e03512e6ffe6 20:33:34 Removing intermediate container e03512e6ffe6 20:33:34 ---> 79e7481fb836 20:33:34 Step 14/24 : LABEL Name=device-rest-go Version=${VERSION} 20:33:34 ---> Running in 4d82a1fe6cd2 20:33:34 Removing intermediate container 4d82a1fe6cd2 20:33:34 ---> d23d8635942c 20:33:34 Step 15/24 : RUN apk add --update --no-cache zeromq dumb-init 20:33:34 ---> Running in c9e8a5421551 20:33:34 fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz 20:33:34 fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz 20:33:34 (1/6) Installing dumb-init (1.2.2-r1) 20:33:34 (2/6) Installing libgcc (9.3.0-r2) 20:33:34 (3/6) Installing libsodium (1.0.18-r0) 20:33:34 (4/6) Installing libstdc++ (9.3.0-r2) 20:33:34 (5/6) Installing libzmq (4.3.3-r0) 20:33:34 (6/6) Installing zeromq (4.3.3-r0) 20:33:34 Executing busybox-1.31.1-r20.trigger 20:33:34 OK: 8 MiB in 20 packages 20:33:34 Removing intermediate container c9e8a5421551 20:33:34 ---> 095a0b74b716 20:33:34 Step 16/24 : COPY --from=builder /device-rest-go/cmd / 20:33:35 ---> 7cf7c0eaa9ca 20:33:35 Step 17/24 : COPY --from=builder /device-rest-go/LICENSE / 20:33:35 fetch https://nl.alpinelinux.org/alpine/v3.13/community/aarch64/APKINDEX.tar.gz 20:33:35 ---> ecfb2238bd64 20:33:35 Step 18/24 : COPY --from=builder /device-rest-go/Attribution.txt / 20:33:36 ---> fa1a5a3cce3f 20:33:36 Step 19/24 : EXPOSE 49986 20:33:36 ---> Running in 7c57adf61b57 20:33:36 Removing intermediate container 7c57adf61b57 20:33:36 ---> 6dc9558a2972 20:33:36 Step 20/24 : ENTRYPOINT ["/device-rest-go"] 20:33:36 ---> Running in c15a127ffcb8 20:33:36 Removing intermediate container c15a127ffcb8 20:33:36 ---> 626ea6bed9d7 20:33:36 Step 21/24 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 20:33:36 ---> Running in 4006dd1d2e32 20:33:36 Removing intermediate container 4006dd1d2e32 20:33:36 ---> f30a4f283216 20:33:36 Step 22/24 : LABEL arch=amd64 20:33:36 ---> Running in 3ed089234df2 20:33:36 Removing intermediate container 3ed089234df2 20:33:36 ---> ade9ae80a60d 20:33:36 Step 23/24 : LABEL git_sha=03a48d595d83dea33cef8ba7de6824c875e069b5 20:33:36 (1/9) Installing libc-dev (0.7.2-r3) 20:33:36 (2/9) Installing libsodium (1.0.18-r0) 20:33:36 (3/9) Installing pkgconf (1.7.3-r0) 20:33:37 ---> Running in 55f18d2ff495 20:33:37 Removing intermediate container 55f18d2ff495 20:33:37 ---> 8a1938cf4dc7 20:33:37 Step 24/24 : LABEL version=0.0.0 20:33:37 (4/9) Installing libsodium-dev (1.0.18-r0) 20:33:37 ---> Running in bdef5b2fe75a 20:33:37 Removing intermediate container bdef5b2fe75a 20:33:37 ---> 56d9f4ba46c2 20:33:37 [Warning] One or more build-args [ARCH] were not consumed 20:33:37 Successfully built 56d9f4ba46c2 20:33:37 Successfully tagged docker-device-rest-go: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 20:33:37 (5/9) Installing openssh-keygen (8.4_p1-r3) 20:33:37 (6/9) Installing libedit (20191231.3.1-r1) [Pipeline] libraryResource [Pipeline] sh 20:33:37 (7/9) Installing openssh-client (8.4_p1-r3) 20:33:37 ---> job-cost.sh 20:33:37 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-Ubl2 20:33:39 (8/9) Installing libzmq (4.3.3-r1) 20:33:39 (9/9) Installing zeromq-dev (4.3.3-r1) 20:33:39 Executing busybox-1.32.1-r6.trigger 20:33:39 OK: 144 MiB in 49 packages 20:33:40 Removing intermediate container 46e2a5352806 20:33:40 ---> 1ec81b3fdf7e 20:33:40 Step 8/10 : WORKDIR /device-rest-go 20:33:40 ---> Running in aac5d897f62c 20:33:41 Removing intermediate container aac5d897f62c 20:33:41 ---> 361c48b325ae 20:33:41 Step 9/10 : COPY . . 20:33:42 ---> a8b8574efe4b 20:33:42 Step 10/10 : RUN go mod download 20:33:42 ---> Running in b1436aef0220 20:33:52 lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient 20:34:09 Removing intermediate container b1436aef0220 20:34:09 ---> 7dec0435b409 20:34:09 Successfully built 7dec0435b409 20:34:09 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 20:34:09 + docker inspect -f . ci-base-image-arm64 20:34:09 . [Pipeline] withDockerContainer 20:34:09 prd-ubuntu18.04-docker-arm64-4c-16g-4201 does not seem to be running inside a container 20:34:09 $ 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 ******** ci-base-image-arm64 cat 20:34:11 $ docker top 8ce71a559fe33b62fe57df340dae7c9af60c99185aff8c3aa9fbfbb80978f5db -eo pid,comm [Pipeline] { [Pipeline] sh 20:34:12 + go version 20:34:12 go version go1.16.3 linux/arm64 [Pipeline] } 20:34:12 $ docker stop --time=1 8ce71a559fe33b62fe57df340dae7c9af60c99185aff8c3aa9fbfbb80978f5db 20:34:14 $ docker rm -f 8ce71a559fe33b62fe57df340dae7c9af60c99185aff8c3aa9fbfbb80978f5db [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:34:15 + docker inspect -f . ci-base-image-arm64 20:34:15 . [Pipeline] withDockerContainer 20:34:15 prd-ubuntu18.04-docker-arm64-4c-16g-4201 does not seem to be running inside a container 20:34:15 $ 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 ******** ci-base-image-arm64 cat 20:34:17 $ docker top b4485aa495bef6efb7e30e7c3d162e0a159cf540066e70cb2857cc7cd24b9833 -eo pid,comm [Pipeline] { [Pipeline] sh 20:34:18 + go mod tidy [Pipeline] sh 20:34:19 lf-activate-venv(): INFO: Adding /tmp/venv-Ubl2/bin to PATH 20:34:19 INFO: No Stack... 20:34:19 INFO: Retrieving Pricing Info for: v1-standard-2 20:34:19 INFO: Archiving Costs [Pipeline] sh 20:34:19 + make test 20:34:19 CGO_ENABLED=1 GO111MODULE=on go test -coverprofile=coverage.out ./... 20:34:19 + cat /w/workspace/device-rest-go/2/archives/cost.csv 20:34:19 + cut -d, -f6 [Pipeline] lock 20:34:19 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-90-2-stack-cost] 20:34:19 Resource [jenkins-edgexfoundry-device-rest-go-PR-90-2-stack-cost] did not exist. Created. 20:34:19 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-90-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:34:20 + echo total: 0.029999999329447746 [Pipeline] stash 20:34:20 Stashed 1 file(s) [Pipeline] } 20:34:20 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-90-2-stack-cost] [Pipeline] // lock [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } 20:34:21 ? github.com/edgexfoundry/device-rest-go [no test files] 20:35:18 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:35:18 ok github.com/edgexfoundry/device-rest-go/driver 0.038s coverage: 54.0% of statements 20:35:18 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:35:40 gofmt -l . 20:35:40 [ "`gofmt -l .`" = "" ] 20:35:40 ./bin/test-go-mod-tidy.sh 20:35:40 ./bin/test-attribution-txt.sh [Pipeline] } 20:35:42 $ docker stop --time=1 b4485aa495bef6efb7e30e7c3d162e0a159cf540066e70cb2857cc7cd24b9833 20:35:44 $ docker rm -f b4485aa495bef6efb7e30e7c3d162e0a159cf540066e70cb2857cc7cd24b9833 [Pipeline] // withDockerContainer [Pipeline] sh 20:35:45 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:35:45 Warning: overwriting stash ‘coverage-report’ 20:35:46 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:35:46 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:35:46 + ls -al . 20:35:46 total 132 20:35:46 drwxrwxr-x 8 jenkins jenkins 4096 May 10 20:35 . 20:35:46 drwxrwxr-x 4 jenkins jenkins 4096 May 10 20:32 .. 20:35:46 -rw-rw-r-- 1 jenkins jenkins 151 May 10 20:32 .dockerignore 20:35:46 drwxrwxr-x 8 jenkins jenkins 4096 May 10 20:32 .git 20:35:46 drwxrwxr-x 2 jenkins jenkins 4096 May 10 20:32 .github 20:35:46 -rw-rw-r-- 1 jenkins jenkins 339 May 10 20:32 .gitignore 20:35:46 -rw-rw-r-- 1 jenkins jenkins 6792 May 10 20:32 Attribution.txt 20:35:46 -rw-rw-r-- 1 jenkins jenkins 1602 May 10 20:32 Dockerfile 20:35:46 -rw-rw-r-- 1 jenkins jenkins 1087 May 10 20:32 Dockerfile.build 20:35:46 -rw-rw-r-- 1 jenkins jenkins 680 May 10 20:32 Jenkinsfile 20:35:46 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 20:32 LICENSE 20:35:46 -rw-rw-r-- 1 jenkins jenkins 976 May 10 20:32 Makefile 20:35:46 -rw-rw-r-- 1 jenkins jenkins 7667 May 10 20:32 README.md 20:35:46 -rw-rw-r-- 1 jenkins jenkins 5 May 10 20:29 VERSION 20:35:46 drwxrwxr-x 2 jenkins jenkins 4096 May 10 20:32 bin 20:35:46 drwxrwxr-x 3 jenkins jenkins 4096 May 10 20:32 cmd 20:35:46 -rw-r--r-- 1 jenkins jenkins 8513 May 10 20:35 coverage.out 20:35:46 drwxrwxr-x 2 jenkins jenkins 4096 May 10 20:32 driver 20:35:46 -rw-r--r-- 1 jenkins jenkins 285 May 10 20:35 go.mod 20:35:46 -rw-r--r-- 1 jenkins jenkins 21278 May 10 20:34 go.sum 20:35:46 drwxrwxr-x 4 jenkins jenkins 4096 May 10 20:32 snap 20:35:46 -rw-rw-r-- 1 jenkins jenkins 713 May 10 20:32 version.go [Pipeline] isUnix [Pipeline] sh 20:35:47 + docker build -t docker-device-rest-go-arm64 -f Dockerfile --build-arg BASE=ci-base-image-arm64 --build-arg MAKE=make build --build-arg ARCH=arm64 --label git_sha=03a48d595d83dea33cef8ba7de6824c875e069b5 --label arch=arm64 --label version=0.0.0 . 20:35:47 Sending build context to Docker daemon 102.9kB 20:35:47 Step 1/24 : ARG BASE=golang:1.15-alpine3.12 20:35:47 Step 2/24 : FROM ${BASE} AS builder 20:35:47 ---> 7dec0435b409 20:35:47 Step 3/24 : ARG MAKE='make build' 20:35:47 ---> Running in 03387f46fecc 20:35:48 Removing intermediate container 03387f46fecc 20:35:48 ---> 038d2e24773f 20:35:48 Step 4/24 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:35:48 ---> Running in 4e97933e6371 20:35:48 Removing intermediate container 4e97933e6371 20:35:48 ---> 249ba41c22f4 20:35:48 Step 5/24 : ARG ALPINE_PKG_EXTRA="" 20:35:48 ---> Running in a25496e04c50 20:35:49 Removing intermediate container a25496e04c50 20:35:49 ---> e77b88ecdff8 20:35:49 Step 6/24 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:35:49 ---> Running in 332d4890b6d2 20:35:51 Removing intermediate container 332d4890b6d2 20:35:51 ---> e4c141906408 20:35:51 Step 7/24 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:35:51 ---> Running in b1c02d6f24d5 20:35:52 fetch https://nl.alpinelinux.org/alpine/v3.13/main/aarch64/APKINDEX.tar.gz 20:35:54 fetch https://nl.alpinelinux.org/alpine/v3.13/community/aarch64/APKINDEX.tar.gz 20:35:56 OK: 144 MiB in 49 packages 20:35:57 Removing intermediate container b1c02d6f24d5 20:35:57 ---> 95819c3188ed 20:35:57 Step 8/24 : WORKDIR /device-rest-go 20:35:57 ---> Running in 09605e36bf3c 20:35:57 Removing intermediate container 09605e36bf3c 20:35:57 ---> 09b16c388baf 20:35:57 Step 9/24 : COPY . . 20:35:58 ---> 9825b2ff862a 20:35:58 Step 10/24 : RUN make update 20:35:58 ---> Running in 49955f8bbc89 20:36:00 CGO_ENABLED=0 GO111MODULE=on go mod download 20:36:01 Removing intermediate container 49955f8bbc89 20:36:01 ---> 9c53fdea8285 20:36:01 Step 11/24 : RUN $MAKE 20:36:01 ---> Running in c7c9255a6d8d 20:36:02 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest-go ./cmd 20:36:41 Removing intermediate container c7c9255a6d8d 20:36:41 ---> 63d310f1d9e0 20:36:41 Step 12/24 : FROM alpine:3.12 20:36:41 3.12: Pulling from library/alpine 20:36:41 d2f70382dc9a: Pulling fs layer 20:36:41 error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/98/9852663dfa1831e2c3129c874e328874c84a1ae68072eeb8c7a1914f903a8d3e/data?verify=1620681998-bb01qNWUesiSwSJAMYYzbUV8uGM%3D: dial tcp: lookup production.cloudflare.docker.com: device or resource busy [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage Post stage [Pipeline] libraryResource [Pipeline] sh 20:36:42 ---> job-cost.sh 20:36:42 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-ZxkS 20:37:29 lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient 20:38:50 lf-activate-venv(): INFO: Adding /tmp/venv-ZxkS/bin to PATH 20:38:50 INFO: No Stack... 20:38:50 INFO: Retrieving Pricing Info for: lf-standard-4 20:38:50 INFO: Archiving Costs [Pipeline] sh 20:38:51 + cat /w/workspace/device-rest-go/2/archives/cost.csv 20:38:51 + cut -d, -f6 [Pipeline] lock 20:38:51 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-90-2-stack-cost] 20:38:51 Resource [jenkins-edgexfoundry-device-rest-go-PR-90-2-stack-cost] did not exist. Created. 20:38:51 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-90-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:38:51 /w/workspace/device-rest-go/2@tmp/durable-e773a230/script.sh: 1: /w/workspace/device-rest-go/2@tmp/durable-e773a230/script.sh: Syntax error: Unterminated quoted string [Pipeline] sh 20:38:52 + echo total: 0.20999999344348907 [Pipeline] stash 20:38:52 Warning: overwriting stash ‘stack-cost’ 20:38:52 Stashed 1 file(s) [Pipeline] } 20:38:52 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-90-2-stack-cost] [Pipeline] // lock [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } 20:38:52 Failed in branch arm64 [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) Stage "CodeCov" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to earlier failure(s) [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] libraryResource [Pipeline] sh 20:38:53 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:38:54 ---> package-listing.sh 20:38:54 ++ facter osfamily 20:38:54 ++ tr '[:upper:]' '[:lower:]' 20:38:54 + OS_FAMILY=redhat 20:38:54 + workspace=/w/workspace/dgexfoundry_device-rest-go_PR-90 20:38:54 + START_PACKAGES=/tmp/packages_start.txt 20:38:54 + END_PACKAGES=/tmp/packages_end.txt 20:38:54 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:38:54 + PACKAGES=/tmp/packages_start.txt 20:38:54 + '[' /w/workspace/dgexfoundry_device-rest-go_PR-90 ']' 20:38:54 + PACKAGES=/tmp/packages_end.txt 20:38:54 + case "${OS_FAMILY}" in 20:38:54 + rpm -qa 20:38:54 + sort 20:39:03 + '[' -f /tmp/packages_start.txt ']' 20:39:03 + '[' -f /tmp/packages_end.txt ']' 20:39:03 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:39:03 + '[' /w/workspace/dgexfoundry_device-rest-go_PR-90 ']' 20:39:03 + mkdir -p /w/workspace/dgexfoundry_device-rest-go_PR-90/archives/ 20:39:03 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/dgexfoundry_device-rest-go_PR-90/archives/ [Pipeline] echo 20:39:03 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sa:/var/log/sa-host -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/dgexfoundry_device-rest-go_PR-90/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 20:39:03 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 20:39:04 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 20:39:04 20:39:04 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] isUnix [Pipeline] sh 20:39:05 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 20:39:05 alpine: Pulling from edgex-lftools-log-publisher 20:39:05 df20fa9351a1: Pulling fs layer 20:39:05 36b3adc4ff6f: Pulling fs layer 20:39:05 8ad3a11d3b57: Pulling fs layer 20:39:05 46f8f816bc3b: Pulling fs layer 20:39:05 93b61091891f: Pulling fs layer 20:39:05 93b9cdb0e59b: Pulling fs layer 20:39:05 5e14af77c1be: Pulling fs layer 20:39:05 01666e4c0597: Pulling fs layer 20:39:05 aa168da1d23b: Pulling fs layer 20:39:05 93b61091891f: Waiting 20:39:05 93b9cdb0e59b: Waiting 20:39:05 46f8f816bc3b: Waiting 20:39:05 5e14af77c1be: Waiting 20:39:05 01666e4c0597: Waiting 20:39:05 aa168da1d23b: Waiting 20:39:06 36b3adc4ff6f: Verifying Checksum 20:39:06 36b3adc4ff6f: Download complete 20:39:06 46f8f816bc3b: Verifying Checksum 20:39:06 46f8f816bc3b: Download complete 20:39:06 df20fa9351a1: Verifying Checksum 20:39:06 df20fa9351a1: Download complete 20:39:06 93b9cdb0e59b: Verifying Checksum 20:39:06 93b9cdb0e59b: Download complete 20:39:06 5e14af77c1be: Verifying Checksum 20:39:06 5e14af77c1be: Download complete 20:39:06 01666e4c0597: Verifying Checksum 20:39:06 01666e4c0597: Download complete 20:39:07 93b61091891f: Verifying Checksum 20:39:07 93b61091891f: Download complete 20:39:07 df20fa9351a1: Pull complete 20:39:08 8ad3a11d3b57: Verifying Checksum 20:39:08 8ad3a11d3b57: Download complete 20:39:08 36b3adc4ff6f: Pull complete 20:39:12 8ad3a11d3b57: Pull complete 20:39:12 46f8f816bc3b: Pull complete 20:39:12 93b61091891f: Pull complete 20:39:13 93b9cdb0e59b: Pull complete 20:39:13 5e14af77c1be: Pull complete 20:39:14 01666e4c0597: Pull complete 20:39:17 aa168da1d23b: Verifying Checksum 20:39:17 aa168da1d23b: Download complete 20:39:40 aa168da1d23b: Pull complete 20:39:40 Digest: sha256:ac41798234670a79351fc13b8232b4dbeccc6fb1f122f5db5169d11b1762ca7c 20:39:40 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 20:39:40 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] withDockerContainer 20:39:41 prd-centos7-docker-4c-2g-4192 does not seem to be running inside a container 20:39:41 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sa:/var/log/sa-host -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/dgexfoundry_device-rest-go_PR-90/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/dgexfoundry_device-rest-go_PR-90 -v /w/workspace/dgexfoundry_device-rest-go_PR-90:/w/workspace/dgexfoundry_device-rest-go_PR-90:rw,z -v /w/workspace/dgexfoundry_device-rest-go_PR-90@tmp:/w/workspace/dgexfoundry_device-rest-go_PR-90@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine cat 20:39:44 $ docker top 448e0ce1a9707ebdd64b50114f90a9788fbec3741216343a6c679ad8df7bc592 -eo pid,comm [Pipeline] { [Pipeline] sh 20:39:45 + touch /tmp/pre-build-complete [Pipeline] sh 20:39:45 + mkdir -p /var/log/sa [Pipeline] sh 20:39:46 + ls /var/log/sa-host 20:39:46 + sadf -c /var/log/sa-host/sa10 20:39:46 file_magic: OK 20:39:46 HZ: Using current value: 100 20:39:46 file_header: OK 20:39:46 file_activity: A_CPU A_PCSW A_SWAP A_PAGE A_IO A_MEMORY A_HUGE A_KTABLES A_QUEUE A_SERIAL A_DISK A_NET_DEV A_NET_EDEV A_NET_NFS A_NET_NFSD A_NET_SOCK OK 20:39:46 Statistics: 20:39:46 HRHnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu... 20:39:46 File successfully converted to sysstat format version 12.2.1 20:39:46 + sadf -c /var/log/sa-host/sa23 20:39:46 file_magic: OK 20:39:46 HZ: Using current value: 100 20:39:46 file_header: OK 20:39:46 file_activity: A_CPU A_PCSW A_SWAP A_PAGE A_IO A_MEMORY A_HUGE A_KTABLES A_QUEUE A_SERIAL A_DISK A_NET_DEV A_NET_EDEV A_NET_NFS A_NET_NFSD A_NET_SOCK OK 20:39:46 Statistics: 20:39:46 Hnuu...uuuununununu... 20:39:46 File successfully converted to sysstat format version 12.2.1 [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:39:46 provisioning config files... 20:39:46 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/dgexfoundry_device-rest-go_PR-90@tmp/config49365034945787778tmp [Pipeline] { [Pipeline] echo 20:39:46 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:39:47 ---> create-netrc.sh [Pipeline] } 20:39:47 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] echo 20:39:47 Running shell/python-tools-install.sh [Pipeline] libraryResource [Pipeline] sh 20:39:47 ---> python-tools-install.sh [Pipeline] echo 20:39:47 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 20:39:47 ---> sudo-logs.sh 20:39:47 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 20:39:48 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 20:39:48 ---> job-cost.sh 20:39:48 lf-activate-venv: SKIPPING 20:39:48 DEBUG: total: 0.20999999344348907 20:39:48 INFO: Retrieving Stack Cost... 20:39:49 INFO: Retrieving Pricing Info for: v1-standard-2 20:39:50 INFO: Archiving Costs [Pipeline] echo 20:39:50 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:39:51 ---> logs-deploy.sh 20:39:51 lf-activate-venv: SKIPPING 20:39:51 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-90/2 20:39:51 INFO: archiving workspace using pattern(s): 20:39:55 Archives upload complete. 20:39:55 INFO: archiving logs to Nexus