Pull request #183 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 34bdd3d79806ee1d0281597263b9cfdeb3c44d66+a43e2c30b821305cbbceda7bc94393c1897f4bc4 (45e63504248ac4f8eeded1b3dd950286273c6308) 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-ssh7422432523220412284.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-ssh15947189120910425954.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-183/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-183/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh17487207818483401603.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-183/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh10539218825788579244.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-ssh16959021601274806436.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-183/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-183/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh6972869128925222068.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-34496 in /w/workspace/gexfoundry_device-rest-go_PR-183 [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-183 # 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 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 Merge succeeded, producing 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 Checking out Revision 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 (PR-183) > 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/183/head:refs/remotes/origin/PR-183 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 # 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 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 # timeout=10 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/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:38 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:06:38 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:06:39 ========================================================= 20:06:39 EdgeX Global Pipelines Version Info 20:06:39 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:06:39 ------------------- 20:06:39 stable info: 20:06:39 ------------------- 20:06:39 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:06:39 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 20:06:39 Message: update stable to v1.0.227 20:06:40 ------------------- 20:06:40 experimental info: 20:06:40 ------------------- 20:06:40 Commited By: **** collab-it+edgex@linuxfoundation.org 20:06:40 Commit SHA: 602d0728ebfd21a5b975e02ac0465e47e5fef8c7 20:06:40 Message: update experimental to v1.0.228 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:06:40 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:06:40 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:06:40 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:06:40 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:06:40 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:06:40 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 20:06:40 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:06:40 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:06:40 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-183 [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-183 [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-183 [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 34bdd3d [Pipeline] echo 20:06:41 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:06:42 provisioning config files... 20:06:42 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-183@tmp/config1042241328848567930tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:06:42 ---> docker-login.sh 20:06:42 nexus3.edgexfoundry.org:10001 20:06:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:42 Configure a credential helper to remove this warning. See 20:06:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:42 20:06:42 Login Succeeded 20:06:42 nexus3.edgexfoundry.org:10002 20:06:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:42 Configure a credential helper to remove this warning. See 20:06:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:42 20:06:42 Login Succeeded 20:06:42 nexus3.edgexfoundry.org:10003 20:06:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:42 Configure a credential helper to remove this warning. See 20:06:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:42 20:06:42 Login Succeeded 20:06:42 nexus3.edgexfoundry.org:10004 20:06:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:43 Configure a credential helper to remove this warning. See 20:06:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:43 20:06:43 Login Succeeded 20:06:43 docker.io 20:06:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:43 Configure a credential helper to remove this warning. See 20:06:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:43 20:06:43 Login Succeeded 20:06:43 ---> docker-login.sh ends [Pipeline] } 20:06:43 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:06:44 + git rev-list -1 --merges 34bdd3d79806ee1d0281597263b9cfdeb3c44d66~1..34bdd3d79806ee1d0281597263b9cfdeb3c44d66 [Pipeline] echo 20:06:44 -----------> git rev-list -1 --merges 34bdd3d79806ee1d0281597263b9cfdeb3c44d66~1..34bdd3d79806ee1d0281597263b9cfdeb3c44d66 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 [false] [Pipeline] sh 20:06:44 + git log --format=format:%s -1 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 [Pipeline] echo 20:06:44 ========================================================= 20:06:44 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:06:44 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:06:45 + git log --format=format:%s -1 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 [Pipeline] echo 20:06:45 [semverPrep] GIT_COMMIT: 34bdd3d79806ee1d0281597263b9cfdeb3c44d66, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v2 [Pipeline] echo 20:06:45 [semverPrep] This is not a build commit. [Pipeline] sh 20:06:45 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:06:45 + grep -v github /etc/ssh/ssh_known_hosts 20:06:45 + [ -e /tmp/ssh_known_hosts ] 20:06:45 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:06:45 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:06:45 + sudo tee -a /etc/ssh/ssh_known_hosts 20:06:45 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 20:06:46 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 20:06:46 20:06:46 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 20:06:46 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 20:06:46 latest: Pulling from edgex-devops/py-git-semver 20:06:46 1fe172e4850f: Pulling fs layer 20:06:46 caf521ccaac6: Pulling fs layer 20:06:46 3ead6fa29328: Pulling fs layer 20:06:46 5c2a1cbceb83: Pulling fs layer 20:06:46 a8d5f1318db7: Pulling fs layer 20:06:46 c427282e49a2: Pulling fs layer 20:06:46 1827001aaf11: Pulling fs layer 20:06:46 0714d37db230: Pulling fs layer 20:06:46 ac28cf19c067: Pulling fs layer 20:06:46 ca983d60f3e2: Pulling fs layer 20:06:46 9f894cec8388: Pulling fs layer 20:06:46 c427282e49a2: Waiting 20:06:46 1827001aaf11: Waiting 20:06:46 0714d37db230: Waiting 20:06:46 ac28cf19c067: Waiting 20:06:46 ca983d60f3e2: Waiting 20:06:46 a8d5f1318db7: Waiting 20:06:46 9f894cec8388: Waiting 20:06:46 5c2a1cbceb83: Waiting 20:06:46 caf521ccaac6: Verifying Checksum 20:06:46 caf521ccaac6: Download complete 20:06:46 5c2a1cbceb83: Verifying Checksum 20:06:46 5c2a1cbceb83: Download complete 20:06:46 a8d5f1318db7: Verifying Checksum 20:06:46 a8d5f1318db7: Download complete 20:06:46 3ead6fa29328: Verifying Checksum 20:06:46 3ead6fa29328: Download complete 20:06:46 c427282e49a2: Verifying Checksum 20:06:46 c427282e49a2: Download complete 20:06:46 0714d37db230: Download complete 20:06:46 ac28cf19c067: Download complete 20:06:46 ca983d60f3e2: Verifying Checksum 20:06:46 ca983d60f3e2: Download complete 20:06:46 9f894cec8388: Download complete 20:06:46 1fe172e4850f: Verifying Checksum 20:06:46 1fe172e4850f: Download complete 20:06:47 1827001aaf11: Verifying Checksum 20:06:47 1827001aaf11: Download complete 20:06:48 1fe172e4850f: Pull complete 20:06:48 caf521ccaac6: Pull complete 20:06:49 3ead6fa29328: Pull complete 20:06:49 5c2a1cbceb83: Pull complete 20:06:49 a8d5f1318db7: Pull complete 20:06:49 c427282e49a2: Pull complete 20:06:51 1827001aaf11: Pull complete 20:06:51 0714d37db230: Pull complete 20:06:51 ac28cf19c067: Pull complete 20:06:51 ca983d60f3e2: Pull complete 20:06:51 9f894cec8388: Pull complete 20:06:52 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 20:06:52 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 20:06:52 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 20:06:52 prd-ubuntu20.04-docker-8c-8g-34496 does not seem to be running inside a container 20:06:52 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-183 -v /w/workspace/gexfoundry_device-rest-go_PR-183:/w/workspace/gexfoundry_device-rest-go_PR-183:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-183@tmp:/w/workspace/gexfoundry_device-rest-go_PR-183@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:53 $ docker top 2f4948b38a5e06c7f962cc675f718e6487f25f993f2a98f1023b377cf62a8b82 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:06:53 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:06:53 [ssh-agent] Looking for ssh-agent implementation... 20:06:54 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:06:54 $ docker exec 2f4948b38a5e06c7f962cc675f718e6487f25f993f2a98f1023b377cf62a8b82 ssh-agent 20:06:54 SSH_AUTH_SOCK=/tmp/ssh-mYhXHsK5uZhU/agent.33 20:06:54 SSH_AGENT_PID=39 20:06:54 Running ssh-add (command line suppressed) 20:06:54 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-183@tmp/private_key_1422580753675740177.key (/w/workspace/gexfoundry_device-rest-go_PR-183@tmp/private_key_1422580753675740177.key) 20:06:54 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:06:54 + git tag --points-at HEAD [Pipeline] } 20:06:54 $ docker exec --env ******** --env ******** 2f4948b38a5e06c7f962cc675f718e6487f25f993f2a98f1023b377cf62a8b82 ssh-agent -k 20:06:54 unset SSH_AUTH_SOCK; 20:06:54 unset SSH_AGENT_PID; 20:06:54 echo Agent pid 39 killed; 20:06:54 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:06:54 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:06:54 [ssh-agent] Looking for ssh-agent implementation... 20:06:55 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:06:55 $ docker exec 2f4948b38a5e06c7f962cc675f718e6487f25f993f2a98f1023b377cf62a8b82 ssh-agent 20:06:55 SSH_AUTH_SOCK=/tmp/ssh-XbaFX9bTHUFj/agent.72 20:06:55 SSH_AGENT_PID=79 20:06:55 Running ssh-add (command line suppressed) 20:06:55 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-183@tmp/private_key_6814954053791386509.key (/w/workspace/gexfoundry_device-rest-go_PR-183@tmp/private_key_6814954053791386509.key) 20:06:55 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:06:55 + git semver init 20:06:55 2022-05-02 20:06:55,878 [run_init] DEBUG init version:0.0.0 force:False 20:06:55 2022-05-02 20:06:55,879 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-183/.semver 20:06:55 2022-05-02 20:06:55,880 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-183/.semver 20:06:55 2022-05-02 20:06:55,880 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-183/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-183, universal_newlines=False, shell=None, istream=None) 20:06:56 2022-05-02 20:06:56,865 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-183/.git/info/exclude 20:06:56 2022-05-02 20:06:56,866 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-183/.semver/PR-183 with force:False 20:06:56 2022-05-02 20:06:56,866 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-183/.semver/PR-183 20:06:56 2022-05-02 20:06:56,871 [execute] INFO git cat-file --batch-check 20:06:56 2022-05-02 20:06:56,871 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-183/.semver, universal_newlines=False, shell=None, istream=) 20:06:56 2022-05-02 20:06:56,878 [execute] INFO git cat-file --batch 20:06:56 2022-05-02 20:06:56,878 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-183/.semver, universal_newlines=False, shell=None, istream=) 20:06:57 2022-05-02 20:06:56,886 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-183/.semver/PR-183 20:06:57 0.0.0 [Pipeline] } 20:06:57 $ docker exec --env ******** --env ******** 2f4948b38a5e06c7f962cc675f718e6487f25f993f2a98f1023b377cf62a8b82 ssh-agent -k 20:06:57 unset SSH_AUTH_SOCK; 20:06:57 unset SSH_AGENT_PID; 20:06:57 echo Agent pid 79 killed; 20:06:57 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:06:57 + git semver [Pipeline] } 20:06:58 $ docker stop --time=1 2f4948b38a5e06c7f962cc675f718e6487f25f993f2a98f1023b377cf62a8b82 20:06:59 $ docker rm -f 2f4948b38a5e06c7f962cc675f718e6487f25f993f2a98f1023b377cf62a8b82 [Pipeline] // withDockerContainer [Pipeline] sh 20:06:59 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:07:00 Stashed 1 file(s) [Pipeline] echo 20:07:00 [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:07:00 provisioning config files... 20:07:00 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-183@tmp/config23000517970552932tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:07:01 ---> docker-login.sh 20:07:01 nexus3.edgexfoundry.org:10001 20:07:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:07:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:07:01 Configure a credential helper to remove this warning. See 20:07:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:07:01 20:07:01 Login Succeeded 20:07:01 nexus3.edgexfoundry.org:10002 20:07:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:07:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:07:01 Configure a credential helper to remove this warning. See 20:07:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:07:01 20:07:01 Login Succeeded 20:07:01 nexus3.edgexfoundry.org:10003 20:07:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:07:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:07:01 Configure a credential helper to remove this warning. See 20:07:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:07:01 20:07:01 Login Succeeded 20:07:01 nexus3.edgexfoundry.org:10004 20:07:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:07:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:07:01 Configure a credential helper to remove this warning. See 20:07:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:07:01 20:07:01 Login Succeeded 20:07:01 docker.io 20:07:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:07:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:07:02 Configure a credential helper to remove this warning. See 20:07:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:07:02 20:07:02 Login Succeeded 20:07:02 ---> docker-login.sh ends [Pipeline] } 20:07:02 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:07:02 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:07:02 ========================================================= 20:07:02 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 20:07:02 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 20:07:02 + 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:07:02 Sending build context to Docker daemon 10.61MB 20:07:02 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 20:07:02 Step 2/12 : FROM ${BASE} AS builder 20:07:02 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 20:07:02 59bf1c3509f3: Pulling fs layer 20:07:02 666ba61612fd: Pulling fs layer 20:07:02 8ed8ca486205: Pulling fs layer 20:07:02 4fe6c5a15a65: Pulling fs layer 20:07:02 22a0e8bec74d: Pulling fs layer 20:07:02 4fe6c5a15a65: Waiting 20:07:02 ca2b28591e48: Pulling fs layer 20:07:02 a51346096db8: Pulling fs layer 20:07:02 22a0e8bec74d: Waiting 20:07:02 a51346096db8: Waiting 20:07:02 daebc70d1ce1: Pulling fs layer 20:07:02 0e18a0eac166: Pulling fs layer 20:07:02 0e18a0eac166: Waiting 20:07:02 daebc70d1ce1: Waiting 20:07:02 8ed8ca486205: Verifying Checksum 20:07:02 8ed8ca486205: Download complete 20:07:03 666ba61612fd: Verifying Checksum 20:07:03 666ba61612fd: Download complete 20:07:03 22a0e8bec74d: Verifying Checksum 20:07:03 22a0e8bec74d: Download complete 20:07:03 ca2b28591e48: Verifying Checksum 20:07:03 ca2b28591e48: Download complete 20:07:03 59bf1c3509f3: Verifying Checksum 20:07:03 59bf1c3509f3: Download complete 20:07:03 a51346096db8: Download complete 20:07:03 daebc70d1ce1: Verifying Checksum 20:07:03 daebc70d1ce1: Download complete 20:07:03 59bf1c3509f3: Pull complete 20:07:03 666ba61612fd: Pull complete 20:07:03 8ed8ca486205: Pull complete 20:07:03 0e18a0eac166: Download complete 20:07:03 4fe6c5a15a65: Download complete 20:07:08 4fe6c5a15a65: Pull complete 20:07:08 22a0e8bec74d: Pull complete 20:07:08 ca2b28591e48: Pull complete 20:07:08 a51346096db8: Pull complete 20:07:08 daebc70d1ce1: Pull complete 20:07:10 0e18a0eac166: Pull complete 20:07:10 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 20:07:10 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 20:07:10 ---> f018257e8ee9 20:07:10 Step 3/12 : ARG MAKE='make build' 20:07:12 ---> Running in e4060bba51eb 20:07:12 Removing intermediate container e4060bba51eb 20:07:12 ---> 7ef93313d6c9 20:07:12 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:07:12 ---> Running in ffa6d8e999d1 20:07:12 Removing intermediate container ffa6d8e999d1 20:07:12 ---> 53646b82f324 20:07:12 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 20:07:12 ---> Running in 68d77ec5824b 20:07:12 Removing intermediate container 68d77ec5824b 20:07:12 ---> 3940d4c38ab9 20:07:12 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:07:12 ---> Running in 2f51fe98e5ba 20:07:13 Removing intermediate container 2f51fe98e5ba 20:07:13 ---> 4e7eaae91b0d 20:07:13 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:07:13 ---> Running in 472aa849f337 20:07:13 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 20:07:14 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 20:07:14 (1/4) Installing openssh-keygen (8.8_p1-r1) 20:07:15 (2/4) Installing libedit (20210910.3.1-r0) 20:07:15 (3/4) Installing openssh-client-common (8.8_p1-r1) 20:07:15 (4/4) Installing openssh-client-default (8.8_p1-r1) 20:07:15 Executing busybox-1.34.1-r3.trigger 20:07:15 OK: 224 MiB in 56 packages 20:07:15 Still waiting to schedule task 20:07:15 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 20:07:15 Removing intermediate container 472aa849f337 20:07:15 ---> f37412a2400c 20:07:15 Step 8/12 : WORKDIR /device-rest-go 20:07:15 ---> Running in 03de2cf9d931 20:07:15 Removing intermediate container 03de2cf9d931 20:07:15 ---> 9e17e5426f99 20:07:15 Step 9/12 : COPY go.mod vendor* ./ 20:07:15 ---> 058d148f9a60 20:07:15 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:07:15 ---> Running in 731b6d54b6b8 20:07:30 Removing intermediate container 731b6d54b6b8 20:07:30 ---> a03c579cc6f8 20:07:30 Step 11/12 : COPY . . 20:07:30 ---> b1f0553f0a68 20:07:30 Step 12/12 : RUN $MAKE 20:07:30 ---> Running in 0de5437a0332 20:07:31 noop 20:07:31 Removing intermediate container 0de5437a0332 20:07:31 ---> 684370f65c1a 20:07:31 Successfully built 684370f65c1a 20:07:31 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 20:07:31 + docker inspect -f . ci-base-image-x86_64 20:07:31 . [Pipeline] withDockerContainer 20:07:31 prd-ubuntu20.04-docker-8c-8g-34496 does not seem to be running inside a container 20:07:31 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-183 -v /w/workspace/gexfoundry_device-rest-go_PR-183:/w/workspace/gexfoundry_device-rest-go_PR-183:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-183@tmp:/w/workspace/gexfoundry_device-rest-go_PR-183@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:32 $ docker top 1943b29f43984f88dd20e479c5c3934282d08ccec05334075b643c6a73d0d040 -eo pid,comm [Pipeline] { [Pipeline] sh 20:07:32 + go version 20:07:32 go version go1.17.6 linux/amd64 [Pipeline] } 20:07:32 $ docker stop --time=1 1943b29f43984f88dd20e479c5c3934282d08ccec05334075b643c6a73d0d040 20:07:33 $ docker rm -f 1943b29f43984f88dd20e479c5c3934282d08ccec05334075b643c6a73d0d040 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:07:34 + docker inspect -f . ci-base-image-x86_64 20:07:34 . [Pipeline] withDockerContainer 20:07:34 prd-ubuntu20.04-docker-8c-8g-34496 does not seem to be running inside a container 20:07:34 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-183 -v /w/workspace/gexfoundry_device-rest-go_PR-183:/w/workspace/gexfoundry_device-rest-go_PR-183:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-183@tmp:/w/workspace/gexfoundry_device-rest-go_PR-183@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:35 $ docker top ed865dda0c9a7b03de3106f48b32971c66da70fbadadefb799c7a941df39a82b -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 20:07:35 + make test 20:07:35 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 20:07:35 ? github.com/edgexfoundry/device-rest-go [no test files] 20:07:45 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:07:45 ok github.com/edgexfoundry/device-rest-go/driver 0.016s coverage: 55.2% of statements 20:07:54 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:07:57 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:07:57 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:07:57 ./bin/test-attribution-txt.sh [Pipeline] echo 20:07:57 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:07:57 $ docker stop --time=1 ed865dda0c9a7b03de3106f48b32971c66da70fbadadefb799c7a941df39a82b 20:07:59 $ docker rm -f ed865dda0c9a7b03de3106f48b32971c66da70fbadadefb799c7a941df39a82b [Pipeline] // withDockerContainer [Pipeline] sh 20:07:59 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:07:59 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:08:00 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:08:00 + ls -al . 20:08:00 total 172 20:08:00 drwxrwxr-x 9 jenkins jenkins 4096 May 2 20:07 . 20:08:00 drwxrwxr-x 4 jenkins jenkins 4096 May 2 20:06 .. 20:08:00 -rw-rw-r-- 1 jenkins jenkins 151 May 2 20:06 .dockerignore 20:08:00 drwxrwxr-x 8 jenkins jenkins 4096 May 2 20:06 .git 20:08:00 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:06 .github 20:08:00 -rw-rw-r-- 1 jenkins jenkins 329 May 2 20:06 .gitignore 20:08:00 -rw-rw-r-- 1 jenkins jenkins 41 May 2 20:06 .golangci.yml 20:08:00 drwxr-xr-x 3 jenkins jenkins 4096 May 2 20:06 .semver 20:08:00 -rw-rw-r-- 1 jenkins jenkins 8463 May 2 20:06 Attribution.txt 20:08:00 -rw-rw-r-- 1 jenkins jenkins 7459 May 2 20:06 CHANGELOG.md 20:08:00 -rw-rw-r-- 1 jenkins jenkins 1672 May 2 20:06 Dockerfile 20:08:00 -rw-rw-r-- 1 jenkins jenkins 677 May 2 20:06 GOVERNANCE.md 20:08:00 -rw-rw-r-- 1 jenkins jenkins 680 May 2 20:06 Jenkinsfile 20:08:00 -rw-rw-r-- 1 jenkins jenkins 11340 May 2 20:06 LICENSE 20:08:00 -rw-rw-r-- 1 jenkins jenkins 1977 May 2 20:06 Makefile 20:08:00 -rw-rw-r-- 1 jenkins jenkins 620 May 2 20:06 OWNERS.md 20:08:00 -rw-rw-r-- 1 jenkins jenkins 8246 May 2 20:06 README.md 20:08:00 -rw-rw-r-- 1 jenkins jenkins 5 May 2 20:06 VERSION 20:08:00 drwxrwxr-x 2 jenkins jenkins 4096 May 2 20:06 bin 20:08:00 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:06 cmd 20:08:00 -rw-r--r-- 1 jenkins jenkins 9355 May 2 20:07 coverage.out 20:08:00 drwxrwxr-x 2 jenkins jenkins 4096 May 2 20:06 driver 20:08:00 -rw-rw-r-- 1 jenkins jenkins 3333 May 2 20:06 go.mod 20:08:00 -rw-rw-r-- 1 jenkins jenkins 35259 May 2 20:06 go.sum 20:08:00 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:06 snap 20:08:00 -rw-rw-r-- 1 jenkins jenkins 713 May 2 20:06 version.go [Pipeline] isUnix [Pipeline] sh 20:08:01 + 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=34bdd3d79806ee1d0281597263b9cfdeb3c44d66 --label arch=amd64 --label version=0.0.0 . 20:08:01 Sending build context to Docker daemon 10.62MB 20:08:01 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 20:08:01 Step 2/25 : FROM ${BASE} AS builder 20:08:01 ---> 684370f65c1a 20:08:01 Step 3/25 : ARG MAKE='make build' 20:08:01 ---> Running in c0ad506d78f7 20:08:01 Removing intermediate container c0ad506d78f7 20:08:01 ---> d181ac03b7f4 20:08:01 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:08:01 ---> Running in 15c040410f37 20:08:01 Removing intermediate container 15c040410f37 20:08:01 ---> c0591368eb15 20:08:01 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 20:08:01 ---> Running in 754b382bc38e 20:08:01 Removing intermediate container 754b382bc38e 20:08:01 ---> d0901faf77cf 20:08:01 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:08:01 ---> Running in 6d674f06351c 20:08:02 Removing intermediate container 6d674f06351c 20:08:02 ---> a59e528fc429 20:08:02 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:08:02 ---> Running in 938877c54a9b 20:08:02 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 20:08:03 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 20:08:03 OK: 224 MiB in 56 packages 20:08:04 Removing intermediate container 938877c54a9b 20:08:04 ---> 2ec4eb090c64 20:08:04 Step 8/25 : WORKDIR /device-rest-go 20:08:04 ---> Running in 0b0ba57f2e61 20:08:04 Removing intermediate container 0b0ba57f2e61 20:08:04 ---> 6bda1c4fb1f7 20:08:04 Step 9/25 : COPY go.mod vendor* ./ 20:08:04 ---> 102c97edb40d 20:08:04 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:08:04 ---> Running in e33533d3b80d 20:08:05 Removing intermediate container e33533d3b80d 20:08:05 ---> 46ee66996ca9 20:08:05 Step 11/25 : COPY . . 20:08:05 ---> 3e1088d6b019 20:08:05 Step 12/25 : RUN $MAKE 20:08:05 ---> Running in b99a3432d549 20:08:05 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:27 Removing intermediate container b99a3432d549 20:08:27 ---> 9e73d85e2dd4 20:08:27 Step 13/25 : FROM alpine:3.14 20:08:27 3.14: Pulling from library/alpine 20:08:27 8663204ce13b: Pulling fs layer 20:08:27 8663204ce13b: Verifying Checksum 20:08:27 8663204ce13b: Download complete 20:08:27 8663204ce13b: Pull complete 20:08:27 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 20:08:27 Status: Downloaded newer image for alpine:3.14 20:08:27 ---> e04c818066af 20:08:27 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:08:27 ---> Running in af0349dbcd60 20:08:27 Removing intermediate container af0349dbcd60 20:08:27 ---> dc4a880342c8 20:08:27 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:08:27 ---> Running in dfffec93a312 20:08:27 Removing intermediate container dfffec93a312 20:08:27 ---> 1d25ee7fad51 20:08:27 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 20:08:27 ---> Running in 9d527a9eb783 20:08:27 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 20:08:27 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 20:08:27 (1/6) Installing dumb-init (1.2.5-r1) 20:08:27 (2/6) Installing libgcc (10.3.1_git20210424-r2) 20:08:27 (3/6) Installing libsodium (1.0.18-r0) 20:08:27 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 20:08:27 (5/6) Installing libzmq (4.3.4-r0) 20:08:27 (6/6) Installing zeromq (4.3.4-r0) 20:08:27 Executing busybox-1.33.1-r7.trigger 20:08:27 OK: 8 MiB in 20 packages 20:08:27 Removing intermediate container 9d527a9eb783 20:08:27 ---> a8a9785cb08f 20:08:27 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:08:28 ---> a8f83ceed9e0 20:08:28 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:08:28 ---> 891212d704a1 20:08:28 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:08:28 ---> a1b2a5667474 20:08:28 Step 20/25 : EXPOSE 59986 20:08:28 ---> Running in 50db63bb86b5 20:08:28 Removing intermediate container 50db63bb86b5 20:08:28 ---> c54068223a71 20:08:28 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:08:28 ---> Running in 08662f7a03bf 20:08:28 Removing intermediate container 08662f7a03bf 20:08:28 ---> b5915c9804fe 20:08:28 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 20:08:28 ---> Running in f29ff31aedf8 20:08:28 Removing intermediate container f29ff31aedf8 20:08:28 ---> e3db917782ec 20:08:28 Step 23/25 : LABEL arch=amd64 20:08:28 ---> Running in 78ca66457aa9 20:08:29 Removing intermediate container 78ca66457aa9 20:08:29 ---> c23187576e60 20:08:29 Step 24/25 : LABEL git_sha=34bdd3d79806ee1d0281597263b9cfdeb3c44d66 20:08:29 ---> Running in e43a46de097b 20:08:29 Removing intermediate container e43a46de097b 20:08:29 ---> 8d0f2a84253d 20:08:29 Step 25/25 : LABEL version=0.0.0 20:08:29 ---> Running in 7a2b574f4798 20:08:29 Removing intermediate container 7a2b574f4798 20:08:29 ---> 3e37056fcab5 20:08:29 [Warning] One or more build-args [ARCH] were not consumed 20:08:29 Successfully built 3e37056fcab5 20:08:29 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:30 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:08:30 20:08:30 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 20:08:30 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:08:30 latest: Pulling from edgex-lftools-log-publisher 20:08:30 5eb5b503b376: Pulling fs layer 20:08:30 5c69ac0246d0: Pulling fs layer 20:08:30 ec43610c2a17: Pulling fs layer 20:08:30 3a2ae6a8a46f: Pulling fs layer 20:08:30 33b1e0a273af: Pulling fs layer 20:08:30 5d3b04190fa2: Pulling fs layer 20:08:30 2f39f015ded8: Pulling fs layer 20:08:30 5d3b04190fa2: Waiting 20:08:30 2f39f015ded8: Waiting 20:08:30 3a2ae6a8a46f: Waiting 20:08:30 33b1e0a273af: Waiting 20:08:30 5c69ac0246d0: Verifying Checksum 20:08:30 5c69ac0246d0: Download complete 20:08:30 3a2ae6a8a46f: Download complete 20:08:30 33b1e0a273af: Verifying Checksum 20:08:30 33b1e0a273af: Download complete 20:08:30 ec43610c2a17: Verifying Checksum 20:08:30 ec43610c2a17: Download complete 20:08:30 5d3b04190fa2: Verifying Checksum 20:08:30 5d3b04190fa2: Download complete 20:08:30 5eb5b503b376: Verifying Checksum 20:08:30 5eb5b503b376: Download complete 20:08:31 2f39f015ded8: Verifying Checksum 20:08:31 2f39f015ded8: Download complete 20:08:32 5eb5b503b376: Pull complete 20:08:32 5c69ac0246d0: Pull complete 20:08:32 ec43610c2a17: Pull complete 20:08:32 3a2ae6a8a46f: Pull complete 20:08:32 33b1e0a273af: Pull complete 20:08:32 5d3b04190fa2: Pull complete 20:08:38 2f39f015ded8: Pull complete 20:08:38 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 20:08:38 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:08:38 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 20:08:38 prd-ubuntu20.04-docker-8c-8g-34496 does not seem to be running inside a container 20:08:38 $ 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-183 -v /w/workspace/gexfoundry_device-rest-go_PR-183:/w/workspace/gexfoundry_device-rest-go_PR-183:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-183@tmp:/w/workspace/gexfoundry_device-rest-go_PR-183@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:40 $ docker top 7e3c7d703c5e8fb2fdce9c71ce337a8953f94b20b2ddd9ff09b0c5b4f83354ce -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:08:40 ---> job-cost.sh 20:08:40 lf-activate-venv: SKIPPING 20:08:40 INFO: No Stack... 20:08:41 INFO: Retrieving Pricing Info for: v3-standard-8 20:08:41 INFO: Archiving Costs [Pipeline] sh 20:08:41 + cat /w/workspace/gexfoundry_device-rest-go_PR-183/archives/cost.csv 20:08:41 + cut -d, -f6 [Pipeline] lock 20:08:42 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-183-1-stack-cost] 20:08:42 Resource [jenkins-edgexfoundry-device-rest-go-PR-183-1-stack-cost] did not exist. Created. 20:08:42 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-183-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:08:42 + echo total: 0.2199999988079071 [Pipeline] stash 20:08:42 Stashed 1 file(s) [Pipeline] } 20:08:42 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-183-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:08:42 $ docker stop --time=1 7e3c7d703c5e8fb2fdce9c71ce337a8953f94b20b2ddd9ff09b0c5b4f83354ce 20:08:43 $ docker rm -f 7e3c7d703c5e8fb2fdce9c71ce337a8953f94b20b2ddd9ff09b0c5b4f83354ce [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 20:10:40 Running on prd-ubuntu20.04-docker-arm64-4c-16g-34500 in /w/workspace/gexfoundry_device-rest-go_PR-183 [Pipeline] { [Pipeline] ws 20:10:40 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 20:10:41 The recommended git tool is: git 20:10:49 using credential edgex-jenkins-ssh 20:10:49 Cloning the remote Git repository 20:10:49 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:10:49 > git init /w/workspace/device-rest-go/1 # timeout=10 20:10:49 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:10:49 > git --version # timeout=10 20:10:49 > git --version # 'git version 2.25.1' 20:10:49 using GIT_SSH to set credentials SSH Credentials for GitHub 20:10:49 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:10:52 Merging remotes/origin/main commit a43e2c30b821305cbbceda7bc94393c1897f4bc4 into PR head commit 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 20:10:52 Merge succeeded, producing 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 20:10:52 Checking out Revision 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 (PR-183) 20:10:51 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:10:51 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:10:51 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:10:51 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:10:51 using GIT_SSH to set credentials SSH Credentials for GitHub 20:10:51 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/183/head:refs/remotes/origin/PR-183 +refs/heads/main:refs/remotes/origin/main # timeout=10 20:10:52 > git config core.sparsecheckout # timeout=10 20:10:52 > git checkout -f 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 # timeout=10 20:10:52 > git remote # timeout=10 20:10:52 > git config --get remote.origin.url # timeout=10 20:10:52 using GIT_SSH to set credentials SSH Credentials for GitHub 20:10:52 > git merge a43e2c30b821305cbbceda7bc94393c1897f4bc4 # timeout=10 20:10:52 > git rev-parse HEAD^{commit} # timeout=10 20:10:52 > git config core.sparsecheckout # timeout=10 20:10:52 > git checkout -f 34bdd3d79806ee1d0281597263b9cfdeb3c44d66 # timeout=10 20:10:57 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v2" 20:10:57 > git --version # timeout=10 20:10:57 > git --version # 'git version 2.25.1' 20:10:57 fatal: bad object 61d3a14f5ee21304eadc9c25f102bcac80e1a589 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:10:58 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 20:10:58 % Total % Received % Xferd Average Speed Time Time Time Current 20:10:58 Dload Upload Total Spent Left Speed 20:10:58 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 192k 0 --:--:-- --:--:-- --:--:-- 192k [Pipeline] sh 20:10:58 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 20:10:59 + sudo jq+ . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 20:10:59 sudo tee /etc/docker/daemon.new 20:10:59 { 20:10:59 "registry-mirrors": [ 20:10:59 "https://nexus3.edgexfoundry.org:10001" 20:10:59 ], 20:10:59 "bip": "10.250.0.254/24", 20:10:59 "hosts": [ 20:10:59 "tcp://0.0.0.0:5555", 20:10:59 "unix:///var/run/docker.sock" 20:10:59 ], 20:10:59 "mtu": 1458, 20:10:59 "selinux-enabled": true, 20:10:59 "seccomp-profile": "/etc/docker/seccomp.json" 20:10:59 } [Pipeline] sh 20:10:59 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 20:11:00 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:11:18 provisioning config files... 20:11:18 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config3744582359541785790tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:11:19 ---> docker-login.sh 20:11:19 nexus3.edgexfoundry.org:10001 20:11:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:11:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:11:20 Configure a credential helper to remove this warning. See 20:11:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:11:20 20:11:20 Login Succeeded 20:11:20 nexus3.edgexfoundry.org:10002 20:11:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:11:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:11:20 Configure a credential helper to remove this warning. See 20:11:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:11:20 20:11:20 Login Succeeded 20:11:21 nexus3.edgexfoundry.org:10003 20:11:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:11:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:11:21 Configure a credential helper to remove this warning. See 20:11:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:11:21 20:11:21 Login Succeeded 20:11:21 nexus3.edgexfoundry.org:10004 20:11:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:11:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:11:22 Configure a credential helper to remove this warning. See 20:11:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:11:22 20:11:22 Login Succeeded 20:11:22 docker.io 20:11:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:11:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:11:22 Configure a credential helper to remove this warning. See 20:11:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:11:22 20:11:22 Login Succeeded 20:11:22 ---> docker-login.sh ends [Pipeline] } 20:11:22 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:11:23 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:11:23 ========================================================= 20:11:23 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 20:11:23 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 20:11:24 + 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:11:24 Sending build context to Docker daemon 130kB 20:11:24 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 20:11:24 Step 2/12 : FROM ${BASE} AS builder 20:11:24 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 20:11:24 9b3977197b4f: Pulling fs layer 20:11:24 1a89e8eeedd5: Pulling fs layer 20:11:24 94645a83ff95: Pulling fs layer 20:11:24 3f3a8bcf1eab: Pulling fs layer 20:11:24 0c92f367c5e7: Pulling fs layer 20:11:24 3096ccb668a1: Pulling fs layer 20:11:24 e8cf19c19ddd: Pulling fs layer 20:11:24 a4caa8a26152: Pulling fs layer 20:11:24 3f3a8bcf1eab: Waiting 20:11:24 0c92f367c5e7: Waiting 20:11:24 3096ccb668a1: Waiting 20:11:24 e8cf19c19ddd: Waiting 20:11:24 a4caa8a26152: Waiting 20:11:24 94645a83ff95: Verifying Checksum 20:11:24 94645a83ff95: Download complete 20:11:24 1a89e8eeedd5: Verifying Checksum 20:11:24 1a89e8eeedd5: Download complete 20:11:24 0c92f367c5e7: Verifying Checksum 20:11:24 0c92f367c5e7: Download complete 20:11:24 3096ccb668a1: Verifying Checksum 20:11:24 3096ccb668a1: Download complete 20:11:24 9b3977197b4f: Verifying Checksum 20:11:24 9b3977197b4f: Download complete 20:11:24 e8cf19c19ddd: Download complete 20:11:25 9b3977197b4f: Pull complete 20:11:25 1a89e8eeedd5: Pull complete 20:11:26 94645a83ff95: Pull complete 20:11:26 a4caa8a26152: Download complete 20:11:27 3f3a8bcf1eab: Verifying Checksum 20:11:27 3f3a8bcf1eab: Download complete 20:11:39 3f3a8bcf1eab: Pull complete 20:11:39 0c92f367c5e7: Pull complete 20:11:39 3096ccb668a1: Pull complete 20:11:39 e8cf19c19ddd: Pull complete 20:11:45 a4caa8a26152: Pull complete 20:11:45 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 20:11:45 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 20:11:45 ---> 725f1c02e7f9 20:11:45 Step 3/12 : ARG MAKE='make build' 20:11:45 ---> Running in 01d0d2d4775f 20:11:45 Removing intermediate container 01d0d2d4775f 20:11:45 ---> 67c0dc23b57c 20:11:45 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:11:46 ---> Running in f244ea59786b 20:11:46 Removing intermediate container f244ea59786b 20:11:46 ---> e7d92d2c6b19 20:11:46 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 20:11:46 ---> Running in a7ee74314ed5 20:11:46 Removing intermediate container a7ee74314ed5 20:11:46 ---> 0dbeaab69cc0 20:11:46 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:11:46 ---> Running in 66ba04fc48ce 20:11:48 Removing intermediate container 66ba04fc48ce 20:11:48 ---> 01ed5dd737c0 20:11:48 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:11:48 ---> Running in 767b832d5c22 20:11:49 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 20:11:50 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 20:11:51 (1/4) Installing openssh-keygen (8.8_p1-r1) 20:11:51 (2/4) Installing libedit (20210910.3.1-r0) 20:11:51 (3/4) Installing openssh-client-common (8.8_p1-r1) 20:11:52 (4/4) Installing openssh-client-default (8.8_p1-r1) 20:11:52 Executing busybox-1.34.1-r3.trigger 20:11:52 OK: 224 MiB in 56 packages 20:11:53 Removing intermediate container 767b832d5c22 20:11:53 ---> 50e09d735867 20:11:53 Step 8/12 : WORKDIR /device-rest-go 20:11:53 ---> Running in 8a3250ab8053 20:11:53 Removing intermediate container 8a3250ab8053 20:11:53 ---> 49dfd964c10e 20:11:53 Step 9/12 : COPY go.mod vendor* ./ 20:11:54 ---> 9e12198e2e75 20:11:54 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:11:54 ---> Running in 8bd52b14ea5d 20:12:41 Removing intermediate container 8bd52b14ea5d 20:12:41 ---> 20a634ba2f8e 20:12:41 Step 11/12 : COPY . . 20:12:41 ---> b98bd5ca0047 20:12:41 Step 12/12 : RUN $MAKE 20:12:41 ---> Running in 908c51b68210 20:12:41 noop 20:12:41 Removing intermediate container 908c51b68210 20:12:41 ---> 893f5e1a4b41 20:12:41 Successfully built 893f5e1a4b41 20:12:41 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 20:12:42 + docker inspect -f . ci-base-image-arm64 20:12:42 . [Pipeline] withDockerContainer 20:12:42 prd-ubuntu20.04-docker-arm64-4c-16g-34500 does not seem to be running inside a container 20:12:42 $ 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:12:43 $ docker top 89e184ef27070e5db68d4cd594643f226e2c359df96cda15e15df94a8b2687d1 -eo pid,comm [Pipeline] { [Pipeline] sh 20:12:44 + go version 20:12:44 go version go1.17.6 linux/arm64 [Pipeline] } 20:12:44 $ docker stop --time=1 89e184ef27070e5db68d4cd594643f226e2c359df96cda15e15df94a8b2687d1 20:12:46 $ docker rm -f 89e184ef27070e5db68d4cd594643f226e2c359df96cda15e15df94a8b2687d1 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:12:47 + docker inspect -f . ci-base-image-arm64 20:12:47 . [Pipeline] withDockerContainer 20:12:47 prd-ubuntu20.04-docker-arm64-4c-16g-34500 does not seem to be running inside a container 20:12:47 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 20:12:49 $ docker top 29325caa5ecef80b04d9393a8809a12261c2e0f8172a837c9ba95610e18dc0b8 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 20:12:50 + make test 20:12:50 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 20:12:52 ? github.com/edgexfoundry/device-rest-go [no test files] 20:14:29 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:14:29 ok github.com/edgexfoundry/device-rest-go/driver 0.073s coverage: 55.2% of statements 20:14:29 WARNING: Linting skipped (not on x86_64 or linter not installed) 20:14:29 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:14:51 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:14:51 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:14:51 ./bin/test-attribution-txt.sh [Pipeline] echo 20:14:54 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:14:54 $ docker stop --time=1 29325caa5ecef80b04d9393a8809a12261c2e0f8172a837c9ba95610e18dc0b8 20:14:56 $ docker rm -f 29325caa5ecef80b04d9393a8809a12261c2e0f8172a837c9ba95610e18dc0b8 [Pipeline] // withDockerContainer [Pipeline] sh 20:14:57 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:14:57 Warning: overwriting stash ‘coverage-report’ 20:14:58 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:14:58 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:14:59 + ls -al . 20:14:59 total 168 20:14:59 drwxrwxr-x 8 jenkins jenkins 4096 May 2 20:14 . 20:14:59 drwxrwxr-x 4 jenkins jenkins 4096 May 2 20:10 .. 20:14:59 -rw-rw-r-- 1 jenkins jenkins 151 May 2 20:10 .dockerignore 20:14:59 drwxrwxr-x 8 jenkins jenkins 4096 May 2 20:10 .git 20:14:59 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:10 .github 20:14:59 -rw-rw-r-- 1 jenkins jenkins 329 May 2 20:10 .gitignore 20:14:59 -rw-rw-r-- 1 jenkins jenkins 41 May 2 20:10 .golangci.yml 20:14:59 -rw-rw-r-- 1 jenkins jenkins 8463 May 2 20:10 Attribution.txt 20:14:59 -rw-rw-r-- 1 jenkins jenkins 7459 May 2 20:10 CHANGELOG.md 20:14:59 -rw-rw-r-- 1 jenkins jenkins 1672 May 2 20:10 Dockerfile 20:14:59 -rw-rw-r-- 1 jenkins jenkins 677 May 2 20:10 GOVERNANCE.md 20:14:59 -rw-rw-r-- 1 jenkins jenkins 680 May 2 20:10 Jenkinsfile 20:14:59 -rw-rw-r-- 1 jenkins jenkins 11340 May 2 20:10 LICENSE 20:14:59 -rw-rw-r-- 1 jenkins jenkins 1977 May 2 20:10 Makefile 20:14:59 -rw-rw-r-- 1 jenkins jenkins 620 May 2 20:10 OWNERS.md 20:14:59 -rw-rw-r-- 1 jenkins jenkins 8246 May 2 20:10 README.md 20:14:59 -rw-rw-r-- 1 jenkins jenkins 5 May 2 20:06 VERSION 20:14:59 drwxrwxr-x 2 jenkins jenkins 4096 May 2 20:10 bin 20:14:59 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:10 cmd 20:14:59 -rw-r--r-- 1 jenkins jenkins 9355 May 2 20:14 coverage.out 20:14:59 drwxrwxr-x 2 jenkins jenkins 4096 May 2 20:10 driver 20:14:59 -rw-rw-r-- 1 jenkins jenkins 3333 May 2 20:10 go.mod 20:14:59 -rw-rw-r-- 1 jenkins jenkins 35259 May 2 20:10 go.sum 20:14:59 drwxrwxr-x 3 jenkins jenkins 4096 May 2 20:10 snap 20:14:59 -rw-rw-r-- 1 jenkins jenkins 713 May 2 20:10 version.go [Pipeline] isUnix [Pipeline] sh 20:14:59 + 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=34bdd3d79806ee1d0281597263b9cfdeb3c44d66 --label arch=arm64 --label version=0.0.0 . 20:14:59 Sending build context to Docker daemon 140.3kB 20:14:59 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 20:14:59 Step 2/25 : FROM ${BASE} AS builder 20:14:59 ---> 893f5e1a4b41 20:14:59 Step 3/25 : ARG MAKE='make build' 20:15:00 ---> Running in 4fd32cc232bb 20:15:00 Removing intermediate container 4fd32cc232bb 20:15:00 ---> 2aa908e9e84e 20:15:00 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:15:00 ---> Running in cc14c32426e0 20:15:01 Removing intermediate container cc14c32426e0 20:15:01 ---> e79c6cd49da1 20:15:01 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 20:15:01 ---> Running in fa9ff081bd9f 20:15:01 Removing intermediate container fa9ff081bd9f 20:15:01 ---> 2d47febd0568 20:15:01 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:15:01 ---> Running in a97c476fb306 20:15:03 Removing intermediate container a97c476fb306 20:15:03 ---> 4d05312cb739 20:15:03 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:15:03 ---> Running in 56398e340813 20:15:04 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 20:15:05 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 20:15:06 OK: 224 MiB in 56 packages 20:15:07 Removing intermediate container 56398e340813 20:15:07 ---> 9632e61c1c74 20:15:07 Step 8/25 : WORKDIR /device-rest-go 20:15:07 ---> Running in 09e32ebbb09d 20:15:07 Removing intermediate container 09e32ebbb09d 20:15:07 ---> 769914e45bd4 20:15:07 Step 9/25 : COPY go.mod vendor* ./ 20:15:08 ---> 1503936d8c16 20:15:08 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:15:08 ---> Running in 190a5e9b8ce5 20:15:10 Removing intermediate container 190a5e9b8ce5 20:15:10 ---> 40d47c856cd8 20:15:10 Step 11/25 : COPY . . 20:15:10 ---> 3918d14cf462 20:15:10 Step 12/25 : RUN $MAKE 20:15:11 ---> Running in 1c0f9a976d8d 20:15:12 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:17:34 Removing intermediate container 1c0f9a976d8d 20:17:34 ---> 678a42ab9a49 20:17:34 Step 13/25 : FROM alpine:3.14 20:17:34 3.14: Pulling from library/alpine 20:17:34 455c02918c45: Pulling fs layer 20:17:34 455c02918c45: Verifying Checksum 20:17:34 455c02918c45: Download complete 20:17:34 455c02918c45: Pull complete 20:17:34 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 20:17:34 Status: Downloaded newer image for alpine:3.14 20:17:34 ---> ac73e934f311 20:17:34 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:17:34 ---> Running in 35fdc6f4f8cc 20:17:34 Removing intermediate container 35fdc6f4f8cc 20:17:34 ---> 28ad44d8fc66 20:17:34 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:17:34 ---> Running in ca5bce01f589 20:17:34 Removing intermediate container ca5bce01f589 20:17:34 ---> eacceb2150ad 20:17:34 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 20:17:34 ---> Running in f2a06d02c615 20:17:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 20:17:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 20:17:34 (1/6) Installing dumb-init (1.2.5-r1) 20:17:34 (2/6) Installing libgcc (10.3.1_git20210424-r2) 20:17:34 (3/6) Installing libsodium (1.0.18-r0) 20:17:34 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 20:17:34 (5/6) Installing libzmq (4.3.4-r0) 20:17:34 (6/6) Installing zeromq (4.3.4-r0) 20:17:34 Executing busybox-1.33.1-r7.trigger 20:17:34 OK: 8 MiB in 20 packages 20:17:35 Removing intermediate container f2a06d02c615 20:17:35 ---> 3a9734ab7d15 20:17:35 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:17:36 ---> 05d013992396 20:17:36 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:17:37 ---> 8ce54e746c15 20:17:37 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:17:37 ---> b0cddba8d924 20:17:37 Step 20/25 : EXPOSE 59986 20:17:37 ---> Running in 6c7f6c424bea 20:17:38 Removing intermediate container 6c7f6c424bea 20:17:38 ---> 2a5161598a70 20:17:38 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:17:38 ---> Running in d0a1ba5de981 20:17:38 Removing intermediate container d0a1ba5de981 20:17:38 ---> 9c4cbcf15829 20:17:38 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 20:17:38 ---> Running in 83dcce84873e 20:17:39 Removing intermediate container 83dcce84873e 20:17:39 ---> fa5705c71657 20:17:39 Step 23/25 : LABEL arch=arm64 20:17:39 ---> Running in f6803b3f2fff 20:17:39 Removing intermediate container f6803b3f2fff 20:17:39 ---> e4977436701e 20:17:39 Step 24/25 : LABEL git_sha=34bdd3d79806ee1d0281597263b9cfdeb3c44d66 20:17:39 ---> Running in fd3c6ac44f37 20:17:39 Removing intermediate container fd3c6ac44f37 20:17:39 ---> ac50bf6b3d32 20:17:39 Step 25/25 : LABEL version=0.0.0 20:17:39 ---> Running in 4a00297de67f 20:17:40 Removing intermediate container 4a00297de67f 20:17:40 ---> 37468c664c72 20:17:40 [Warning] One or more build-args [ARCH] were not consumed 20:17:40 Successfully built 37468c664c72 20:17:40 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:17:41 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:17:41 20:17:41 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 20:17:41 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:17:41 arm64: Pulling from edgex-lftools-log-publisher 20:17:41 8998bd30e6a1: Pulling fs layer 20:17:41 04944245beec: Pulling fs layer 20:17:41 699f458cf7ca: Pulling fs layer 20:17:41 765212b225bb: Pulling fs layer 20:17:41 f23df028b6ca: Pulling fs layer 20:17:41 d65c8cfc05b1: Pulling fs layer 20:17:41 2437ff75d9bd: Pulling fs layer 20:17:41 f23df028b6ca: Waiting 20:17:41 d65c8cfc05b1: Waiting 20:17:41 2437ff75d9bd: Waiting 20:17:41 765212b225bb: Waiting 20:17:41 04944245beec: Verifying Checksum 20:17:41 04944245beec: Download complete 20:17:41 765212b225bb: Verifying Checksum 20:17:41 765212b225bb: Download complete 20:17:41 f23df028b6ca: Download complete 20:17:41 d65c8cfc05b1: Verifying Checksum 20:17:41 d65c8cfc05b1: Download complete 20:17:42 699f458cf7ca: Verifying Checksum 20:17:42 699f458cf7ca: Download complete 20:17:42 8998bd30e6a1: Verifying Checksum 20:17:42 8998bd30e6a1: Download complete 20:17:44 2437ff75d9bd: Verifying Checksum 20:17:44 2437ff75d9bd: Download complete 20:17:46 8998bd30e6a1: Pull complete 20:17:47 04944245beec: Pull complete 20:17:48 699f458cf7ca: Pull complete 20:17:48 765212b225bb: Pull complete 20:17:49 f23df028b6ca: Pull complete 20:17:49 d65c8cfc05b1: Pull complete 20:18:05 2437ff75d9bd: Pull complete 20:18:05 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 20:18:05 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:18:05 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 20:18:05 prd-ubuntu20.04-docker-arm64-4c-16g-34500 does not seem to be running inside a container 20:18:05 $ 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:18:08 $ docker top a55fd8075c5b1d975d646bca13dae7856b62ede2170697df55ccef82bebcc4b9 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:18:09 ---> job-cost.sh 20:18:09 lf-activate-venv: SKIPPING 20:18:09 INFO: No Stack... 20:18:09 INFO: Retrieving Pricing Info for: v3-standard-4 20:18:10 INFO: Archiving Costs [Pipeline] sh 20:18:11 + cut -d, -f6 20:18:11 + cat /w/workspace/device-rest-go/1/archives/cost.csv [Pipeline] lock 20:18:11 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-183-1-stack-cost] 20:18:11 Resource [jenkins-edgexfoundry-device-rest-go-PR-183-1-stack-cost] did not exist. Created. 20:18:11 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-183-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:18:12 /w/workspace/device-rest-go/1@tmp/durable-8310041b/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 20:18:12 + echo total: 0.10999999940395355 [Pipeline] stash 20:18:12 Warning: overwriting stash ‘stack-cost’ 20:18:12 Stashed 1 file(s) [Pipeline] } 20:18:12 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-183-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:18:12 $ docker stop --time=1 a55fd8075c5b1d975d646bca13dae7856b62ede2170697df55ccef82bebcc4b9 20:18:14 $ docker rm -f a55fd8075c5b1d975d646bca13dae7856b62ede2170697df55ccef82bebcc4b9 [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:18:15 provisioning config files... 20:18:15 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-183@tmp/config993385262854642548tmp [Pipeline] { [Pipeline] sh 20:18:15 + set +x 20:18:15 + curl -s https://codecov.io/bash 20:18:15 + bash -s -- 20:18:15 20:18:15 _____ _ 20:18:15 / ____| | | 20:18:15 | | ___ __| | ___ ___ _____ __ 20:18:15 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 20:18:15 | |___| (_) | (_| | __/ (_| (_) \ V / 20:18:15 \_____\___/ \__,_|\___|\___\___/ \_/ 20:18:15 Bash-1.0.6 20:18:15 20:18:15 20:18:15 ==> git version 2.25.1 found 20:18:15 ==> 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:18:15 Release-Date: 2020-01-08 20:18:15 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:18:15 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 20:18:15 ==> Jenkins CI detected. 20:18:15 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-183 20:18:15 project root: . 20:18:15 --> token set from env 20:18:15 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 20:18:15 ==> Running gcov in . (disable via -X gcov) 20:18:15 ==> Python coveragepy not found 20:18:15 ==> Searching for coverage reports in: 20:18:15 + . 20:18:15 -> Found 1 reports 20:18:15 ==> Detecting git/mercurial file structure 20:18:15 ==> Reading reports 20:18:15 + ./coverage.out bytes=9355 20:18:15 ==> Appending adjustments 20:18:15 https://docs.codecov.io/docs/fixing-reports 20:18:16 + Found adjustments 20:18:16 ==> Gzipping contents 20:18:16 4.0K /tmp/codecov.Lqi6Vr.gz 20:18:16 ==> Uploading reports 20:18:16 url: https://codecov.io 20:18:16 query: branch=PR-183&commit=34bdd3d79806ee1d0281597263b9cfdeb3c44d66&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-183%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=183&job=&cmd_args= 20:18:16 -> Pinging Codecov 20:18:16 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-183&commit=34bdd3d79806ee1d0281597263b9cfdeb3c44d66&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-183%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=183&job=&cmd_args= 20:18:16 -> Uploading to 20:18:16 https://storage.googleapis.com/codecov/v4/raw/2022-05-02/4E5D53B4F1F92C436F7061BF334D961C/34bdd3d79806ee1d0281597263b9cfdeb3c44d66/32eb23e5-5fa0-4e32-b677-c5cc5a08f881.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1E5YTIQF4NUDJHIPRXCW6SWPNHIWXR6YCTGFLBKZTWXKPGHK3U3FMCQWA%2F20220502%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220502T201816Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=dcdae7c7afa20fb92f466ecf8c4f2750bbbca52223b5f67182e240d87d0d4fdd 20:18:16 % Total % Received % Xferd Average Speed Time Time Time Current 20:18:16 Dload Upload Total Spent Left Speed 20:18:16 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 4560 --:--:-- --:--:-- --:--:-- 4549 20:18:16 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/34bdd3d79806ee1d0281597263b9cfdeb3c44d66 [Pipeline] } 20:18:16 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:18:18 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-183/archives ] 20:18:18 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-183/archives 20:18:18 total 16 20:18:18 drwxr-xr-x 3 root root 4096 May 2 20:08 . 20:18:18 drwxrwxr-x 10 jenkins jenkins 4096 May 2 20:08 .. 20:18:18 drwxr-xr-x 2 root root 4096 May 2 20:08 cost 20:18:18 -rw-r--r-- 1 root root 85 May 2 20:08 cost.csv 20:18:18 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-183/archives 20:18:18 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-183/archives 20:18:18 total 16 20:18:18 drwxr-xr-x 3 jenkins jenkins 4096 May 2 20:08 . 20:18:18 drwxrwxr-x 10 jenkins jenkins 4096 May 2 20:08 .. 20:18:18 drwxr-xr-x 2 jenkins jenkins 4096 May 2 20:08 cost 20:18:18 -rw-r--r-- 1 jenkins jenkins 85 May 2 20:08 cost.csv [Pipeline] libraryResource [Pipeline] sh 20:18:19 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:18:20 ---> package-listing.sh 20:18:20 ++ facter osfamily 20:18:20 ++ tr '[:upper:]' '[:lower:]' 20:18:20 + OS_FAMILY=debian 20:18:20 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-183 20:18:20 + START_PACKAGES=/tmp/packages_start.txt 20:18:20 + END_PACKAGES=/tmp/packages_end.txt 20:18:20 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:18:20 + PACKAGES=/tmp/packages_start.txt 20:18:20 + '[' /w/workspace/gexfoundry_device-rest-go_PR-183 ']' 20:18:20 + PACKAGES=/tmp/packages_end.txt 20:18:20 + case "${OS_FAMILY}" in 20:18:20 + dpkg -l 20:18:20 + grep '^ii' 20:18:20 + '[' -f /tmp/packages_start.txt ']' 20:18:20 + '[' -f /tmp/packages_end.txt ']' 20:18:20 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:18:20 + '[' /w/workspace/gexfoundry_device-rest-go_PR-183 ']' 20:18:20 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-183/archives/ 20:18:20 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-183/archives/ [Pipeline] echo 20:18:20 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-183/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 20:18:20 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 20:18:21 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:18:21 . [Pipeline] withDockerContainer 20:18:21 prd-ubuntu20.04-docker-8c-8g-34496 does not seem to be running inside a container 20:18:21 $ 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-183/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-183 -v /w/workspace/gexfoundry_device-rest-go_PR-183:/w/workspace/gexfoundry_device-rest-go_PR-183:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-183@tmp:/w/workspace/gexfoundry_device-rest-go_PR-183@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:18:21 $ docker top 4d66c7c2a7f191e38dde162d9afa4e90d3e7aad48d3d35a2bc0f5e3f5ce2c7ba -eo pid,comm [Pipeline] { [Pipeline] sh 20:18:22 + touch /tmp/pre-build-complete [Pipeline] sh 20:18:22 + mkdir -p /var/log/sysstat [Pipeline] sh 20:18:22 + ls /var/log/sa-host 20:18:22 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:18:22 provisioning config files... 20:18:22 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-183@tmp/config8179908085353413020tmp [Pipeline] { [Pipeline] echo 20:18:22 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:18:23 ---> create-netrc.sh [Pipeline] } 20:18:23 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 20:18:23 ---> python-tools-install.sh [Pipeline] echo 20:18:23 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 20:18:23 ---> sudo-logs.sh 20:18:23 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 20:18:24 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 20:18:24 ---> job-cost.sh 20:18:24 lf-activate-venv: SKIPPING 20:18:24 DEBUG: total: 0.2199999988079071 20:18:24 INFO: Retrieving Stack Cost... 20:18:24 INFO: Retrieving Pricing Info for: v3-standard-8 20:18:25 INFO: Archiving Costs [Pipeline] echo 20:18:25 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:18:25 ---> logs-deploy.sh 20:18:25 lf-activate-venv: SKIPPING 20:18:25 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-183/1 20:18:25 INFO: archiving workspace using pattern(s): 20:18:26 Archives upload complete. 20:18:26 INFO: archiving logs to Nexus