Pull request #182 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 578fb88605a7b0beb16c95e7a15e89bf8109c0df+a43e2c30b821305cbbceda7bc94393c1897f4bc4 (5f81ba21794fcd58a814d7591f6dfc554f8aafdf) Loading library edgex-global-pipelines@stable Attempting to resolve stable from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh15895355098880124086.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh1635583755447631230.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 The recommended git tool is: git using credential edgex-jenkins-ssh 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/PR-182/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 [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-182/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh15724522752067792678.key > 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 [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-182/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh14150790355462335335.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 61d3a14f5ee21304eadc9c25f102bcac80e1a589 # timeout=10 Commit message: "Merge pull request #384 from ernestojeda/add-go-1_17-lts" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > 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. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh5131274831132584395.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-182/workspace@libs/lf-pipelines # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-182/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh14977652456399964079.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object 61d3a14f5ee21304eadc9c25f102bcac80e1a589 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.17 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-34497 in /w/workspace/gexfoundry_device-rest-go_PR-182 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-rest-go.git > git init /w/workspace/gexfoundry_device-rest-go_PR-182 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit a43e2c30b821305cbbceda7bc94393c1897f4bc4 into PR head commit 578fb88605a7b0beb16c95e7a15e89bf8109c0df Merge succeeded, producing 578fb88605a7b0beb16c95e7a15e89bf8109c0df Checking out Revision 578fb88605a7b0beb16c95e7a15e89bf8109c0df (PR-182) > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/182/head:refs/remotes/origin/PR-182 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 578fb88605a7b0beb16c95e7a15e89bf8109c0df # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge a43e2c30b821305cbbceda7bc94393c1897f4bc4 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 578fb88605a7b0beb16c95e7a15e89bf8109c0df # timeout=10 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 61d3a14f5ee21304eadc9c25f102bcac80e1a589 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:06:19 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:06:19 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:06:19 ========================================================= 20:06:19 EdgeX Global Pipelines Version Info 20:06:19 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:06:20 ------------------- 20:06:20 stable info: 20:06:20 ------------------- 20:06:20 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:06:20 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 20:06:20 Message: update stable to v1.0.227 20:06:20 ------------------- 20:06:20 experimental info: 20:06:20 ------------------- 20:06:20 Commited By: **** collab-it+edgex@linuxfoundation.org 20:06:20 Commit SHA: 602d0728ebfd21a5b975e02ac0465e47e5fef8c7 20:06:20 Message: update experimental to v1.0.228 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:06:21 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:06:22 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:06:22 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-182 [Pipeline] echo 20:06:22 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-182 [Pipeline] echo 20:06:22 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-182 [Pipeline] echo 20:06:22 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 578fb88605a7b0beb16c95e7a15e89bf8109c0df [Pipeline] echo 20:06:22 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 578fb88 [Pipeline] echo 20:06:22 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:06:22 provisioning config files... 20:06:22 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/config6310684078489070938tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:06:22 ---> docker-login.sh 20:06:22 nexus3.edgexfoundry.org:10001 20:06:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:22 Configure a credential helper to remove this warning. See 20:06:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:22 20:06:22 Login Succeeded 20:06:22 nexus3.edgexfoundry.org:10002 20:06:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:23 Configure a credential helper to remove this warning. See 20:06:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:23 20:06:23 Login Succeeded 20:06:23 nexus3.edgexfoundry.org:10003 20:06:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:23 Configure a credential helper to remove this warning. See 20:06:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:23 20:06:23 Login Succeeded 20:06:23 nexus3.edgexfoundry.org:10004 20:06:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:23 Configure a credential helper to remove this warning. See 20:06:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:23 20:06:23 Login Succeeded 20:06:23 docker.io 20:06:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:24 Configure a credential helper to remove this warning. See 20:06:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:24 20:06:24 Login Succeeded 20:06:24 ---> docker-login.sh ends [Pipeline] } 20:06:24 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:06:24 + git rev-list -1 --merges 578fb88605a7b0beb16c95e7a15e89bf8109c0df~1..578fb88605a7b0beb16c95e7a15e89bf8109c0df [Pipeline] echo 20:06:24 -----------> git rev-list -1 --merges 578fb88605a7b0beb16c95e7a15e89bf8109c0df~1..578fb88605a7b0beb16c95e7a15e89bf8109c0df 578fb88605a7b0beb16c95e7a15e89bf8109c0df [false] [Pipeline] sh 20:06:25 + git log --format=format:%s -1 578fb88605a7b0beb16c95e7a15e89bf8109c0df [Pipeline] echo 20:06:25 ========================================================= 20:06:25 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:06:25 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:06:25 + git log --format=format:%s -1 578fb88605a7b0beb16c95e7a15e89bf8109c0df [Pipeline] echo 20:06:25 [semverPrep] GIT_COMMIT: 578fb88605a7b0beb16c95e7a15e89bf8109c0df, Commit Message: build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2 [Pipeline] echo 20:06:25 [semverPrep] This is not a build commit. [Pipeline] sh 20:06:26 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:06:26 + grep -v github /etc/ssh/ssh_known_hosts 20:06:26 + [ -e /tmp/ssh_known_hosts ] 20:06:26 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:06:26 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:06:26 + sudo tee -a /etc/ssh/ssh_known_hosts 20:06:26 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 20:06:26 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 20:06:26 20:06:26 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 20:06:27 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 20:06:27 latest: Pulling from edgex-devops/py-git-semver 20:06:27 1fe172e4850f: Pulling fs layer 20:06:27 caf521ccaac6: Pulling fs layer 20:06:27 3ead6fa29328: Pulling fs layer 20:06:27 5c2a1cbceb83: Pulling fs layer 20:06:27 a8d5f1318db7: Pulling fs layer 20:06:27 c427282e49a2: Pulling fs layer 20:06:27 5c2a1cbceb83: Waiting 20:06:27 1827001aaf11: Pulling fs layer 20:06:27 0714d37db230: Pulling fs layer 20:06:27 ac28cf19c067: Pulling fs layer 20:06:27 ca983d60f3e2: Pulling fs layer 20:06:27 9f894cec8388: Pulling fs layer 20:06:27 0714d37db230: Waiting 20:06:27 c427282e49a2: Waiting 20:06:27 ac28cf19c067: Waiting 20:06:27 1827001aaf11: Waiting 20:06:27 ca983d60f3e2: Waiting 20:06:27 9f894cec8388: Waiting 20:06:27 caf521ccaac6: Verifying Checksum 20:06:27 caf521ccaac6: Download complete 20:06:27 5c2a1cbceb83: Verifying Checksum 20:06:27 5c2a1cbceb83: Download complete 20:06:27 a8d5f1318db7: Verifying Checksum 20:06:27 a8d5f1318db7: Download complete 20:06:27 c427282e49a2: Verifying Checksum 20:06:27 c427282e49a2: Download complete 20:06:27 3ead6fa29328: Verifying Checksum 20:06:27 3ead6fa29328: Download complete 20:06:27 0714d37db230: Verifying Checksum 20:06:27 0714d37db230: Download complete 20:06:27 ac28cf19c067: Download complete 20:06:27 ca983d60f3e2: Verifying Checksum 20:06:27 ca983d60f3e2: Download complete 20:06:27 1fe172e4850f: Download complete 20:06:27 9f894cec8388: Verifying Checksum 20:06:27 9f894cec8388: Download complete 20:06:27 1827001aaf11: Verifying Checksum 20:06:27 1827001aaf11: Download complete 20:06:28 1fe172e4850f: Pull complete 20:06:28 caf521ccaac6: Pull complete 20:06:29 3ead6fa29328: Pull complete 20:06:29 5c2a1cbceb83: Pull complete 20:06:29 a8d5f1318db7: Pull complete 20:06:29 c427282e49a2: Pull complete 20:06:31 1827001aaf11: Pull complete 20:06:31 0714d37db230: Pull complete 20:06:31 ac28cf19c067: Pull complete 20:06:31 ca983d60f3e2: Pull complete 20:06:31 9f894cec8388: Pull complete 20:06:31 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 20:06:31 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 20:06:31 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 20:06:31 prd-ubuntu20.04-docker-8c-8g-34497 does not seem to be running inside a container 20:06:31 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-182 -v /w/workspace/gexfoundry_device-rest-go_PR-182:/w/workspace/gexfoundry_device-rest-go_PR-182:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-182@tmp:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest cat 20:06:33 $ docker top 1d35f115a0d946171d467222615b730b51f87d8c86b01c1c2e4ead4692ee7cdd -eo pid,comm 20:06:33 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 20:06:33 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:06:33 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:06:33 [ssh-agent] Looking for ssh-agent implementation... 20:06:33 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:06:33 $ docker exec 1d35f115a0d946171d467222615b730b51f87d8c86b01c1c2e4ead4692ee7cdd ssh-agent 20:06:33 SSH_AUTH_SOCK=/tmp/ssh-5Brdsk3MBpeR/agent.33 20:06:33 SSH_AGENT_PID=40 20:06:33 Running ssh-add (command line suppressed) 20:06:33 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-182@tmp/private_key_5314209904480344023.key (/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/private_key_5314209904480344023.key) 20:06:33 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:06:34 + git tag --points-at HEAD [Pipeline] } 20:06:34 $ docker exec --env ******** --env ******** 1d35f115a0d946171d467222615b730b51f87d8c86b01c1c2e4ead4692ee7cdd ssh-agent -k 20:06:34 unset SSH_AUTH_SOCK; 20:06:34 unset SSH_AGENT_PID; 20:06:34 echo Agent pid 40 killed; 20:06:34 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:06:34 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:06:34 [ssh-agent] Looking for ssh-agent implementation... 20:06:34 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:06:34 $ docker exec 1d35f115a0d946171d467222615b730b51f87d8c86b01c1c2e4ead4692ee7cdd ssh-agent 20:06:34 SSH_AUTH_SOCK=/tmp/ssh-On8uviNpduSQ/agent.72 20:06:34 SSH_AGENT_PID=78 20:06:34 Running ssh-add (command line suppressed) 20:06:34 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-182@tmp/private_key_7111441092946513034.key (/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/private_key_7111441092946513034.key) 20:06:34 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:06:35 + git semver init 20:06:35 2022-05-02 20:06:35,410 [run_init] DEBUG init version:0.0.0 force:False 20:06:35 2022-05-02 20:06:35,411 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-182/.semver 20:06:35 2022-05-02 20:06:35,412 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-182/.semver 20:06:35 2022-05-02 20:06:35,412 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-182/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-182, universal_newlines=False, shell=None, istream=None) 20:06:36 2022-05-02 20:06:36,372 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-182/.git/info/exclude 20:06:36 2022-05-02 20:06:36,373 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-182/.semver/PR-182 with force:False 20:06:36 2022-05-02 20:06:36,373 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-182/.semver/PR-182 20:06:36 2022-05-02 20:06:36,377 [execute] INFO git cat-file --batch-check 20:06:36 2022-05-02 20:06:36,378 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-182/.semver, universal_newlines=False, shell=None, istream=) 20:06:36 2022-05-02 20:06:36,383 [execute] INFO git cat-file --batch 20:06:36 2022-05-02 20:06:36,384 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-182/.semver, universal_newlines=False, shell=None, istream=) 20:06:36 2022-05-02 20:06:36,388 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-182/.semver/PR-182 20:06:36 0.0.0 [Pipeline] } 20:06:36 $ docker exec --env ******** --env ******** 1d35f115a0d946171d467222615b730b51f87d8c86b01c1c2e4ead4692ee7cdd ssh-agent -k 20:06:36 unset SSH_AUTH_SOCK; 20:06:36 unset SSH_AGENT_PID; 20:06:36 echo Agent pid 78 killed; 20:06:36 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:06:37 + git semver [Pipeline] } 20:06:37 $ docker stop --time=1 1d35f115a0d946171d467222615b730b51f87d8c86b01c1c2e4ead4692ee7cdd 20:06:38 $ docker rm -f 1d35f115a0d946171d467222615b730b51f87d8c86b01c1c2e4ead4692ee7cdd [Pipeline] // withDockerContainer [Pipeline] sh 20:06:39 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:06:39 Stashed 1 file(s) [Pipeline] echo 20:06:39 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:06:39 provisioning config files... 20:06:39 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/config3036996906747524491tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:06:40 ---> docker-login.sh 20:06:40 nexus3.edgexfoundry.org:10001 20:06:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:40 Configure a credential helper to remove this warning. See 20:06:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:40 20:06:40 Login Succeeded 20:06:40 nexus3.edgexfoundry.org:10002 20:06:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:40 Configure a credential helper to remove this warning. See 20:06:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:40 20:06:40 Login Succeeded 20:06:40 nexus3.edgexfoundry.org:10003 20:06:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:40 Configure a credential helper to remove this warning. See 20:06:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:40 20:06:40 Login Succeeded 20:06:40 nexus3.edgexfoundry.org:10004 20:06:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:40 Configure a credential helper to remove this warning. See 20:06:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:40 20:06:40 Login Succeeded 20:06:40 docker.io 20:06:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:41 Configure a credential helper to remove this warning. See 20:06:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:41 20:06:41 Login Succeeded 20:06:41 ---> docker-login.sh ends [Pipeline] } 20:06:41 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:06:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:06:41 ========================================================= 20:06:41 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 20:06:41 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 20:06:41 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg MAKE=echo noop --target=builder . 20:06:41 Sending build context to Docker daemon 10.61MB 20:06:41 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 20:06:41 Step 2/12 : FROM ${BASE} AS builder 20:06:41 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 20:06:41 59bf1c3509f3: Pulling fs layer 20:06:41 666ba61612fd: Pulling fs layer 20:06:41 8ed8ca486205: Pulling fs layer 20:06:41 4fe6c5a15a65: Pulling fs layer 20:06:41 22a0e8bec74d: Pulling fs layer 20:06:41 ca2b28591e48: Pulling fs layer 20:06:41 a51346096db8: Pulling fs layer 20:06:41 daebc70d1ce1: Pulling fs layer 20:06:41 0e18a0eac166: Pulling fs layer 20:06:41 22a0e8bec74d: Waiting 20:06:41 4fe6c5a15a65: Waiting 20:06:41 ca2b28591e48: Waiting 20:06:41 a51346096db8: Waiting 20:06:41 daebc70d1ce1: Waiting 20:06:41 0e18a0eac166: Waiting 20:06:41 8ed8ca486205: Verifying Checksum 20:06:41 8ed8ca486205: Download complete 20:06:41 666ba61612fd: Verifying Checksum 20:06:41 666ba61612fd: Download complete 20:06:41 22a0e8bec74d: Verifying Checksum 20:06:41 22a0e8bec74d: Download complete 20:06:41 ca2b28591e48: Verifying Checksum 20:06:41 ca2b28591e48: Download complete 20:06:41 a51346096db8: Verifying Checksum 20:06:41 a51346096db8: Download complete 20:06:41 59bf1c3509f3: Download complete 20:06:41 daebc70d1ce1: Verifying Checksum 20:06:41 daebc70d1ce1: Download complete 20:06:41 59bf1c3509f3: Pull complete 20:06:42 666ba61612fd: Pull complete 20:06:42 8ed8ca486205: Pull complete 20:06:42 0e18a0eac166: Verifying Checksum 20:06:42 0e18a0eac166: Download complete 20:06:42 4fe6c5a15a65: Verifying Checksum 20:06:42 4fe6c5a15a65: Download complete 20:06:46 4fe6c5a15a65: Pull complete 20:06:46 22a0e8bec74d: Pull complete 20:06:46 ca2b28591e48: Pull complete 20:06:46 a51346096db8: Pull complete 20:06:46 daebc70d1ce1: Pull complete 20:06:48 0e18a0eac166: Pull complete 20:06:48 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 20:06:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 20:06:48 ---> f018257e8ee9 20:06:48 Step 3/12 : ARG MAKE='make build' 20:06:50 ---> Running in b8b3241f18b0 20:06:50 Removing intermediate container b8b3241f18b0 20:06:50 ---> 50e26622267f 20:06:50 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:06:50 ---> Running in 6b42acb46c6b 20:06:50 Removing intermediate container 6b42acb46c6b 20:06:50 ---> 60b1e78acf0f 20:06:50 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 20:06:50 ---> Running in d86f8cb116f5 20:06:50 Removing intermediate container d86f8cb116f5 20:06:50 ---> ac2485de300e 20:06:50 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:06:50 ---> Running in 90b147e3a6d4 20:06:50 Removing intermediate container 90b147e3a6d4 20:06:50 ---> 41f2b7b0e4af 20:06:50 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:06:50 ---> Running in c43e1c7d4deb 20:06:51 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 20:06:51 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 20:06:52 (1/4) Installing openssh-keygen (8.8_p1-r1) 20:06:52 (2/4) Installing libedit (20210910.3.1-r0) 20:06:52 (3/4) Installing openssh-client-common (8.8_p1-r1) 20:06:52 (4/4) Installing openssh-client-default (8.8_p1-r1) 20:06:52 Executing busybox-1.34.1-r3.trigger 20:06:52 OK: 224 MiB in 56 packages 20:06:53 Removing intermediate container c43e1c7d4deb 20:06:53 ---> 0617e1494b0d 20:06:53 Step 8/12 : WORKDIR /device-rest-go 20:06:53 ---> Running in 55ed0c3d36d2 20:06:53 Removing intermediate container 55ed0c3d36d2 20:06:53 ---> 84ed355a2b9c 20:06:53 Step 9/12 : COPY go.mod vendor* ./ 20:06:53 ---> 8f54f994f43f 20:06:53 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:06:53 ---> Running in ab455ff3ea47 20:06:54 Still waiting to schedule task 20:06:54 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 20:07:08 Removing intermediate container ab455ff3ea47 20:07:08 ---> c2728dc35945 20:07:08 Step 11/12 : COPY . . 20:07:08 ---> 4904e4eb65c4 20:07:08 Step 12/12 : RUN $MAKE 20:07:08 ---> Running in d728b9608899 20:07:08 noop 20:07:09 Removing intermediate container d728b9608899 20:07:09 ---> ebe87475ed42 20:07:09 Successfully built ebe87475ed42 20:07:09 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 20:07:09 + docker inspect -f . ci-base-image-x86_64 20:07:09 . [Pipeline] withDockerContainer 20:07:09 prd-ubuntu20.04-docker-8c-8g-34497 does not seem to be running inside a container 20:07:09 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-182 -v /w/workspace/gexfoundry_device-rest-go_PR-182:/w/workspace/gexfoundry_device-rest-go_PR-182:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-182@tmp:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 20:07:09 $ docker top 769925cd561777ac63953d3d1518a3158456fc43f5b4141500d813f4c90faceb -eo pid,comm [Pipeline] { [Pipeline] sh 20:07:10 + go version 20:07:10 go version go1.17.6 linux/amd64 [Pipeline] } 20:07:10 $ docker stop --time=1 769925cd561777ac63953d3d1518a3158456fc43f5b4141500d813f4c90faceb 20:07:11 $ docker rm -f 769925cd561777ac63953d3d1518a3158456fc43f5b4141500d813f4c90faceb [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:07:12 + docker inspect -f . ci-base-image-x86_64 20:07:12 . [Pipeline] withDockerContainer 20:07:12 prd-ubuntu20.04-docker-8c-8g-34497 does not seem to be running inside a container 20:07:12 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-182 -v /w/workspace/gexfoundry_device-rest-go_PR-182:/w/workspace/gexfoundry_device-rest-go_PR-182:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-182@tmp:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 20:07:12 $ docker top d7b13f892602f77ffee266542892de0d1b3fb5833e200b2fd1597149506f9851 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 20:07:13 + make test 20:07:13 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 20:07:13 ? github.com/edgexfoundry/device-rest-go [no test files] 20:07:23 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:07:23 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 55.2% of statements 20:07:28 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:07:32 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:07:32 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:07:32 ./bin/test-attribution-txt.sh [Pipeline] echo 20:07:32 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:07:32 $ docker stop --time=1 d7b13f892602f77ffee266542892de0d1b3fb5833e200b2fd1597149506f9851 20:07:34 $ docker rm -f d7b13f892602f77ffee266542892de0d1b3fb5833e200b2fd1597149506f9851 [Pipeline] // withDockerContainer [Pipeline] sh 20:07:35 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:07:35 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:07:36 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:07:36 + ls -al . 20:07:36 total 192 20:07:36 drwxrwxr-x 9 jenkins jenkins 4096 May 2 20:07 . 20:07:36 drwxrwxr-x 4 jenkins jenkins 4096 May 2 20:06 .. 20:07:36 -rw-rw-r-- 1 jenkins jenkins 151 May 2 20:06 .dockerignore 20:07:36 drwxrwxr-x 8 jenkins jenkins 4096 May 2 20:06 .git 20:07:36 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:06 .github 20:07:36 -rw-rw-r-- 1 jenkins jenkins 329 May 2 20:06 .gitignore 20:07:36 -rw-rw-r-- 1 jenkins jenkins 41 May 2 20:06 .golangci.yml 20:07:36 drwxr-xr-x 3 jenkins jenkins 4096 May 2 20:06 .semver 20:07:36 -rw-rw-r-- 1 jenkins jenkins 8463 May 2 20:06 Attribution.txt 20:07:36 -rw-rw-r-- 1 jenkins jenkins 7459 May 2 20:06 CHANGELOG.md 20:07:36 -rw-rw-r-- 1 jenkins jenkins 1672 May 2 20:06 Dockerfile 20:07:36 -rw-rw-r-- 1 jenkins jenkins 677 May 2 20:06 GOVERNANCE.md 20:07:36 -rw-rw-r-- 1 jenkins jenkins 680 May 2 20:06 Jenkinsfile 20:07:36 -rw-rw-r-- 1 jenkins jenkins 11340 May 2 20:06 LICENSE 20:07:36 -rw-rw-r-- 1 jenkins jenkins 1977 May 2 20:06 Makefile 20:07:36 -rw-rw-r-- 1 jenkins jenkins 620 May 2 20:06 OWNERS.md 20:07:36 -rw-rw-r-- 1 jenkins jenkins 8246 May 2 20:06 README.md 20:07:36 -rw-rw-r-- 1 jenkins jenkins 5 May 2 20:06 VERSION 20:07:36 drwxrwxr-x 2 jenkins jenkins 4096 May 2 20:06 bin 20:07:36 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:06 cmd 20:07:36 -rw-r--r-- 1 jenkins jenkins 9355 May 2 20:07 coverage.out 20:07:36 drwxrwxr-x 2 jenkins jenkins 4096 May 2 20:06 driver 20:07:36 -rw-rw-r-- 1 jenkins jenkins 3333 May 2 20:06 go.mod 20:07:36 -rw-rw-r-- 1 jenkins jenkins 54250 May 2 20:06 go.sum 20:07:36 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:06 snap 20:07:36 -rw-rw-r-- 1 jenkins jenkins 713 May 2 20:06 version.go [Pipeline] isUnix [Pipeline] sh 20:07:36 + docker build -t device-rest -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=578fb88605a7b0beb16c95e7a15e89bf8109c0df --label arch=amd64 --label version=0.0.0 . 20:07:36 Sending build context to Docker daemon 10.62MB 20:07:36 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 20:07:36 Step 2/25 : FROM ${BASE} AS builder 20:07:36 ---> ebe87475ed42 20:07:36 Step 3/25 : ARG MAKE='make build' 20:07:36 ---> Running in 878d7113b47b 20:07:36 Removing intermediate container 878d7113b47b 20:07:36 ---> d920df0fca45 20:07:36 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:07:36 ---> Running in f7e22587638f 20:07:36 Removing intermediate container f7e22587638f 20:07:36 ---> 00963006be72 20:07:36 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 20:07:36 ---> Running in cd8fbc1bcc7c 20:07:37 Removing intermediate container cd8fbc1bcc7c 20:07:37 ---> 7bb5c4fc7dea 20:07:37 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:07:37 ---> Running in 0b5241a3c6ce 20:07:37 Removing intermediate container 0b5241a3c6ce 20:07:37 ---> b28847dcfb2f 20:07:37 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:07:37 ---> Running in 1e31bb10df3f 20:07:38 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 20:07:38 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 20:07:39 OK: 224 MiB in 56 packages 20:07:39 Removing intermediate container 1e31bb10df3f 20:07:39 ---> 8f3d8e8f76ea 20:07:39 Step 8/25 : WORKDIR /device-rest-go 20:07:39 ---> Running in bb23e01490e8 20:07:39 Removing intermediate container bb23e01490e8 20:07:39 ---> 0bf83aa6e463 20:07:39 Step 9/25 : COPY go.mod vendor* ./ 20:07:39 ---> 0bd70db36876 20:07:39 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:07:39 ---> Running in 2e423a9bb50b 20:07:40 Removing intermediate container 2e423a9bb50b 20:07:40 ---> c1f14f2b9c0c 20:07:40 Step 11/25 : COPY . . 20:07:40 ---> c9c8d0ac4fc7 20:07:40 Step 12/25 : RUN $MAKE 20:07:40 ---> Running in ee3abb2680ce 20:07:40 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 20:08:02 Removing intermediate container ee3abb2680ce 20:08:02 ---> b8b3db9296be 20:08:02 Step 13/25 : FROM alpine:3.14 20:08:02 3.14: Pulling from library/alpine 20:08:02 8663204ce13b: Pulling fs layer 20:08:02 8663204ce13b: Verifying Checksum 20:08:02 8663204ce13b: Download complete 20:08:02 8663204ce13b: Pull complete 20:08:02 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 20:08:02 Status: Downloaded newer image for alpine:3.14 20:08:02 ---> e04c818066af 20:08:02 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:08:02 ---> Running in 9bd85ecdbf59 20:08:02 Removing intermediate container 9bd85ecdbf59 20:08:02 ---> e32a4263709f 20:08:02 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:08:02 ---> Running in ee7dd78df549 20:08:02 Removing intermediate container ee7dd78df549 20:08:02 ---> 9995bedb418d 20:08:02 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 20:08:02 ---> Running in 6cfb56cbede0 20:08:02 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 20:08:02 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 20:08:02 (1/6) Installing dumb-init (1.2.5-r1) 20:08:02 (2/6) Installing libgcc (10.3.1_git20210424-r2) 20:08:02 (3/6) Installing libsodium (1.0.18-r0) 20:08:02 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 20:08:02 (5/6) Installing libzmq (4.3.4-r0) 20:08:02 (6/6) Installing zeromq (4.3.4-r0) 20:08:02 Executing busybox-1.33.1-r7.trigger 20:08:02 OK: 8 MiB in 20 packages 20:08:02 Removing intermediate container 6cfb56cbede0 20:08:02 ---> b559344068ad 20:08:02 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:08:02 ---> c06e3ef1829f 20:08:02 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:08:03 ---> 7386e2d7a938 20:08:03 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:08:03 ---> a3c84e16c167 20:08:03 Step 20/25 : EXPOSE 59986 20:08:03 ---> Running in 8303cd58ee3a 20:08:03 Removing intermediate container 8303cd58ee3a 20:08:03 ---> 37c90b8922ab 20:08:03 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:08:03 ---> Running in 01e9bd1678d1 20:08:03 Removing intermediate container 01e9bd1678d1 20:08:03 ---> b85898178610 20:08:03 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 20:08:03 ---> Running in 61e5a8134795 20:08:03 Removing intermediate container 61e5a8134795 20:08:03 ---> dde09c8fac36 20:08:03 Step 23/25 : LABEL arch=amd64 20:08:03 ---> Running in 34c7153d58ea 20:08:03 Removing intermediate container 34c7153d58ea 20:08:03 ---> fd8d5454eb6f 20:08:03 Step 24/25 : LABEL git_sha=578fb88605a7b0beb16c95e7a15e89bf8109c0df 20:08:03 ---> Running in 754fc81a995b 20:08:03 Removing intermediate container 754fc81a995b 20:08:03 ---> 7ee302450d39 20:08:03 Step 25/25 : LABEL version=0.0.0 20:08:03 ---> Running in b3aac2a73ef1 20:08:04 Removing intermediate container b3aac2a73ef1 20:08:04 ---> 528e4699bba2 20:08:04 [Warning] One or more build-args [ARCH] were not consumed 20:08:04 Successfully built 528e4699bba2 20:08:04 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:08:04 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:08:04 20:08:04 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 20:08:05 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:08:05 latest: Pulling from edgex-lftools-log-publisher 20:08:05 5eb5b503b376: Pulling fs layer 20:08:05 5c69ac0246d0: Pulling fs layer 20:08:05 ec43610c2a17: Pulling fs layer 20:08:05 3a2ae6a8a46f: Pulling fs layer 20:08:05 33b1e0a273af: Pulling fs layer 20:08:05 5d3b04190fa2: Pulling fs layer 20:08:05 2f39f015ded8: Pulling fs layer 20:08:05 3a2ae6a8a46f: Waiting 20:08:05 33b1e0a273af: Waiting 20:08:05 2f39f015ded8: Waiting 20:08:05 5d3b04190fa2: Waiting 20:08:05 5c69ac0246d0: Download complete 20:08:05 3a2ae6a8a46f: Verifying Checksum 20:08:05 3a2ae6a8a46f: Download complete 20:08:05 33b1e0a273af: Verifying Checksum 20:08:05 33b1e0a273af: Download complete 20:08:05 ec43610c2a17: Verifying Checksum 20:08:05 ec43610c2a17: Download complete 20:08:05 5d3b04190fa2: Verifying Checksum 20:08:05 5d3b04190fa2: Download complete 20:08:05 5eb5b503b376: Verifying Checksum 20:08:05 5eb5b503b376: Download complete 20:08:06 2f39f015ded8: Download complete 20:08:06 5eb5b503b376: Pull complete 20:08:06 5c69ac0246d0: Pull complete 20:08:07 ec43610c2a17: Pull complete 20:08:07 3a2ae6a8a46f: Pull complete 20:08:07 33b1e0a273af: Pull complete 20:08:07 5d3b04190fa2: Pull complete 20:08:11 2f39f015ded8: Pull complete 20:08:11 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 20:08:11 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:08:11 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 20:08:11 prd-ubuntu20.04-docker-8c-8g-34497 does not seem to be running inside a container 20:08:11 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-182 -v /w/workspace/gexfoundry_device-rest-go_PR-182:/w/workspace/gexfoundry_device-rest-go_PR-182:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-182@tmp:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 20:08:13 $ docker top 52c5af66b65302d9f91a59386d3aeb347696455f8d6359be0b95c089486a0551 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:08:14 ---> job-cost.sh 20:08:14 lf-activate-venv: SKIPPING 20:08:14 INFO: No Stack... 20:08:14 INFO: Retrieving Pricing Info for: v3-standard-8 20:08:15 INFO: Archiving Costs [Pipeline] sh 20:08:15 + cat /w/workspace/gexfoundry_device-rest-go_PR-182/archives/cost.csv 20:08:15 + cut -d, -f6 [Pipeline] lock 20:08:15 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-182-1-stack-cost] 20:08:15 Resource [jenkins-edgexfoundry-device-rest-go-PR-182-1-stack-cost] did not exist. Created. 20:08:15 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-182-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:08:15 + echo total: 0.2199999988079071 [Pipeline] stash 20:08:16 Stashed 1 file(s) [Pipeline] } 20:08:16 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-182-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:08:16 $ docker stop --time=1 52c5af66b65302d9f91a59386d3aeb347696455f8d6359be0b95c089486a0551 20:08:17 $ docker rm -f 52c5af66b65302d9f91a59386d3aeb347696455f8d6359be0b95c089486a0551 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 20:09:42 Running on prd-ubuntu20.04-docker-arm64-4c-16g-34499 in /w/workspace/gexfoundry_device-rest-go_PR-182 [Pipeline] { [Pipeline] ws 20:09:42 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 20:09:43 The recommended git tool is: git 20:09:48 using credential edgex-jenkins-ssh 20:09:48 Cloning the remote Git repository 20:09:49 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:09:49 > git init /w/workspace/device-rest-go/1 # timeout=10 20:09:49 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:09:49 > git --version # timeout=10 20:09:49 > git --version # 'git version 2.25.1' 20:09:49 using GIT_SSH to set credentials SSH Credentials for GitHub 20:09:49 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:09:51 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:09:51 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:09:51 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:09:51 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:09:51 using GIT_SSH to set credentials SSH Credentials for GitHub 20:09:51 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/182/head:refs/remotes/origin/PR-182 +refs/heads/main:refs/remotes/origin/main # timeout=10 20:09:52 Merging remotes/origin/main commit a43e2c30b821305cbbceda7bc94393c1897f4bc4 into PR head commit 578fb88605a7b0beb16c95e7a15e89bf8109c0df 20:09:52 Merge succeeded, producing 578fb88605a7b0beb16c95e7a15e89bf8109c0df 20:09:52 Checking out Revision 578fb88605a7b0beb16c95e7a15e89bf8109c0df (PR-182) 20:09:52 > git config core.sparsecheckout # timeout=10 20:09:52 > git checkout -f 578fb88605a7b0beb16c95e7a15e89bf8109c0df # timeout=10 20:09:52 > git remote # timeout=10 20:09:52 > git config --get remote.origin.url # timeout=10 20:09:52 using GIT_SSH to set credentials SSH Credentials for GitHub 20:09:52 > git merge a43e2c30b821305cbbceda7bc94393c1897f4bc4 # timeout=10 20:09:52 > git rev-parse HEAD^{commit} # timeout=10 20:09:52 > git config core.sparsecheckout # timeout=10 20:09:52 > git checkout -f 578fb88605a7b0beb16c95e7a15e89bf8109c0df # timeout=10 20:09:56 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2" 20:09:56 > git --version # timeout=10 20:09:56 > git --version # 'git version 2.25.1' 20:09:56 fatal: bad object 61d3a14f5ee21304eadc9c25f102bcac80e1a589 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:09:58 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 20:09:58 % Total % Received % Xferd Average Speed Time Time Time Current 20:09:58 Dload Upload Total Spent Left Speed 20:09:58 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 83401 0 --:--:-- --:--:-- --:--:-- 83992 [Pipeline] sh 20:09:58 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 20:09:59 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 20:09:59 + sudo tee /etc/docker/daemon.new 20:09:59 { 20:09:59 "registry-mirrors": [ 20:09:59 "https://nexus3.edgexfoundry.org:10001" 20:09:59 ], 20:09:59 "bip": "10.250.0.254/24", 20:09:59 "hosts": [ 20:09:59 "tcp://0.0.0.0:5555", 20:09:59 "unix:///var/run/docker.sock" 20:09:59 ], 20:09:59 "mtu": 1458, 20:09:59 "selinux-enabled": true, 20:09:59 "seccomp-profile": "/etc/docker/seccomp.json" 20:09:59 } [Pipeline] sh 20:09:59 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 20:09:59 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:10:18 provisioning config files... 20:10:18 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config4412305629810519446tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:10:18 ---> docker-login.sh 20:10:18 nexus3.edgexfoundry.org:10001 20:10:19 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:10:19 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:10:19 Configure a credential helper to remove this warning. See 20:10:19 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:10:19 20:10:19 Login Succeeded 20:10:19 nexus3.edgexfoundry.org:10002 20:10:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:10:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:10:20 Configure a credential helper to remove this warning. See 20:10:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:10:20 20:10:20 Login Succeeded 20:10:20 nexus3.edgexfoundry.org:10003 20:10:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:10:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:10:20 Configure a credential helper to remove this warning. See 20:10:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:10:20 20:10:20 Login Succeeded 20:10:20 nexus3.edgexfoundry.org:10004 20:10:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:10:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:10:21 Configure a credential helper to remove this warning. See 20:10:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:10:21 20:10:21 Login Succeeded 20:10:21 docker.io 20:10:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:10:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:10:22 Configure a credential helper to remove this warning. See 20:10:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:10:22 20:10:22 Login Succeeded 20:10:22 ---> docker-login.sh ends [Pipeline] } 20:10:22 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:10:22 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:10:22 ========================================================= 20:10:22 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 20:10:22 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 20:10:23 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine --build-arg MAKE=echo noop --target=builder . 20:10:23 Sending build context to Docker daemon 130kB 20:10:23 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 20:10:23 Step 2/12 : FROM ${BASE} AS builder 20:10:23 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 20:10:23 9b3977197b4f: Pulling fs layer 20:10:23 1a89e8eeedd5: Pulling fs layer 20:10:23 94645a83ff95: Pulling fs layer 20:10:23 3f3a8bcf1eab: Pulling fs layer 20:10:23 0c92f367c5e7: Pulling fs layer 20:10:23 3096ccb668a1: Pulling fs layer 20:10:23 e8cf19c19ddd: Pulling fs layer 20:10:23 a4caa8a26152: Pulling fs layer 20:10:23 3f3a8bcf1eab: Waiting 20:10:23 0c92f367c5e7: Waiting 20:10:23 3096ccb668a1: Waiting 20:10:23 e8cf19c19ddd: Waiting 20:10:23 a4caa8a26152: Waiting 20:10:23 94645a83ff95: Verifying Checksum 20:10:23 94645a83ff95: Download complete 20:10:23 1a89e8eeedd5: Verifying Checksum 20:10:23 1a89e8eeedd5: Download complete 20:10:23 0c92f367c5e7: Verifying Checksum 20:10:23 0c92f367c5e7: Download complete 20:10:23 3096ccb668a1: Verifying Checksum 20:10:23 3096ccb668a1: Download complete 20:10:23 9b3977197b4f: Verifying Checksum 20:10:23 9b3977197b4f: Download complete 20:10:23 e8cf19c19ddd: Verifying Checksum 20:10:23 e8cf19c19ddd: Download complete 20:10:24 9b3977197b4f: Pull complete 20:10:25 1a89e8eeedd5: Pull complete 20:10:25 94645a83ff95: Pull complete 20:10:26 a4caa8a26152: Verifying Checksum 20:10:26 a4caa8a26152: Download complete 20:10:26 3f3a8bcf1eab: Verifying Checksum 20:10:26 3f3a8bcf1eab: Download complete 20:10:39 3f3a8bcf1eab: Pull complete 20:10:39 0c92f367c5e7: Pull complete 20:10:39 3096ccb668a1: Pull complete 20:10:39 e8cf19c19ddd: Pull complete 20:10:48 a4caa8a26152: Pull complete 20:10:48 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 20:10:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 20:10:48 ---> 725f1c02e7f9 20:10:48 Step 3/12 : ARG MAKE='make build' 20:10:49 ---> Running in c738ac64f93b 20:10:49 Removing intermediate container c738ac64f93b 20:10:49 ---> 9bfdd8a898f2 20:10:49 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:10:49 ---> Running in 73fbc2bb25c7 20:10:49 Removing intermediate container 73fbc2bb25c7 20:10:49 ---> bb5ca7d8890d 20:10:49 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 20:10:49 ---> Running in 073387ed28e7 20:10:50 Removing intermediate container 073387ed28e7 20:10:50 ---> badf343f8063 20:10:50 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:10:50 ---> Running in 1e70b9fa860e 20:10:52 Removing intermediate container 1e70b9fa860e 20:10:52 ---> bacd58ae1e31 20:10:52 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:10:52 ---> Running in f29abd37ea30 20:10:53 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 20:10:54 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 20:10:55 (1/4) Installing openssh-keygen (8.8_p1-r1) 20:10:55 (2/4) Installing libedit (20210910.3.1-r0) 20:10:55 (3/4) Installing openssh-client-common (8.8_p1-r1) 20:10:55 (4/4) Installing openssh-client-default (8.8_p1-r1) 20:10:55 Executing busybox-1.34.1-r3.trigger 20:10:55 OK: 224 MiB in 56 packages 20:10:56 Removing intermediate container f29abd37ea30 20:10:56 ---> 5b257bbe4c73 20:10:56 Step 8/12 : WORKDIR /device-rest-go 20:10:56 ---> Running in e442c8a979f0 20:10:57 Removing intermediate container e442c8a979f0 20:10:57 ---> 4f20ad832f82 20:10:57 Step 9/12 : COPY go.mod vendor* ./ 20:10:57 ---> df6f29e27416 20:10:57 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:10:57 ---> Running in d3d349e88760 20:11:44 Removing intermediate container d3d349e88760 20:11:44 ---> 7eaf75f5837a 20:11:44 Step 11/12 : COPY . . 20:11:45 ---> 7ad863f7edd3 20:11:45 Step 12/12 : RUN $MAKE 20:11:45 ---> Running in 44d3bc046aa3 20:11:46 noop 20:11:47 Removing intermediate container 44d3bc046aa3 20:11:47 ---> e0d99ba5189a 20:11:47 Successfully built e0d99ba5189a 20:11:47 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 20:11:47 + docker inspect -f . ci-base-image-arm64 20:11:47 . [Pipeline] withDockerContainer 20:11:48 prd-ubuntu20.04-docker-arm64-4c-16g-34499 does not seem to be running inside a container 20:11:48 $ 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 ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 20:11:49 $ docker top 21b13ddc51cd736055d52f9f00d47c1269bdc2e620fcb1ddd3ea9ed9ebb1059e -eo pid,comm [Pipeline] { [Pipeline] sh 20:11:50 + go version 20:11:50 go version go1.17.6 linux/arm64 [Pipeline] } 20:11:50 $ docker stop --time=1 21b13ddc51cd736055d52f9f00d47c1269bdc2e620fcb1ddd3ea9ed9ebb1059e 20:11:52 $ docker rm -f 21b13ddc51cd736055d52f9f00d47c1269bdc2e620fcb1ddd3ea9ed9ebb1059e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:11:53 + docker inspect -f . ci-base-image-arm64 20:11:53 . [Pipeline] withDockerContainer 20:11:53 prd-ubuntu20.04-docker-arm64-4c-16g-34499 does not seem to be running inside a container 20:11:53 $ 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 ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 20:11:55 $ docker top cb7505792821f14ed6fb961e4bc73cb69f5ef5f250fa31aef99b2ca907c85748 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 20:11:56 + make test 20:11:56 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 20:11:58 ? github.com/edgexfoundry/device-rest-go [no test files] 20:13:35 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:13:35 ok github.com/edgexfoundry/device-rest-go/driver 0.074s coverage: 55.2% of statements 20:13:35 WARNING: Linting skipped (not on x86_64 or linter not installed) 20:13:35 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:14:07 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:14:07 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:14:07 ./bin/test-attribution-txt.sh [Pipeline] echo 20:14:07 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:14:07 $ docker stop --time=1 cb7505792821f14ed6fb961e4bc73cb69f5ef5f250fa31aef99b2ca907c85748 20:14:09 $ docker rm -f cb7505792821f14ed6fb961e4bc73cb69f5ef5f250fa31aef99b2ca907c85748 [Pipeline] // withDockerContainer [Pipeline] sh 20:14:10 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:14:11 Warning: overwriting stash ‘coverage-report’ 20:14:11 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:14:12 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:14:12 + ls -al . 20:14:12 total 188 20:14:12 drwxrwxr-x 8 jenkins jenkins 4096 May 2 20:14 . 20:14:12 drwxrwxr-x 4 jenkins jenkins 4096 May 2 20:09 .. 20:14:12 -rw-rw-r-- 1 jenkins jenkins 151 May 2 20:09 .dockerignore 20:14:12 drwxrwxr-x 8 jenkins jenkins 4096 May 2 20:09 .git 20:14:12 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:09 .github 20:14:12 -rw-rw-r-- 1 jenkins jenkins 329 May 2 20:09 .gitignore 20:14:12 -rw-rw-r-- 1 jenkins jenkins 41 May 2 20:09 .golangci.yml 20:14:12 -rw-rw-r-- 1 jenkins jenkins 8463 May 2 20:09 Attribution.txt 20:14:12 -rw-rw-r-- 1 jenkins jenkins 7459 May 2 20:09 CHANGELOG.md 20:14:12 -rw-rw-r-- 1 jenkins jenkins 1672 May 2 20:09 Dockerfile 20:14:12 -rw-rw-r-- 1 jenkins jenkins 677 May 2 20:09 GOVERNANCE.md 20:14:12 -rw-rw-r-- 1 jenkins jenkins 680 May 2 20:09 Jenkinsfile 20:14:12 -rw-rw-r-- 1 jenkins jenkins 11340 May 2 20:09 LICENSE 20:14:12 -rw-rw-r-- 1 jenkins jenkins 1977 May 2 20:09 Makefile 20:14:12 -rw-rw-r-- 1 jenkins jenkins 620 May 2 20:09 OWNERS.md 20:14:12 -rw-rw-r-- 1 jenkins jenkins 8246 May 2 20:09 README.md 20:14:12 -rw-rw-r-- 1 jenkins jenkins 5 May 2 20:06 VERSION 20:14:12 drwxrwxr-x 2 jenkins jenkins 4096 May 2 20:09 bin 20:14:12 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:09 cmd 20:14:12 -rw-r--r-- 1 jenkins jenkins 9355 May 2 20:13 coverage.out 20:14:12 drwxrwxr-x 2 jenkins jenkins 4096 May 2 20:09 driver 20:14:12 -rw-rw-r-- 1 jenkins jenkins 3333 May 2 20:09 go.mod 20:14:12 -rw-rw-r-- 1 jenkins jenkins 54250 May 2 20:09 go.sum 20:14:12 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:09 snap 20:14:12 -rw-rw-r-- 1 jenkins jenkins 713 May 2 20:09 version.go [Pipeline] isUnix [Pipeline] sh 20:14:13 + docker build -t device-rest-arm64 -f Dockerfile --build-arg BASE=ci-base-image-arm64 --build-arg MAKE=make build --build-arg ARCH=arm64 --label git_sha=578fb88605a7b0beb16c95e7a15e89bf8109c0df --label arch=arm64 --label version=0.0.0 . 20:14:13 Sending build context to Docker daemon 140.3kB 20:14:13 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 20:14:13 Step 2/25 : FROM ${BASE} AS builder 20:14:13 ---> e0d99ba5189a 20:14:13 Step 3/25 : ARG MAKE='make build' 20:14:13 ---> Running in 84f25c416128 20:14:14 Removing intermediate container 84f25c416128 20:14:14 ---> 964c8e00db0a 20:14:14 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:14:14 ---> Running in 30bab328f9d1 20:14:14 Removing intermediate container 30bab328f9d1 20:14:14 ---> 55f3762bcd6e 20:14:14 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 20:14:14 ---> Running in e50ee3b6ef97 20:14:14 Removing intermediate container e50ee3b6ef97 20:14:14 ---> 27d5a1ecd5a2 20:14:14 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:14:15 ---> Running in 9daba39bde31 20:14:17 Removing intermediate container 9daba39bde31 20:14:17 ---> ce5dd0185193 20:14:17 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:14:17 ---> Running in 6ff1984e1623 20:14:18 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 20:14:19 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 20:14:20 OK: 224 MiB in 56 packages 20:14:21 Removing intermediate container 6ff1984e1623 20:14:21 ---> a94d5fc82f18 20:14:21 Step 8/25 : WORKDIR /device-rest-go 20:14:21 ---> Running in 774256b2977e 20:14:21 Removing intermediate container 774256b2977e 20:14:21 ---> 65be69b76de1 20:14:21 Step 9/25 : COPY go.mod vendor* ./ 20:14:22 ---> 2bb6d81086e5 20:14:22 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:14:22 ---> Running in a0593842762a 20:14:24 Removing intermediate container a0593842762a 20:14:24 ---> 43ecd0d8a225 20:14:24 Step 11/25 : COPY . . 20:14:24 ---> 878401143e8b 20:14:24 Step 12/25 : RUN $MAKE 20:14:24 ---> Running in 340eae1d97c7 20:14:25 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 20:16:47 Removing intermediate container 340eae1d97c7 20:16:47 ---> 78d9feb2d90b 20:16:47 Step 13/25 : FROM alpine:3.14 20:16:47 3.14: Pulling from library/alpine 20:16:47 455c02918c45: Pulling fs layer 20:16:47 455c02918c45: Verifying Checksum 20:16:47 455c02918c45: Download complete 20:16:47 455c02918c45: Pull complete 20:16:47 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 20:16:47 Status: Downloaded newer image for alpine:3.14 20:16:47 ---> ac73e934f311 20:16:47 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:16:47 ---> Running in f800b8521291 20:16:47 Removing intermediate container f800b8521291 20:16:47 ---> dd319be999af 20:16:47 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:16:47 ---> Running in f77d039e0344 20:16:47 Removing intermediate container f77d039e0344 20:16:47 ---> a344fa3c7109 20:16:47 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 20:16:47 ---> Running in 6eb03bc885b7 20:16:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 20:16:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 20:16:49 (1/6) Installing dumb-init (1.2.5-r1) 20:16:49 (2/6) Installing libgcc (10.3.1_git20210424-r2) 20:16:49 (3/6) Installing libsodium (1.0.18-r0) 20:16:49 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 20:16:49 (5/6) Installing libzmq (4.3.4-r0) 20:16:49 (6/6) Installing zeromq (4.3.4-r0) 20:16:49 Executing busybox-1.33.1-r7.trigger 20:16:49 OK: 8 MiB in 20 packages 20:16:50 Removing intermediate container 6eb03bc885b7 20:16:50 ---> 030c77f49bed 20:16:50 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:16:51 ---> 8302364d966a 20:16:51 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:16:52 ---> 814427ee15a3 20:16:52 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:16:52 ---> 34f5a291707b 20:16:52 Step 20/25 : EXPOSE 59986 20:16:52 ---> Running in bcbe941a306e 20:16:53 Removing intermediate container bcbe941a306e 20:16:53 ---> e289cae09b7d 20:16:53 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:16:53 ---> Running in 995f5d95dcb4 20:16:53 Removing intermediate container 995f5d95dcb4 20:16:53 ---> 5eb024db4627 20:16:53 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 20:16:53 ---> Running in 5586b98138dc 20:16:53 Removing intermediate container 5586b98138dc 20:16:53 ---> 11b88965e2fb 20:16:53 Step 23/25 : LABEL arch=arm64 20:16:53 ---> Running in 22b3ba114450 20:16:54 Removing intermediate container 22b3ba114450 20:16:54 ---> 3e20fa90dedd 20:16:54 Step 24/25 : LABEL git_sha=578fb88605a7b0beb16c95e7a15e89bf8109c0df 20:16:54 ---> Running in a1f9d69fcf9a 20:16:54 Removing intermediate container a1f9d69fcf9a 20:16:54 ---> a3b9dad0c6ab 20:16:54 Step 25/25 : LABEL version=0.0.0 20:16:54 ---> Running in 7e57e91ee41e 20:16:55 Removing intermediate container 7e57e91ee41e 20:16:55 ---> ff91974468f1 20:16:55 [Warning] One or more build-args [ARCH] were not consumed 20:16:55 Successfully built ff91974468f1 20:16:55 Successfully tagged device-rest-arm64:latest [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:16:55 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:16:55 20:16:55 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 20:16:56 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:16:56 arm64: Pulling from edgex-lftools-log-publisher 20:16:56 8998bd30e6a1: Pulling fs layer 20:16:56 04944245beec: Pulling fs layer 20:16:56 699f458cf7ca: Pulling fs layer 20:16:56 765212b225bb: Pulling fs layer 20:16:56 f23df028b6ca: Pulling fs layer 20:16:56 d65c8cfc05b1: Pulling fs layer 20:16:56 2437ff75d9bd: Pulling fs layer 20:16:56 765212b225bb: Waiting 20:16:56 f23df028b6ca: Waiting 20:16:56 d65c8cfc05b1: Waiting 20:16:56 2437ff75d9bd: Waiting 20:16:56 04944245beec: Verifying Checksum 20:16:56 04944245beec: Download complete 20:16:56 765212b225bb: Verifying Checksum 20:16:56 765212b225bb: Download complete 20:16:56 f23df028b6ca: Verifying Checksum 20:16:56 f23df028b6ca: Download complete 20:16:56 d65c8cfc05b1: Verifying Checksum 20:16:56 d65c8cfc05b1: Download complete 20:16:56 699f458cf7ca: Verifying Checksum 20:16:56 699f458cf7ca: Download complete 20:16:56 8998bd30e6a1: Verifying Checksum 20:16:56 8998bd30e6a1: Download complete 20:16:59 2437ff75d9bd: Verifying Checksum 20:16:59 2437ff75d9bd: Download complete 20:17:01 8998bd30e6a1: Pull complete 20:17:02 04944245beec: Pull complete 20:17:03 699f458cf7ca: Pull complete 20:17:03 765212b225bb: Pull complete 20:17:04 f23df028b6ca: Pull complete 20:17:04 d65c8cfc05b1: Pull complete 20:17:19 2437ff75d9bd: Pull complete 20:17:19 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 20:17:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:17:19 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 20:17:20 prd-ubuntu20.04-docker-arm64-4c-16g-34499 does not seem to be running inside a container 20:17:20 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/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 ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 20:17:23 $ docker top fcd2c0b1c7abe90addfac75f49633328ab4ad3fcb4ac14d657407ecd052ccaa0 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:17:24 ---> job-cost.sh 20:17:24 lf-activate-venv: SKIPPING 20:17:24 INFO: No Stack... 20:17:24 INFO: Retrieving Pricing Info for: v3-standard-4 20:17:25 INFO: Archiving Costs [Pipeline] sh 20:17:26 + cat /w/workspace/device-rest-go/1/archives/cost.csv 20:17:26 + cut -d, -f6 [Pipeline] lock 20:17:26 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-182-1-stack-cost] 20:17:26 Resource [jenkins-edgexfoundry-device-rest-go-PR-182-1-stack-cost] did not exist. Created. 20:17:26 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-182-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:17:27 /w/workspace/device-rest-go/1@tmp/durable-c141ecfb/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 20:17:28 + echo total: 0.10999999940395355 [Pipeline] stash 20:17:28 Warning: overwriting stash ‘stack-cost’ 20:17:28 Stashed 1 file(s) [Pipeline] } 20:17:28 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-182-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:17:28 $ docker stop --time=1 fcd2c0b1c7abe90addfac75f49633328ab4ad3fcb4ac14d657407ecd052ccaa0 20:17:29 $ docker rm -f fcd2c0b1c7abe90addfac75f49633328ab4ad3fcb4ac14d657407ecd052ccaa0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 20:17:30 provisioning config files... 20:17:30 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/config8563564394509888254tmp [Pipeline] { [Pipeline] sh 20:17:31 + set +x 20:17:31 + bash -s -- 20:17:31 + curl -s https://codecov.io/bash 20:17:31 20:17:31 _____ _ 20:17:31 / ____| | | 20:17:31 | | ___ __| | ___ ___ _____ __ 20:17:31 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 20:17:31 | |___| (_) | (_| | __/ (_| (_) \ V / 20:17:31 \_____\___/ \__,_|\___|\___\___/ \_/ 20:17:31 Bash-1.0.6 20:17:31 20:17:31 20:17:31 ==> git version 2.25.1 found 20:17:31 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 20:17:31 Release-Date: 2020-01-08 20:17:31 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 20:17:31 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 20:17:31 ==> Jenkins CI detected. 20:17:31 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-182 20:17:31 project root: . 20:17:31 --> token set from env 20:17:31 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 20:17:31 ==> Running gcov in . (disable via -X gcov) 20:17:31 ==> Python coveragepy not found 20:17:31 ==> Searching for coverage reports in: 20:17:31 + . 20:17:31 -> Found 1 reports 20:17:31 ==> Detecting git/mercurial file structure 20:17:31 ==> Reading reports 20:17:31 + ./coverage.out bytes=9355 20:17:31 ==> Appending adjustments 20:17:31 https://docs.codecov.io/docs/fixing-reports 20:17:31 + Found adjustments 20:17:31 ==> Gzipping contents 20:17:31 4.0K /tmp/codecov.H3gRA3.gz 20:17:31 ==> Uploading reports 20:17:31 url: https://codecov.io 20:17:31 query: branch=PR-182&commit=578fb88605a7b0beb16c95e7a15e89bf8109c0df&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-182%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=182&job=&cmd_args= 20:17:31 -> Pinging Codecov 20:17:31 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-182&commit=578fb88605a7b0beb16c95e7a15e89bf8109c0df&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-182%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=182&job=&cmd_args= 20:17:31 -> Uploading to 20:17:31 https://storage.googleapis.com/codecov/v4/raw/2022-05-02/4E5D53B4F1F92C436F7061BF334D961C/578fb88605a7b0beb16c95e7a15e89bf8109c0df/5d0de6cd-934b-4634-b044-e5bee197de68.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1E5YTIQF4NUDJHIPRXCW6SWPNHIWXR6YCTGFLBKZTWXKPGHK3U3FMCQWA%2F20220502%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220502T201731Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=7743c85e22dbd8638a74b0eb0184cafbce36eac341f6e1a88f50bf42c9dcee4e 20:17:31 % Total % Received % Xferd Average Speed Time Time Time Current 20:17:31 Dload Upload Total Spent Left Speed 20:17:31 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1806 0 0 100 1806 0 8896 --:--:-- --:--:-- --:--:-- 8852 100 1806 0 0 100 1806 0 8641 --:--:-- --:--:-- --:--:-- 8600 20:17:31 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/578fb88605a7b0beb16c95e7a15e89bf8109c0df [Pipeline] } 20:17:31 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 20:17:33 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-182/archives ] 20:17:33 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-182/archives 20:17:33 total 16 20:17:33 drwxr-xr-x 3 root root 4096 May 2 20:08 . 20:17:33 drwxrwxr-x 10 jenkins jenkins 4096 May 2 20:08 .. 20:17:33 drwxr-xr-x 2 root root 4096 May 2 20:08 cost 20:17:33 -rw-r--r-- 1 root root 85 May 2 20:08 cost.csv 20:17:33 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-182/archives 20:17:33 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-182/archives 20:17:33 total 16 20:17:33 drwxr-xr-x 3 jenkins jenkins 4096 May 2 20:08 . 20:17:33 drwxrwxr-x 10 jenkins jenkins 4096 May 2 20:08 .. 20:17:33 drwxr-xr-x 2 jenkins jenkins 4096 May 2 20:08 cost 20:17:33 -rw-r--r-- 1 jenkins jenkins 85 May 2 20:08 cost.csv [Pipeline] libraryResource [Pipeline] sh 20:17:34 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:17:34 ---> package-listing.sh 20:17:34 ++ facter osfamily 20:17:34 ++ tr '[:upper:]' '[:lower:]' 20:17:35 + OS_FAMILY=debian 20:17:35 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-182 20:17:35 + START_PACKAGES=/tmp/packages_start.txt 20:17:35 + END_PACKAGES=/tmp/packages_end.txt 20:17:35 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:17:35 + PACKAGES=/tmp/packages_start.txt 20:17:35 + '[' /w/workspace/gexfoundry_device-rest-go_PR-182 ']' 20:17:35 + PACKAGES=/tmp/packages_end.txt 20:17:35 + case "${OS_FAMILY}" in 20:17:35 + dpkg -l 20:17:35 + grep '^ii' 20:17:35 + '[' -f /tmp/packages_start.txt ']' 20:17:35 + '[' -f /tmp/packages_end.txt ']' 20:17:35 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:17:35 + '[' /w/workspace/gexfoundry_device-rest-go_PR-182 ']' 20:17:35 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-182/archives/ 20:17:35 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-182/archives/ [Pipeline] echo 20:17:35 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-182/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 20:17:35 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 20:17:36 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:17:36 . [Pipeline] withDockerContainer 20:17:36 prd-ubuntu20.04-docker-8c-8g-34497 does not seem to be running inside a container 20:17:36 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-182/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-182 -v /w/workspace/gexfoundry_device-rest-go_PR-182:/w/workspace/gexfoundry_device-rest-go_PR-182:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-182@tmp:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 20:17:36 $ docker top 35289c40783742a665106564a9c018c8c902a68ac832e7e01a4015f8d84252e1 -eo pid,comm [Pipeline] { [Pipeline] sh 20:17:36 + touch /tmp/pre-build-complete [Pipeline] sh 20:17:37 + mkdir -p /var/log/sysstat [Pipeline] sh 20:17:37 + ls /var/log/sa-host 20:17:37 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:17:37 provisioning config files... 20:17:37 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/config7369800125385689375tmp [Pipeline] { [Pipeline] echo 20:17:37 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:17:38 ---> create-netrc.sh [Pipeline] } 20:17:38 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 20:17:38 ---> python-tools-install.sh [Pipeline] echo 20:17:38 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 20:17:38 ---> sudo-logs.sh 20:17:38 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 20:17:38 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 20:17:39 ---> job-cost.sh 20:17:39 lf-activate-venv: SKIPPING 20:17:39 DEBUG: total: 0.2199999988079071 20:17:39 INFO: Retrieving Stack Cost... 20:17:39 INFO: Retrieving Pricing Info for: v3-standard-8 20:17:40 INFO: Archiving Costs [Pipeline] echo 20:17:40 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:17:40 ---> logs-deploy.sh 20:17:40 lf-activate-venv: SKIPPING 20:17:40 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-182/1 20:17:40 INFO: archiving workspace using pattern(s): 20:17:41 Archives upload complete. 20:17:41 INFO: archiving logs to Nexus