Pull request #39 closed Connecting to https://api.github.com using edgex-jenkins/****** (edgex-jenkins github personal access token) Obtained Jenkinsfile from a96498e3a5486d5706f145af628414c1fa7f774e Running in Durability level: PERFORMANCE_OPTIMIZED Loading library edgex-global-pipelines@stable Attempting to resolve stable from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 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 > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 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 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] ========================================================= [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.15 GOPROXY: https://nexus3.edgexfoundry.org/repository/go-proxy/ DOCKER_BASE_IMAGE: nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.15-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 Waiting for next available executor on ‘prd-centos7-docker-4c-2g-395’ Running on prd-centos7-docker-4c-2g-410 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 a96498e3a5486d5706f145af628414c1fa7f774e (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 a96498e3a5486d5706f145af628414c1fa7f774e # timeout=10 Commit message: "doc: correct build instructions (#36)" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout [2020-09-18T15:24:14.360Z] Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) > git rev-list --no-walk 39a7a4e777933e4815b2185cae3c86dc2bb2209d # timeout=10 [Pipeline] script [Pipeline] { [Pipeline] withCredentials [2020-09-18T15:24:14.617Z] Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo [2020-09-18T15:24:14.726Z] ========================================================= [2020-09-18T15:24:14.726Z] EdgeX Global Pipelines Version Info [2020-09-18T15:24:14.726Z] ========================================================= [Pipeline] libraryResource [Pipeline] sh [2020-09-18T15:24:16.634Z] ------------------- [2020-09-18T15:24:16.634Z] stable info: [2020-09-18T15:24:16.634Z] ------------------- [2020-09-18T15:24:16.634Z] Commited By: Ernesto Ojeda ernesto.ojeda@intel.com [2020-09-18T15:24:16.634Z] Commit SHA: 7909e789ffc0fecf34d47f501ec8db0a80105338 [2020-09-18T15:24:16.634Z] Message: update stable to v1.0.122 [2020-09-18T15:24:17.214Z] ------------------- [2020-09-18T15:24:17.214Z] experimental info: [2020-09-18T15:24:17.214Z] ------------------- [2020-09-18T15:24:17.214Z] Commited By: **** collab-it+edgex@linuxfoundation.org [2020-09-18T15:24:17.214Z] Commit SHA: 040e29ce4f8dcf7f02c652317e535dcbebe1b406 [2020-09-18T15:24:17.214Z] Message: update experimental to v1.0.125 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] } [Pipeline] // script [Pipeline] echo [2020-09-18T15:24:17.582Z] [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo [2020-09-18T15:24:17.677Z] [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo [2020-09-18T15:24:17.771Z] [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo [2020-09-18T15:24:17.907Z] [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo [2020-09-18T15:24:17.997Z] [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo [2020-09-18T15:24:18.116Z] [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.15 [Pipeline] echo [2020-09-18T15:24:18.211Z] [edgeXSetupEnvironment]: set envvar GOPROXY = https://nexus3.edgexfoundry.org/repository/go-proxy/ [Pipeline] echo [2020-09-18T15:24:18.299Z] [edgeXSetupEnvironment]: set envvar DOCKER_BASE_IMAGE = nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.15-alpine [Pipeline] echo [2020-09-18T15:24:18.450Z] [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo [2020-09-18T15:24:18.569Z] [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo [2020-09-18T15:24:18.669Z] [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo [2020-09-18T15:24:18.774Z] [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = docker-device-rest-go [Pipeline] echo [2020-09-18T15:24:18.888Z] [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo [2020-09-18T15:24:18.978Z] [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo [2020-09-18T15:24:19.070Z] [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo [2020-09-18T15:24:19.158Z] [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo [2020-09-18T15:24:19.243Z] [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo [2020-09-18T15:24:19.401Z] [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo [2020-09-18T15:24:19.491Z] [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo [2020-09-18T15:24:19.584Z] [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo [2020-09-18T15:24:19.697Z] [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo [2020-09-18T15:24:19.785Z] [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo [2020-09-18T15:24:19.872Z] [edgeXSetupEnvironment]: set envvar GIT_BRANCH = issue-36 [Pipeline] echo [2020-09-18T15:24:19.958Z] [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = issue-36 [Pipeline] echo [2020-09-18T15:24:20.047Z] [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = issue-36 [Pipeline] echo [2020-09-18T15:24:20.215Z] [edgeXSetupEnvironment]: set envvar GIT_COMMIT = a96498e3a5486d5706f145af628414c1fa7f774e [Pipeline] echo [2020-09-18T15:24:20.348Z] [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = a96498e [Pipeline] echo [2020-09-18T15:24:20.489Z] [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh [2020-09-18T15:24:21.121Z] + git log --format=format:%s -1 a96498e3a5486d5706f145af628414c1fa7f774e [Pipeline] echo [2020-09-18T15:24:21.191Z] GIT_COMMIT: a96498e3a5486d5706f145af628414c1fa7f774e, Commit Message: doc: correct build instructions (#36) [Pipeline] echo [2020-09-18T15:24:21.234Z] This is not a build commit. [Pipeline] isUnix [Pipeline] sh [2020-09-18T15:24:21.800Z] + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2020-09-18T15:24:22.063Z] [2020-09-18T15:24:22.063Z] Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh [2020-09-18T15:24:22.426Z] + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2020-09-18T15:24:22.426Z] latest: Pulling from edgex-devops/git-semver [2020-09-18T15:24:22.426Z] 31603596830f: Pulling fs layer [2020-09-18T15:24:22.426Z] 2a8b12db71e7: Pulling fs layer [2020-09-18T15:24:22.426Z] 6ca5941a6612: Pulling fs layer [2020-09-18T15:24:22.426Z] ecc8261a40a4: Pulling fs layer [2020-09-18T15:24:22.426Z] ecc8261a40a4: Waiting [2020-09-18T15:24:22.426Z] 2a8b12db71e7: Verifying Checksum [2020-09-18T15:24:22.426Z] 2a8b12db71e7: Download complete [2020-09-18T15:24:22.426Z] 31603596830f: Verifying Checksum [2020-09-18T15:24:22.426Z] 31603596830f: Download complete [2020-09-18T15:24:22.696Z] ecc8261a40a4: Verifying Checksum [2020-09-18T15:24:22.696Z] ecc8261a40a4: Download complete [2020-09-18T15:24:22.696Z] 6ca5941a6612: Verifying Checksum [2020-09-18T15:24:22.696Z] 6ca5941a6612: Download complete [2020-09-18T15:24:22.960Z] 31603596830f: Pull complete [2020-09-18T15:24:22.960Z] 2a8b12db71e7: Pull complete [2020-09-18T15:24:23.911Z] 6ca5941a6612: Pull complete [2020-09-18T15:24:23.911Z] ecc8261a40a4: Pull complete [2020-09-18T15:24:23.911Z] Digest: sha256:c336c3cb7d26c4f33e4bbf869d415e221d43967d83d6a5809e4cb0cc2a1e8fe7 [2020-09-18T15:24:23.911Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2020-09-18T15:24:23.911Z] nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer [2020-09-18T15:24:24.018Z] prd-centos7-docker-4c-2g-410 does not seem to be running inside a container [2020-09-18T15:24:24.067Z] $ 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 ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat [2020-09-18T15:24:26.240Z] $ docker top c989b8ee534026b40ec9ff0d79e6af248233ac9fdf0a936e1ac9fbadc19098e1 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent [2020-09-18T15:24:26.587Z] [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) [2020-09-18T15:24:26.587Z] [ssh-agent] Looking for ssh-agent implementation... [2020-09-18T15:24:26.783Z] [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) [2020-09-18T15:24:26.788Z] $ docker exec c989b8ee534026b40ec9ff0d79e6af248233ac9fdf0a936e1ac9fbadc19098e1 ssh-agent [2020-09-18T15:24:26.944Z] SSH_AUTH_SOCK=/tmp/ssh-aeaMI98ZMh5B/agent.11 [2020-09-18T15:24:26.944Z] SSH_AGENT_PID=16 [2020-09-18T15:24:26.955Z] Running ssh-add (command line suppressed) [2020-09-18T15:24:27.083Z] Identity added: /w/workspace/xfoundry_device-rest-go_issue-36@tmp/private_key_7763198823907384512.key (/w/workspace/xfoundry_device-rest-go_issue-36@tmp/private_key_7763198823907384512.key) [2020-09-18T15:24:27.136Z] [ssh-agent] Started. [Pipeline] { [Pipeline] sh [2020-09-18T15:24:27.470Z] + git describe --exact-match --tags HEAD [2020-09-18T15:24:27.470Z] fatal: No names found, cannot describe anything. [Pipeline] } [2020-09-18T15:24:27.496Z] $ docker exec --env ******** --env ******** c989b8ee534026b40ec9ff0d79e6af248233ac9fdf0a936e1ac9fbadc19098e1 ssh-agent -k [2020-09-18T15:24:27.614Z] unset SSH_AUTH_SOCK; [2020-09-18T15:24:27.615Z] unset SSH_AGENT_PID; [2020-09-18T15:24:27.615Z] echo Agent pid 16 killed; [2020-09-18T15:24:27.656Z] [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] echo [2020-09-18T15:24:27.746Z] [edgeXSemver]: exception occurred checking if HEAD is tagged: hudson.AbortException: script returned exit code 128 [2020-09-18T15:24:27.746Z] This usually means this commit has not been tagged. [Pipeline] sshagent [2020-09-18T15:24:27.841Z] [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) [2020-09-18T15:24:27.841Z] [ssh-agent] Looking for ssh-agent implementation... [2020-09-18T15:24:28.006Z] [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) [2020-09-18T15:24:28.012Z] $ docker exec c989b8ee534026b40ec9ff0d79e6af248233ac9fdf0a936e1ac9fbadc19098e1 ssh-agent [2020-09-18T15:24:28.166Z] SSH_AUTH_SOCK=/tmp/ssh-WcvgDC3Khnkw/agent.44 [2020-09-18T15:24:28.166Z] SSH_AGENT_PID=49 [2020-09-18T15:24:28.174Z] Running ssh-add (command line suppressed) [2020-09-18T15:24:28.290Z] Identity added: /w/workspace/xfoundry_device-rest-go_issue-36@tmp/private_key_139538648085176701.key (/w/workspace/xfoundry_device-rest-go_issue-36@tmp/private_key_139538648085176701.key) [2020-09-18T15:24:28.337Z] [ssh-agent] Started. [Pipeline] { [Pipeline] sh [2020-09-18T15:24:28.674Z] + git semver init [2020-09-18T15:24:28.674Z] # -> Open(): unable to determine branch for HEAD [2020-09-18T15:24:28.674Z] # $GIT_DIR = /w/workspace/xfoundry_device-rest-go_issue-36/.git [2020-09-18T15:24:28.674Z] # $GIT_WORK_TREE = /w/workspace/xfoundry_device-rest-go_issue-36 [2020-09-18T15:24:28.674Z] # $SEMVER_REMOTE_NAME = origin [2020-09-18T15:24:28.674Z] # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org [2020-09-18T15:24:28.674Z] # $SEMVER_USER_NAME = edgex-jenkins [2020-09-18T15:24:28.674Z] # $SEMVER_BRANCH = issue-36 [2020-09-18T15:24:28.674Z] # $SEMVER_TEMP = /tmp/semver-456513218 [2020-09-18T15:24:28.674Z] # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP [2020-09-18T15:24:30.067Z] # '/tmp/semver-456513218' -> '/w/workspace/xfoundry_device-rest-go_issue-36/.semver' [2020-09-18T15:24:30.067Z] # -> Force: false [2020-09-18T15:24:30.067Z] # $SEMVER_DIR = /w/workspace/xfoundry_device-rest-go_issue-36/.semver [Pipeline] } [2020-09-18T15:24:30.082Z] $ docker exec --env ******** --env ******** c989b8ee534026b40ec9ff0d79e6af248233ac9fdf0a936e1ac9fbadc19098e1 ssh-agent -k [2020-09-18T15:24:30.204Z] unset SSH_AUTH_SOCK; [2020-09-18T15:24:30.204Z] unset SSH_AGENT_PID; [2020-09-18T15:24:30.204Z] echo Agent pid 49 killed; [2020-09-18T15:24:30.249Z] [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh [2020-09-18T15:24:30.796Z] + git semver [Pipeline] } [2020-09-18T15:24:30.816Z] $ docker stop --time=1 c989b8ee534026b40ec9ff0d79e6af248233ac9fdf0a936e1ac9fbadc19098e1 [2020-09-18T15:24:32.221Z] $ docker rm -f c989b8ee534026b40ec9ff0d79e6af248233ac9fdf0a936e1ac9fbadc19098e1 [Pipeline] // withDockerContainer [Pipeline] writeFile [Pipeline] stash [2020-09-18T15:24:33.641Z] Stashed 22 file(s) [Pipeline] echo [2020-09-18T15:24:33.644Z] [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] echo [2020-09-18T15:24:33.737Z] 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-18T15:24:49.184Z] Still waiting to schedule task [2020-09-18T15:24:49.184Z] Waiting for next available executor on ‘centos7-docker-4c-2g’ [2020-09-18T15:24:49.186Z] Still waiting to schedule task [2020-09-18T15:24:49.187Z] ‘prd-ubuntu18.04-docker-arm64-4c-16g-409’ is offline [2020-09-18T15:25:03.723Z] Running on prd-centos7-docker-4c-2g-412 in /w/workspace/xfoundry_device-rest-go_issue-36 [Pipeline] { [Pipeline] ws [2020-09-18T15:25:03.778Z] Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout [2020-09-18T15:25:06.226Z] using credential edgex-jenkins-ssh [2020-09-18T15:25:06.287Z] Cloning the remote Git repository [2020-09-18T15:25:06.288Z] Cloning with configured refspecs honoured and without tags [2020-09-18T15:25:06.318Z] Cloning repository git@github.com:edgexfoundry/device-rest-go.git [2020-09-18T15:25:06.381Z] > git init /w/workspace/device-rest-go/2 # timeout=10 [2020-09-18T15:25:06.426Z] Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git [2020-09-18T15:25:06.426Z] > git --version # timeout=10 [2020-09-18T15:25:06.432Z] > git --version # 'git version 2.16.5' [2020-09-18T15:25:06.432Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2020-09-18T15:25:06.456Z] > 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-18T15:25:08.057Z] Fetching without tags [2020-09-18T15:25:08.451Z] Checking out Revision a96498e3a5486d5706f145af628414c1fa7f774e (issue-36) [2020-09-18T15:25:08.034Z] > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 [2020-09-18T15:25:08.040Z] > git config --add remote.origin.fetch +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 [2020-09-18T15:25:08.052Z] > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 [2020-09-18T15:25:08.062Z] Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git [2020-09-18T15:25:08.062Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2020-09-18T15:25:08.066Z] > 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-18T15:25:08.460Z] > git config core.sparsecheckout # timeout=10 [2020-09-18T15:25:08.464Z] > git checkout -f a96498e3a5486d5706f145af628414c1fa7f774e # timeout=10 [2020-09-18T15:25:12.001Z] Commit message: "doc: correct build instructions (#36)" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] unstash [Pipeline] echo [2020-09-18T15:25:13.112Z] ========================================================= [2020-09-18T15:25:13.113Z] [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.15-alpine] [2020-09-18T15:25:13.113Z] ========================================================= [Pipeline] isUnix [Pipeline] sh [2020-09-18T15:25:13.863Z] + docker build -t ci-base-image-x86_64 -f Dockerfile.build --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.15-alpine . [2020-09-18T15:25:14.127Z] Sending build context to Docker daemon 8.054MB [2020-09-18T15:25:14.127Z] Step 1/10 : ARG BASE=golang:1.15-alpine [2020-09-18T15:25:14.127Z] Step 2/10 : FROM ${BASE} [2020-09-18T15:25:14.127Z] 1.15-alpine: Pulling from edgex-devops/edgex-golang-base [2020-09-18T15:25:14.127Z] df20fa9351a1: Pulling fs layer [2020-09-18T15:25:14.127Z] ed8968b2872e: Pulling fs layer [2020-09-18T15:25:14.127Z] a92cc7c5fd73: Pulling fs layer [2020-09-18T15:25:14.127Z] e871e8e8d7a9: Pulling fs layer [2020-09-18T15:25:14.127Z] e73272ec9a57: Pulling fs layer [2020-09-18T15:25:14.127Z] 1e910a182e73: Pulling fs layer [2020-09-18T15:25:14.127Z] 4e634b169226: Pulling fs layer [2020-09-18T15:25:14.127Z] 1e910a182e73: Waiting [2020-09-18T15:25:14.127Z] e73272ec9a57: Waiting [2020-09-18T15:25:14.127Z] 4e634b169226: Waiting [2020-09-18T15:25:14.127Z] e871e8e8d7a9: Waiting [2020-09-18T15:25:14.127Z] a92cc7c5fd73: Download complete [2020-09-18T15:25:14.127Z] ed8968b2872e: Download complete [2020-09-18T15:25:14.127Z] e73272ec9a57: Verifying Checksum [2020-09-18T15:25:14.127Z] e73272ec9a57: Download complete [2020-09-18T15:25:14.391Z] 1e910a182e73: Verifying Checksum [2020-09-18T15:25:14.391Z] 1e910a182e73: Download complete [2020-09-18T15:25:14.391Z] df20fa9351a1: Verifying Checksum [2020-09-18T15:25:14.391Z] df20fa9351a1: Download complete [2020-09-18T15:25:14.391Z] df20fa9351a1: Pull complete [2020-09-18T15:25:14.659Z] ed8968b2872e: Pull complete [2020-09-18T15:25:14.659Z] a92cc7c5fd73: Pull complete [2020-09-18T15:25:16.600Z] 4e634b169226: Verifying Checksum [2020-09-18T15:25:16.600Z] 4e634b169226: Download complete [2020-09-18T15:25:16.861Z] e871e8e8d7a9: Verifying Checksum [2020-09-18T15:25:16.861Z] e871e8e8d7a9: Download complete [2020-09-18T15:25:22.181Z] e871e8e8d7a9: Pull complete [2020-09-18T15:25:22.181Z] e73272ec9a57: Pull complete [2020-09-18T15:25:22.181Z] 1e910a182e73: Pull complete [2020-09-18T15:25:26.402Z] 4e634b169226: Pull complete [2020-09-18T15:25:26.402Z] Digest: sha256:0b802f5dd80e2ad8551c53c724486b1db3b79f86ac5ae7c7a2db79f17045b642 [2020-09-18T15:25:26.402Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.15-alpine [2020-09-18T15:25:26.402Z] ---> f7629b54cfaa [2020-09-18T15:25:26.402Z] Step 3/10 : ARG ALPINE_PKG_BASE="make git" [2020-09-18T15:25:26.402Z] ---> Running in 7994c49b4a5a [2020-09-18T15:25:26.664Z] Removing intermediate container 7994c49b4a5a [2020-09-18T15:25:26.664Z] ---> 9f8ba73d4d64 [2020-09-18T15:25:26.664Z] Step 4/10 : ARG ALPINE_PKG_EXTRA="" [2020-09-18T15:25:26.664Z] ---> Running in 65ba8d6bd416 [2020-09-18T15:25:26.664Z] Removing intermediate container 65ba8d6bd416 [2020-09-18T15:25:26.664Z] ---> 9c55185002e0 [2020-09-18T15:25:26.664Z] Step 5/10 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' [2020-09-18T15:25:26.929Z] ---> Running in 5559cf0d4a29 [2020-09-18T15:25:26.929Z] Removing intermediate container 5559cf0d4a29 [2020-09-18T15:25:26.929Z] ---> e2d83ca50963 [2020-09-18T15:25:26.929Z] Step 6/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2020-09-18T15:25:26.929Z] ---> Running in 928461fecc3a [2020-09-18T15:25:28.323Z] Removing intermediate container 928461fecc3a [2020-09-18T15:25:28.323Z] ---> 3e12b2d4ec02 [2020-09-18T15:25:28.323Z] Step 7/10 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2020-09-18T15:25:28.323Z] ---> Running in 21491241efe9 [2020-09-18T15:25:29.268Z] fetch http://nl.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz [2020-09-18T15:25:29.841Z] fetch http://nl.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz [2020-09-18T15:25:30.101Z] OK: 166 MiB in 39 packages [2020-09-18T15:25:30.679Z] Removing intermediate container 21491241efe9 [2020-09-18T15:25:30.679Z] ---> 1f244b7692d9 [2020-09-18T15:25:30.679Z] Step 8/10 : WORKDIR /device-rest-go [2020-09-18T15:25:30.679Z] ---> Running in 097ec24e8596 [2020-09-18T15:25:30.679Z] Removing intermediate container 097ec24e8596 [2020-09-18T15:25:30.679Z] ---> 408dfe0ca6cd [2020-09-18T15:25:30.679Z] Step 9/10 : COPY . . [2020-09-18T15:25:31.257Z] ---> c04315df3579 [2020-09-18T15:25:31.257Z] Step 10/10 : RUN go mod download [2020-09-18T15:25:31.518Z] ---> Running in c72f87711c8c [2020-09-18T15:25:43.774Z] Removing intermediate container c72f87711c8c [2020-09-18T15:25:43.774Z] ---> 4c1b719d111b [2020-09-18T15:25:43.774Z] Successfully built 4c1b719d111b [2020-09-18T15:25:43.774Z] Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh [2020-09-18T15:25:44.108Z] + docker inspect -f . ci-base-image-x86_64 [2020-09-18T15:25:44.108Z] . [Pipeline] withDockerContainer [2020-09-18T15:25:44.208Z] prd-centos7-docker-4c-2g-412 does not seem to be running inside a container [2020-09-18T15:25:44.260Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat [2020-09-18T15:25:45.402Z] $ docker top 014ba70f878862ab178208fc0a8533eae0c68d6e12fd75b1539ac1eee9bc5a43 -eo pid,comm [Pipeline] { [Pipeline] sh [2020-09-18T15:25:45.920Z] + go version [2020-09-18T15:25:45.920Z] go version go1.15.2 linux/amd64 [Pipeline] } [2020-09-18T15:25:45.935Z] $ docker stop --time=1 014ba70f878862ab178208fc0a8533eae0c68d6e12fd75b1539ac1eee9bc5a43 [2020-09-18T15:25:47.275Z] $ docker rm -f 014ba70f878862ab178208fc0a8533eae0c68d6e12fd75b1539ac1eee9bc5a43 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh [2020-09-18T15:25:48.104Z] + docker inspect -f . ci-base-image-x86_64 [2020-09-18T15:25:48.104Z] . [Pipeline] withDockerContainer [2020-09-18T15:25:48.200Z] prd-centos7-docker-4c-2g-412 does not seem to be running inside a container [2020-09-18T15:25:48.401Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat [2020-09-18T15:25:49.200Z] $ docker top 78f37be432807d95b5af755c80838b5cade84aa2904bc4b12a5f1d9ef7180384 -eo pid,comm [Pipeline] { [Pipeline] sh [2020-09-18T15:25:49.679Z] + make test [2020-09-18T15:25:49.679Z] CGO_ENABLED=0 GO111MODULE=on go test -coverprofile=coverage.out ./... [2020-09-18T15:25:50.269Z] ? github.com/edgexfoundry/device-rest-go [no test files] [2020-09-18T15:26:00.360Z] ? github.com/edgexfoundry/device-rest-go/cmd [no test files] [2020-09-18T15:26:00.360Z] ok github.com/edgexfoundry/device-rest-go/driver 0.047s coverage: 56.3% of statements [2020-09-18T15:26:00.360Z] CGO_ENABLED=0 GO111MODULE=on go vet ./... [2020-09-18T15:26:00.938Z] gofmt -l . [2020-09-18T15:26:00.938Z] [ "`gofmt -l .`" = "" ] [2020-09-18T15:26:00.938Z] ./bin/test-go-mod-tidy.sh [2020-09-18T15:26:01.202Z] ./bin/test-attribution-txt.sh [Pipeline] stash [2020-09-18T15:26:01.741Z] Stashed 1 file(s) [Pipeline] } [2020-09-18T15:26:01.750Z] $ docker stop --time=1 78f37be432807d95b5af755c80838b5cade84aa2904bc4b12a5f1d9ef7180384 [2020-09-18T15:26:04.028Z] $ docker rm -f 78f37be432807d95b5af755c80838b5cade84aa2904bc4b12a5f1d9ef7180384 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh [2020-09-18T15:26:05.460Z] + sudo chown -R jenkins:jenkins . [Pipeline] sh [2020-09-18T15:26:05.758Z] + ls -al . [2020-09-18T15:26:05.758Z] total 96 [2020-09-18T15:26:05.758Z] drwxrwxr-x. 9 jenkins jenkins 4096 Sep 18 15:26 . [2020-09-18T15:26:05.758Z] drwxrwxr-x. 4 jenkins jenkins 28 Sep 18 15:25 .. [2020-09-18T15:26:05.758Z] -rw-rw-r--. 1 jenkins jenkins 4566 Sep 18 15:25 Attribution.txt [2020-09-18T15:26:05.758Z] drwxrwxr-x. 2 jenkins jenkins 64 Sep 18 15:25 bin [2020-09-18T15:26:05.758Z] drwxrwxr-x. 3 jenkins jenkins 32 Sep 18 15:25 cmd [2020-09-18T15:26:05.758Z] -rw-r--r--. 1 jenkins jenkins 9369 Sep 18 15:25 coverage.out [2020-09-18T15:26:05.758Z] -rw-rw-r--. 1 jenkins jenkins 1519 Sep 18 15:25 Dockerfile [2020-09-18T15:26:05.758Z] -rw-rw-r--. 1 jenkins jenkins 989 Sep 18 15:25 Dockerfile.build [2020-09-18T15:26:05.758Z] -rw-rw-r--. 1 jenkins jenkins 151 Sep 18 15:25 .dockerignore [2020-09-18T15:26:05.758Z] drwxrwxr-x. 2 jenkins jenkins 93 Sep 18 15:25 driver [2020-09-18T15:26:05.758Z] drwxrwxr-x. 8 jenkins jenkins 162 Sep 18 15:25 .git [2020-09-18T15:26:05.758Z] drwxrwxr-x. 2 jenkins jenkins 38 Sep 18 15:25 .github [2020-09-18T15:26:05.758Z] -rw-rw-r--. 1 jenkins jenkins 339 Sep 18 15:25 .gitignore [2020-09-18T15:26:05.758Z] -rw-r--r--. 1 jenkins jenkins 266 Sep 18 15:26 go.mod [2020-09-18T15:26:05.758Z] -rw-r--r--. 1 jenkins jenkins 12533 Sep 18 15:26 go.sum [2020-09-18T15:26:05.758Z] -rw-rw-r--. 1 jenkins jenkins 680 Sep 18 15:25 Jenkinsfile [2020-09-18T15:26:05.758Z] -rw-rw-r--. 1 jenkins jenkins 11340 Sep 18 15:25 LICENSE [2020-09-18T15:26:05.758Z] -rw-rw-r--. 1 jenkins jenkins 951 Sep 18 15:25 Makefile [2020-09-18T15:26:05.758Z] -rw-rw-r--. 1 jenkins jenkins 5917 Sep 18 15:25 README.md [2020-09-18T15:26:05.758Z] drwxrwxr-x. 3 jenkins jenkins 48 Sep 18 15:25 .semver [2020-09-18T15:26:05.758Z] drwxrwxr-x. 4 jenkins jenkins 54 Sep 18 15:25 snap [2020-09-18T15:26:05.758Z] -rw-rw-r--. 1 jenkins jenkins 5 Sep 18 15:24 VERSION [2020-09-18T15:26:05.758Z] -rw-rw-r--. 1 jenkins jenkins 713 Sep 18 15:25 version.go [Pipeline] isUnix [Pipeline] sh [2020-09-18T15:26:06.063Z] + 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=a96498e3a5486d5706f145af628414c1fa7f774e --label arch=amd64 --label version=0.0.0 . [2020-09-18T15:26:06.063Z] Sending build context to Docker daemon 8.066MB [2020-09-18T15:26:06.063Z] Step 1/25 : ARG BASE=golang:1.15-alpine [2020-09-18T15:26:06.063Z] Step 2/25 : FROM ${BASE} AS builder [2020-09-18T15:26:06.063Z] ---> 4c1b719d111b [2020-09-18T15:26:06.063Z] Step 3/25 : ARG MAKE='make build' [2020-09-18T15:26:06.327Z] ---> Running in cd2de2c4683c [2020-09-18T15:26:06.589Z] Removing intermediate container cd2de2c4683c [2020-09-18T15:26:06.589Z] ---> c0e555650afe [2020-09-18T15:26:06.589Z] Step 4/25 : ARG ALPINE_PKG_BASE="make git" [2020-09-18T15:26:06.589Z] ---> Running in 4ed4ae5919ea [2020-09-18T15:26:06.850Z] Removing intermediate container 4ed4ae5919ea [2020-09-18T15:26:06.850Z] ---> 62aeb8f00428 [2020-09-18T15:26:06.850Z] Step 5/25 : ARG ALPINE_PKG_EXTRA="" [2020-09-18T15:26:07.113Z] ---> Running in c04a739919f4 [2020-09-18T15:26:07.113Z] Removing intermediate container c04a739919f4 [2020-09-18T15:26:07.113Z] ---> 09f250f93812 [2020-09-18T15:26:07.113Z] Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2020-09-18T15:26:07.113Z] ---> Running in 76695208cb91 [2020-09-18T15:26:08.061Z] Removing intermediate container 76695208cb91 [2020-09-18T15:26:08.061Z] ---> 19f04e1b32e7 [2020-09-18T15:26:08.061Z] Step 7/25 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2020-09-18T15:26:08.061Z] ---> Running in cb149421cbbd [2020-09-18T15:26:08.635Z] fetch http://nl.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz [2020-09-18T15:26:09.207Z] fetch http://nl.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz [2020-09-18T15:26:09.781Z] OK: 166 MiB in 39 packages [2020-09-18T15:26:10.042Z] Removing intermediate container cb149421cbbd [2020-09-18T15:26:10.042Z] ---> 79ebfe0a7db6 [2020-09-18T15:26:10.042Z] Step 8/25 : WORKDIR $GOPATH/src/github.com/edgexfoundry/device-rest-go [2020-09-18T15:26:10.042Z] ---> Running in 5880914809f8 [2020-09-18T15:26:10.304Z] Removing intermediate container 5880914809f8 [2020-09-18T15:26:10.304Z] ---> 272003787436 [2020-09-18T15:26:10.304Z] Step 9/25 : COPY go.mod . [2020-09-18T15:26:10.567Z] ---> ede7f9abee85 [2020-09-18T15:26:10.567Z] Step 10/25 : COPY Makefile . [2020-09-18T15:26:10.828Z] ---> c34f11a5a5a7 [2020-09-18T15:26:10.828Z] Step 11/25 : RUN make update [2020-09-18T15:26:10.828Z] ---> Running in d3257d27b4d7 [2020-09-18T15:26:11.089Z] CGO_ENABLED=0 GO111MODULE=on go mod download [2020-09-18T15:26:11.661Z] Removing intermediate container d3257d27b4d7 [2020-09-18T15:26:11.661Z] ---> a67274e92ef0 [2020-09-18T15:26:11.661Z] Step 12/25 : COPY . . [2020-09-18T15:26:12.239Z] ---> 34d1ff6c4e8e [2020-09-18T15:26:12.239Z] Step 13/25 : RUN $MAKE [2020-09-18T15:26:12.239Z] ---> Running in fa3d814b3e25 [2020-09-18T15:26:12.504Z] 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-18T15:26:22.606Z] Removing intermediate container fa3d814b3e25 [2020-09-18T15:26:22.606Z] ---> 3d4bf317709a [2020-09-18T15:26:22.606Z] Step 14/25 : FROM alpine:latest [2020-09-18T15:26:22.606Z] latest: Pulling from library/alpine [2020-09-18T15:26:22.606Z] df20fa9351a1: Already exists [2020-09-18T15:26:24.518Z] Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321 [2020-09-18T15:26:24.518Z] Status: Downloaded newer image for alpine:latest [2020-09-18T15:26:24.518Z] ---> a24bb4013296 [2020-09-18T15:26:24.518Z] Step 15/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' [2020-09-18T15:26:24.518Z] ---> Running in 58a6de8cf7a7 [2020-09-18T15:26:24.518Z] Removing intermediate container 58a6de8cf7a7 [2020-09-18T15:26:24.518Z] ---> 8b592e95a9d3 [2020-09-18T15:26:24.518Z] Step 16/25 : LABEL Name=device-rest-go Version=${VERSION} [2020-09-18T15:26:24.518Z] ---> Running in 74ad0fdafd8e [2020-09-18T15:26:24.779Z] Removing intermediate container 74ad0fdafd8e [2020-09-18T15:26:24.779Z] ---> ffee64ca6bbf [2020-09-18T15:26:24.779Z] Step 17/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/LICENSE / [2020-09-18T15:26:25.040Z] ---> 20cda07b3c36 [2020-09-18T15:26:25.040Z] Step 18/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/Attribution.txt / [2020-09-18T15:26:25.303Z] ---> 91a23350e6f9 [2020-09-18T15:26:25.303Z] Step 19/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/cmd / [2020-09-18T15:26:25.564Z] ---> 0b10f6764494 [2020-09-18T15:26:25.564Z] Step 20/25 : EXPOSE 49986 [2020-09-18T15:26:25.826Z] ---> Running in 4dfb847bbcd9 [2020-09-18T15:26:25.826Z] Removing intermediate container 4dfb847bbcd9 [2020-09-18T15:26:25.826Z] ---> c6ceab9fb75b [2020-09-18T15:26:25.826Z] Step 21/25 : ENTRYPOINT ["/device-rest-go"] [2020-09-18T15:26:26.087Z] ---> Running in 467088c45d6d [2020-09-18T15:26:26.087Z] Removing intermediate container 467088c45d6d [2020-09-18T15:26:26.087Z] ---> 697dcdc19bc2 [2020-09-18T15:26:26.087Z] Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] [2020-09-18T15:26:26.087Z] ---> Running in 2c438b7308f8 [2020-09-18T15:26:26.348Z] Removing intermediate container 2c438b7308f8 [2020-09-18T15:26:26.348Z] ---> 62bd25c44a9b [2020-09-18T15:26:26.348Z] Step 23/25 : LABEL arch=amd64 [2020-09-18T15:26:26.348Z] ---> Running in dc4ca84d22d5 [2020-09-18T15:26:26.610Z] Removing intermediate container dc4ca84d22d5 [2020-09-18T15:26:26.610Z] ---> d02690b1d8c6 [2020-09-18T15:26:26.610Z] Step 24/25 : LABEL git_sha=a96498e3a5486d5706f145af628414c1fa7f774e [2020-09-18T15:26:26.610Z] ---> Running in ac1a6fe8fb5c [2020-09-18T15:26:26.871Z] Removing intermediate container ac1a6fe8fb5c [2020-09-18T15:26:26.871Z] ---> af8c7d59f47b [2020-09-18T15:26:26.871Z] Step 25/25 : LABEL version=0.0.0 [2020-09-18T15:26:26.871Z] ---> Running in 1a7519992090 [2020-09-18T15:26:27.138Z] Removing intermediate container 1a7519992090 [2020-09-18T15:26:27.138Z] ---> 6089d0df077c [2020-09-18T15:26:27.138Z] [Warning] One or more build-args [ARCH] were not consumed [2020-09-18T15:26:27.138Z] Successfully built 6089d0df077c [2020-09-18T15:26:27.138Z] 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] } [2020-09-18T15:26:42.152Z] Running on prd-ubuntu18.04-docker-arm64-4c-16g-413 in /w/workspace/xfoundry_device-rest-go_issue-36 [Pipeline] { [Pipeline] ws [2020-09-18T15:26:42.294Z] Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout [2020-09-18T15:26:47.262Z] using credential edgex-jenkins-ssh [2020-09-18T15:26:47.327Z] Cloning the remote Git repository [2020-09-18T15:26:47.327Z] Cloning with configured refspecs honoured and without tags [2020-09-18T15:26:47.391Z] Cloning repository git@github.com:edgexfoundry/device-rest-go.git [2020-09-18T15:26:47.501Z] > git init /w/workspace/device-rest-go/2 # timeout=10 [2020-09-18T15:26:47.563Z] Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git [2020-09-18T15:26:47.564Z] > git --version # timeout=10 [2020-09-18T15:26:47.588Z] > git --version # 'git version 2.17.1' [2020-09-18T15:26:47.589Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2020-09-18T15:26:47.678Z] > 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-18T15:26:51.033Z] Fetching without tags [2020-09-18T15:26:50.963Z] > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 [2020-09-18T15:26:50.993Z] > git config --add remote.origin.fetch +refs/heads/issue-36:refs/remotes/origin/issue-36 # timeout=10 [2020-09-18T15:26:51.021Z] > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 [2020-09-18T15:26:51.046Z] Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git [2020-09-18T15:26:51.047Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2020-09-18T15:26:51.060Z] > 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-18T15:26:51.528Z] Checking out Revision a96498e3a5486d5706f145af628414c1fa7f774e (issue-36) [2020-09-18T15:26:51.549Z] > git config core.sparsecheckout # timeout=10 [2020-09-18T15:26:51.564Z] > git checkout -f a96498e3a5486d5706f145af628414c1fa7f774e # timeout=10 [2020-09-18T15:26:55.898Z] Commit message: "doc: correct build instructions (#36)" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] unstash [Pipeline] echo [2020-09-18T15:26:57.864Z] ========================================================= [2020-09-18T15:26:57.864Z] [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.15-alpine] [2020-09-18T15:26:57.864Z] ========================================================= [Pipeline] isUnix [Pipeline] sh [2020-09-18T15:26:58.896Z] + docker build -t ci-base-image-arm64 -f Dockerfile.build --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.15-alpine . [2020-09-18T15:26:59.885Z] Sending build context to Docker daemon 8.054MB [2020-09-18T15:26:59.885Z] Step 1/10 : ARG BASE=golang:1.15-alpine [2020-09-18T15:26:59.885Z] Step 2/10 : FROM ${BASE} [2020-09-18T15:27:00.162Z] 1.15-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 [2020-09-18T15:27:00.162Z] b538f80385f9: Pulling fs layer [2020-09-18T15:27:00.162Z] 74f711af9a0d: Pulling fs layer [2020-09-18T15:27:00.162Z] 99f96fe45779: Pulling fs layer [2020-09-18T15:27:00.162Z] 8529a6b9a6be: Pulling fs layer [2020-09-18T15:27:00.162Z] 45590311c82a: Pulling fs layer [2020-09-18T15:27:00.162Z] 69ca0ff8b7b3: Pulling fs layer [2020-09-18T15:27:00.162Z] 209524e5b208: Pulling fs layer [2020-09-18T15:27:00.162Z] 69ca0ff8b7b3: Waiting [2020-09-18T15:27:00.162Z] 8529a6b9a6be: Waiting [2020-09-18T15:27:00.162Z] 45590311c82a: Waiting [2020-09-18T15:27:00.162Z] 209524e5b208: Waiting [2020-09-18T15:27:00.162Z] 99f96fe45779: Download complete [2020-09-18T15:27:00.162Z] 74f711af9a0d: Verifying Checksum [2020-09-18T15:27:00.162Z] 45590311c82a: Verifying Checksum [2020-09-18T15:27:00.162Z] 45590311c82a: Download complete [2020-09-18T15:27:00.162Z] 69ca0ff8b7b3: Verifying Checksum [2020-09-18T15:27:00.162Z] 69ca0ff8b7b3: Download complete [2020-09-18T15:27:00.162Z] b538f80385f9: Verifying Checksum [2020-09-18T15:27:00.162Z] b538f80385f9: Download complete [2020-09-18T15:27:01.152Z] b538f80385f9: Pull complete [2020-09-18T15:27:01.753Z] 74f711af9a0d: Pull complete [2020-09-18T15:27:02.031Z] 99f96fe45779: Pull complete [2020-09-18T15:27:02.308Z] 209524e5b208: Verifying Checksum [2020-09-18T15:27:02.308Z] 209524e5b208: Download complete [2020-09-18T15:27:03.741Z] 8529a6b9a6be: Verifying Checksum [2020-09-18T15:27:03.741Z] 8529a6b9a6be: Download complete [2020-09-18T15:27:13.950Z] 8529a6b9a6be: Pull complete [2020-09-18T15:27:14.228Z] 45590311c82a: Pull complete [2020-09-18T15:27:14.827Z] 69ca0ff8b7b3: Pull complete [2020-09-18T15:27:19.152Z] 209524e5b208: Pull complete [2020-09-18T15:27:19.152Z] Digest: sha256:ed1c815e5e6ec4cca07509da726365701584b6c3e8c7d74a761ef336e5f8fb68 [2020-09-18T15:27:19.152Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.15-alpine [2020-09-18T15:27:19.152Z] ---> 5bddaf1c2fca [2020-09-18T15:27:19.152Z] Step 3/10 : ARG ALPINE_PKG_BASE="make git" [2020-09-18T15:27:21.142Z] ---> Running in fee71ae2f2be [2020-09-18T15:27:21.737Z] Removing intermediate container fee71ae2f2be [2020-09-18T15:27:21.737Z] ---> 8558ad41f408 [2020-09-18T15:27:21.737Z] Step 4/10 : ARG ALPINE_PKG_EXTRA="" [2020-09-18T15:27:21.737Z] ---> Running in 905fb53ae4eb [2020-09-18T15:27:22.012Z] Removing intermediate container 905fb53ae4eb [2020-09-18T15:27:22.012Z] ---> 2702c1e37c85 [2020-09-18T15:27:22.012Z] Step 5/10 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' [2020-09-18T15:27:22.287Z] ---> Running in 454a329c7a68 [2020-09-18T15:27:22.883Z] Removing intermediate container 454a329c7a68 [2020-09-18T15:27:22.883Z] ---> 78301d43fa5a [2020-09-18T15:27:22.883Z] Step 6/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2020-09-18T15:27:22.883Z] ---> Running in fe7aeeb351b3 [2020-09-18T15:27:25.522Z] Removing intermediate container fe7aeeb351b3 [2020-09-18T15:27:25.522Z] ---> d562c73d3fb1 [2020-09-18T15:27:25.522Z] Step 7/10 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2020-09-18T15:27:25.522Z] ---> Running in f47700eb05c6 [2020-09-18T15:27:26.983Z] fetch http://nl.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz [2020-09-18T15:27:27.584Z] fetch http://nl.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz [2020-09-18T15:27:28.183Z] OK: 142 MiB in 39 packages [2020-09-18T15:27:29.168Z] Removing intermediate container f47700eb05c6 [2020-09-18T15:27:29.168Z] ---> 38d54de39256 [2020-09-18T15:27:29.168Z] Step 8/10 : WORKDIR /device-rest-go [2020-09-18T15:27:29.447Z] ---> Running in 94267498980c [2020-09-18T15:27:30.045Z] Removing intermediate container 94267498980c [2020-09-18T15:27:30.045Z] ---> 7fd1c5b59f7d [2020-09-18T15:27:30.045Z] Step 9/10 : COPY . . [2020-09-18T15:27:31.023Z] ---> e7af4242e6d1 [2020-09-18T15:27:31.023Z] Step 10/10 : RUN go mod download [2020-09-18T15:27:31.306Z] ---> Running in 938aaa16742d [2020-09-18T15:27:46.379Z] Removing intermediate container 938aaa16742d [2020-09-18T15:27:46.379Z] ---> a4eacbcbcb7d [2020-09-18T15:27:46.379Z] Successfully built a4eacbcbcb7d [2020-09-18T15:27:46.379Z] Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh [2020-09-18T15:27:46.780Z] + docker inspect -f . ci-base-image-arm64 [2020-09-18T15:27:46.780Z] . [Pipeline] withDockerContainer [2020-09-18T15:27:47.056Z] prd-ubuntu18.04-docker-arm64-4c-16g-413 does not seem to be running inside a container [2020-09-18T15:27:47.145Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat [2020-09-18T15:27:48.888Z] $ docker top 9b70e0d43a61f8da3f5b944668a57992f95056cf3c929789b39c7325bc500d08 -eo pid,comm [Pipeline] { [Pipeline] sh [2020-09-18T15:27:50.336Z] + go version [2020-09-18T15:27:50.336Z] go version go1.15.2 linux/arm64 [Pipeline] } [2020-09-18T15:27:50.367Z] $ docker stop --time=1 9b70e0d43a61f8da3f5b944668a57992f95056cf3c929789b39c7325bc500d08 [2020-09-18T15:27:52.266Z] $ docker rm -f 9b70e0d43a61f8da3f5b944668a57992f95056cf3c929789b39c7325bc500d08 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh [2020-09-18T15:27:53.308Z] + docker inspect -f . ci-base-image-arm64 [2020-09-18T15:27:53.308Z] . [Pipeline] withDockerContainer [2020-09-18T15:27:53.584Z] prd-ubuntu18.04-docker-arm64-4c-16g-413 does not seem to be running inside a container [2020-09-18T15:27:53.681Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat [2020-09-18T15:27:55.478Z] $ docker top b5b49650a438df1441a6c66f975ac02ffd758ae35f07af10f8038608a7456968 -eo pid,comm [Pipeline] { [Pipeline] sh [2020-09-18T15:27:56.913Z] + make test [2020-09-18T15:27:56.913Z] CGO_ENABLED=0 GO111MODULE=on go test -coverprofile=coverage.out ./... [2020-09-18T15:27:57.899Z] ? github.com/edgexfoundry/device-rest-go [no test files] [2020-09-18T15:28:30.322Z] ? github.com/edgexfoundry/device-rest-go/cmd [no test files] [2020-09-18T15:28:30.322Z] ok github.com/edgexfoundry/device-rest-go/driver 0.052s coverage: 56.3% of statements [2020-09-18T15:28:30.322Z] CGO_ENABLED=0 GO111MODULE=on go vet ./... [2020-09-18T15:28:34.661Z] gofmt -l . [2020-09-18T15:28:34.661Z] [ "`gofmt -l .`" = "" ] [2020-09-18T15:28:34.661Z] ./bin/test-go-mod-tidy.sh [2020-09-18T15:28:34.661Z] ./bin/test-attribution-txt.sh [Pipeline] stash [2020-09-18T15:28:35.274Z] Warning: overwriting stash ‘coverage-report’ [2020-09-18T15:28:35.875Z] Stashed 1 file(s) [Pipeline] } [2020-09-18T15:28:35.890Z] $ docker stop --time=1 b5b49650a438df1441a6c66f975ac02ffd758ae35f07af10f8038608a7456968 [2020-09-18T15:28:37.999Z] $ docker rm -f b5b49650a438df1441a6c66f975ac02ffd758ae35f07af10f8038608a7456968 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh [2020-09-18T15:28:39.338Z] + sudo chown -R jenkins:jenkins . [Pipeline] sh [2020-09-18T15:28:39.666Z] + ls -al . [2020-09-18T15:28:39.666Z] total 128 [2020-09-18T15:28:39.666Z] drwxrwxr-x 9 jenkins jenkins 4096 Sep 18 15:28 . [2020-09-18T15:28:39.666Z] drwxrwxr-x 4 jenkins jenkins 4096 Sep 18 15:26 .. [2020-09-18T15:28:39.666Z] -rw-rw-r-- 1 jenkins jenkins 151 Sep 18 15:26 .dockerignore [2020-09-18T15:28:39.666Z] drwxrwxr-x 8 jenkins jenkins 4096 Sep 18 15:26 .git [2020-09-18T15:28:39.666Z] drwxrwxr-x 2 jenkins jenkins 4096 Sep 18 15:26 .github [2020-09-18T15:28:39.666Z] -rw-rw-r-- 1 jenkins jenkins 339 Sep 18 15:26 .gitignore [2020-09-18T15:28:39.666Z] drwxrwxr-x 3 jenkins jenkins 4096 Sep 18 15:26 .semver [2020-09-18T15:28:39.666Z] -rw-rw-r-- 1 jenkins jenkins 4566 Sep 18 15:26 Attribution.txt [2020-09-18T15:28:39.666Z] -rw-rw-r-- 1 jenkins jenkins 1519 Sep 18 15:26 Dockerfile [2020-09-18T15:28:39.666Z] -rw-rw-r-- 1 jenkins jenkins 989 Sep 18 15:26 Dockerfile.build [2020-09-18T15:28:39.666Z] -rw-rw-r-- 1 jenkins jenkins 680 Sep 18 15:26 Jenkinsfile [2020-09-18T15:28:39.666Z] -rw-rw-r-- 1 jenkins jenkins 11340 Sep 18 15:26 LICENSE [2020-09-18T15:28:39.666Z] -rw-rw-r-- 1 jenkins jenkins 951 Sep 18 15:26 Makefile [2020-09-18T15:28:39.666Z] -rw-rw-r-- 1 jenkins jenkins 5917 Sep 18 15:26 README.md [2020-09-18T15:28:39.666Z] -rw-rw-r-- 1 jenkins jenkins 5 Sep 18 15:24 VERSION [2020-09-18T15:28:39.666Z] drwxrwxr-x 2 jenkins jenkins 4096 Sep 18 15:26 bin [2020-09-18T15:28:39.666Z] drwxrwxr-x 3 jenkins jenkins 4096 Sep 18 15:26 cmd [2020-09-18T15:28:39.666Z] -rw-r--r-- 1 jenkins jenkins 9369 Sep 18 15:28 coverage.out [2020-09-18T15:28:39.666Z] drwxrwxr-x 2 jenkins jenkins 4096 Sep 18 15:28 driver [2020-09-18T15:28:39.666Z] -rw-r--r-- 1 jenkins jenkins 266 Sep 18 15:28 go.mod [2020-09-18T15:28:39.666Z] -rw-r--r-- 1 jenkins jenkins 12533 Sep 18 15:28 go.sum [2020-09-18T15:28:39.666Z] drwxrwxr-x 4 jenkins jenkins 4096 Sep 18 15:26 snap [2020-09-18T15:28:39.666Z] -rw-rw-r-- 1 jenkins jenkins 713 Sep 18 15:26 version.go [Pipeline] isUnix [Pipeline] sh [2020-09-18T15:28:40.011Z] + 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=a96498e3a5486d5706f145af628414c1fa7f774e --label arch=arm64 --label version=0.0.0 . [2020-09-18T15:28:40.288Z] Sending build context to Docker daemon 8.066MB [2020-09-18T15:28:40.288Z] Step 1/25 : ARG BASE=golang:1.15-alpine [2020-09-18T15:28:40.288Z] Step 2/25 : FROM ${BASE} AS builder [2020-09-18T15:28:40.288Z] ---> a4eacbcbcb7d [2020-09-18T15:28:40.288Z] Step 3/25 : ARG MAKE='make build' [2020-09-18T15:28:40.883Z] ---> Running in 55c4af3e212d [2020-09-18T15:28:41.156Z] Removing intermediate container 55c4af3e212d [2020-09-18T15:28:41.156Z] ---> 8022010a9596 [2020-09-18T15:28:41.156Z] Step 4/25 : ARG ALPINE_PKG_BASE="make git" [2020-09-18T15:28:41.428Z] ---> Running in 8556f3f7dafa [2020-09-18T15:28:41.700Z] Removing intermediate container 8556f3f7dafa [2020-09-18T15:28:41.700Z] ---> 074cf2a00ab9 [2020-09-18T15:28:41.700Z] Step 5/25 : ARG ALPINE_PKG_EXTRA="" [2020-09-18T15:28:41.975Z] ---> Running in 9eab95f5a9a7 [2020-09-18T15:28:42.248Z] Removing intermediate container 9eab95f5a9a7 [2020-09-18T15:28:42.248Z] ---> 4130d901581c [2020-09-18T15:28:42.248Z] Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2020-09-18T15:28:42.523Z] ---> Running in 08a086116c01 [2020-09-18T15:28:45.156Z] Removing intermediate container 08a086116c01 [2020-09-18T15:28:45.156Z] ---> a0d541a5565a [2020-09-18T15:28:45.156Z] Step 7/25 : RUN apk add --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2020-09-18T15:28:45.156Z] ---> Running in 283ec110c991 [2020-09-18T15:28:46.604Z] fetch http://nl.alpinelinux.org/alpine/v3.12/main/aarch64/APKINDEX.tar.gz [2020-09-18T15:28:47.197Z] fetch http://nl.alpinelinux.org/alpine/v3.12/community/aarch64/APKINDEX.tar.gz [2020-09-18T15:28:47.796Z] OK: 142 MiB in 39 packages [2020-09-18T15:28:48.777Z] Removing intermediate container 283ec110c991 [2020-09-18T15:28:48.777Z] ---> dc38c7c19320 [2020-09-18T15:28:48.777Z] Step 8/25 : WORKDIR $GOPATH/src/github.com/edgexfoundry/device-rest-go [2020-09-18T15:28:49.051Z] ---> Running in 89d184eea4cd [2020-09-18T15:28:49.325Z] Removing intermediate container 89d184eea4cd [2020-09-18T15:28:49.325Z] ---> 6bccadb0d285 [2020-09-18T15:28:49.325Z] Step 9/25 : COPY go.mod . [2020-09-18T15:28:50.301Z] ---> 3c4993a4efb0 [2020-09-18T15:28:50.301Z] Step 10/25 : COPY Makefile . [2020-09-18T15:28:50.898Z] ---> fbf224053501 [2020-09-18T15:28:50.898Z] Step 11/25 : RUN make update [2020-09-18T15:28:50.898Z] ---> Running in 1654606a7f31 [2020-09-18T15:28:52.334Z] CGO_ENABLED=0 GO111MODULE=on go mod download [2020-09-18T15:28:53.773Z] Removing intermediate container 1654606a7f31 [2020-09-18T15:28:53.773Z] ---> 9af946874dab [2020-09-18T15:28:53.773Z] Step 12/25 : COPY . . [2020-09-18T15:28:54.754Z] ---> ea7c5d6208e0 [2020-09-18T15:28:54.755Z] Step 13/25 : RUN $MAKE [2020-09-18T15:28:54.755Z] ---> Running in 514cd5df3c66 [2020-09-18T15:28:56.186Z] 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-18T15:29:23.019Z] Removing intermediate container 514cd5df3c66 [2020-09-18T15:29:23.019Z] ---> 65cd9adcf30f [2020-09-18T15:29:23.019Z] Step 14/25 : FROM alpine:latest [2020-09-18T15:29:23.019Z] latest: Pulling from library/alpine [2020-09-18T15:29:23.019Z] b538f80385f9: Already exists [2020-09-18T15:29:23.019Z] Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321 [2020-09-18T15:29:23.019Z] Status: Downloaded newer image for alpine:latest [2020-09-18T15:29:23.019Z] ---> 62ee0e9f8440 [2020-09-18T15:29:23.019Z] Step 15/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' [2020-09-18T15:29:23.019Z] ---> Running in 20a1ed80d628 [2020-09-18T15:29:23.019Z] Removing intermediate container 20a1ed80d628 [2020-09-18T15:29:23.019Z] ---> e779e90e5d16 [2020-09-18T15:29:23.019Z] Step 16/25 : LABEL Name=device-rest-go Version=${VERSION} [2020-09-18T15:29:23.019Z] ---> Running in 411e2f9025ab [2020-09-18T15:29:23.019Z] Removing intermediate container 411e2f9025ab [2020-09-18T15:29:23.019Z] ---> 6443a550ddbc [2020-09-18T15:29:23.019Z] Step 17/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/LICENSE / [2020-09-18T15:29:23.613Z] ---> e0e6151b1149 [2020-09-18T15:29:23.613Z] Step 18/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/Attribution.txt / [2020-09-18T15:29:24.207Z] ---> ae4d67f6a026 [2020-09-18T15:29:24.207Z] Step 19/25 : COPY --from=builder /go/src/github.com/edgexfoundry/device-rest-go/cmd / [2020-09-18T15:29:25.647Z] ---> 0723fbe4591f [2020-09-18T15:29:25.647Z] Step 20/25 : EXPOSE 49986 [2020-09-18T15:29:25.647Z] ---> Running in 13548f068efb [2020-09-18T15:29:26.241Z] Removing intermediate container 13548f068efb [2020-09-18T15:29:26.241Z] ---> 78d1873caa06 [2020-09-18T15:29:26.241Z] Step 21/25 : ENTRYPOINT ["/device-rest-go"] [2020-09-18T15:29:26.241Z] ---> Running in d7e46a85e8ef [2020-09-18T15:29:26.840Z] Removing intermediate container d7e46a85e8ef [2020-09-18T15:29:26.840Z] ---> 5c8d41bdfbe0 [2020-09-18T15:29:26.840Z] Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] [2020-09-18T15:29:26.840Z] ---> Running in 37c5a2b27d55 [2020-09-18T15:29:27.115Z] Removing intermediate container 37c5a2b27d55 [2020-09-18T15:29:27.115Z] ---> 39330ac89fda [2020-09-18T15:29:27.115Z] Step 23/25 : LABEL arch=arm64 [2020-09-18T15:29:27.389Z] ---> Running in 275bae28636e [2020-09-18T15:29:27.982Z] Removing intermediate container 275bae28636e [2020-09-18T15:29:27.982Z] ---> 0c1b72951d64 [2020-09-18T15:29:27.982Z] Step 24/25 : LABEL git_sha=a96498e3a5486d5706f145af628414c1fa7f774e [2020-09-18T15:29:27.982Z] ---> Running in 8f24478d7955 [2020-09-18T15:29:28.255Z] Removing intermediate container 8f24478d7955 [2020-09-18T15:29:28.255Z] ---> 47b70e86d5b4 [2020-09-18T15:29:28.255Z] Step 25/25 : LABEL version=0.0.0 [2020-09-18T15:29:28.530Z] ---> Running in 7ac8a0901640 [2020-09-18T15:29:29.122Z] Removing intermediate container 7ac8a0901640 [2020-09-18T15:29:29.122Z] ---> f3198988e3f9 [2020-09-18T15:29:29.122Z] [Warning] One or more build-args [ARCH] were not consumed [2020-09-18T15:29:29.122Z] Successfully built f3198988e3f9 [2020-09-18T15:29:29.122Z] Successfully tagged docker-device-rest-go-arm64: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-18T15:29:31.614Z] provisioning config files... [2020-09-18T15:29:31.629Z] copy managed file [device-rest-go-codecov-token] to file:/w/workspace/xfoundry_device-rest-go_issue-36@tmp/config2016145534550763373tmp [Pipeline] { [Pipeline] sh [2020-09-18T15:29:32.008Z] + curl -s https://codecov.io/bash [2020-09-18T15:29:32.009Z] + bash -s - -t @/w/workspace/xfoundry_device-rest-go_issue-36@tmp/config2016145534550763373tmp [Pipeline] } [2020-09-18T15:29:32.282Z] 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-18T15:29:34.511Z] ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh [2020-09-18T15:29:35.079Z] ---> package-listing.sh [2020-09-18T15:29:35.079Z] ++ facter osfamily [2020-09-18T15:29:35.079Z] ++ tr '[:upper:]' '[:lower:]' [2020-09-18T15:29:35.079Z] + OS_FAMILY=redhat [2020-09-18T15:29:35.079Z] + workspace=/w/workspace/xfoundry_device-rest-go_issue-36 [2020-09-18T15:29:35.079Z] + START_PACKAGES=/tmp/packages_start.txt [2020-09-18T15:29:35.079Z] + END_PACKAGES=/tmp/packages_end.txt [2020-09-18T15:29:35.079Z] + DIFF_PACKAGES=/tmp/packages_diff.txt [2020-09-18T15:29:35.079Z] + PACKAGES=/tmp/packages_start.txt [2020-09-18T15:29:35.079Z] + '[' /w/workspace/xfoundry_device-rest-go_issue-36 ']' [2020-09-18T15:29:35.079Z] + PACKAGES=/tmp/packages_end.txt [2020-09-18T15:29:35.079Z] + case "${OS_FAMILY}" in [2020-09-18T15:29:35.079Z] + rpm -qa [2020-09-18T15:29:35.079Z] + sort [2020-09-18T15:29:39.307Z] + '[' -f /tmp/packages_start.txt ']' [2020-09-18T15:29:39.307Z] + '[' -f /tmp/packages_end.txt ']' [2020-09-18T15:29:39.307Z] + diff /tmp/packages_start.txt /tmp/packages_end.txt [2020-09-18T15:29:39.307Z] + '[' /w/workspace/xfoundry_device-rest-go_issue-36 ']' [2020-09-18T15:29:39.307Z] + mkdir -p /w/workspace/xfoundry_device-rest-go_issue-36/archives/ [2020-09-18T15:29:39.307Z] + 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-18T15:29:39.801Z] + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [2020-09-18T15:29:39.801Z] [2020-09-18T15:29:39.801Z] Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] isUnix [Pipeline] sh [2020-09-18T15:29:40.154Z] + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [2020-09-18T15:29:40.154Z] alpine: Pulling from edgex-lftools-log-publisher [2020-09-18T15:29:40.154Z] df20fa9351a1: Pulling fs layer [2020-09-18T15:29:40.154Z] 36b3adc4ff6f: Pulling fs layer [2020-09-18T15:29:40.154Z] 8ad3a11d3b57: Pulling fs layer [2020-09-18T15:29:40.154Z] 46f8f816bc3b: Pulling fs layer [2020-09-18T15:29:40.154Z] 0dadc02b9964: Pulling fs layer [2020-09-18T15:29:40.154Z] ce6a7cf60c04: Pulling fs layer [2020-09-18T15:29:40.154Z] 7a184a31f384: Pulling fs layer [2020-09-18T15:29:40.154Z] 0879bd2ef858: Pulling fs layer [2020-09-18T15:29:40.154Z] 0dadc02b9964: Waiting [2020-09-18T15:29:40.154Z] ce6a7cf60c04: Waiting [2020-09-18T15:29:40.154Z] 7a184a31f384: Waiting [2020-09-18T15:29:40.154Z] 0879bd2ef858: Waiting [2020-09-18T15:29:40.154Z] 46f8f816bc3b: Waiting [2020-09-18T15:29:40.154Z] 36b3adc4ff6f: Verifying Checksum [2020-09-18T15:29:40.154Z] 36b3adc4ff6f: Download complete [2020-09-18T15:29:40.154Z] 46f8f816bc3b: Verifying Checksum [2020-09-18T15:29:40.154Z] 46f8f816bc3b: Download complete [2020-09-18T15:29:40.154Z] df20fa9351a1: Verifying Checksum [2020-09-18T15:29:40.420Z] ce6a7cf60c04: Verifying Checksum [2020-09-18T15:29:40.420Z] ce6a7cf60c04: Download complete [2020-09-18T15:29:40.420Z] 7a184a31f384: Verifying Checksum [2020-09-18T15:29:40.420Z] 7a184a31f384: Download complete [2020-09-18T15:29:40.420Z] 0dadc02b9964: Verifying Checksum [2020-09-18T15:29:40.420Z] 0dadc02b9964: Download complete [2020-09-18T15:29:40.684Z] df20fa9351a1: Pull complete [2020-09-18T15:29:40.684Z] 8ad3a11d3b57: Verifying Checksum [2020-09-18T15:29:40.684Z] 8ad3a11d3b57: Download complete [2020-09-18T15:29:40.951Z] 36b3adc4ff6f: Pull complete [2020-09-18T15:29:40.951Z] 0879bd2ef858: Verifying Checksum [2020-09-18T15:29:40.951Z] 0879bd2ef858: Download complete [2020-09-18T15:29:41.531Z] 8ad3a11d3b57: Pull complete [2020-09-18T15:29:41.531Z] 46f8f816bc3b: Pull complete [2020-09-18T15:29:41.794Z] 0dadc02b9964: Pull complete [2020-09-18T15:29:42.056Z] ce6a7cf60c04: Pull complete [2020-09-18T15:29:42.056Z] 7a184a31f384: Pull complete [2020-09-18T15:29:44.630Z] 0879bd2ef858: Pull complete [2020-09-18T15:29:44.630Z] Digest: sha256:6a0b98a82ad2e848da155b214a5d490c0357af837e10dd363e416ea0d50debb0 [2020-09-18T15:29:44.630Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [2020-09-18T15:29:44.630Z] nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine [Pipeline] withDockerContainer [2020-09-18T15:29:44.758Z] prd-centos7-docker-4c-2g-410 does not seem to be running inside a container [2020-09-18T15:29:44.805Z] $ 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 ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:alpine cat [2020-09-18T15:29:49.518Z] $ docker top 7b3a222de87ba8d2cc4cfb670f48cfde3da06da5647a9d9803bc421836b15d00 -eo pid,comm [Pipeline] { [Pipeline] sh [2020-09-18T15:29:50.111Z] + mkdir -p /var/log/sa [Pipeline] sh [2020-09-18T15:29:50.412Z] + ls /var/log/sa-host [2020-09-18T15:29:50.412Z] + sadf -c /var/log/sa-host/sa05 [2020-09-18T15:29:50.412Z] file_magic: OK [2020-09-18T15:29:50.412Z] HZ: Using current value: 100 [2020-09-18T15:29:50.412Z] file_header: OK [2020-09-18T15:29:50.412Z] 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-18T15:29:50.412Z] Statistics: [2020-09-18T15:29:50.412Z] Hnuu...uuuununununu...Hnuu...uuuununununu... [2020-09-18T15:29:50.412Z] File successfully converted to sysstat format version 12.2.1 [2020-09-18T15:29:50.412Z] + sadf -c /var/log/sa-host/sa18 [2020-09-18T15:29:50.412Z] file_magic: OK [2020-09-18T15:29:50.412Z] HZ: Using current value: 100 [2020-09-18T15:29:50.412Z] file_header: OK [2020-09-18T15:29:50.412Z] 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-18T15:29:50.412Z] Statistics: [2020-09-18T15:29:50.412Z] HRHnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu... [2020-09-18T15:29:50.412Z] File successfully converted to sysstat format version 12.2.1 [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider [2020-09-18T15:29:50.478Z] provisioning config files... [2020-09-18T15:29:50.496Z] copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-rest-go_issue-36@tmp/config2289168625689254257tmp [Pipeline] { [Pipeline] echo [2020-09-18T15:29:50.636Z] Running global-jjb/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh [2020-09-18T15:29:50.931Z] ---> create-netrc.sh [Pipeline] echo [2020-09-18T15:29:50.942Z] Running global-jjb/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh [2020-09-18T15:29:51.238Z] ---> logs-deploy.sh [2020-09-18T15:29:51.238Z] INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/issue-36/2 [2020-09-18T15:29:51.238Z] INFO: archiving workspace using pattern(s): [2020-09-18T15:29:52.630Z] Archives upload complete. [2020-09-18T15:29:52.630Z] INFO: archiving logs to Nexus