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 13:46:05 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 13:46:05 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 13:46:05 ========================================================= 13:46:05 EdgeX Global Pipelines Version Info 13:46:05 ========================================================= [Pipeline] libraryResource [Pipeline] sh 13:46:07 ------------------- 13:46:07 stable info: 13:46:07 ------------------- 13:46:07 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 13:46:07 Commit SHA: 7909e789ffc0fecf34d47f501ec8db0a80105338 13:46:07 Message: update stable to v1.0.122 13:46:08 ------------------- 13:46:08 experimental info: 13:46:08 ------------------- 13:46:08 Commited By: **** collab-it+edgex@linuxfoundation.org 13:46:08 Commit SHA: 7909e789ffc0fecf34d47f501ec8db0a80105338 13:46:08 Message: update experimental to v1.0.122 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] } [Pipeline] // script [Pipeline] echo 13:46:08 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 13:46:08 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 13:46:08 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 13:46:09 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 13:46:09 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 13:46:09 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.13 [Pipeline] echo 13:46:09 [edgeXSetupEnvironment]: set envvar GOPROXY = https://nexus3.edgexfoundry.org/repository/go-proxy/ [Pipeline] echo 13:46:09 [edgeXSetupEnvironment]: set envvar DOCKER_BASE_IMAGE = nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-alpine [Pipeline] echo 13:46:09 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 13:46:10 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 13:46:10 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 13:46:10 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = docker-device-rest-go [Pipeline] echo 13:46:10 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 13:46:10 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 13:46:10 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 13:46:11 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 13:46:11 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 13:46:11 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 13:46:11 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 13:46:11 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 13:46:11 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 13:46:11 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 13:46:12 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = issue-36 [Pipeline] echo 13:46:12 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = issue-36 [Pipeline] echo 13:46:12 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = issue-36 [Pipeline] echo 13:46:12 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 39a7a4e777933e4815b2185cae3c86dc2bb2209d [Pipeline] echo 13:46:12 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 39a7a4e [Pipeline] echo 13:46:12 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 13:46:13 + git log --format=format:%s -1 39a7a4e777933e4815b2185cae3c86dc2bb2209d [Pipeline] echo 13:46:13 GIT_COMMIT: 39a7a4e777933e4815b2185cae3c86dc2bb2209d, Commit Message: doc: correct build instructions (#36) [Pipeline] echo 13:46:13 This is not a build commit. [Pipeline] isUnix [Pipeline] sh 13:46:14 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 13:46:15 13:46:15 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 13:46:15 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 13:46:15 latest: Pulling from edgex-devops/git-semver 13:46:15 31603596830f: Pulling fs layer 13:46:15 2a8b12db71e7: Pulling fs layer 13:46:15 6ca5941a6612: Pulling fs layer 13:46:15 ecc8261a40a4: Pulling fs layer 13:46:15 ecc8261a40a4: Waiting 13:46:15 2a8b12db71e7: Verifying Checksum 13:46:15 2a8b12db71e7: Download complete 13:46:15 31603596830f: Verifying Checksum 13:46:15 31603596830f: Download complete 13:46:15 ecc8261a40a4: Verifying Checksum 13:46:15 ecc8261a40a4: Download complete 13:46:15 6ca5941a6612: Verifying Checksum 13:46:15 6ca5941a6612: Download complete 13:46:16 31603596830f: Pull complete 13:46:16 2a8b12db71e7: Pull complete 13:46:16 6ca5941a6612: Pull complete 13:46:16 ecc8261a40a4: Pull complete 13:46:16 Digest: sha256:c336c3cb7d26c4f33e4bbf869d415e221d43967d83d6a5809e4cb0cc2a1e8fe7 13:46:16 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 13:46:16 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 13:46:17 prd-centos7-docker-4c-2g-43584 does not seem to be running inside a container 13:46:17 $ 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 13:46:18 $ docker top a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 13:46:19 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 13:46:19 [ssh-agent] Looking for ssh-agent implementation... 13:46:19 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 13:46:19 $ docker exec a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a ssh-agent 13:46:19 SSH_AUTH_SOCK=/tmp/ssh-1XYbck07GLqt/agent.11 13:46:19 SSH_AGENT_PID=16 13:46:19 Running ssh-add (command line suppressed) 13:46:19 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) 13:46:19 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 13:46:20 + git describe --exact-match --tags HEAD 13:46:20 fatal: No names found, cannot describe anything. [Pipeline] } 13:46:20 $ docker exec --env ******** --env ******** a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a ssh-agent -k 13:46:20 unset SSH_AUTH_SOCK; 13:46:20 unset SSH_AGENT_PID; 13:46:20 echo Agent pid 16 killed; 13:46:20 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] echo 13:46:20 [edgeXSemver]: exception occurred checking if HEAD is tagged: hudson.AbortException: script returned exit code 128 13:46:20 This usually means this commit has not been tagged. [Pipeline] sshagent 13:46:20 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 13:46:20 [ssh-agent] Looking for ssh-agent implementation... 13:46:21 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 13:46:21 $ docker exec a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a ssh-agent 13:46:21 SSH_AUTH_SOCK=/tmp/ssh-FSEd7xoIueWa/agent.46 13:46:21 SSH_AGENT_PID=51 13:46:21 Running ssh-add (command line suppressed) 13:46:21 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) 13:46:21 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 13:46:21 + git semver init 13:46:21 # -> Open(): unable to determine branch for HEAD 13:46:21 # $GIT_DIR = /w/workspace/xfoundry_device-rest-go_issue-36/.git 13:46:21 # $GIT_WORK_TREE = /w/workspace/xfoundry_device-rest-go_issue-36 13:46:21 # $SEMVER_REMOTE_NAME = origin 13:46:21 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 13:46:21 # $SEMVER_USER_NAME = edgex-jenkins 13:46:21 # $SEMVER_BRANCH = issue-36 13:46:21 # $SEMVER_TEMP = /tmp/semver-712430361 13:46:21 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 13:46:22 # '/tmp/semver-712430361' -> '/w/workspace/xfoundry_device-rest-go_issue-36/.semver' 13:46:22 # -> Force: false 13:46:22 # $SEMVER_DIR = /w/workspace/xfoundry_device-rest-go_issue-36/.semver [Pipeline] } 13:46:22 $ docker exec --env ******** --env ******** a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a ssh-agent -k 13:46:22 unset SSH_AUTH_SOCK; 13:46:22 unset SSH_AGENT_PID; 13:46:22 echo Agent pid 51 killed; 13:46:22 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 13:46:23 + git semver [Pipeline] } 13:46:23 $ docker stop --time=1 a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a 13:46:24 $ docker rm -f a8a0f9de74e9ad3ac23fc2cc98ad6ba3ff732887bb1d42e617548a6e345bdb1a [Pipeline] // withDockerContainer [Pipeline] writeFile [Pipeline] stash 13:46:26 Stashed 21 file(s) [Pipeline] echo 13:46:26 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] echo 13:46:26 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 13:46:27 Running on prd-ubuntu18.04-docker-arm64-4c-16g-43576 in /w/workspace/xfoundry_device-rest-go_issue-36 [Pipeline] { [Pipeline] ws 13:46:27 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 13:46:32 using credential edgex-jenkins-ssh 13:46:32 Cloning the remote Git repository 13:46:32 Cloning with configured refspecs honoured and without tags 13:46:32 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 13:46:32 > git init /w/workspace/device-rest-go/1 # timeout=10 13:46:32 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 13:46:32 > git --version # timeout=10 13:46:32 > git --version # 'git version 2.17.1' 13:46:32 using GIT_SSH to set credentials SSH Credentials for GitHub 13:46:32 > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 13:46:36 Fetching without tags 13:46:35 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 13:46:36 > git config --add remote.origin.fetch +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 13:46:36 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 13:46:36 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 13:46:36 using GIT_SSH to set credentials SSH Credentials for GitHub 13:46:36 > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 13:46:36 Checking out Revision 39a7a4e777933e4815b2185cae3c86dc2bb2209d (issue-36) 13:46:36 > git config core.sparsecheckout # timeout=10 13:46:36 > git checkout -f 39a7a4e777933e4815b2185cae3c86dc2bb2209d # timeout=10 13:46:40 Commit message: "doc: correct build instructions (#36)" 13:46:40 > git --version # timeout=10 13:46:40 > git --version # 'git version 2.17.1' 13:46:41 fatal: bad object 7909e789ffc0fecf34d47f501ec8db0a80105338 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] unstash 13:46:42 Still waiting to schedule task 13:46:42 Waiting for next available executor on ‘centos7-docker-4c-2g’ [Pipeline] echo 13:46:43 ========================================================= 13:46:43 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.13-alpine] 13:46:43 ========================================================= [Pipeline] isUnix [Pipeline] sh 13:46:44 + 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 . 13:46:45 Sending build context to Docker daemon 8.048MB 13:46:45 Step 1/10 : ARG BASE=golang:1.13-alpine 13:46:45 Step 2/10 : FROM ${BASE} 13:46:45 1.13-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 13:46:45 b538f80385f9: Pulling fs layer 13:46:45 74f711af9a0d: Pulling fs layer 13:46:45 99f96fe45779: Pulling fs layer 13:46:45 fd7a069fd194: Pulling fs layer 13:46:45 66aa3694b03b: Pulling fs layer 13:46:45 170f70906a0f: Pulling fs layer 13:46:45 ad7c5574e4b9: Pulling fs layer 13:46:45 e772456be8f7: Pulling fs layer 13:46:45 c890913d741a: Pulling fs layer 13:46:45 2480fcc9aa5a: Pulling fs layer 13:46:45 09adf4765672: Pulling fs layer 13:46:45 170f70906a0f: Waiting 13:46:45 ad7c5574e4b9: Waiting 13:46:45 e772456be8f7: Waiting 13:46:45 c890913d741a: Waiting 13:46:45 2480fcc9aa5a: Waiting 13:46:45 09adf4765672: Waiting 13:46:45 fd7a069fd194: Waiting 13:46:45 66aa3694b03b: Waiting 13:46:45 74f711af9a0d: Verifying Checksum 13:46:45 74f711af9a0d: Download complete 13:46:46 66aa3694b03b: Verifying Checksum 13:46:46 66aa3694b03b: Download complete 13:46:46 170f70906a0f: Verifying Checksum 13:46:46 170f70906a0f: Download complete 13:46:46 b538f80385f9: Verifying Checksum 13:46:46 b538f80385f9: Pull complete 13:46:47 74f711af9a0d: Pull complete 13:46:47 99f96fe45779: Pull complete 13:46:50 ad7c5574e4b9: Verifying Checksum 13:46:50 ad7c5574e4b9: Download complete 13:46:50 c890913d741a: Download complete 13:46:51 2480fcc9aa5a: Verifying Checksum 13:46:51 2480fcc9aa5a: Download complete 13:46:51 09adf4765672: Download complete 13:46:52 e772456be8f7: Verifying Checksum 13:46:52 e772456be8f7: Download complete 13:46:53 fd7a069fd194: Verifying Checksum 13:46:53 fd7a069fd194: Download complete 13:47:05 fd7a069fd194: Pull complete 13:47:05 66aa3694b03b: Pull complete 13:47:05 170f70906a0f: Pull complete 13:47:08 ad7c5574e4b9: Pull complete 13:47:14 e772456be8f7: Pull complete 13:47:14 c890913d741a: Pull complete 13:47:16 2480fcc9aa5a: Pull complete 13:47:16 09adf4765672: Pull complete 13:47:16 Digest: sha256:77242015624dc62c2655c7b963a03ae32e90cc8c4d034de6c6efb010c7806a28 13:47:16 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.13-alpine 13:47:16 ---> 2248a725d1cf 13:47:16 Step 3/10 : ARG ALPINE_PKG_BASE="make git" 13:47:21 ---> Running in 14a3e95eeb15 13:47:21 Removing intermediate container 14a3e95eeb15 13:47:21 ---> 1496339edb43 13:47:21 Step 4/10 : ARG ALPINE_PKG_EXTRA="" 13:47:21 ---> Running in 20f9d75e2bbc 13:47:22 Removing intermediate container 20f9d75e2bbc 13:47:22 ---> 9aff03ce52ab 13:47:22 Step 5/10 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 13:47:22 ---> Running in 180254bea7c6 13:47:22 Removing intermediate container 180254bea7c6 13:47:22 ---> 00ed8727d997 13:47:22 Step 6/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 13:47:22 ---> Running in 20bfd4ad0e86 13:47:25 Removing intermediate container 20bfd4ad0e86 13:47:25 ---> e6e96a84c323 13:47:25 Step 7/10 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 13:47:25 ---> Running in 5e14f8c98ccc 13:47:27 fetch http://nl.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz 13:47:27 fetch http://nl.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz 13:47:28 OK: 142 MiB in 39 packages 13:47:29 Removing intermediate container 5e14f8c98ccc 13:47:29 ---> a4b2edaaaf4b 13:47:29 Step 8/10 : WORKDIR /device-rest-go 13:47:30 ---> Running in b446e010e7ce 13:47:30 Removing intermediate container b446e010e7ce 13:47:30 ---> 00d8b7c5c4fa 13:47:30 Step 9/10 : COPY . . 13:47:31 ---> ab18d7eac298 13:47:31 Step 10/10 : RUN go mod download 13:47:32 ---> Running in 089b5ede9b5c 13:47:34 go: finding github.com/BurntSushi/toml v0.3.1 13:47:34 go: finding github.com/OneOfOne/xxhash v1.2.6 13:47:34 go: finding github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e 13:47:34 go: finding github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da 13:47:34 go: finding github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 13:47:34 go: finding github.com/bgentry/speakeasy v0.1.0 13:47:34 go: finding github.com/cenkalti/backoff v2.2.1+incompatible 13:47:34 go: finding github.com/davecgh/go-spew v1.1.1 13:47:34 go: finding github.com/edgexfoundry/device-sdk-go v1.2.3 13:47:34 go: finding github.com/edgexfoundry/go-mod-bootstrap v0.0.36 13:47:34 go: finding github.com/edgexfoundry/go-mod-configuration v0.0.3 13:47:34 go: finding github.com/edgexfoundry/go-mod-core-contracts v0.1.58 13:47:35 go: finding github.com/edgexfoundry/go-mod-registry v0.1.20 13:47:35 go: finding github.com/edgexfoundry/go-mod-secrets v0.0.17 13:47:35 go: finding github.com/fatih/color v1.7.0 13:47:35 go: finding github.com/fxamacker/cbor/v2 v2.2.0 13:47:35 go: finding github.com/go-kit/kit v0.8.0 13:47:35 go: finding github.com/go-logfmt/logfmt v0.4.0 13:47:35 go: finding github.com/go-stack/stack v1.8.0 13:47:35 go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c 13:47:35 go: finding github.com/google/uuid v1.1.0 13:47:35 go: finding github.com/gorilla/mux v1.7.1 13:47:35 go: finding github.com/hashicorp/consul/api v1.1.0 13:47:35 go: finding github.com/hashicorp/consul/sdk v0.1.1 13:47:35 go: finding github.com/hashicorp/errwrap v1.0.0 13:47:35 go: finding github.com/hashicorp/go-cleanhttp v0.5.1 13:47:35 go: finding github.com/hashicorp/go-immutable-radix v1.0.0 13:47:35 go: finding github.com/hashicorp/go-msgpack v0.5.3 13:47:35 go: finding github.com/hashicorp/go-multierror v1.0.0 13:47:35 go: finding github.com/hashicorp/go-rootcerts v1.0.0 13:47:35 go: finding github.com/hashicorp/go-sockaddr v1.0.0 13:47:35 go: finding github.com/hashicorp/go-syslog v1.0.0 13:47:35 go: finding github.com/hashicorp/go-uuid v1.0.1 13:47:35 go: finding github.com/hashicorp/go.net v0.0.1 13:47:35 go: finding github.com/hashicorp/golang-lru v0.5.0 13:47:35 go: finding github.com/hashicorp/logutils v1.0.0 13:47:35 go: finding github.com/hashicorp/mdns v1.0.0 13:47:35 go: finding github.com/hashicorp/memberlist v0.1.3 13:47:35 go: finding github.com/hashicorp/serf v0.8.2 13:47:35 go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 13:47:35 go: finding github.com/mattn/go-colorable v0.0.9 13:47:35 go: finding github.com/mattn/go-isatty v0.0.3 13:47:35 go: finding github.com/miekg/dns v1.0.14 13:47:35 go: finding github.com/mitchellh/cli v1.0.0 13:47:35 go: finding github.com/mitchellh/consulstructure v0.0.0-20190329231841-56fdc4d2da54 13:47:35 go: finding github.com/mitchellh/copystructure v1.0.0 13:47:35 go: finding github.com/mitchellh/go-homedir v1.0.0 13:47:36 go: finding github.com/mitchellh/go-testing-interface v1.0.0 13:47:36 go: finding github.com/mitchellh/gox v0.4.0 13:47:36 go: finding github.com/mitchellh/iochan v1.0.0 13:47:36 go: finding github.com/mitchellh/mapstructure v1.1.2 13:47:36 go: finding github.com/mitchellh/reflectwalk v1.0.0 13:47:36 go: finding github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c 13:47:36 go: finding github.com/pelletier/go-toml v1.2.0 13:47:36 go: finding github.com/pkg/errors v0.8.1 13:47:36 go: finding github.com/pmezard/go-difflib v1.0.0 13:47:36 go: finding github.com/posener/complete v1.1.1 13:47:36 go: finding github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f 13:47:36 go: finding github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 13:47:36 go: finding github.com/spf13/cast v1.3.0 13:47:36 go: finding github.com/stretchr/objx v0.1.0 13:47:36 go: finding github.com/stretchr/testify v1.5.1 13:47:36 go: finding github.com/ugorji/go v1.1.4 13:47:36 go: finding github.com/x448/float16 v0.8.4 13:47:36 go: finding golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3 13:47:36 go: finding golang.org/x/net v0.0.0-20181201002055-351d144fa1fc 13:47:36 go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 13:47:36 go: finding golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5 13:47:36 go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 13:47:36 go: finding gopkg.in/yaml.v2 v2.2.8 13:47:46 Removing intermediate container 089b5ede9b5c 13:47:46 ---> 3790c17b817e 13:47:46 Successfully built 3790c17b817e 13:47:46 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 13:47:46 + docker inspect -f . ci-base-image-arm64 13:47:46 . [Pipeline] withDockerContainer 13:47:47 prd-ubuntu18.04-docker-arm64-4c-16g-43576 does not seem to be running inside a container 13:47:47 $ 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 13:47:49 $ docker top e0fa674c5fcb2b5a7f3c2cf22b8cdddd1baf300fe94bc0b9023627e4dc537cef -eo pid,comm [Pipeline] { [Pipeline] sh 13:47:50 + go version 13:47:50 go version go1.13.13 linux/arm64 [Pipeline] } 13:47:50 $ docker stop --time=1 e0fa674c5fcb2b5a7f3c2cf22b8cdddd1baf300fe94bc0b9023627e4dc537cef 13:47:52 $ docker rm -f e0fa674c5fcb2b5a7f3c2cf22b8cdddd1baf300fe94bc0b9023627e4dc537cef [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 13:47:54 + docker inspect -f . ci-base-image-arm64 13:47:54 . [Pipeline] withDockerContainer 13:47:54 prd-ubuntu18.04-docker-arm64-4c-16g-43576 does not seem to be running inside a container 13:47:54 $ 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 13:47:56 $ docker top 35cd6fac485912e65652fbd7db83592562a074a1375cb35226a06ffb611cf5d0 -eo pid,comm [Pipeline] { [Pipeline] sh 13:47:57 + make test 13:47:57 CGO_ENABLED=0 GO111MODULE=on go test -coverprofile=coverage.out ./... 13:47:58 ? github.com/edgexfoundry/device-rest-go [no test files] 13:48:31 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 13:48:31 ok github.com/edgexfoundry/device-rest-go/driver 0.041s coverage: 56.3% of statements 13:48:31 CGO_ENABLED=0 GO111MODULE=on go vet ./... 13:48:34 gofmt -l . 13:48:34 [ "`gofmt -l .`" = "" ] 13:48:34 ./bin/test-go-mod-tidy.sh 13:48:34 ./bin/test-attribution-txt.sh [Pipeline] stash 13:48:36 Stashed 1 file(s) [Pipeline] } 13:48:36 $ docker stop --time=1 35cd6fac485912e65652fbd7db83592562a074a1375cb35226a06ffb611cf5d0 13:48:38 $ docker rm -f 35cd6fac485912e65652fbd7db83592562a074a1375cb35226a06ffb611cf5d0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 13:48:42 + sudo chown -R jenkins:jenkins . [Pipeline] sh 13:48:42 + ls -al . 13:48:42 total 128 13:48:42 drwxrwxr-x 9 jenkins jenkins 4096 Sep 16 13:48 . 13:48:42 drwxrwxr-x 4 jenkins jenkins 4096 Sep 16 13:46 .. 13:48:42 -rw-rw-r-- 1 jenkins jenkins 151 Sep 16 13:46 .dockerignore 13:48:42 drwxrwxr-x 8 jenkins jenkins 4096 Sep 16 13:46 .git 13:48:42 drwxrwxr-x 2 jenkins jenkins 4096 Sep 16 13:46 .github 13:48:42 -rw-rw-r-- 1 jenkins jenkins 339 Sep 16 13:46 .gitignore 13:48:42 drwxrwxr-x 3 jenkins jenkins 4096 Sep 16 13:46 .semver 13:48:42 -rw-rw-r-- 1 jenkins jenkins 4566 Sep 16 13:46 Attribution.txt 13:48:42 -rw-rw-r-- 1 jenkins jenkins 1519 Sep 16 13:46 Dockerfile 13:48:42 -rw-rw-r-- 1 jenkins jenkins 989 Sep 16 13:46 Dockerfile.build 13:48:42 -rw-rw-r-- 1 jenkins jenkins 702 Sep 16 13:46 Jenkinsfile 13:48:42 -rw-rw-r-- 1 jenkins jenkins 11340 Sep 16 13:46 LICENSE 13:48:42 -rw-rw-r-- 1 jenkins jenkins 951 Sep 16 13:46 Makefile 13:48:42 -rw-rw-r-- 1 jenkins jenkins 5917 Sep 16 13:46 README.md 13:48:42 -rw-rw-r-- 1 jenkins jenkins 5 Sep 16 13:46 VERSION 13:48:42 drwxrwxr-x 2 jenkins jenkins 4096 Sep 16 13:46 bin 13:48:42 drwxrwxr-x 3 jenkins jenkins 4096 Sep 16 13:46 cmd 13:48:42 -rw-r--r-- 1 jenkins jenkins 9369 Sep 16 13:48 coverage.out 13:48:42 drwxrwxr-x 2 jenkins jenkins 4096 Sep 16 13:48 driver 13:48:42 -rw-r--r-- 1 jenkins jenkins 266 Sep 16 13:48 go.mod 13:48:42 -rw-r--r-- 1 jenkins jenkins 12533 Sep 16 13:48 go.sum 13:48:42 drwxrwxr-x 4 jenkins jenkins 4096 Sep 16 13:46 snap 13:48:42 -rw-rw-r-- 1 jenkins jenkins 713 Sep 16 13:46 version.go [Pipeline] isUnix [Pipeline] sh 13:48:42 + 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 . 13:48:43 Sending build context to Docker daemon 8.059MB 13:48:43 Step 1/25 : ARG BASE=golang:1.13-alpine 13:48:43 Step 2/25 : FROM ${BASE} AS builder 13:48:43 ---> 3790c17b817e 13:48:43 Step 3/25 : ARG MAKE='make build' 13:48:43 ---> Running in c3aef36bc1ef 13:48:44 Removing intermediate container c3aef36bc1ef 13:48:44 ---> 6e2a87b0b427 13:48:44 Step 4/25 : ARG ALPINE_PKG_BASE="make git" 13:48:44 ---> Running in 4a6973907ded 13:48:44 Removing intermediate container 4a6973907ded 13:48:44 ---> 8ebdcaea8b6f 13:48:44 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 13:48:44 ---> Running in 5f3ed00a1035 13:48:45 Removing intermediate container 5f3ed00a1035 13:48:45 ---> 8c19c8eb2b30 13:48:45 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 13:48:45 ---> Running in 696b2e58a8b8 13:48:48 Removing intermediate container 696b2e58a8b8 13:48:48 ---> 8fa229eb2234 13:48:48 Step 7/25 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 13:48:48 ---> Running in a19695f8fb47 13:48:49 fetch http://nl.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz 13:48:50 fetch http://nl.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz 13:48:51 OK: 142 MiB in 39 packages 13:48:52 Removing intermediate container a19695f8fb47 13:48:52 ---> 4bedf13939ad 13:48:52 Step 8/25 : WORKDIR $GOPATH/src/github.com/edgexfoundry/device-rest-go 13:48:52 ---> Running in f7d08a64c630 13:48:52 Removing intermediate container f7d08a64c630 13:48:52 ---> 9ed8874ae59e 13:48:52 Step 9/25 : COPY go.mod . 13:48:53 ---> c3df53b20727 13:48:53 Step 10/25 : COPY Makefile . 13:48:54 ---> ddeb0335da9e 13:48:54 Step 11/25 : RUN make update 13:48:54 ---> Running in e6d03d880ae6 13:48:55 CGO_ENABLED=0 GO111MODULE=on go mod download 13:48:56 Removing intermediate container e6d03d880ae6 13:48:56 ---> 77dfaefe6c97 13:48:56 Step 12/25 : COPY . . 13:48:58 ---> 14ef8cd97985 13:48:58 Step 13/25 : RUN $MAKE 13:48:58 ---> Running in 338ef9a23042 13:48:59 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 13:49:19 Running on prd-centos7-docker-4c-2g-43586 in /w/workspace/xfoundry_device-rest-go_issue-36 [Pipeline] { [Pipeline] ws 13:49:19 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 13:49:21 using credential edgex-jenkins-ssh 13:49:21 Cloning the remote Git repository 13:49:21 Cloning with configured refspecs honoured and without tags 13:49:21 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 13:49:21 > git init /w/workspace/device-rest-go/1 # timeout=10 13:49:22 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 13:49:22 > git --version # timeout=10 13:49:22 > git --version # 'git version 2.16.5' 13:49:22 using GIT_SSH to set credentials SSH Credentials for GitHub 13:49:22 > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 13:49:22 Fetching without tags 13:49:23 Checking out Revision 39a7a4e777933e4815b2185cae3c86dc2bb2209d (issue-36) 13:49:22 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 13:49:22 > git config --add remote.origin.fetch +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 13:49:22 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 13:49:22 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 13:49:22 using GIT_SSH to set credentials SSH Credentials for GitHub 13:49:22 > git fetch --no-tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 13:49:23 > git config core.sparsecheckout # timeout=10 13:49:23 > git checkout -f 39a7a4e777933e4815b2185cae3c86dc2bb2209d # timeout=10 13:49:26 Removing intermediate container 338ef9a23042 13:49:26 ---> 0a5b14715834 13:49:26 Step 14/25 : FROM alpine:latest 13:49:26 latest: Pulling from library/alpine 13:49:26 b538f80385f9: Already exists 13:49:26 Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321 13:49:26 Status: Downloaded newer image for alpine:latest 13:49:26 ---> 62ee0e9f8440 13:49:26 Step 15/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 13:49:26 ---> Running in ca39a081cd3d 13:49:26 Removing intermediate container ca39a081cd3d 13:49:26 ---> 2f6413340e9d 13:49:26 Step 16/25 : LABEL Name=device-rest-go Version=${VERSION} 13:49:26 Commit message: "doc: correct build instructions (#36)" 13:49:27 > git --version # timeout=10 13:49:27 > git --version # 'git version 2.16.5' 13:49:27 fatal: bad object 7909e789ffc0fecf34d47f501ec8db0a80105338 13:49:27 ---> Running in 9a2b9b70aa1a 13:49:27 Removing intermediate container 9a2b9b70aa1a 13:49:27 ---> 2b2866a0206d 13:49:27 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 13:49:28 ---> a203a7adef68 13:49:28 Step 18/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/Attribution.txt / [Pipeline] echo 13:49:28 ========================================================= 13:49:28 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-alpine] 13:49:28 ========================================================= [Pipeline] isUnix [Pipeline] sh 13:49:29 ---> 6342c49ffd5d 13:49:29 Step 19/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/cmd / 13:49:29 + 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 . 13:49:29 Sending build context to Docker daemon 8.048MB 13:49:29 Step 1/10 : ARG BASE=golang:1.13-alpine 13:49:29 Step 2/10 : FROM ${BASE} 13:49:29 1.13-alpine: Pulling from edgex-devops/edgex-golang-base 13:49:29 df20fa9351a1: Pulling fs layer 13:49:29 ed8968b2872e: Pulling fs layer 13:49:29 a92cc7c5fd73: Pulling fs layer 13:49:29 2dd03ba5bac4: Pulling fs layer 13:49:29 1e091d79d1de: Pulling fs layer 13:49:29 481702a1767f: Pulling fs layer 13:49:29 f64a6f60c768: Pulling fs layer 13:49:29 e78d2573fc39: Pulling fs layer 13:49:29 e876d2f968b6: Pulling fs layer 13:49:29 ce8a83651883: Pulling fs layer 13:49:29 07967f4d0e4b: Pulling fs layer 13:49:29 f64a6f60c768: Waiting 13:49:29 e78d2573fc39: Waiting 13:49:29 e876d2f968b6: Waiting 13:49:29 07967f4d0e4b: Waiting 13:49:29 ce8a83651883: Waiting 13:49:29 1e091d79d1de: Waiting 13:49:29 2dd03ba5bac4: Waiting 13:49:29 481702a1767f: Waiting 13:49:29 a92cc7c5fd73: Verifying Checksum 13:49:29 a92cc7c5fd73: Download complete 13:49:29 ed8968b2872e: Verifying Checksum 13:49:29 ed8968b2872e: Download complete 13:49:29 1e091d79d1de: Verifying Checksum 13:49:29 1e091d79d1de: Download complete 13:49:29 481702a1767f: Verifying Checksum 13:49:29 481702a1767f: Download complete 13:49:29 df20fa9351a1: Verifying Checksum 13:49:29 df20fa9351a1: Download complete 13:49:30 df20fa9351a1: Pull complete 13:49:30 ed8968b2872e: Pull complete 13:49:30 a92cc7c5fd73: Pull complete 13:49:30 ---> 2ee46ce1c675 13:49:30 Step 20/25 : EXPOSE 49986 13:49:30 ---> Running in ad62f65347f8 13:49:30 Removing intermediate container ad62f65347f8 13:49:30 ---> 11a51f39eef8 13:49:30 Step 21/25 : ENTRYPOINT ["/device-rest-go"] 13:49:30 ---> Running in 27bc14ef95f5 13:49:31 Removing intermediate container 27bc14ef95f5 13:49:31 ---> db9d116c529e 13:49:31 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 13:49:31 ---> Running in affe14a31fcf 13:49:31 Removing intermediate container affe14a31fcf 13:49:31 ---> c2fdef0a99e6 13:49:31 Step 23/25 : LABEL arch=arm64 13:49:31 ---> Running in 8cdd389288ea 13:49:32 Removing intermediate container 8cdd389288ea 13:49:32 ---> 1fa12ee03531 13:49:32 Step 24/25 : LABEL git_sha=39a7a4e777933e4815b2185cae3c86dc2bb2209d 13:49:32 ---> Running in 833888efd096 13:49:33 f64a6f60c768: Verifying Checksum 13:49:33 f64a6f60c768: Download complete 13:49:33 e876d2f968b6: Verifying Checksum 13:49:33 e876d2f968b6: Download complete 13:49:33 Removing intermediate container 833888efd096 13:49:33 ---> fa5778fe7bce 13:49:33 Step 25/25 : LABEL version=0.0.0 13:49:33 ---> Running in 834bc212ee0e 13:49:33 ce8a83651883: Verifying Checksum 13:49:33 ce8a83651883: Download complete 13:49:33 07967f4d0e4b: Verifying Checksum 13:49:33 07967f4d0e4b: Download complete 13:49:33 Removing intermediate container 834bc212ee0e 13:49:33 ---> e1a3d59e4015 13:49:33 [Warning] One or more build-args [ARCH] were not consumed 13:49:33 Successfully built e1a3d59e4015 13:49:33 Successfully tagged docker-device-rest-go-arm64:latest [Pipeline] } [Pipeline] // script [Pipeline] } 13:49:34 e78d2573fc39: Verifying Checksum 13:49:34 e78d2573fc39: Download complete [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) 13:49:34 2dd03ba5bac4: Verifying Checksum 13:49:34 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] } 13:49:39 2dd03ba5bac4: Pull complete 13:49:39 1e091d79d1de: Pull complete 13:49:39 481702a1767f: Pull complete 13:49:49 f64a6f60c768: Pull complete 13:49:52 e78d2573fc39: Pull complete 13:49:52 e876d2f968b6: Pull complete 13:49:53 ce8a83651883: Pull complete 13:49:53 07967f4d0e4b: Pull complete 13:49:53 Digest: sha256:323246222269c44bbdf124594b811e87e5df8ffc2c0adf7c0e497dcaec6e6afe 13:49:53 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.13-alpine 13:49:53 ---> 5d7c900382c6 13:49:53 Step 3/10 : ARG ALPINE_PKG_BASE="make git" 13:49:55 ---> Running in 0e6109e3716b 13:49:55 Removing intermediate container 0e6109e3716b 13:49:55 ---> ed44e6f4b013 13:49:55 Step 4/10 : ARG ALPINE_PKG_EXTRA="" 13:49:55 ---> Running in e36bb439ccc5 13:49:55 Removing intermediate container e36bb439ccc5 13:49:55 ---> 35a05acd6921 13:49:55 Step 5/10 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 13:49:55 ---> Running in 365cf9f4711d 13:49:55 Removing intermediate container 365cf9f4711d 13:49:55 ---> 73de8862f8ee 13:49:55 Step 6/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 13:49:55 ---> Running in 9a445348785a 13:49:57 Removing intermediate container 9a445348785a 13:49:57 ---> ceeb890433c1 13:49:57 Step 7/10 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 13:49:57 ---> Running in 4ad261a2b362 13:49:57 fetch http://nl.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz 13:49:58 fetch http://nl.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz 13:50:00 OK: 166 MiB in 39 packages 13:50:00 Removing intermediate container 4ad261a2b362 13:50:00 ---> 9eb8ec8e5f0f 13:50:00 Step 8/10 : WORKDIR /device-rest-go 13:50:00 ---> Running in e327f2f5e5f1 13:50:00 Removing intermediate container e327f2f5e5f1 13:50:00 ---> ddb8fc492e1c 13:50:00 Step 9/10 : COPY . . 13:50:01 ---> 369a1a05f66d 13:50:01 Step 10/10 : RUN go mod download 13:50:01 ---> Running in e968afa64ce6 13:50:03 go: finding github.com/BurntSushi/toml v0.3.1 13:50:03 go: finding github.com/OneOfOne/xxhash v1.2.6 13:50:03 go: finding github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e 13:50:03 go: finding github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da 13:50:03 go: finding github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 13:50:03 go: finding github.com/bgentry/speakeasy v0.1.0 13:50:03 go: finding github.com/cenkalti/backoff v2.2.1+incompatible 13:50:03 go: finding github.com/davecgh/go-spew v1.1.1 13:50:03 go: finding github.com/edgexfoundry/device-sdk-go v1.2.3 13:50:03 go: finding github.com/edgexfoundry/go-mod-bootstrap v0.0.36 13:50:03 go: finding github.com/edgexfoundry/go-mod-configuration v0.0.3 13:50:03 go: finding github.com/edgexfoundry/go-mod-core-contracts v0.1.58 13:50:03 go: finding github.com/edgexfoundry/go-mod-registry v0.1.20 13:50:03 go: finding github.com/edgexfoundry/go-mod-secrets v0.0.17 13:50:03 go: finding github.com/fatih/color v1.7.0 13:50:03 go: finding github.com/fxamacker/cbor/v2 v2.2.0 13:50:03 go: finding github.com/go-kit/kit v0.8.0 13:50:03 go: finding github.com/go-logfmt/logfmt v0.4.0 13:50:03 go: finding github.com/go-stack/stack v1.8.0 13:50:03 go: finding github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c 13:50:03 go: finding github.com/google/uuid v1.1.0 13:50:03 go: finding github.com/gorilla/mux v1.7.1 13:50:03 go: finding github.com/hashicorp/consul/api v1.1.0 13:50:03 go: finding github.com/hashicorp/consul/sdk v0.1.1 13:50:03 go: finding github.com/hashicorp/errwrap v1.0.0 13:50:03 go: finding github.com/hashicorp/go-cleanhttp v0.5.1 13:50:03 go: finding github.com/hashicorp/go-immutable-radix v1.0.0 13:50:04 go: finding github.com/hashicorp/go-msgpack v0.5.3 13:50:04 go: finding github.com/hashicorp/go-multierror v1.0.0 13:50:04 go: finding github.com/hashicorp/go-rootcerts v1.0.0 13:50:04 go: finding github.com/hashicorp/go-sockaddr v1.0.0 13:50:04 go: finding github.com/hashicorp/go-syslog v1.0.0 13:50:04 go: finding github.com/hashicorp/go-uuid v1.0.1 13:50:04 go: finding github.com/hashicorp/go.net v0.0.1 13:50:04 go: finding github.com/hashicorp/golang-lru v0.5.0 13:50:04 go: finding github.com/hashicorp/logutils v1.0.0 13:50:04 go: finding github.com/hashicorp/mdns v1.0.0 13:50:04 go: finding github.com/hashicorp/memberlist v0.1.3 13:50:04 go: finding github.com/hashicorp/serf v0.8.2 13:50:04 go: finding github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 13:50:04 go: finding github.com/mattn/go-colorable v0.0.9 13:50:04 go: finding github.com/mattn/go-isatty v0.0.3 13:50:04 go: finding github.com/miekg/dns v1.0.14 13:50:04 go: finding github.com/mitchellh/cli v1.0.0 13:50:04 go: finding github.com/mitchellh/consulstructure v0.0.0-20190329231841-56fdc4d2da54 13:50:04 go: finding github.com/mitchellh/copystructure v1.0.0 13:50:04 go: finding github.com/mitchellh/go-homedir v1.0.0 13:50:04 go: finding github.com/mitchellh/go-testing-interface v1.0.0 13:50:04 go: finding github.com/mitchellh/gox v0.4.0 13:50:04 go: finding github.com/mitchellh/iochan v1.0.0 13:50:04 go: finding github.com/mitchellh/mapstructure v1.1.2 13:50:04 go: finding github.com/mitchellh/reflectwalk v1.0.0 13:50:04 go: finding github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c 13:50:04 go: finding github.com/pelletier/go-toml v1.2.0 13:50:04 go: finding github.com/pkg/errors v0.8.1 13:50:04 go: finding github.com/pmezard/go-difflib v1.0.0 13:50:04 go: finding github.com/posener/complete v1.1.1 13:50:04 go: finding github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f 13:50:04 go: finding github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 13:50:04 go: finding github.com/spf13/cast v1.3.0 13:50:04 go: finding github.com/stretchr/objx v0.1.0 13:50:05 go: finding github.com/stretchr/testify v1.5.1 13:50:05 go: finding github.com/ugorji/go v1.1.4 13:50:05 go: finding github.com/x448/float16 v0.8.4 13:50:05 go: finding golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3 13:50:05 go: finding golang.org/x/net v0.0.0-20181201002055-351d144fa1fc 13:50:05 go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 13:50:05 go: finding golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5 13:50:05 go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 13:50:05 go: finding gopkg.in/yaml.v2 v2.2.8 13:50:13 Removing intermediate container e968afa64ce6 13:50:13 ---> 1047427f137e 13:50:13 Successfully built 1047427f137e 13:50:13 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 13:50:13 + docker inspect -f . ci-base-image-x86_64 13:50:13 . [Pipeline] withDockerContainer 13:50:13 prd-centos7-docker-4c-2g-43586 does not seem to be running inside a container 13:50:13 $ 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 13:50:14 $ docker top b770099f3522d601dbc1688dfe6c0fd193140923371e26d69c3ea93ff61b709d -eo pid,comm [Pipeline] { [Pipeline] sh 13:50:15 + go version 13:50:15 go version go1.13.13 linux/amd64 [Pipeline] } 13:50:15 $ docker stop --time=1 b770099f3522d601dbc1688dfe6c0fd193140923371e26d69c3ea93ff61b709d 13:50:16 $ docker rm -f b770099f3522d601dbc1688dfe6c0fd193140923371e26d69c3ea93ff61b709d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 13:50:18 + docker inspect -f . ci-base-image-x86_64 13:50:18 . [Pipeline] withDockerContainer 13:50:18 prd-centos7-docker-4c-2g-43586 does not seem to be running inside a container 13:50:18 $ 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 13:50:18 $ docker top 7f7c74eaa2a5b652b800f89ffc4ee2933d909fc2f26f3989d33e6058e840f58b -eo pid,comm [Pipeline] { [Pipeline] sh 13:50:19 + make test 13:50:19 CGO_ENABLED=0 GO111MODULE=on go test -coverprofile=coverage.out ./... 13:50:20 ? github.com/edgexfoundry/device-rest-go [no test files] 13:50:30 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 13:50:30 ok github.com/edgexfoundry/device-rest-go/driver 0.020s coverage: 56.3% of statements 13:50:30 CGO_ENABLED=0 GO111MODULE=on go vet ./... 13:50:32 gofmt -l . 13:50:32 [ "`gofmt -l .`" = "" ] 13:50:32 ./bin/test-go-mod-tidy.sh 13:50:32 ./bin/test-attribution-txt.sh [Pipeline] stash 13:50:32 Warning: overwriting stash ‘coverage-report’ 13:50:32 Stashed 1 file(s) [Pipeline] } 13:50:32 $ docker stop --time=1 7f7c74eaa2a5b652b800f89ffc4ee2933d909fc2f26f3989d33e6058e840f58b 13:50:35 $ docker rm -f 7f7c74eaa2a5b652b800f89ffc4ee2933d909fc2f26f3989d33e6058e840f58b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 13:50:37 + sudo chown -R jenkins:jenkins . [Pipeline] sh 13:50:37 + ls -al . 13:50:37 total 96 13:50:37 drwxrwxr-x. 9 jenkins jenkins 4096 Sep 16 13:50 . 13:50:37 drwxrwxr-x. 4 jenkins jenkins 28 Sep 16 13:49 .. 13:50:37 -rw-rw-r--. 1 jenkins jenkins 4566 Sep 16 13:49 Attribution.txt 13:50:37 drwxrwxr-x. 2 jenkins jenkins 64 Sep 16 13:49 bin 13:50:37 drwxrwxr-x. 3 jenkins jenkins 32 Sep 16 13:49 cmd 13:50:37 -rw-r--r--. 1 jenkins jenkins 9369 Sep 16 13:50 coverage.out 13:50:37 -rw-rw-r--. 1 jenkins jenkins 1519 Sep 16 13:49 Dockerfile 13:50:37 -rw-rw-r--. 1 jenkins jenkins 989 Sep 16 13:49 Dockerfile.build 13:50:37 -rw-rw-r--. 1 jenkins jenkins 151 Sep 16 13:49 .dockerignore 13:50:37 drwxrwxr-x. 2 jenkins jenkins 93 Sep 16 13:50 driver 13:50:37 drwxrwxr-x. 8 jenkins jenkins 162 Sep 16 13:49 .git 13:50:37 drwxrwxr-x. 2 jenkins jenkins 38 Sep 16 13:49 .github 13:50:37 -rw-rw-r--. 1 jenkins jenkins 339 Sep 16 13:49 .gitignore 13:50:37 -rw-r--r--. 1 jenkins jenkins 266 Sep 16 13:50 go.mod 13:50:37 -rw-r--r--. 1 jenkins jenkins 12533 Sep 16 13:50 go.sum 13:50:37 -rw-rw-r--. 1 jenkins jenkins 702 Sep 16 13:49 Jenkinsfile 13:50:37 -rw-rw-r--. 1 jenkins jenkins 11340 Sep 16 13:49 LICENSE 13:50:37 -rw-rw-r--. 1 jenkins jenkins 951 Sep 16 13:49 Makefile 13:50:37 -rw-rw-r--. 1 jenkins jenkins 5917 Sep 16 13:49 README.md 13:50:37 drwxrwxr-x. 3 jenkins jenkins 48 Sep 16 13:49 .semver 13:50:37 drwxrwxr-x. 4 jenkins jenkins 54 Sep 16 13:49 snap 13:50:37 -rw-rw-r--. 1 jenkins jenkins 5 Sep 16 13:46 VERSION 13:50:37 -rw-rw-r--. 1 jenkins jenkins 713 Sep 16 13:49 version.go [Pipeline] isUnix [Pipeline] sh 13:50:37 + 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 . 13:50:38 Sending build context to Docker daemon 8.059MB 13:50:38 Step 1/25 : ARG BASE=golang:1.13-alpine 13:50:38 Step 2/25 : FROM ${BASE} AS builder 13:50:38 ---> 1047427f137e 13:50:38 Step 3/25 : ARG MAKE='make build' 13:50:38 ---> Running in 9cca298e72bd 13:50:38 Removing intermediate container 9cca298e72bd 13:50:38 ---> d5f6de589770 13:50:38 Step 4/25 : ARG ALPINE_PKG_BASE="make git" 13:50:38 ---> Running in 0219ec1eaf6a 13:50:38 Removing intermediate container 0219ec1eaf6a 13:50:38 ---> d49249dc97ba 13:50:38 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 13:50:38 ---> Running in 2c13f0222b5e 13:50:38 Removing intermediate container 2c13f0222b5e 13:50:38 ---> 339934347bb5 13:50:38 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 13:50:38 ---> Running in fa4f6744f50e 13:50:39 Removing intermediate container fa4f6744f50e 13:50:39 ---> 8e0269491226 13:50:39 Step 7/25 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 13:50:39 ---> Running in 97901d630e25 13:50:40 fetch http://nl.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz 13:50:41 fetch http://nl.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz 13:50:43 OK: 166 MiB in 39 packages 13:50:44 Removing intermediate container 97901d630e25 13:50:44 ---> 3962c035ceed 13:50:44 Step 8/25 : WORKDIR $GOPATH/src/github.com/edgexfoundry/device-rest-go 13:50:44 ---> Running in 795a25d21276 13:50:44 Removing intermediate container 795a25d21276 13:50:44 ---> 36be08038871 13:50:44 Step 9/25 : COPY go.mod . 13:50:44 ---> 543fde7cbe9c 13:50:44 Step 10/25 : COPY Makefile . 13:50:45 ---> 9c6949271b98 13:50:45 Step 11/25 : RUN make update 13:50:45 ---> Running in 89d042e26e4d 13:50:45 CGO_ENABLED=0 GO111MODULE=on go mod download 13:50:46 Removing intermediate container 89d042e26e4d 13:50:46 ---> 69714e8cb493 13:50:46 Step 12/25 : COPY . . 13:50:46 ---> a28e175868ae 13:50:46 Step 13/25 : RUN $MAKE 13:50:46 ---> Running in ebbdab111a30 13:50:47 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 13:50:57 Removing intermediate container ebbdab111a30 13:50:57 ---> 28b3281ead2a 13:50:57 Step 14/25 : FROM alpine:latest 13:50:57 latest: Pulling from library/alpine 13:50:57 df20fa9351a1: Already exists 13:50:57 Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321 13:50:57 Status: Downloaded newer image for alpine:latest 13:50:57 ---> a24bb4013296 13:50:57 Step 15/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 13:50:57 ---> Running in dfd8a897dfce 13:50:57 Removing intermediate container dfd8a897dfce 13:50:57 ---> 6d837bd4b3cb 13:50:57 Step 16/25 : LABEL Name=device-rest-go Version=${VERSION} 13:50:57 ---> Running in e18a1bdf9fc8 13:50:57 Removing intermediate container e18a1bdf9fc8 13:50:57 ---> edcba9d9b602 13:50:57 Step 17/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/LICENSE / 13:50:58 ---> a31337214b8b 13:50:58 Step 18/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/Attribution.txt / 13:50:58 ---> 0fe3322c3b57 13:50:58 Step 19/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/cmd / 13:50:59 ---> 0280390279c1 13:50:59 Step 20/25 : EXPOSE 49986 13:50:59 ---> Running in 202ed6914444 13:50:59 Removing intermediate container 202ed6914444 13:50:59 ---> c7273be29c63 13:50:59 Step 21/25 : ENTRYPOINT ["/device-rest-go"] 13:50:59 ---> Running in 93ff82312a7e 13:50:59 Removing intermediate container 93ff82312a7e 13:50:59 ---> ff5f3f378382 13:50:59 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 13:50:59 ---> Running in d33a4572c51e 13:50:59 Removing intermediate container d33a4572c51e 13:50:59 ---> 703e32ce0dee 13:50:59 Step 23/25 : LABEL arch=amd64 13:50:59 ---> Running in cc563b21df5b 13:50:59 Removing intermediate container cc563b21df5b 13:50:59 ---> ed9522935fb0 13:50:59 Step 24/25 : LABEL git_sha=39a7a4e777933e4815b2185cae3c86dc2bb2209d 13:51:00 ---> Running in c1c038dcf6b0 13:51:00 Removing intermediate container c1c038dcf6b0 13:51:00 ---> 8cfbe2fe2de8 13:51:00 Step 25/25 : LABEL version=0.0.0 13:51:00 ---> Running in 013de361a6be 13:51:00 Removing intermediate container 013de361a6be 13:51:00 ---> 37667ae1d588 13:51:00 [Warning] One or more build-args [ARCH] were not consumed 13:51:00 Successfully built 37667ae1d588 13:51:00 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 13:51:03 provisioning config files... 13:51:03 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/xfoundry_device-rest-go_issue-36@tmp/config4323762909757592585tmp [Pipeline] { [Pipeline] sh 13:51:04 + curl -s https://codecov.io/bash 13:51:04 + bash -s - -t @/w/workspace/xfoundry_device-rest-go_issue-36@tmp/config4323762909757592585tmp [Pipeline] } 13:51:04 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 13:51:07 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 13:51:08 ---> package-listing.sh 13:51:08 ++ facter osfamily 13:51:08 ++ tr '[:upper:]' '[:lower:]' 13:51:08 + OS_FAMILY=redhat 13:51:08 + workspace=/w/workspace/xfoundry_device-rest-go_issue-36 13:51:08 + START_PACKAGES=/tmp/packages_start.txt 13:51:08 + END_PACKAGES=/tmp/packages_end.txt 13:51:08 + DIFF_PACKAGES=/tmp/packages_diff.txt 13:51:08 + PACKAGES=/tmp/packages_start.txt 13:51:08 + '[' /w/workspace/xfoundry_device-rest-go_issue-36 ']' 13:51:08 + PACKAGES=/tmp/packages_end.txt 13:51:08 + case "${OS_FAMILY}" in 13:51:08 + rpm -qa 13:51:08 + sort 13:51:12 + '[' -f /tmp/packages_start.txt ']' 13:51:12 + '[' -f /tmp/packages_end.txt ']' 13:51:12 + diff /tmp/packages_start.txt /tmp/packages_end.txt 13:51:12 + '[' /w/workspace/xfoundry_device-rest-go_issue-36 ']' 13:51:12 + mkdir -p /w/workspace/xfoundry_device-rest-go_issue-36/archives/ 13:51:12 + 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 13:51:13 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 13:51:13 13:51:13 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] isUnix [Pipeline] sh 13:51:14 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 13:51:14 alpine: Pulling from edgex-lftools-log-publisher 13:51:14 df20fa9351a1: Pulling fs layer 13:51:14 36b3adc4ff6f: Pulling fs layer 13:51:14 8ad3a11d3b57: Pulling fs layer 13:51:14 46f8f816bc3b: Pulling fs layer 13:51:14 0dadc02b9964: Pulling fs layer 13:51:14 ce6a7cf60c04: Pulling fs layer 13:51:14 7a184a31f384: Pulling fs layer 13:51:14 0879bd2ef858: Pulling fs layer 13:51:14 46f8f816bc3b: Waiting 13:51:14 0dadc02b9964: Waiting 13:51:14 ce6a7cf60c04: Waiting 13:51:14 7a184a31f384: Waiting 13:51:14 0879bd2ef858: Waiting 13:51:14 36b3adc4ff6f: Verifying Checksum 13:51:14 36b3adc4ff6f: Download complete 13:51:14 46f8f816bc3b: Verifying Checksum 13:51:14 46f8f816bc3b: Download complete 13:51:14 df20fa9351a1: Verifying Checksum 13:51:14 df20fa9351a1: Download complete 13:51:14 ce6a7cf60c04: Verifying Checksum 13:51:14 ce6a7cf60c04: Download complete 13:51:14 7a184a31f384: Verifying Checksum 13:51:14 7a184a31f384: Download complete 13:51:14 0dadc02b9964: Verifying Checksum 13:51:14 0dadc02b9964: Download complete 13:51:14 df20fa9351a1: Pull complete 13:51:14 8ad3a11d3b57: Verifying Checksum 13:51:14 8ad3a11d3b57: Download complete 13:51:14 36b3adc4ff6f: Pull complete 13:51:14 0879bd2ef858: Verifying Checksum 13:51:14 0879bd2ef858: Download complete 13:51:15 8ad3a11d3b57: Pull complete 13:51:15 46f8f816bc3b: Pull complete 13:51:15 0dadc02b9964: Pull complete 13:51:16 ce6a7cf60c04: Pull complete 13:51:16 7a184a31f384: Pull complete 13:51:18 0879bd2ef858: Pull complete 13:51:18 Digest: sha256:6a0b98a82ad2e848da155b214a5d490c0357af837e10dd363e416ea0d50debb0 13:51:18 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine 13:51:18 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] withDockerContainer 13:51:18 prd-centos7-docker-4c-2g-43584 does not seem to be running inside a container 13:51:18 $ 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 13:51:22 $ docker top 2e41b74ced44807614782e875d3a12a65a110a57aeb28d3de8bd04da9c59a54c -eo pid,comm [Pipeline] { [Pipeline] sh 13:51:23 + mkdir -p /var/log/sa [Pipeline] sh 13:51:23 + ls /var/log/sa-host 13:51:23 + sadf -c /var/log/sa-host/sa05 13:51:23 file_magic: OK 13:51:23 HZ: Using current value: 100 13:51:23 file_header: OK 13:51:23 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 13:51:23 Statistics: 13:51:23 Hnuu...uuuununununu...Hnuu...uuuununununu... 13:51:23 File successfully converted to sysstat format version 12.2.1 13:51:23 + sadf -c /var/log/sa-host/sa16 13:51:23 file_magic: OK 13:51:23 HZ: Using current value: 100 13:51:23 file_header: OK 13:51:23 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 13:51:23 Statistics: 13:51:23 HRHnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu... 13:51:23 File successfully converted to sysstat format version 12.2.1 [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 13:51:23 provisioning config files... 13:51:23 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-rest-go_issue-36@tmp/config5545356304948242586tmp [Pipeline] { [Pipeline] echo 13:51:23 Running global-jjb/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 13:51:24 ---> create-netrc.sh [Pipeline] echo 13:51:24 Running global-jjb/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 13:51:24 ---> logs-deploy.sh 13:51:24 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/issue-36/1 13:51:24 INFO: archiving workspace using pattern(s): 13:51:25 Archives upload complete. 13:51:25 INFO: archiving logs to Nexus