Push event to branch issue-36 Connecting to https://api.github.com using edgex-jenkins/****** (edgex-jenkins github personal access token) Obtained Jenkinsfile from 39a7a4e777933e4815b2185cae3c86dc2bb2209d Running in Durability level: MAX_SURVIVABILITY 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 7909e789ffc0fecf34d47f501ec8db0a80105338 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 7909e789ffc0fecf34d47f501ec8db0a80105338 using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/issue-36/workspace@libs/edgex-global-pipelines # timeout=10 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 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > 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 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 7909e789ffc0fecf34d47f501ec8db0a80105338 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 7909e789ffc0fecf34d47f501ec8db0a80105338 # timeout=10 Commit message: "Merge pull request #245 from ernestojeda/fix-go-version-issue" > 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 > git --version # timeout=10 > git --version # 'git version 2.16.6' 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. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go, goVersion:1.13] ========================================================= [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.13 GOPROXY: https://nexus3.edgexfoundry.org/repository/go-proxy/ DOCKER_BASE_IMAGE: nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-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 [Pipeline] node Still waiting to schedule task ‘prd-centos7-docker-4c-2g-213’ is offline Running on prd-centos7-docker-4c-2g-43584 in /w/workspace/xfoundry_device-rest-go_issue-36 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:edgexfoundry/device-rest-go.git > git init /w/workspace/xfoundry_device-rest-go_issue-36 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.16.5' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 Fetching without tags Checking out Revision 39a7a4e777933e4815b2185cae3c86dc2bb2209d (issue-36) > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/issue-36:refs/remotes/origin/issue-36 # 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 --no-tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 39a7a4e777933e4815b2185cae3c86dc2bb2209d # timeout=10 Commit message: "doc: correct build instructions (#36)" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.16.5' fatal: bad object 7909e789ffc0fecf34d47f501ec8db0a80105338 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout [2020-09-16T13:46:05.305Z] Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials [2020-09-16T13:46:05.740Z] Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo [2020-09-16T13:46:05.977Z] ========================================================= [2020-09-16T13:46:05.977Z] EdgeX Global Pipelines Version Info [2020-09-16T13:46:05.977Z] ========================================================= [Pipeline] libraryResource [Pipeline] sh [2020-09-16T13:46:07.487Z] ------------------- [2020-09-16T13:46:07.487Z] stable info: [2020-09-16T13:46:07.487Z] ------------------- [2020-09-16T13:46:07.487Z] Commited By: Ernesto Ojeda ernesto.ojeda@intel.com [2020-09-16T13:46:07.487Z] Commit SHA: 7909e789ffc0fecf34d47f501ec8db0a80105338 [2020-09-16T13:46:07.487Z] Message: update stable to v1.0.122 [2020-09-16T13:46:08.065Z] ------------------- [2020-09-16T13:46:08.065Z] experimental info: [2020-09-16T13:46:08.065Z] ------------------- [2020-09-16T13:46:08.065Z] Commited By: **** collab-it+edgex@linuxfoundation.org [2020-09-16T13:46:08.065Z] Commit SHA: 7909e789ffc0fecf34d47f501ec8db0a80105338 [2020-09-16T13:46:08.065Z] Message: update experimental to v1.0.122 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] } [Pipeline] // script [Pipeline] echo [2020-09-16T13:46:08.629Z] [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo [2020-09-16T13:46:08.810Z] [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo [2020-09-16T13:46:08.976Z] [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo [2020-09-16T13:46:09.116Z] [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo [2020-09-16T13:46:09.257Z] [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo [2020-09-16T13:46:09.391Z] [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.13 [Pipeline] echo [2020-09-16T13:46:09.564Z] [edgeXSetupEnvironment]: set envvar GOPROXY = https://nexus3.edgexfoundry.org/repository/go-proxy/ [Pipeline] echo [2020-09-16T13:46:09.703Z] [edgeXSetupEnvironment]: set envvar DOCKER_BASE_IMAGE = nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-alpine [Pipeline] echo [2020-09-16T13:46:09.854Z] [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo [2020-09-16T13:46:10.046Z] [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo [2020-09-16T13:46:10.240Z] [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo [2020-09-16T13:46:10.425Z] [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = docker-device-rest-go [Pipeline] echo [2020-09-16T13:46:10.578Z] [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo [2020-09-16T13:46:10.740Z] [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo [2020-09-16T13:46:10.885Z] [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo [2020-09-16T13:46:11.050Z] [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo [2020-09-16T13:46:11.185Z] [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo [2020-09-16T13:46:11.319Z] [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo [2020-09-16T13:46:11.449Z] [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo [2020-09-16T13:46:11.606Z] [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo [2020-09-16T13:46:11.748Z] [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo [2020-09-16T13:46:11.904Z] [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo [2020-09-16T13:46:12.042Z] [edgeXSetupEnvironment]: set envvar GIT_BRANCH = issue-36 [Pipeline] echo [2020-09-16T13:46:12.251Z] [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = issue-36 [Pipeline] echo [2020-09-16T13:46:12.378Z] [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = issue-36 [Pipeline] echo [2020-09-16T13:46:12.565Z] [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 39a7a4e777933e4815b2185cae3c86dc2bb2209d [Pipeline] echo [2020-09-16T13:46:12.742Z] [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 39a7a4e [Pipeline] echo [2020-09-16T13:46:12.877Z] [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh [2020-09-16T13:46:13.674Z] + git log --format=format:%s -1 39a7a4e777933e4815b2185cae3c86dc2bb2209d [Pipeline] echo [2020-09-16T13:46:13.749Z] GIT_COMMIT: 39a7a4e777933e4815b2185cae3c86dc2bb2209d, Commit Message: doc: correct build instructions (#36) [Pipeline] echo [2020-09-16T13:46:13.828Z] This is not a build commit. [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:46:14.843Z] + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2020-09-16T13:46:15.105Z] [2020-09-16T13:46:15.105Z] Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:46:15.510Z] + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2020-09-16T13:46:15.510Z] latest: Pulling from edgex-devops/git-semver [2020-09-16T13:46:15.510Z] 31603596830f: Pulling fs layer [2020-09-16T13:46:15.510Z] 2a8b12db71e7: Pulling fs layer [2020-09-16T13:46:15.510Z] 6ca5941a6612: Pulling fs layer [2020-09-16T13:46:15.510Z] ecc8261a40a4: Pulling fs layer [2020-09-16T13:46:15.510Z] ecc8261a40a4: Waiting [2020-09-16T13:46:15.772Z] 2a8b12db71e7: Verifying Checksum [2020-09-16T13:46:15.772Z] 2a8b12db71e7: Download complete [2020-09-16T13:46:15.772Z] 31603596830f: Verifying Checksum [2020-09-16T13:46:15.772Z] 31603596830f: Download complete [2020-09-16T13:46:15.772Z] ecc8261a40a4: Verifying Checksum [2020-09-16T13:46:15.772Z] ecc8261a40a4: Download complete [2020-09-16T13:46:15.772Z] 6ca5941a6612: Verifying Checksum [2020-09-16T13:46:15.772Z] 6ca5941a6612: Download complete [2020-09-16T13:46:16.036Z] 31603596830f: Pull complete [2020-09-16T13:46:16.036Z] 2a8b12db71e7: Pull complete [2020-09-16T13:46:16.984Z] 6ca5941a6612: Pull complete [2020-09-16T13:46:16.984Z] ecc8261a40a4: Pull complete [2020-09-16T13:46:16.984Z] Digest: sha256:c336c3cb7d26c4f33e4bbf869d415e221d43967d83d6a5809e4cb0cc2a1e8fe7 [2020-09-16T13:46:16.984Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2020-09-16T13:46:16.984Z] nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer [2020-09-16T13:46:17.102Z] prd-centos7-docker-4c-2g-43584 does not seem to be running inside a container [2020-09-16T13:46:17.146Z] $ docker run -t -d -u 1001:1001 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-rest-go_issue-36 -v /w/workspace/xfoundry_device-rest-go_issue-36:/w/workspace/xfoundry_device-rest-go_issue-36:rw,z -v /w/workspace/xfoundry_device-rest-go_issue-36@tmp:/w/workspace/xfoundry_device-rest-go_issue-36@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 ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat [2020-09-16T13:46:18.854Z] $ docker top a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent [2020-09-16T13:46:19.279Z] [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) [2020-09-16T13:46:19.279Z] [ssh-agent] Looking for ssh-agent implementation... [2020-09-16T13:46:19.460Z] [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) [2020-09-16T13:46:19.462Z] $ docker exec a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a ssh-agent [2020-09-16T13:46:19.612Z] SSH_AUTH_SOCK=/tmp/ssh-1XYbck07GLqt/agent.11 [2020-09-16T13:46:19.612Z] SSH_AGENT_PID=16 [2020-09-16T13:46:19.622Z] Running ssh-add (command line suppressed) [2020-09-16T13:46:19.730Z] Identity added: /w/workspace/xfoundry_device-rest-go_issue-36@tmp/private_key_6903960097716001022.key (/w/workspace/xfoundry_device-rest-go_issue-36@tmp/private_key_6903960097716001022.key) [2020-09-16T13:46:19.779Z] [ssh-agent] Started. [Pipeline] { [Pipeline] sh [2020-09-16T13:46:20.164Z] + git describe --exact-match --tags HEAD [2020-09-16T13:46:20.164Z] fatal: No names found, cannot describe anything. [Pipeline] } [2020-09-16T13:46:20.263Z] $ docker exec --env ******** --env ******** a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a ssh-agent -k [2020-09-16T13:46:20.372Z] unset SSH_AUTH_SOCK; [2020-09-16T13:46:20.372Z] unset SSH_AGENT_PID; [2020-09-16T13:46:20.372Z] echo Agent pid 16 killed; [2020-09-16T13:46:20.415Z] [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] echo [2020-09-16T13:46:20.700Z] [edgeXSemver]: exception occurred checking if HEAD is tagged: hudson.AbortException: script returned exit code 128 [2020-09-16T13:46:20.700Z] This usually means this commit has not been tagged. [Pipeline] sshagent [2020-09-16T13:46:20.875Z] [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) [2020-09-16T13:46:20.875Z] [ssh-agent] Looking for ssh-agent implementation... [2020-09-16T13:46:21.024Z] [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) [2020-09-16T13:46:21.026Z] $ docker exec a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a ssh-agent [2020-09-16T13:46:21.170Z] SSH_AUTH_SOCK=/tmp/ssh-FSEd7xoIueWa/agent.46 [2020-09-16T13:46:21.170Z] SSH_AGENT_PID=51 [2020-09-16T13:46:21.175Z] Running ssh-add (command line suppressed) [2020-09-16T13:46:21.282Z] Identity added: /w/workspace/xfoundry_device-rest-go_issue-36@tmp/private_key_3980827342898877810.key (/w/workspace/xfoundry_device-rest-go_issue-36@tmp/private_key_3980827342898877810.key) [2020-09-16T13:46:21.328Z] [ssh-agent] Started. [Pipeline] { [Pipeline] sh [2020-09-16T13:46:21.705Z] + git semver init [2020-09-16T13:46:21.705Z] # -> Open(): unable to determine branch for HEAD [2020-09-16T13:46:21.705Z] # $GIT_DIR = /w/workspace/xfoundry_device-rest-go_issue-36/.git [2020-09-16T13:46:21.705Z] # $GIT_WORK_TREE = /w/workspace/xfoundry_device-rest-go_issue-36 [2020-09-16T13:46:21.705Z] # $SEMVER_REMOTE_NAME = origin [2020-09-16T13:46:21.705Z] # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org [2020-09-16T13:46:21.705Z] # $SEMVER_USER_NAME = edgex-jenkins [2020-09-16T13:46:21.705Z] # $SEMVER_BRANCH = issue-36 [2020-09-16T13:46:21.705Z] # $SEMVER_TEMP = /tmp/semver-712430361 [2020-09-16T13:46:21.705Z] # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP [2020-09-16T13:46:22.649Z] # '/tmp/semver-712430361' -> '/w/workspace/xfoundry_device-rest-go_issue-36/.semver' [2020-09-16T13:46:22.649Z] # -> Force: false [2020-09-16T13:46:22.649Z] # $SEMVER_DIR = /w/workspace/xfoundry_device-rest-go_issue-36/.semver [Pipeline] } [2020-09-16T13:46:22.673Z] $ docker exec --env ******** --env ******** a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a ssh-agent -k [2020-09-16T13:46:22.773Z] unset SSH_AUTH_SOCK; [2020-09-16T13:46:22.773Z] unset SSH_AGENT_PID; [2020-09-16T13:46:22.773Z] echo Agent pid 51 killed; [2020-09-16T13:46:22.812Z] [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh [2020-09-16T13:46:23.383Z] + git semver [Pipeline] } [2020-09-16T13:46:23.411Z] $ docker stop --time=1 a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a [2020-09-16T13:46:24.835Z] $ docker rm -f a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a [Pipeline] // withDockerContainer [Pipeline] writeFile [Pipeline] stash [2020-09-16T13:46:26.227Z] Stashed 21 file(s) [Pipeline] echo [2020-09-16T13:46:26.248Z] [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] echo [2020-09-16T13:46:26.372Z] Archived original 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 [2020-09-16T13:46:27.459Z] Running on prd-ubuntu18.04-docker-arm64-4c-16g-43576 in /w/workspace/xfoundry_device-rest-go_issue-36 [Pipeline] { [Pipeline] ws [2020-09-16T13:46:27.568Z] Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout [2020-09-16T13:46:32.476Z] using credential edgex-jenkins-ssh [2020-09-16T13:46:32.535Z] Cloning the remote Git repository [2020-09-16T13:46:32.535Z] Cloning with configured refspecs honoured and without tags [2020-09-16T13:46:32.601Z] Cloning repository git@github.com:edgexfoundry/device-rest-go.git [2020-09-16T13:46:32.714Z] > git init /w/workspace/device-rest-go/1 # timeout=10 [2020-09-16T13:46:32.775Z] Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git [2020-09-16T13:46:32.776Z] > git --version # timeout=10 [2020-09-16T13:46:32.805Z] > git --version # 'git version 2.17.1' [2020-09-16T13:46:32.807Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2020-09-16T13:46:32.898Z] > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 [2020-09-16T13:46:36.069Z] Fetching without tags [2020-09-16T13:46:35.994Z] > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 [2020-09-16T13:46:36.012Z] > git config --add remote.origin.fetch +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 [2020-09-16T13:46:36.048Z] > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 [2020-09-16T13:46:36.087Z] Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git [2020-09-16T13:46:36.087Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2020-09-16T13:46:36.099Z] > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 [2020-09-16T13:46:36.553Z] Checking out Revision 39a7a4e777933e4815b2185cae3c86dc2bb2209d (issue-36) [2020-09-16T13:46:36.582Z] > git config core.sparsecheckout # timeout=10 [2020-09-16T13:46:36.595Z] > git checkout -f 39a7a4e777933e4815b2185cae3c86dc2bb2209d # timeout=10 [2020-09-16T13:46:40.856Z] Commit message: "doc: correct build instructions (#36)" [2020-09-16T13:46:40.941Z] > git --version # timeout=10 [2020-09-16T13:46:40.956Z] > git --version # 'git version 2.17.1' [2020-09-16T13:46:41.008Z] fatal: bad object 7909e789ffc0fecf34d47f501ec8db0a80105338 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] unstash [2020-09-16T13:46:42.157Z] Still waiting to schedule task [2020-09-16T13:46:42.158Z] Waiting for next available executor on ‘centos7-docker-4c-2g’ [Pipeline] echo [2020-09-16T13:46:43.285Z] ========================================================= [2020-09-16T13:46:43.285Z] [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.13-alpine] [2020-09-16T13:46:43.285Z] ========================================================= [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:46:44.454Z] + docker build -t ci-base-image-arm64 -f Dockerfile.build --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.13-alpine . [2020-09-16T13:46:45.444Z] Sending build context to Docker daemon 8.048MB [2020-09-16T13:46:45.444Z] Step 1/10 : ARG BASE=golang:1.13-alpine [2020-09-16T13:46:45.444Z] Step 2/10 : FROM ${BASE} [2020-09-16T13:46:45.721Z] 1.13-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 [2020-09-16T13:46:45.721Z] b538f80385f9: Pulling fs layer [2020-09-16T13:46:45.721Z] 74f711af9a0d: Pulling fs layer [2020-09-16T13:46:45.721Z] 99f96fe45779: Pulling fs layer [2020-09-16T13:46:45.721Z] fd7a069fd194: Pulling fs layer [2020-09-16T13:46:45.721Z] 66aa3694b03b: Pulling fs layer [2020-09-16T13:46:45.721Z] 170f70906a0f: Pulling fs layer [2020-09-16T13:46:45.721Z] ad7c5574e4b9: Pulling fs layer [2020-09-16T13:46:45.721Z] e772456be8f7: Pulling fs layer [2020-09-16T13:46:45.721Z] c890913d741a: Pulling fs layer [2020-09-16T13:46:45.721Z] 2480fcc9aa5a: Pulling fs layer [2020-09-16T13:46:45.721Z] 09adf4765672: Pulling fs layer [2020-09-16T13:46:45.721Z] 170f70906a0f: Waiting [2020-09-16T13:46:45.721Z] ad7c5574e4b9: Waiting [2020-09-16T13:46:45.721Z] e772456be8f7: Waiting [2020-09-16T13:46:45.721Z] c890913d741a: Waiting [2020-09-16T13:46:45.721Z] 2480fcc9aa5a: Waiting [2020-09-16T13:46:45.721Z] 09adf4765672: Waiting [2020-09-16T13:46:45.721Z] fd7a069fd194: Waiting [2020-09-16T13:46:45.721Z] 66aa3694b03b: Waiting [2020-09-16T13:46:45.721Z] 74f711af9a0d: Verifying Checksum [2020-09-16T13:46:45.721Z] 74f711af9a0d: Download complete [2020-09-16T13:46:46.002Z] 66aa3694b03b: Verifying Checksum [2020-09-16T13:46:46.002Z] 66aa3694b03b: Download complete [2020-09-16T13:46:46.002Z] 170f70906a0f: Verifying Checksum [2020-09-16T13:46:46.002Z] 170f70906a0f: Download complete [2020-09-16T13:46:46.002Z] b538f80385f9: Verifying Checksum [2020-09-16T13:46:46.608Z] b538f80385f9: Pull complete [2020-09-16T13:46:47.223Z] 74f711af9a0d: Pull complete [2020-09-16T13:46:47.498Z] 99f96fe45779: Pull complete [2020-09-16T13:46:50.143Z] ad7c5574e4b9: Verifying Checksum [2020-09-16T13:46:50.143Z] ad7c5574e4b9: Download complete [2020-09-16T13:46:50.143Z] c890913d741a: Download complete [2020-09-16T13:46:51.596Z] 2480fcc9aa5a: Verifying Checksum [2020-09-16T13:46:51.596Z] 2480fcc9aa5a: Download complete [2020-09-16T13:46:51.596Z] 09adf4765672: Download complete [2020-09-16T13:46:52.193Z] e772456be8f7: Verifying Checksum [2020-09-16T13:46:52.193Z] e772456be8f7: Download complete [2020-09-16T13:46:53.175Z] fd7a069fd194: Verifying Checksum [2020-09-16T13:46:53.175Z] fd7a069fd194: Download complete [2020-09-16T13:47:05.586Z] fd7a069fd194: Pull complete [2020-09-16T13:47:05.586Z] 66aa3694b03b: Pull complete [2020-09-16T13:47:05.586Z] 170f70906a0f: Pull complete [2020-09-16T13:47:08.981Z] ad7c5574e4b9: Pull complete [2020-09-16T13:47:14.389Z] e772456be8f7: Pull complete [2020-09-16T13:47:14.389Z] c890913d741a: Pull complete [2020-09-16T13:47:16.392Z] 2480fcc9aa5a: Pull complete [2020-09-16T13:47:16.666Z] 09adf4765672: Pull complete [2020-09-16T13:47:16.666Z] Digest: sha256:77242015624dc62c2655c7b963a03ae32e90cc8c4d034de6c6efb010c7806a28 [2020-09-16T13:47:16.941Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.13-alpine [2020-09-16T13:47:16.941Z] ---> 2248a725d1cf [2020-09-16T13:47:16.941Z] Step 3/10 : ARG ALPINE_PKG_BASE="make git" [2020-09-16T13:47:21.249Z] ---> Running in 14a3e95eeb15 [2020-09-16T13:47:21.528Z] Removing intermediate container 14a3e95eeb15 [2020-09-16T13:47:21.528Z] ---> 1496339edb43 [2020-09-16T13:47:21.528Z] Step 4/10 : ARG ALPINE_PKG_EXTRA="" [2020-09-16T13:47:21.801Z] ---> Running in 20f9d75e2bbc [2020-09-16T13:47:22.398Z] Removing intermediate container 20f9d75e2bbc [2020-09-16T13:47:22.398Z] ---> 9aff03ce52ab [2020-09-16T13:47:22.398Z] Step 5/10 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' [2020-09-16T13:47:22.398Z] ---> Running in 180254bea7c6 [2020-09-16T13:47:22.671Z] Removing intermediate container 180254bea7c6 [2020-09-16T13:47:22.671Z] ---> 00ed8727d997 [2020-09-16T13:47:22.671Z] Step 6/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2020-09-16T13:47:22.943Z] ---> Running in 20bfd4ad0e86 [2020-09-16T13:47:25.573Z] Removing intermediate container 20bfd4ad0e86 [2020-09-16T13:47:25.573Z] ---> e6e96a84c323 [2020-09-16T13:47:25.573Z] Step 7/10 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2020-09-16T13:47:25.573Z] ---> Running in 5e14f8c98ccc [2020-09-16T13:47:27.005Z] fetch http://nl.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz [2020-09-16T13:47:27.983Z] fetch http://nl.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz [2020-09-16T13:47:28.959Z] OK: 142 MiB in 39 packages [2020-09-16T13:47:29.944Z] Removing intermediate container 5e14f8c98ccc [2020-09-16T13:47:29.944Z] ---> a4b2edaaaf4b [2020-09-16T13:47:29.944Z] Step 8/10 : WORKDIR /device-rest-go [2020-09-16T13:47:30.218Z] ---> Running in b446e010e7ce [2020-09-16T13:47:30.811Z] Removing intermediate container b446e010e7ce [2020-09-16T13:47:30.811Z] ---> 00d8b7c5c4fa [2020-09-16T13:47:30.811Z] Step 9/10 : COPY . . [2020-09-16T13:47:31.790Z] ---> ab18d7eac298 [2020-09-16T13:47:31.790Z] Step 10/10 : RUN go mod download [2020-09-16T13:47:32.063Z] ---> Running in 089b5ede9b5c [2020-09-16T13:47:34.695Z] go: finding github.com/BurntSushi/toml v0.3.1 [2020-09-16T13:47:34.695Z] go: finding github.com/OneOfOne/xxhash v1.2.6 [2020-09-16T13:47:34.695Z] go: finding github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e [2020-09-16T13:47:34.965Z] go: finding github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da [2020-09-16T13:47:34.965Z] go: finding github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 [2020-09-16T13:47:34.965Z] go: finding github.com/bgentry/speakeasy v0.1.0 [2020-09-16T13:47:34.965Z] go: finding github.com/cenkalti/backoff v2.2.1+incompatible [2020-09-16T13:47:34.965Z] go: finding github.com/davecgh/go-spew v1.1.1 [2020-09-16T13:47:34.965Z] go: finding github.com/edgexfoundry/device-sdk-go v1.2.3 [2020-09-16T13:47:34.965Z] go: finding github.com/edgexfoundry/go-mod-bootstrap v0.0.36 [2020-09-16T13:47:34.965Z] go: finding github.com/edgexfoundry/go-mod-configuration v0.0.3 [2020-09-16T13:47:34.965Z] go: finding github.com/edgexfoundry/go-mod-core-contracts v0.1.58 [2020-09-16T13:47:35.263Z] go: finding github.com/edgexfoundry/go-mod-registry v0.1.20 [2020-09-16T13:47:35.263Z] go: finding github.com/edgexfoundry/go-mod-secrets v0.0.17 [2020-09-16T13:47:35.263Z] go: finding github.com/fatih/color v1.7.0 [2020-09-16T13:47:35.263Z] go: finding github.com/fxamacker/cbor/v2 v2.2.0 [2020-09-16T13:47:35.263Z] go: finding github.com/go-kit/kit v0.8.0 [2020-09-16T13:47:35.263Z] go: finding github.com/go-logfmt/logfmt v0.4.0 [2020-09-16T13:47:35.263Z] go: finding github.com/go-stack/stack v1.8.0 [2020-09-16T13:47:35.263Z] go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c [2020-09-16T13:47:35.263Z] go: finding github.com/google/uuid v1.1.0 [2020-09-16T13:47:35.263Z] go: finding github.com/gorilla/mux v1.7.1 [2020-09-16T13:47:35.263Z] go: finding github.com/hashicorp/consul/api v1.1.0 [2020-09-16T13:47:35.263Z] go: finding github.com/hashicorp/consul/sdk v0.1.1 [2020-09-16T13:47:35.538Z] go: finding github.com/hashicorp/errwrap v1.0.0 [2020-09-16T13:47:35.538Z] go: finding github.com/hashicorp/go-cleanhttp v0.5.1 [2020-09-16T13:47:35.538Z] go: finding github.com/hashicorp/go-immutable-radix v1.0.0 [2020-09-16T13:47:35.538Z] go: finding github.com/hashicorp/go-msgpack v0.5.3 [2020-09-16T13:47:35.538Z] go: finding github.com/hashicorp/go-multierror v1.0.0 [2020-09-16T13:47:35.538Z] go: finding github.com/hashicorp/go-rootcerts v1.0.0 [2020-09-16T13:47:35.538Z] go: finding github.com/hashicorp/go-sockaddr v1.0.0 [2020-09-16T13:47:35.538Z] go: finding github.com/hashicorp/go-syslog v1.0.0 [2020-09-16T13:47:35.538Z] go: finding github.com/hashicorp/go-uuid v1.0.1 [2020-09-16T13:47:35.538Z] go: finding github.com/hashicorp/go.net v0.0.1 [2020-09-16T13:47:35.538Z] go: finding github.com/hashicorp/golang-lru v0.5.0 [2020-09-16T13:47:35.814Z] go: finding github.com/hashicorp/logutils v1.0.0 [2020-09-16T13:47:35.814Z] go: finding github.com/hashicorp/mdns v1.0.0 [2020-09-16T13:47:35.814Z] go: finding github.com/hashicorp/memberlist v0.1.3 [2020-09-16T13:47:35.814Z] go: finding github.com/hashicorp/serf v0.8.2 [2020-09-16T13:47:35.814Z] go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 [2020-09-16T13:47:35.814Z] go: finding github.com/mattn/go-colorable v0.0.9 [2020-09-16T13:47:35.814Z] go: finding github.com/mattn/go-isatty v0.0.3 [2020-09-16T13:47:35.814Z] go: finding github.com/miekg/dns v1.0.14 [2020-09-16T13:47:35.814Z] go: finding github.com/mitchellh/cli v1.0.0 [2020-09-16T13:47:35.814Z] go: finding github.com/mitchellh/consulstructure v0.0.0-20190329231841-56fdc4d2da54 [2020-09-16T13:47:35.814Z] go: finding github.com/mitchellh/copystructure v1.0.0 [2020-09-16T13:47:35.814Z] go: finding github.com/mitchellh/go-homedir v1.0.0 [2020-09-16T13:47:36.091Z] go: finding github.com/mitchellh/go-testing-interface v1.0.0 [2020-09-16T13:47:36.092Z] go: finding github.com/mitchellh/gox v0.4.0 [2020-09-16T13:47:36.092Z] go: finding github.com/mitchellh/iochan v1.0.0 [2020-09-16T13:47:36.092Z] go: finding github.com/mitchellh/mapstructure v1.1.2 [2020-09-16T13:47:36.092Z] go: finding github.com/mitchellh/reflectwalk v1.0.0 [2020-09-16T13:47:36.092Z] go: finding github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c [2020-09-16T13:47:36.092Z] go: finding github.com/pelletier/go-toml v1.2.0 [2020-09-16T13:47:36.092Z] go: finding github.com/pkg/errors v0.8.1 [2020-09-16T13:47:36.092Z] go: finding github.com/pmezard/go-difflib v1.0.0 [2020-09-16T13:47:36.092Z] go: finding github.com/posener/complete v1.1.1 [2020-09-16T13:47:36.092Z] go: finding github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f [2020-09-16T13:47:36.092Z] go: finding github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 [2020-09-16T13:47:36.365Z] go: finding github.com/spf13/cast v1.3.0 [2020-09-16T13:47:36.365Z] go: finding github.com/stretchr/objx v0.1.0 [2020-09-16T13:47:36.365Z] go: finding github.com/stretchr/testify v1.5.1 [2020-09-16T13:47:36.365Z] go: finding github.com/ugorji/go v1.1.4 [2020-09-16T13:47:36.365Z] go: finding github.com/x448/float16 v0.8.4 [2020-09-16T13:47:36.365Z] go: finding golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3 [2020-09-16T13:47:36.365Z] go: finding golang.org/x/net v0.0.0-20181201002055-351d144fa1fc [2020-09-16T13:47:36.365Z] go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 [2020-09-16T13:47:36.365Z] go: finding golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5 [2020-09-16T13:47:36.365Z] go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 [2020-09-16T13:47:36.365Z] go: finding gopkg.in/yaml.v2 v2.2.8 [2020-09-16T13:47:46.530Z] Removing intermediate container 089b5ede9b5c [2020-09-16T13:47:46.530Z] ---> 3790c17b817e [2020-09-16T13:47:46.530Z] Successfully built 3790c17b817e [2020-09-16T13:47:46.530Z] Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:47:46.969Z] + docker inspect -f . ci-base-image-arm64 [2020-09-16T13:47:46.969Z] . [Pipeline] withDockerContainer [2020-09-16T13:47:47.266Z] prd-ubuntu18.04-docker-arm64-4c-16g-43576 does not seem to be running inside a container [2020-09-16T13:47:47.356Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@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 ******** ci-base-image-arm64 cat [2020-09-16T13:47:49.239Z] $ docker top e0fa674c5fcb2b5a7f3c2cf22b8cdddd1baf300fe94bc0b9023627e4dc537cef -eo pid,comm [Pipeline] { [Pipeline] sh [2020-09-16T13:47:50.752Z] + go version [2020-09-16T13:47:50.752Z] go version go1.13.13 linux/arm64 [Pipeline] } [2020-09-16T13:47:50.794Z] $ docker stop --time=1 e0fa674c5fcb2b5a7f3c2cf22b8cdddd1baf300fe94bc0b9023627e4dc537cef [2020-09-16T13:47:52.688Z] $ docker rm -f e0fa674c5fcb2b5a7f3c2cf22b8cdddd1baf300fe94bc0b9023627e4dc537cef [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:47:54.067Z] + docker inspect -f . ci-base-image-arm64 [2020-09-16T13:47:54.067Z] . [Pipeline] withDockerContainer [2020-09-16T13:47:54.344Z] prd-ubuntu18.04-docker-arm64-4c-16g-43576 does not seem to be running inside a container [2020-09-16T13:47:54.433Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@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 ******** ci-base-image-arm64 cat [2020-09-16T13:47:56.311Z] $ docker top 35cd6fac485912e65652fbd7db83592562a074a1375cb35226a06ffb611cf5d0 -eo pid,comm [Pipeline] { [Pipeline] sh [2020-09-16T13:47:57.819Z] + make test [2020-09-16T13:47:57.819Z] CGO_ENABLED=0 GO111MODULE=on go test -coverprofile=coverage.out ./... [2020-09-16T13:47:58.800Z] ? github.com/edgexfoundry/device-rest-go [no test files] [2020-09-16T13:48:31.197Z] ? github.com/edgexfoundry/device-rest-go/cmd [no test files] [2020-09-16T13:48:31.197Z] ok github.com/edgexfoundry/device-rest-go/driver 0.041s coverage: 56.3% of statements [2020-09-16T13:48:31.197Z] CGO_ENABLED=0 GO111MODULE=on go vet ./... [2020-09-16T13:48:34.598Z] gofmt -l . [2020-09-16T13:48:34.598Z] [ "`gofmt -l .`" = "" ] [2020-09-16T13:48:34.598Z] ./bin/test-go-mod-tidy.sh [2020-09-16T13:48:34.872Z] ./bin/test-attribution-txt.sh [Pipeline] stash [2020-09-16T13:48:36.190Z] Stashed 1 file(s) [Pipeline] } [2020-09-16T13:48:36.221Z] $ docker stop --time=1 35cd6fac485912e65652fbd7db83592562a074a1375cb35226a06ffb611cf5d0 [2020-09-16T13:48:38.438Z] $ docker rm -f 35cd6fac485912e65652fbd7db83592562a074a1375cb35226a06ffb611cf5d0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh [2020-09-16T13:48:42.266Z] + sudo chown -R jenkins:jenkins . [Pipeline] sh [2020-09-16T13:48:42.622Z] + ls -al . [2020-09-16T13:48:42.622Z] total 128 [2020-09-16T13:48:42.622Z] drwxrwxr-x 9 jenkins jenkins 4096 Sep 16 13:48 . [2020-09-16T13:48:42.622Z] drwxrwxr-x 4 jenkins jenkins 4096 Sep 16 13:46 .. [2020-09-16T13:48:42.622Z] -rw-rw-r-- 1 jenkins jenkins 151 Sep 16 13:46 .dockerignore [2020-09-16T13:48:42.622Z] drwxrwxr-x 8 jenkins jenkins 4096 Sep 16 13:46 .git [2020-09-16T13:48:42.622Z] drwxrwxr-x 2 jenkins jenkins 4096 Sep 16 13:46 .github [2020-09-16T13:48:42.622Z] -rw-rw-r-- 1 jenkins jenkins 339 Sep 16 13:46 .gitignore [2020-09-16T13:48:42.622Z] drwxrwxr-x 3 jenkins jenkins 4096 Sep 16 13:46 .semver [2020-09-16T13:48:42.622Z] -rw-rw-r-- 1 jenkins jenkins 4566 Sep 16 13:46 Attribution.txt [2020-09-16T13:48:42.622Z] -rw-rw-r-- 1 jenkins jenkins 1519 Sep 16 13:46 Dockerfile [2020-09-16T13:48:42.622Z] -rw-rw-r-- 1 jenkins jenkins 989 Sep 16 13:46 Dockerfile.build [2020-09-16T13:48:42.622Z] -rw-rw-r-- 1 jenkins jenkins 702 Sep 16 13:46 Jenkinsfile [2020-09-16T13:48:42.622Z] -rw-rw-r-- 1 jenkins jenkins 11340 Sep 16 13:46 LICENSE [2020-09-16T13:48:42.622Z] -rw-rw-r-- 1 jenkins jenkins 951 Sep 16 13:46 Makefile [2020-09-16T13:48:42.622Z] -rw-rw-r-- 1 jenkins jenkins 5917 Sep 16 13:46 README.md [2020-09-16T13:48:42.622Z] -rw-rw-r-- 1 jenkins jenkins 5 Sep 16 13:46 VERSION [2020-09-16T13:48:42.622Z] drwxrwxr-x 2 jenkins jenkins 4096 Sep 16 13:46 bin [2020-09-16T13:48:42.622Z] drwxrwxr-x 3 jenkins jenkins 4096 Sep 16 13:46 cmd [2020-09-16T13:48:42.622Z] -rw-r--r-- 1 jenkins jenkins 9369 Sep 16 13:48 coverage.out [2020-09-16T13:48:42.622Z] drwxrwxr-x 2 jenkins jenkins 4096 Sep 16 13:48 driver [2020-09-16T13:48:42.622Z] -rw-r--r-- 1 jenkins jenkins 266 Sep 16 13:48 go.mod [2020-09-16T13:48:42.622Z] -rw-r--r-- 1 jenkins jenkins 12533 Sep 16 13:48 go.sum [2020-09-16T13:48:42.622Z] drwxrwxr-x 4 jenkins jenkins 4096 Sep 16 13:46 snap [2020-09-16T13:48:42.622Z] -rw-rw-r-- 1 jenkins jenkins 713 Sep 16 13:46 version.go [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:48:42.995Z] + 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=39a7a4e777933e4815b2185cae3c86dc2bb2209d --label arch=arm64 --label version=0.0.0 . [2020-09-16T13:48:43.276Z] Sending build context to Docker daemon 8.059MB [2020-09-16T13:48:43.560Z] Step 1/25 : ARG BASE=golang:1.13-alpine [2020-09-16T13:48:43.560Z] Step 2/25 : FROM ${BASE} AS builder [2020-09-16T13:48:43.560Z] ---> 3790c17b817e [2020-09-16T13:48:43.560Z] Step 3/25 : ARG MAKE='make build' [2020-09-16T13:48:43.560Z] ---> Running in c3aef36bc1ef [2020-09-16T13:48:44.165Z] Removing intermediate container c3aef36bc1ef [2020-09-16T13:48:44.165Z] ---> 6e2a87b0b427 [2020-09-16T13:48:44.165Z] Step 4/25 : ARG ALPINE_PKG_BASE="make git" [2020-09-16T13:48:44.443Z] ---> Running in 4a6973907ded [2020-09-16T13:48:44.715Z] Removing intermediate container 4a6973907ded [2020-09-16T13:48:44.715Z] ---> 8ebdcaea8b6f [2020-09-16T13:48:44.715Z] Step 5/25 : ARG ALPINE_PKG_EXTRA="" [2020-09-16T13:48:44.988Z] ---> Running in 5f3ed00a1035 [2020-09-16T13:48:45.260Z] Removing intermediate container 5f3ed00a1035 [2020-09-16T13:48:45.260Z] ---> 8c19c8eb2b30 [2020-09-16T13:48:45.260Z] Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2020-09-16T13:48:45.533Z] ---> Running in 696b2e58a8b8 [2020-09-16T13:48:48.165Z] Removing intermediate container 696b2e58a8b8 [2020-09-16T13:48:48.165Z] ---> 8fa229eb2234 [2020-09-16T13:48:48.165Z] Step 7/25 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2020-09-16T13:48:48.165Z] ---> Running in a19695f8fb47 [2020-09-16T13:48:49.591Z] fetch http://nl.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz [2020-09-16T13:48:50.563Z] fetch http://nl.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz [2020-09-16T13:48:51.154Z] OK: 142 MiB in 39 packages [2020-09-16T13:48:52.133Z] Removing intermediate container a19695f8fb47 [2020-09-16T13:48:52.133Z] ---> 4bedf13939ad [2020-09-16T13:48:52.133Z] Step 8/25 : WORKDIR $GOPATH/src/github.com/edgexfoundry/device-rest-go [2020-09-16T13:48:52.133Z] ---> Running in f7d08a64c630 [2020-09-16T13:48:52.727Z] Removing intermediate container f7d08a64c630 [2020-09-16T13:48:52.727Z] ---> 9ed8874ae59e [2020-09-16T13:48:52.727Z] Step 9/25 : COPY go.mod . [2020-09-16T13:48:53.321Z] ---> c3df53b20727 [2020-09-16T13:48:53.321Z] Step 10/25 : COPY Makefile . [2020-09-16T13:48:54.296Z] ---> ddeb0335da9e [2020-09-16T13:48:54.296Z] Step 11/25 : RUN make update [2020-09-16T13:48:54.296Z] ---> Running in e6d03d880ae6 [2020-09-16T13:48:55.723Z] CGO_ENABLED=0 GO111MODULE=on go mod download [2020-09-16T13:48:56.700Z] Removing intermediate container e6d03d880ae6 [2020-09-16T13:48:56.700Z] ---> 77dfaefe6c97 [2020-09-16T13:48:56.700Z] Step 12/25 : COPY . . [2020-09-16T13:48:58.128Z] ---> 14ef8cd97985 [2020-09-16T13:48:58.128Z] Step 13/25 : RUN $MAKE [2020-09-16T13:48:58.128Z] ---> Running in 338ef9a23042 [2020-09-16T13:48:59.564Z] CGO_ENABLED=0 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest-go ./cmd [2020-09-16T13:49:19.045Z] Running on prd-centos7-docker-4c-2g-43586 in /w/workspace/xfoundry_device-rest-go_issue-36 [Pipeline] { [Pipeline] ws [2020-09-16T13:49:19.139Z] Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout [2020-09-16T13:49:21.824Z] using credential edgex-jenkins-ssh [2020-09-16T13:49:21.878Z] Cloning the remote Git repository [2020-09-16T13:49:21.878Z] Cloning with configured refspecs honoured and without tags [2020-09-16T13:49:21.906Z] Cloning repository git@github.com:edgexfoundry/device-rest-go.git [2020-09-16T13:49:21.972Z] > git init /w/workspace/device-rest-go/1 # timeout=10 [2020-09-16T13:49:22.017Z] Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git [2020-09-16T13:49:22.018Z] > git --version # timeout=10 [2020-09-16T13:49:22.026Z] > git --version # 'git version 2.16.5' [2020-09-16T13:49:22.026Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2020-09-16T13:49:22.051Z] > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 [2020-09-16T13:49:22.953Z] Fetching without tags [2020-09-16T13:49:23.369Z] Checking out Revision 39a7a4e777933e4815b2185cae3c86dc2bb2209d (issue-36) [2020-09-16T13:49:22.929Z] > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 [2020-09-16T13:49:22.936Z] > git config --add remote.origin.fetch +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 [2020-09-16T13:49:22.949Z] > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 [2020-09-16T13:49:22.959Z] Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git [2020-09-16T13:49:22.959Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2020-09-16T13:49:22.963Z] > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 [2020-09-16T13:49:23.379Z] > git config core.sparsecheckout # timeout=10 [2020-09-16T13:49:23.384Z] > git checkout -f 39a7a4e777933e4815b2185cae3c86dc2bb2209d # timeout=10 [2020-09-16T13:49:26.378Z] Removing intermediate container 338ef9a23042 [2020-09-16T13:49:26.378Z] ---> 0a5b14715834 [2020-09-16T13:49:26.378Z] Step 14/25 : FROM alpine:latest [2020-09-16T13:49:26.378Z] latest: Pulling from library/alpine [2020-09-16T13:49:26.378Z] b538f80385f9: Already exists [2020-09-16T13:49:26.378Z] Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321 [2020-09-16T13:49:26.378Z] Status: Downloaded newer image for alpine:latest [2020-09-16T13:49:26.378Z] ---> 62ee0e9f8440 [2020-09-16T13:49:26.378Z] Step 15/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' [2020-09-16T13:49:26.648Z] ---> Running in ca39a081cd3d [2020-09-16T13:49:26.917Z] Removing intermediate container ca39a081cd3d [2020-09-16T13:49:26.917Z] ---> 2f6413340e9d [2020-09-16T13:49:26.917Z] Step 16/25 : LABEL Name=device-rest-go Version=${VERSION} [2020-09-16T13:49:26.994Z] Commit message: "doc: correct build instructions (#36)" [2020-09-16T13:49:27.020Z] > git --version # timeout=10 [2020-09-16T13:49:27.028Z] > git --version # 'git version 2.16.5' [2020-09-16T13:49:27.035Z] fatal: bad object 7909e789ffc0fecf34d47f501ec8db0a80105338 [2020-09-16T13:49:27.189Z] ---> Running in 9a2b9b70aa1a [2020-09-16T13:49:27.482Z] Removing intermediate container 9a2b9b70aa1a [2020-09-16T13:49:27.482Z] ---> 2b2866a0206d [2020-09-16T13:49:27.482Z] Step 17/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/LICENSE / [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] unstash [2020-09-16T13:49:28.475Z] ---> a203a7adef68 [2020-09-16T13:49:28.475Z] Step 18/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/Attribution.txt / [Pipeline] echo [2020-09-16T13:49:28.689Z] ========================================================= [2020-09-16T13:49:28.689Z] [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-alpine] [2020-09-16T13:49:28.689Z] ========================================================= [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:49:29.076Z] ---> 6342c49ffd5d [2020-09-16T13:49:29.076Z] Step 19/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/cmd / [2020-09-16T13:49:29.433Z] + docker build -t ci-base-image-x86_64 -f Dockerfile.build --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-alpine . [2020-09-16T13:49:29.697Z] Sending build context to Docker daemon 8.048MB [2020-09-16T13:49:29.697Z] Step 1/10 : ARG BASE=golang:1.13-alpine [2020-09-16T13:49:29.697Z] Step 2/10 : FROM ${BASE} [2020-09-16T13:49:29.697Z] 1.13-alpine: Pulling from edgex-devops/edgex-golang-base [2020-09-16T13:49:29.697Z] df20fa9351a1: Pulling fs layer [2020-09-16T13:49:29.697Z] ed8968b2872e: Pulling fs layer [2020-09-16T13:49:29.697Z] a92cc7c5fd73: Pulling fs layer [2020-09-16T13:49:29.697Z] 2dd03ba5bac4: Pulling fs layer [2020-09-16T13:49:29.697Z] 1e091d79d1de: Pulling fs layer [2020-09-16T13:49:29.697Z] 481702a1767f: Pulling fs layer [2020-09-16T13:49:29.697Z] f64a6f60c768: Pulling fs layer [2020-09-16T13:49:29.697Z] e78d2573fc39: Pulling fs layer [2020-09-16T13:49:29.697Z] e876d2f968b6: Pulling fs layer [2020-09-16T13:49:29.697Z] ce8a83651883: Pulling fs layer [2020-09-16T13:49:29.697Z] 07967f4d0e4b: Pulling fs layer [2020-09-16T13:49:29.697Z] f64a6f60c768: Waiting [2020-09-16T13:49:29.697Z] e78d2573fc39: Waiting [2020-09-16T13:49:29.697Z] e876d2f968b6: Waiting [2020-09-16T13:49:29.697Z] 07967f4d0e4b: Waiting [2020-09-16T13:49:29.697Z] ce8a83651883: Waiting [2020-09-16T13:49:29.697Z] 1e091d79d1de: Waiting [2020-09-16T13:49:29.697Z] 2dd03ba5bac4: Waiting [2020-09-16T13:49:29.697Z] 481702a1767f: Waiting [2020-09-16T13:49:29.697Z] a92cc7c5fd73: Verifying Checksum [2020-09-16T13:49:29.697Z] a92cc7c5fd73: Download complete [2020-09-16T13:49:29.697Z] ed8968b2872e: Verifying Checksum [2020-09-16T13:49:29.697Z] ed8968b2872e: Download complete [2020-09-16T13:49:29.959Z] 1e091d79d1de: Verifying Checksum [2020-09-16T13:49:29.959Z] 1e091d79d1de: Download complete [2020-09-16T13:49:29.959Z] 481702a1767f: Verifying Checksum [2020-09-16T13:49:29.959Z] 481702a1767f: Download complete [2020-09-16T13:49:29.959Z] df20fa9351a1: Verifying Checksum [2020-09-16T13:49:29.959Z] df20fa9351a1: Download complete [2020-09-16T13:49:30.220Z] df20fa9351a1: Pull complete [2020-09-16T13:49:30.220Z] ed8968b2872e: Pull complete [2020-09-16T13:49:30.482Z] a92cc7c5fd73: Pull complete [2020-09-16T13:49:30.506Z] ---> 2ee46ce1c675 [2020-09-16T13:49:30.506Z] Step 20/25 : EXPOSE 49986 [2020-09-16T13:49:30.506Z] ---> Running in ad62f65347f8 [2020-09-16T13:49:30.779Z] Removing intermediate container ad62f65347f8 [2020-09-16T13:49:30.779Z] ---> 11a51f39eef8 [2020-09-16T13:49:30.779Z] Step 21/25 : ENTRYPOINT ["/device-rest-go"] [2020-09-16T13:49:30.779Z] ---> Running in 27bc14ef95f5 [2020-09-16T13:49:31.376Z] Removing intermediate container 27bc14ef95f5 [2020-09-16T13:49:31.376Z] ---> db9d116c529e [2020-09-16T13:49:31.376Z] Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] [2020-09-16T13:49:31.376Z] ---> Running in affe14a31fcf [2020-09-16T13:49:31.969Z] Removing intermediate container affe14a31fcf [2020-09-16T13:49:31.969Z] ---> c2fdef0a99e6 [2020-09-16T13:49:31.969Z] Step 23/25 : LABEL arch=arm64 [2020-09-16T13:49:31.969Z] ---> Running in 8cdd389288ea [2020-09-16T13:49:32.564Z] Removing intermediate container 8cdd389288ea [2020-09-16T13:49:32.564Z] ---> 1fa12ee03531 [2020-09-16T13:49:32.564Z] Step 24/25 : LABEL git_sha=39a7a4e777933e4815b2185cae3c86dc2bb2209d [2020-09-16T13:49:32.564Z] ---> Running in 833888efd096 [2020-09-16T13:49:33.041Z] f64a6f60c768: Verifying Checksum [2020-09-16T13:49:33.041Z] f64a6f60c768: Download complete [2020-09-16T13:49:33.041Z] e876d2f968b6: Verifying Checksum [2020-09-16T13:49:33.041Z] e876d2f968b6: Download complete [2020-09-16T13:49:33.186Z] Removing intermediate container 833888efd096 [2020-09-16T13:49:33.187Z] ---> fa5778fe7bce [2020-09-16T13:49:33.187Z] Step 25/25 : LABEL version=0.0.0 [2020-09-16T13:49:33.187Z] ---> Running in 834bc212ee0e [2020-09-16T13:49:33.619Z] ce8a83651883: Verifying Checksum [2020-09-16T13:49:33.619Z] ce8a83651883: Download complete [2020-09-16T13:49:33.619Z] 07967f4d0e4b: Verifying Checksum [2020-09-16T13:49:33.619Z] 07967f4d0e4b: Download complete [2020-09-16T13:49:33.798Z] Removing intermediate container 834bc212ee0e [2020-09-16T13:49:33.798Z] ---> e1a3d59e4015 [2020-09-16T13:49:33.798Z] [Warning] One or more build-args [ARCH] were not consumed [2020-09-16T13:49:33.798Z] Successfully built e1a3d59e4015 [2020-09-16T13:49:33.798Z] Successfully tagged docker-device-rest-go-arm64:latest [Pipeline] } [Pipeline] // script [Pipeline] } [2020-09-16T13:49:34.197Z] e78d2573fc39: Verifying Checksum [2020-09-16T13:49:34.197Z] e78d2573fc39: Download complete [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) [2020-09-16T13:49:34.462Z] 2dd03ba5bac4: Verifying Checksum [2020-09-16T13:49:34.462Z] 2dd03ba5bac4: Download complete 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 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [2020-09-16T13:49:39.779Z] 2dd03ba5bac4: Pull complete [2020-09-16T13:49:39.779Z] 1e091d79d1de: Pull complete [2020-09-16T13:49:39.779Z] 481702a1767f: Pull complete [2020-09-16T13:49:49.809Z] f64a6f60c768: Pull complete [2020-09-16T13:49:52.372Z] e78d2573fc39: Pull complete [2020-09-16T13:49:52.372Z] e876d2f968b6: Pull complete [2020-09-16T13:49:53.330Z] ce8a83651883: Pull complete [2020-09-16T13:49:53.330Z] 07967f4d0e4b: Pull complete [2020-09-16T13:49:53.330Z] Digest: sha256:323246222269c44bbdf124594b811e87e5df8ffc2c0adf7c0e497dcaec6e6afe [2020-09-16T13:49:53.330Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-alpine [2020-09-16T13:49:53.330Z] ---> 5d7c900382c6 [2020-09-16T13:49:53.330Z] Step 3/10 : ARG ALPINE_PKG_BASE="make git" [2020-09-16T13:49:55.251Z] ---> Running in 0e6109e3716b [2020-09-16T13:49:55.251Z] Removing intermediate container 0e6109e3716b [2020-09-16T13:49:55.251Z] ---> ed44e6f4b013 [2020-09-16T13:49:55.251Z] Step 4/10 : ARG ALPINE_PKG_EXTRA="" [2020-09-16T13:49:55.251Z] ---> Running in e36bb439ccc5 [2020-09-16T13:49:55.519Z] Removing intermediate container e36bb439ccc5 [2020-09-16T13:49:55.519Z] ---> 35a05acd6921 [2020-09-16T13:49:55.519Z] Step 5/10 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' [2020-09-16T13:49:55.519Z] ---> Running in 365cf9f4711d [2020-09-16T13:49:55.781Z] Removing intermediate container 365cf9f4711d [2020-09-16T13:49:55.781Z] ---> 73de8862f8ee [2020-09-16T13:49:55.781Z] Step 6/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2020-09-16T13:49:55.781Z] ---> Running in 9a445348785a [2020-09-16T13:49:57.176Z] Removing intermediate container 9a445348785a [2020-09-16T13:49:57.176Z] ---> ceeb890433c1 [2020-09-16T13:49:57.176Z] Step 7/10 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2020-09-16T13:49:57.176Z] ---> Running in 4ad261a2b362 [2020-09-16T13:49:57.759Z] fetch http://nl.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz [2020-09-16T13:49:58.709Z] fetch http://nl.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz [2020-09-16T13:50:00.102Z] OK: 166 MiB in 39 packages [2020-09-16T13:50:00.680Z] Removing intermediate container 4ad261a2b362 [2020-09-16T13:50:00.680Z] ---> 9eb8ec8e5f0f [2020-09-16T13:50:00.680Z] Step 8/10 : WORKDIR /device-rest-go [2020-09-16T13:50:00.680Z] ---> Running in e327f2f5e5f1 [2020-09-16T13:50:00.680Z] Removing intermediate container e327f2f5e5f1 [2020-09-16T13:50:00.680Z] ---> ddb8fc492e1c [2020-09-16T13:50:00.680Z] Step 9/10 : COPY . . [2020-09-16T13:50:01.257Z] ---> 369a1a05f66d [2020-09-16T13:50:01.257Z] Step 10/10 : RUN go mod download [2020-09-16T13:50:01.522Z] ---> Running in e968afa64ce6 [2020-09-16T13:50:03.446Z] go: finding github.com/BurntSushi/toml v0.3.1 [2020-09-16T13:50:03.446Z] go: finding github.com/OneOfOne/xxhash v1.2.6 [2020-09-16T13:50:03.446Z] go: finding github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e [2020-09-16T13:50:03.446Z] go: finding github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da [2020-09-16T13:50:03.446Z] go: finding github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 [2020-09-16T13:50:03.446Z] go: finding github.com/bgentry/speakeasy v0.1.0 [2020-09-16T13:50:03.709Z] go: finding github.com/cenkalti/backoff v2.2.1+incompatible [2020-09-16T13:50:03.709Z] go: finding github.com/davecgh/go-spew v1.1.1 [2020-09-16T13:50:03.709Z] go: finding github.com/edgexfoundry/device-sdk-go v1.2.3 [2020-09-16T13:50:03.709Z] go: finding github.com/edgexfoundry/go-mod-bootstrap v0.0.36 [2020-09-16T13:50:03.709Z] go: finding github.com/edgexfoundry/go-mod-configuration v0.0.3 [2020-09-16T13:50:03.709Z] go: finding github.com/edgexfoundry/go-mod-core-contracts v0.1.58 [2020-09-16T13:50:03.709Z] go: finding github.com/edgexfoundry/go-mod-registry v0.1.20 [2020-09-16T13:50:03.709Z] go: finding github.com/edgexfoundry/go-mod-secrets v0.0.17 [2020-09-16T13:50:03.709Z] go: finding github.com/fatih/color v1.7.0 [2020-09-16T13:50:03.709Z] go: finding github.com/fxamacker/cbor/v2 v2.2.0 [2020-09-16T13:50:03.971Z] go: finding github.com/go-kit/kit v0.8.0 [2020-09-16T13:50:03.971Z] go: finding github.com/go-logfmt/logfmt v0.4.0 [2020-09-16T13:50:03.971Z] go: finding github.com/go-stack/stack v1.8.0 [2020-09-16T13:50:03.971Z] go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c [2020-09-16T13:50:03.971Z] go: finding github.com/google/uuid v1.1.0 [2020-09-16T13:50:03.971Z] go: finding github.com/gorilla/mux v1.7.1 [2020-09-16T13:50:03.971Z] go: finding github.com/hashicorp/consul/api v1.1.0 [2020-09-16T13:50:03.971Z] go: finding github.com/hashicorp/consul/sdk v0.1.1 [2020-09-16T13:50:03.971Z] go: finding github.com/hashicorp/errwrap v1.0.0 [2020-09-16T13:50:03.971Z] go: finding github.com/hashicorp/go-cleanhttp v0.5.1 [2020-09-16T13:50:03.971Z] go: finding github.com/hashicorp/go-immutable-radix v1.0.0 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/go-msgpack v0.5.3 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/go-multierror v1.0.0 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/go-rootcerts v1.0.0 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/go-sockaddr v1.0.0 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/go-syslog v1.0.0 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/go-uuid v1.0.1 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/go.net v0.0.1 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/golang-lru v0.5.0 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/logutils v1.0.0 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/mdns v1.0.0 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/memberlist v0.1.3 [2020-09-16T13:50:04.234Z] go: finding github.com/hashicorp/serf v0.8.2 [2020-09-16T13:50:04.496Z] go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 [2020-09-16T13:50:04.496Z] go: finding github.com/mattn/go-colorable v0.0.9 [2020-09-16T13:50:04.496Z] go: finding github.com/mattn/go-isatty v0.0.3 [2020-09-16T13:50:04.496Z] go: finding github.com/miekg/dns v1.0.14 [2020-09-16T13:50:04.496Z] go: finding github.com/mitchellh/cli v1.0.0 [2020-09-16T13:50:04.496Z] go: finding github.com/mitchellh/consulstructure v0.0.0-20190329231841-56fdc4d2da54 [2020-09-16T13:50:04.496Z] go: finding github.com/mitchellh/copystructure v1.0.0 [2020-09-16T13:50:04.496Z] go: finding github.com/mitchellh/go-homedir v1.0.0 [2020-09-16T13:50:04.496Z] go: finding github.com/mitchellh/go-testing-interface v1.0.0 [2020-09-16T13:50:04.496Z] go: finding github.com/mitchellh/gox v0.4.0 [2020-09-16T13:50:04.496Z] go: finding github.com/mitchellh/iochan v1.0.0 [2020-09-16T13:50:04.758Z] go: finding github.com/mitchellh/mapstructure v1.1.2 [2020-09-16T13:50:04.758Z] go: finding github.com/mitchellh/reflectwalk v1.0.0 [2020-09-16T13:50:04.758Z] go: finding github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c [2020-09-16T13:50:04.758Z] go: finding github.com/pelletier/go-toml v1.2.0 [2020-09-16T13:50:04.758Z] go: finding github.com/pkg/errors v0.8.1 [2020-09-16T13:50:04.758Z] go: finding github.com/pmezard/go-difflib v1.0.0 [2020-09-16T13:50:04.758Z] go: finding github.com/posener/complete v1.1.1 [2020-09-16T13:50:04.758Z] go: finding github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f [2020-09-16T13:50:04.758Z] go: finding github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 [2020-09-16T13:50:04.758Z] go: finding github.com/spf13/cast v1.3.0 [2020-09-16T13:50:04.758Z] go: finding github.com/stretchr/objx v0.1.0 [2020-09-16T13:50:05.022Z] go: finding github.com/stretchr/testify v1.5.1 [2020-09-16T13:50:05.022Z] go: finding github.com/ugorji/go v1.1.4 [2020-09-16T13:50:05.022Z] go: finding github.com/x448/float16 v0.8.4 [2020-09-16T13:50:05.022Z] go: finding golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3 [2020-09-16T13:50:05.022Z] go: finding golang.org/x/net v0.0.0-20181201002055-351d144fa1fc [2020-09-16T13:50:05.022Z] go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 [2020-09-16T13:50:05.022Z] go: finding golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5 [2020-09-16T13:50:05.022Z] go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 [2020-09-16T13:50:05.022Z] go: finding gopkg.in/yaml.v2 v2.2.8 [2020-09-16T13:50:13.258Z] Removing intermediate container e968afa64ce6 [2020-09-16T13:50:13.258Z] ---> 1047427f137e [2020-09-16T13:50:13.258Z] Successfully built 1047427f137e [2020-09-16T13:50:13.258Z] Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:50:13.632Z] + docker inspect -f . ci-base-image-x86_64 [2020-09-16T13:50:13.632Z] . [Pipeline] withDockerContainer [2020-09-16T13:50:13.757Z] prd-centos7-docker-4c-2g-43586 does not seem to be running inside a container [2020-09-16T13:50:13.806Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@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 ******** ci-base-image-x86_64 cat [2020-09-16T13:50:14.968Z] $ docker top b770099f3522d601dbc1688dfe6c0fd193140923371e26d69c3ea93ff61b709d -eo pid,comm [Pipeline] { [Pipeline] sh [2020-09-16T13:50:15.529Z] + go version [2020-09-16T13:50:15.529Z] go version go1.13.13 linux/amd64 [Pipeline] } [2020-09-16T13:50:15.561Z] $ docker stop --time=1 b770099f3522d601dbc1688dfe6c0fd193140923371e26d69c3ea93ff61b709d [2020-09-16T13:50:16.924Z] $ docker rm -f b770099f3522d601dbc1688dfe6c0fd193140923371e26d69c3ea93ff61b709d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:50:18.050Z] + docker inspect -f . ci-base-image-x86_64 [2020-09-16T13:50:18.050Z] . [Pipeline] withDockerContainer [2020-09-16T13:50:18.166Z] prd-centos7-docker-4c-2g-43586 does not seem to be running inside a container [2020-09-16T13:50:18.211Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@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 ******** ci-base-image-x86_64 cat [2020-09-16T13:50:18.904Z] $ docker top 7f7c74eaa2a5b652b800f89ffc4ee2933d909fc2f26f3989d33e6058e840f58b -eo pid,comm [Pipeline] { [Pipeline] sh [2020-09-16T13:50:19.575Z] + make test [2020-09-16T13:50:19.575Z] CGO_ENABLED=0 GO111MODULE=on go test -coverprofile=coverage.out ./... [2020-09-16T13:50:20.537Z] ? github.com/edgexfoundry/device-rest-go [no test files] [2020-09-16T13:50:30.689Z] ? github.com/edgexfoundry/device-rest-go/cmd [no test files] [2020-09-16T13:50:30.690Z] ok github.com/edgexfoundry/device-rest-go/driver 0.020s coverage: 56.3% of statements [2020-09-16T13:50:30.690Z] CGO_ENABLED=0 GO111MODULE=on go vet ./... [2020-09-16T13:50:32.090Z] gofmt -l . [2020-09-16T13:50:32.090Z] [ "`gofmt -l .`" = "" ] [2020-09-16T13:50:32.090Z] ./bin/test-go-mod-tidy.sh [2020-09-16T13:50:32.356Z] ./bin/test-attribution-txt.sh [Pipeline] stash [2020-09-16T13:50:32.674Z] Warning: overwriting stash ‘coverage-report’ [2020-09-16T13:50:32.946Z] Stashed 1 file(s) [Pipeline] } [2020-09-16T13:50:32.966Z] $ docker stop --time=1 7f7c74eaa2a5b652b800f89ffc4ee2933d909fc2f26f3989d33e6058e840f58b [2020-09-16T13:50:35.214Z] $ docker rm -f 7f7c74eaa2a5b652b800f89ffc4ee2933d909fc2f26f3989d33e6058e840f58b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh [2020-09-16T13:50:37.173Z] + sudo chown -R jenkins:jenkins . [Pipeline] sh [2020-09-16T13:50:37.496Z] + ls -al . [2020-09-16T13:50:37.496Z] total 96 [2020-09-16T13:50:37.496Z] drwxrwxr-x. 9 jenkins jenkins 4096 Sep 16 13:50 . [2020-09-16T13:50:37.496Z] drwxrwxr-x. 4 jenkins jenkins 28 Sep 16 13:49 .. [2020-09-16T13:50:37.496Z] -rw-rw-r--. 1 jenkins jenkins 4566 Sep 16 13:49 Attribution.txt [2020-09-16T13:50:37.496Z] drwxrwxr-x. 2 jenkins jenkins 64 Sep 16 13:49 bin [2020-09-16T13:50:37.496Z] drwxrwxr-x. 3 jenkins jenkins 32 Sep 16 13:49 cmd [2020-09-16T13:50:37.496Z] -rw-r--r--. 1 jenkins jenkins 9369 Sep 16 13:50 coverage.out [2020-09-16T13:50:37.496Z] -rw-rw-r--. 1 jenkins jenkins 1519 Sep 16 13:49 Dockerfile [2020-09-16T13:50:37.496Z] -rw-rw-r--. 1 jenkins jenkins 989 Sep 16 13:49 Dockerfile.build [2020-09-16T13:50:37.496Z] -rw-rw-r--. 1 jenkins jenkins 151 Sep 16 13:49 .dockerignore [2020-09-16T13:50:37.496Z] drwxrwxr-x. 2 jenkins jenkins 93 Sep 16 13:50 driver [2020-09-16T13:50:37.496Z] drwxrwxr-x. 8 jenkins jenkins 162 Sep 16 13:49 .git [2020-09-16T13:50:37.496Z] drwxrwxr-x. 2 jenkins jenkins 38 Sep 16 13:49 .github [2020-09-16T13:50:37.496Z] -rw-rw-r--. 1 jenkins jenkins 339 Sep 16 13:49 .gitignore [2020-09-16T13:50:37.496Z] -rw-r--r--. 1 jenkins jenkins 266 Sep 16 13:50 go.mod [2020-09-16T13:50:37.496Z] -rw-r--r--. 1 jenkins jenkins 12533 Sep 16 13:50 go.sum [2020-09-16T13:50:37.496Z] -rw-rw-r--. 1 jenkins jenkins 702 Sep 16 13:49 Jenkinsfile [2020-09-16T13:50:37.496Z] -rw-rw-r--. 1 jenkins jenkins 11340 Sep 16 13:49 LICENSE [2020-09-16T13:50:37.496Z] -rw-rw-r--. 1 jenkins jenkins 951 Sep 16 13:49 Makefile [2020-09-16T13:50:37.496Z] -rw-rw-r--. 1 jenkins jenkins 5917 Sep 16 13:49 README.md [2020-09-16T13:50:37.496Z] drwxrwxr-x. 3 jenkins jenkins 48 Sep 16 13:49 .semver [2020-09-16T13:50:37.496Z] drwxrwxr-x. 4 jenkins jenkins 54 Sep 16 13:49 snap [2020-09-16T13:50:37.496Z] -rw-rw-r--. 1 jenkins jenkins 5 Sep 16 13:46 VERSION [2020-09-16T13:50:37.496Z] -rw-rw-r--. 1 jenkins jenkins 713 Sep 16 13:49 version.go [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:50:37.838Z] + 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=39a7a4e777933e4815b2185cae3c86dc2bb2209d --label arch=amd64 --label version=0.0.0 . [2020-09-16T13:50:38.100Z] Sending build context to Docker daemon 8.059MB [2020-09-16T13:50:38.100Z] Step 1/25 : ARG BASE=golang:1.13-alpine [2020-09-16T13:50:38.100Z] Step 2/25 : FROM ${BASE} AS builder [2020-09-16T13:50:38.100Z] ---> 1047427f137e [2020-09-16T13:50:38.100Z] Step 3/25 : ARG MAKE='make build' [2020-09-16T13:50:38.100Z] ---> Running in 9cca298e72bd [2020-09-16T13:50:38.362Z] Removing intermediate container 9cca298e72bd [2020-09-16T13:50:38.362Z] ---> d5f6de589770 [2020-09-16T13:50:38.362Z] Step 4/25 : ARG ALPINE_PKG_BASE="make git" [2020-09-16T13:50:38.362Z] ---> Running in 0219ec1eaf6a [2020-09-16T13:50:38.624Z] Removing intermediate container 0219ec1eaf6a [2020-09-16T13:50:38.624Z] ---> d49249dc97ba [2020-09-16T13:50:38.624Z] Step 5/25 : ARG ALPINE_PKG_EXTRA="" [2020-09-16T13:50:38.624Z] ---> Running in 2c13f0222b5e [2020-09-16T13:50:38.889Z] Removing intermediate container 2c13f0222b5e [2020-09-16T13:50:38.889Z] ---> 339934347bb5 [2020-09-16T13:50:38.889Z] Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2020-09-16T13:50:38.889Z] ---> Running in fa4f6744f50e [2020-09-16T13:50:39.837Z] Removing intermediate container fa4f6744f50e [2020-09-16T13:50:39.837Z] ---> 8e0269491226 [2020-09-16T13:50:39.837Z] Step 7/25 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2020-09-16T13:50:39.837Z] ---> Running in 97901d630e25 [2020-09-16T13:50:40.412Z] fetch http://nl.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz [2020-09-16T13:50:41.803Z] fetch http://nl.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz [2020-09-16T13:50:43.724Z] OK: 166 MiB in 39 packages [2020-09-16T13:50:44.302Z] Removing intermediate container 97901d630e25 [2020-09-16T13:50:44.302Z] ---> 3962c035ceed [2020-09-16T13:50:44.302Z] Step 8/25 : WORKDIR $GOPATH/src/github.com/edgexfoundry/device-rest-go [2020-09-16T13:50:44.302Z] ---> Running in 795a25d21276 [2020-09-16T13:50:44.564Z] Removing intermediate container 795a25d21276 [2020-09-16T13:50:44.564Z] ---> 36be08038871 [2020-09-16T13:50:44.564Z] Step 9/25 : COPY go.mod . [2020-09-16T13:50:44.832Z] ---> 543fde7cbe9c [2020-09-16T13:50:44.832Z] Step 10/25 : COPY Makefile . [2020-09-16T13:50:45.094Z] ---> 9c6949271b98 [2020-09-16T13:50:45.094Z] Step 11/25 : RUN make update [2020-09-16T13:50:45.094Z] ---> Running in 89d042e26e4d [2020-09-16T13:50:45.671Z] CGO_ENABLED=0 GO111MODULE=on go mod download [2020-09-16T13:50:46.244Z] Removing intermediate container 89d042e26e4d [2020-09-16T13:50:46.244Z] ---> 69714e8cb493 [2020-09-16T13:50:46.244Z] Step 12/25 : COPY . . [2020-09-16T13:50:46.507Z] ---> a28e175868ae [2020-09-16T13:50:46.507Z] Step 13/25 : RUN $MAKE [2020-09-16T13:50:46.769Z] ---> Running in ebbdab111a30 [2020-09-16T13:50:47.033Z] CGO_ENABLED=0 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest-go ./cmd [2020-09-16T13:50:57.193Z] Removing intermediate container ebbdab111a30 [2020-09-16T13:50:57.193Z] ---> 28b3281ead2a [2020-09-16T13:50:57.193Z] Step 14/25 : FROM alpine:latest [2020-09-16T13:50:57.193Z] latest: Pulling from library/alpine [2020-09-16T13:50:57.455Z] df20fa9351a1: Already exists [2020-09-16T13:50:57.455Z] Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321 [2020-09-16T13:50:57.455Z] Status: Downloaded newer image for alpine:latest [2020-09-16T13:50:57.455Z] ---> a24bb4013296 [2020-09-16T13:50:57.455Z] Step 15/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' [2020-09-16T13:50:57.455Z] ---> Running in dfd8a897dfce [2020-09-16T13:50:57.717Z] Removing intermediate container dfd8a897dfce [2020-09-16T13:50:57.717Z] ---> 6d837bd4b3cb [2020-09-16T13:50:57.717Z] Step 16/25 : LABEL Name=device-rest-go Version=${VERSION} [2020-09-16T13:50:57.717Z] ---> Running in e18a1bdf9fc8 [2020-09-16T13:50:57.978Z] Removing intermediate container e18a1bdf9fc8 [2020-09-16T13:50:57.978Z] ---> edcba9d9b602 [2020-09-16T13:50:57.978Z] Step 17/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/LICENSE / [2020-09-16T13:50:58.241Z] ---> a31337214b8b [2020-09-16T13:50:58.241Z] Step 18/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/Attribution.txt / [2020-09-16T13:50:58.502Z] ---> 0fe3322c3b57 [2020-09-16T13:50:58.502Z] Step 19/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/cmd / [2020-09-16T13:50:59.077Z] ---> 0280390279c1 [2020-09-16T13:50:59.077Z] Step 20/25 : EXPOSE 49986 [2020-09-16T13:50:59.077Z] ---> Running in 202ed6914444 [2020-09-16T13:50:59.339Z] Removing intermediate container 202ed6914444 [2020-09-16T13:50:59.339Z] ---> c7273be29c63 [2020-09-16T13:50:59.339Z] Step 21/25 : ENTRYPOINT ["/device-rest-go"] [2020-09-16T13:50:59.339Z] ---> Running in 93ff82312a7e [2020-09-16T13:50:59.605Z] Removing intermediate container 93ff82312a7e [2020-09-16T13:50:59.605Z] ---> ff5f3f378382 [2020-09-16T13:50:59.605Z] Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] [2020-09-16T13:50:59.605Z] ---> Running in d33a4572c51e [2020-09-16T13:50:59.605Z] Removing intermediate container d33a4572c51e [2020-09-16T13:50:59.605Z] ---> 703e32ce0dee [2020-09-16T13:50:59.605Z] Step 23/25 : LABEL arch=amd64 [2020-09-16T13:50:59.870Z] ---> Running in cc563b21df5b [2020-09-16T13:50:59.870Z] Removing intermediate container cc563b21df5b [2020-09-16T13:50:59.870Z] ---> ed9522935fb0 [2020-09-16T13:50:59.870Z] Step 24/25 : LABEL git_sha=39a7a4e777933e4815b2185cae3c86dc2bb2209d [2020-09-16T13:51:00.134Z] ---> Running in c1c038dcf6b0 [2020-09-16T13:51:00.134Z] Removing intermediate container c1c038dcf6b0 [2020-09-16T13:51:00.134Z] ---> 8cfbe2fe2de8 [2020-09-16T13:51:00.134Z] Step 25/25 : LABEL version=0.0.0 [2020-09-16T13:51:00.134Z] ---> Running in 013de361a6be [2020-09-16T13:51:00.396Z] Removing intermediate container 013de361a6be [2020-09-16T13:51:00.396Z] ---> 37667ae1d588 [2020-09-16T13:51:00.396Z] [Warning] One or more build-args [ARCH] were not consumed [2020-09-16T13:51:00.396Z] Successfully built 37667ae1d588 [2020-09-16T13:51:00.396Z] Successfully tagged docker-device-rest-go:latest [Pipeline] } [Pipeline] // script [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 [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] wrap [2020-09-16T13:51:03.533Z] provisioning config files... [2020-09-16T13:51:03.545Z] copy managed file [device-rest-go-codecov-token] to file:/w/workspace/xfoundry_device-rest-go_issue-36@tmp/config4323762909757592585tmp [Pipeline] { [Pipeline] sh [2020-09-16T13:51:04.001Z] + curl -s https://codecov.io/bash [2020-09-16T13:51:04.001Z] + bash -s - -t @/w/workspace/xfoundry_device-rest-go_issue-36@tmp/config4323762909757592585tmp [Pipeline] } [2020-09-16T13:51:04.284Z] Deleting 1 temporary files [Pipeline] // wrap [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Scan) Stage "Snyk Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Clair Scan) Stage "Clair Scan" 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] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] libraryResource [Pipeline] sh [2020-09-16T13:51:07.731Z] ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh [2020-09-16T13:51:08.339Z] ---> package-listing.sh [2020-09-16T13:51:08.339Z] ++ facter osfamily [2020-09-16T13:51:08.339Z] ++ tr '[:upper:]' '[:lower:]' [2020-09-16T13:51:08.339Z] + OS_FAMILY=redhat [2020-09-16T13:51:08.339Z] + workspace=/w/workspace/xfoundry_device-rest-go_issue-36 [2020-09-16T13:51:08.339Z] + START_PACKAGES=/tmp/packages_start.txt [2020-09-16T13:51:08.339Z] + END_PACKAGES=/tmp/packages_end.txt [2020-09-16T13:51:08.339Z] + DIFF_PACKAGES=/tmp/packages_diff.txt [2020-09-16T13:51:08.339Z] + PACKAGES=/tmp/packages_start.txt [2020-09-16T13:51:08.339Z] + '[' /w/workspace/xfoundry_device-rest-go_issue-36 ']' [2020-09-16T13:51:08.339Z] + PACKAGES=/tmp/packages_end.txt [2020-09-16T13:51:08.339Z] + case "${OS_FAMILY}" in [2020-09-16T13:51:08.339Z] + rpm -qa [2020-09-16T13:51:08.339Z] + sort [2020-09-16T13:51:12.548Z] + '[' -f /tmp/packages_start.txt ']' [2020-09-16T13:51:12.548Z] + '[' -f /tmp/packages_end.txt ']' [2020-09-16T13:51:12.548Z] + diff /tmp/packages_start.txt /tmp/packages_end.txt [2020-09-16T13:51:12.548Z] + '[' /w/workspace/xfoundry_device-rest-go_issue-36 ']' [2020-09-16T13:51:12.548Z] + mkdir -p /w/workspace/xfoundry_device-rest-go_issue-36/archives/ [2020-09-16T13:51:12.548Z] + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-rest-go_issue-36/archives/ [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:51:13.781Z] + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [2020-09-16T13:51:13.781Z] [2020-09-16T13:51:13.781Z] Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] isUnix [Pipeline] sh [2020-09-16T13:51:14.200Z] + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [2020-09-16T13:51:14.201Z] alpine: Pulling from edgex-lftools-log-publisher [2020-09-16T13:51:14.201Z] df20fa9351a1: Pulling fs layer [2020-09-16T13:51:14.201Z] 36b3adc4ff6f: Pulling fs layer [2020-09-16T13:51:14.201Z] 8ad3a11d3b57: Pulling fs layer [2020-09-16T13:51:14.201Z] 46f8f816bc3b: Pulling fs layer [2020-09-16T13:51:14.201Z] 0dadc02b9964: Pulling fs layer [2020-09-16T13:51:14.201Z] ce6a7cf60c04: Pulling fs layer [2020-09-16T13:51:14.201Z] 7a184a31f384: Pulling fs layer [2020-09-16T13:51:14.201Z] 0879bd2ef858: Pulling fs layer [2020-09-16T13:51:14.201Z] 46f8f816bc3b: Waiting [2020-09-16T13:51:14.201Z] 0dadc02b9964: Waiting [2020-09-16T13:51:14.201Z] ce6a7cf60c04: Waiting [2020-09-16T13:51:14.201Z] 7a184a31f384: Waiting [2020-09-16T13:51:14.201Z] 0879bd2ef858: Waiting [2020-09-16T13:51:14.201Z] 36b3adc4ff6f: Verifying Checksum [2020-09-16T13:51:14.201Z] 36b3adc4ff6f: Download complete [2020-09-16T13:51:14.201Z] 46f8f816bc3b: Verifying Checksum [2020-09-16T13:51:14.201Z] 46f8f816bc3b: Download complete [2020-09-16T13:51:14.465Z] df20fa9351a1: Verifying Checksum [2020-09-16T13:51:14.465Z] df20fa9351a1: Download complete [2020-09-16T13:51:14.465Z] ce6a7cf60c04: Verifying Checksum [2020-09-16T13:51:14.465Z] ce6a7cf60c04: Download complete [2020-09-16T13:51:14.465Z] 7a184a31f384: Verifying Checksum [2020-09-16T13:51:14.465Z] 7a184a31f384: Download complete [2020-09-16T13:51:14.465Z] 0dadc02b9964: Verifying Checksum [2020-09-16T13:51:14.465Z] 0dadc02b9964: Download complete [2020-09-16T13:51:14.465Z] df20fa9351a1: Pull complete [2020-09-16T13:51:14.727Z] 8ad3a11d3b57: Verifying Checksum [2020-09-16T13:51:14.727Z] 8ad3a11d3b57: Download complete [2020-09-16T13:51:14.727Z] 36b3adc4ff6f: Pull complete [2020-09-16T13:51:14.999Z] 0879bd2ef858: Verifying Checksum [2020-09-16T13:51:14.999Z] 0879bd2ef858: Download complete [2020-09-16T13:51:15.577Z] 8ad3a11d3b57: Pull complete [2020-09-16T13:51:15.577Z] 46f8f816bc3b: Pull complete [2020-09-16T13:51:15.839Z] 0dadc02b9964: Pull complete [2020-09-16T13:51:16.103Z] ce6a7cf60c04: Pull complete [2020-09-16T13:51:16.103Z] 7a184a31f384: Pull complete [2020-09-16T13:51:18.032Z] 0879bd2ef858: Pull complete [2020-09-16T13:51:18.032Z] Digest: sha256:6a0b98a82ad2e848da155b214a5d490c0357af837e10dd363e416ea0d50debb0 [2020-09-16T13:51:18.032Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [2020-09-16T13:51:18.032Z] nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] withDockerContainer [2020-09-16T13:51:18.193Z] prd-centos7-docker-4c-2g-43584 does not seem to be running inside a container [2020-09-16T13:51:18.235Z] $ docker run -t -d -u 1001:1001 --privileged -u 0:0 -v /var/log/sa:/var/log/sa-host -w /w/workspace/xfoundry_device-rest-go_issue-36 -v /w/workspace/xfoundry_device-rest-go_issue-36:/w/workspace/xfoundry_device-rest-go_issue-36:rw,z -v /w/workspace/xfoundry_device-rest-go_issue-36@tmp:/w/workspace/xfoundry_device-rest-go_issue-36@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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine cat [2020-09-16T13:51:22.612Z] $ docker top 2e41b74ced44807614782e875d3a12a65a110a57aeb28d3de8bd04da9c59a54c -eo pid,comm [Pipeline] { [Pipeline] sh [2020-09-16T13:51:23.132Z] + mkdir -p /var/log/sa [Pipeline] sh [2020-09-16T13:51:23.443Z] + ls /var/log/sa-host [2020-09-16T13:51:23.443Z] + sadf -c /var/log/sa-host/sa05 [2020-09-16T13:51:23.443Z] file_magic: OK [2020-09-16T13:51:23.443Z] HZ: Using current value: 100 [2020-09-16T13:51:23.443Z] file_header: OK [2020-09-16T13:51:23.443Z] 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 [2020-09-16T13:51:23.443Z] Statistics: [2020-09-16T13:51:23.443Z] Hnuu...uuuununununu...Hnuu...uuuununununu... [2020-09-16T13:51:23.443Z] File successfully converted to sysstat format version 12.2.1 [2020-09-16T13:51:23.443Z] + sadf -c /var/log/sa-host/sa16 [2020-09-16T13:51:23.443Z] file_magic: OK [2020-09-16T13:51:23.443Z] HZ: Using current value: 100 [2020-09-16T13:51:23.443Z] file_header: OK [2020-09-16T13:51:23.443Z] 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 [2020-09-16T13:51:23.443Z] Statistics: [2020-09-16T13:51:23.443Z] HRHnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu... [2020-09-16T13:51:23.443Z] File successfully converted to sysstat format version 12.2.1 [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider [2020-09-16T13:51:23.566Z] provisioning config files... [2020-09-16T13:51:23.582Z] copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-rest-go_issue-36@tmp/config5545356304948242586tmp [Pipeline] { [Pipeline] echo [2020-09-16T13:51:23.736Z] Running global-jjb/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh [2020-09-16T13:51:24.069Z] ---> create-netrc.sh [Pipeline] echo [2020-09-16T13:51:24.100Z] Running global-jjb/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh [2020-09-16T13:51:24.432Z] ---> logs-deploy.sh [2020-09-16T13:51:24.433Z] INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/issue-36/1 [2020-09-16T13:51:24.433Z] INFO: archiving workspace using pattern(s): [2020-09-16T13:51:25.821Z] Archives upload complete. [2020-09-16T13:51:25.821Z] INFO: archiving logs to Nexus